@charset "UTF-8";

/* セクションヘッダー */
.swipeable-list .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.swipeable-list .section-title {
  font-size: 20px;
  font-weight: bold;
}

.swipeable-list .view-all {
  color: #0097e6;
  text-decoration: none;
  font-size: 14px;
}

/* カルーセル関連 */
.swipeable-list .product-carousel {
  position: relative;
  overflow: hidden;
  background-color: #fff;
  border-radius: 8px;
  padding: 16px;
}

.swipeable-list .carousel-container {
  display: flex;
  overflow-x: scroll;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  cursor: grab; /* マウスカーソルをグラブ表示に */
}

.swipeable-list .carousel-container:active {
  cursor: grabbing; /* ドラッグ中はグラビング表示に */
}

.swipeable-list .carousel-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* 商品カード */
.swipeable-list .product-card {
  flex: 0 0 auto;
  width: 200px;
  margin-right: 16px;
  user-select: none; /* テキスト選択を防止 */
}

.swipeable-list .product-image {
  position: relative;
  width: 100%;
  height: 250px;
  background-color: #eee;
  margin-bottom: 8px;
  overflow: hidden;
}

.swipeable-list .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none; /* 画像上でのドラッグ選択を防止 */
}

.swipeable-list .coupon-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background-color: #ff4d7d;
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none; /* クーポンタグ上でのドラッグ選択を防止 */
}

.swipeable-list .brand-name {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.swipeable-list .product-name {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.swipeable-list .price {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 4px;
}

.swipeable-list .color-variation {
  font-size: 12px;
  color: #888;
}

/* ナビゲーションボタン */
.swipeable-list .scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-130%);
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.swipeable-list .prev-button {
  left: 10px;
  display: none;
}

.swipeable-list .next-button {
  right: 10px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .swipeable-list .product-card {
    width: 160px;
  }

  .swipeable-list .product-image {
    height: 200px;
  }
}
