/**
 * 預購總覽頁（pages/preorder）— 標題列；商品卡與首頁／分類共用 wx-home-product-grid
 */
.preorder-list-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 48px;
  box-sizing: border-box;
}

@media (min-width: 1400px) {
  .preorder-list-container {
    padding: 0 15px 48px;
  }
}

.preorder-list-hero {
  padding: 28px 0 16px;
}

.preorder-list-hero__back {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--button-color, var(--primary-color, #778ca3));
  text-decoration: none;
  margin-bottom: 8px;
}

.preorder-list-hero__back:hover {
  text-decoration: underline;
}

.preorder-list-hero__title {
  margin: 0 0 8px;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  color: var(--pos-text-color, #0f172a);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.preorder-list-hero__subtitle {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

.preorder-list-hero__subtitle a {
  color: var(--pos-highlight, var(--button-color, #778ca3));
  font-weight: 700;
  text-decoration: none;
}

.preorder-list-hero__subtitle a:hover {
  text-decoration: underline;
}

.preorder-list-month {
  padding: 4px 0 36px;
}

.preorder-list-month__title {
  background: transparent;
  color: var(--pos-text-color, #0f172a);
  font-size: 22px;
  font-weight: 800;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.preorder-list-month__title::before {
  content: '';
  width: 4px;
  height: 1.1em;
  border-radius: 4px;
  background: var(--pos-text-color, #0f172a);
  flex-shrink: 0;
}

.preorder-list-grid {
  padding: 8px 0 0;
}

.preorder-list-grid__empty {
  text-align: center;
  padding: 48px 16px;
  color: #64748b;
  font-size: 15px;
}

/* 這頁各月分組可能只有 1～3 款：不要硬套首頁 6 欄（會剩一大片空白）
   auto-fill 會依寬度排出約 4 欄，卡片維持約 240–280px，少件時也不會被拉成全寬 */
body.wx-static-body .preorder-list-container .wx-home-product-grid,
.preorder-list-container .wx-home-product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 18px 16px !important;
  justify-content: start !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.wx-static-body .preorder-list-container .wx-home-product-grid .product-card-item-wrap,
body.wx-static-body .preorder-list-container .wx-home-product-grid .product-card-wrapper,
body.wx-static-body .preorder-list-container .wx-home-product-grid .swiper-slide,
.preorder-list-container .wx-home-product-grid .product-card-item-wrap,
.preorder-list-container .wx-home-product-grid .product-card-wrapper,
.preorder-list-container .wx-home-product-grid .swiper-slide {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: none !important;
  margin: 0 !important;
}

@media (max-width: 899px) {
  body.wx-static-body .preorder-list-container .wx-home-product-grid,
  .preorder-list-container .wx-home-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  body.wx-static-body .preorder-list-container .wx-home-product-grid,
  .preorder-list-container .wx-home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

/* 質感微調：頁首收尾線、月份標題短粗線、少件月份不撐滿、卡片 hover（僅本頁） */
.preorder-list-hero {
  padding: 36px 0 24px;
  border-bottom: 1px solid #eef1f5;
  margin-bottom: 12px;
}

.preorder-list-hero__count {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

/* 月份標題：標題上方一條短粗線（雜誌章節感），不再用橫線延伸與月份分隔線 */
.preorder-list-month__title {
  display: block;
  margin: 0 0 20px;
}

.preorder-list-month__title::before {
  display: block;
  width: 28px;
  height: 2px;
  border-radius: 0;
  margin-bottom: 10px;
}

.preorder-list-month + .preorder-list-month {
  padding-top: 20px;
}

@media (min-width: 768px) {
  .preorder-list-month--sparse .wx-home-product-grid,
  body.wx-static-body .preorder-list-month--sparse .wx-home-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 300px)) !important;
  }
}

.preorder-list-container .product-card-item-wrap {
  transition: transform 0.25s ease;
}

.preorder-list-container .product-card-item-wrap:hover {
  transform: translateY(-4px);
}

.preorder-list-container .product-card-item-wrap:hover .product-card {
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
}

/* 頁首：標題上方短粗線（與月份標題呼應），副標一行淡字 */
.preorder-list-hero__title::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--pos-text-color, #0f172a);
  margin-bottom: 12px;
}

.preorder-list-hero__subtitle {
  letter-spacing: 0.06em;
  font-size: 13px;
}
