/* ============================================================
   共用元件(BEM 風格)— 跨頁通用
   Hero / List Card / Pagination / Button / Eyebrow
   ============================================================ */

/* (Hero Banner moved back to per-page CSS) */

/* (Hero Cinematic moved back to per-page CSS) */

/* ============================================================
   5. List Card(announcement / news 共用)
   結構:.list-section > .list-shell > .list-title + .list-grid + .pagination
   ============================================================ */
.list-section {
  position: relative;
  padding: clamp(48px, 6vw, 88px) 0 clamp(60px, 8vw, 110px);
  background: #fff;
  overflow: hidden;
}

.list-section::after {
  content: "";
  position: absolute;
  left: 87px;
  right: -100px;
  top: 280px;
  height: 388px;
  background: #fbf9f4;
  border-radius: 15px;
  z-index: 0;
  pointer-events: none;
}

.list-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--list-shell-w, 950px));
  margin: 0 auto;
}

.list-title {
  margin: 0 0 clamp(32px, 4vw, 50px);
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #2f2b29;
}

/* Feature card(大卡) */
.list-feature {
  display: flex;
  flex-direction: column;
  color: inherit;
}

.list-feature__image {
  width: 100%;
  aspect-ratio: 450 / 360;
  background-color: #f4e9e0;
  background-image: url('../assets/ms-hero.png');
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  margin-bottom: 26px;
}

/* Row card(橫排 list 卡) */
.list-row {
  display: grid;
  grid-template-columns: 166px 1fr;
  gap: 30px;
  align-items: center;
  color: inherit;
}

.list-row__image {
  width: 166px;
  height: 148px;
  background-color: #f4e9e0;
  background-image: url('../assets/ms-hero.png');
  background-size: cover;
  background-position: center;
  border-radius: 6px;
}

.list-row__body {
  min-width: 0;
}

.list-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 27px;
}

.list-row .list-meta {
  margin-bottom: 14px;
}

.list-meta__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #2f2b29;
  line-height: 1;
}

.list-excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: #5c5650;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-row .list-excerpt {
  -webkit-line-clamp: 5;
  line-height: 1.95;
}

@media (max-width: 1023px) {
  .list-section::after {
    display: none;
  }
}

@media (max-width: 767px) {
  .list-row {
    grid-template-columns: 112px 1fr;
    gap: 18px;
  }

  .list-row__image {
    width: 112px;
    height: 112px;
  }

  .list-meta {
    margin-bottom: 14px;
  }

  .list-meta__title {
    font-size: 17px;
  }

  .list-row .list-excerpt {
    -webkit-line-clamp: 3;
  }
}

/* ============================================================
   6. Pagination(announcement / news 共用)
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 21px;
  margin-top: clamp(48px, 6vw, 80px);
  flex-wrap: wrap;
}

/* ---- Pill / Num 風格(全站統一,需在 <nav> 加 .pagination--pill 修飾)---- */
.pagination--pill {
  gap: 10px 12px;
  margin-top: clamp(40px, 5vw, 56px);
  padding-bottom: 8px;
}

.pagination__pill {
  border: 1px solid var(--pagination-ring);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--pagination-ink);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.pagination__pill:hover {
  background: var(--pagination-active-bg);
}

.pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--pagination-ring);
  font-size: 14px;
  font-weight: 500;
  color: var(--pagination-ink);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  text-decoration: none;
}

.pagination__num:hover {
  background: rgba(240, 232, 220, .55);
}

.pagination__num.is-active {
  background: var(--pagination-active-bg);
  border-color: transparent;
  font-weight: 700;
  cursor: default;
}

.pagination__num.is-active:hover {
  background: var(--pagination-active-bg);
}

.pagination__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  color: var(--pagination-ink);
  opacity: .6;
}

/* ============================================================
   7. Button 系統
   .btn               基本(outline pill,可配合 modifier)
   .btn--solid        褐色漸層底
   .btn--solid-dark   黑底(featured card 用)
   .btn--solid-brown  純褐色實底
   .btn--rect         矩形(border-radius: 4px)
   .btn--full         100% 寬
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  transition: filter .2s ease, background .2s, color .2s;
}

.btn:hover {
  background: rgba(138, 90, 40, .08);
}

.btn--solid {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
}

.btn--solid:hover {
  filter: brightness(1.06);
  background: var(--brand-gradient);
}

.btn--solid-dark {
  background: #000;
  color: #fff;
  border-color: transparent;
}

.btn--solid-dark:hover {
  filter: brightness(1.2);
}

.btn--solid-brown {
  background: #6d4d28;
  color: #fff;
  border-color: transparent;
}

.btn--solid-brown:hover {
  filter: brightness(1.1);
}

.btn--rect {
  border-radius: 4px;
}

.btn--full {
  width: 100%;
}

/* ============================================================
   Single Product(WC 客製)
   ============================================================ */
.single-product-section {
  padding: clamp(48px, 6vw, 88px) 0 clamp(60px, 8vw, 110px);
  background: #fff;
}

.single-product__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8a827a;
  margin-bottom: 32px;
}

.single-product__breadcrumb a {
  color: #6d4d28;
}

.single-product__breadcrumb a:hover {
  color: var(--accent);
}

.single-product__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.single-product__media {
  background: radial-gradient(ellipse 90% 75% at 50% 50%, #ebe6df 0%, #f7f4ef 55%, #faf8f5 100%);
  border: 1px solid #ebe4da;
  border-radius: 6px;
  padding: 16px;
}

.single-product__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 520px;
}

.single-product__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.single-product__thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--svc-rail);
  border-radius: 4px;
  cursor: pointer;
}

.single-product__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.single-product__cats {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

.single-product__cats a {
  color: inherit;
}

.single-product__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.single-product__prices {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.single-product__sale {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  color: #1f1c1a;
  letter-spacing: 0.04em;
}

.single-product__short {
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: #5c5650;
}

.single-product__short p {
  margin: 0 0 12px;
}

.single-product__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.single-product__qty {
  display: flex;
  align-items: center;
  gap: 12px;
}

.single-product__qty label {
  font-size: 14px;
  color: var(--svc-ink);
  letter-spacing: 0.08em;
}

.single-product__qty-input {
  width: 80px;
  padding: 10px 12px;
  border: 1px solid var(--svc-rail);
  border-radius: 4px;
  font-size: 15px;
  font-family: var(--font-body);
  background: #fff;
  text-align: center;
}

.single-product__cta {
  padding: 14px 28px;
  font-size: 15px;
  letter-spacing: 0.24em;
  border-radius: 4px;
}

.single-product__sku {
  margin: 8px 0 0;
  font-size: 13px;
  color: #8a827a;
  letter-spacing: 0.04em;
}

.single-product__sku span {
  font-weight: 600;
}

.single-product__sold-out {
  padding: 14px 0;
  font-size: 14px;
  color: #c0392b;
  font-weight: 600;
}

.single-product__description {
  margin-top: clamp(48px, 5vw, 64px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--svc-rail);
}

.single-product__section-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--svc-ink);
}

.single-product__description-body {
  font-size: 15px;
  line-height: 1.95;
  color: #5c5650;
  max-width: 880px;
}

@media (max-width: 767px) {
  .single-product__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .single-product__image {
    max-height: 380px;
  }
}
