/* =========================================================
   JBK INTERNATIONAL — SHOP.CSS
   Shopping system extension on top of style.css
   ========================================================= */

/* ------- Flash messages ------- */
.flash {
  position: fixed;
  top: 132px; right: 24px; z-index: 90;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  color: var(--ink);
  padding: 14px 24px;
  font-size: 18px;
  letter-spacing: 0.04em;
  box-shadow: 0 18px 50px -20px rgba(10,10,10,0.25);
  animation: flashIn .4s var(--ease), flashOut .4s var(--ease) 4.6s forwards;
  max-width: 360px;
}
.flash--success { border-left-color: #1AA86A; }
.flash--error   { border-left-color: #B8253A; }
.flash--warn    { border-left-color: #D9A648; }
@keyframes flashIn { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:translateX(0)} }
@keyframes flashOut { to{opacity:0;transform:translateX(20px);visibility:hidden} }

/* ------- Page hero (sub-pages) ------- */
.page-hero {
  padding: 120px 0 70px;
  background: var(--cream);
  position: relative;
}
.page-hero--sm { padding: 80px 0 40px; }
.display--md { font-size: clamp(2.4rem, 4.4vw, 3.6rem); }
.page-hero__sub {
  margin: 20px 0 0;
  color: var(--graphite);
  font-size: 1.05rem;
  max-width: 580px;
}

/* ------- Filter bar list page ------- */
.selection--list { padding-top: 30px; }
.filter-bar--list {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(10,10,10,0.08);
}
.search-form {
  margin-left: auto;
  display: inline-flex;
  align-items: stretch;
  gap: 6px;
  border: 1px solid rgba(10,10,10,0.15);
  padding: 0 0 0 14px;
  height: 38px;
  border-radius: 999px;
}
.search-form input[type=text] {
  border: 0; outline: 0; background: transparent;
  width: 180px; font-family: var(--ff-body); font-size: 18px;
}
.search-form button {
  border: 0; background: transparent; padding: 0 14px;
  color: var(--ink); cursor: pointer;
}
.search-form select {
  border: 0; border-left: 1px solid rgba(10,10,10,0.1);
  background: transparent;
  font-family: var(--ff-body);
  font-size: 18px;
  letter-spacing: 0.1em;
  padding: 0 16px 0 12px;
  color: var(--graphite);
  cursor: pointer;
}
.result-count {
  font-size: 18px;
  letter-spacing: 0.16em;
  color: var(--stone);
  margin: 24px 0 32px;
}
.chip--sub {
  font-size: 18px;
  opacity: 0.92;
}
.chip__sub-mark { color: var(--gold-ink); margin-right: 2px; }
.product-grid--list {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1024px) { .product-grid--list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .product-grid--list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .product-grid--list { grid-template-columns: 1fr; } }

.empty-state {
  padding: 40px;
  text-align: center;
  color: var(--stone);
  border: 1px dashed rgba(10,10,10,0.1);
  font-style: italic;
}
.empty-state--lg {
  padding: 100px 40px;
  border: 0;
}
.empty-state--lg h2 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 2.2rem;
  margin: 16px 0 12px;
  color: var(--ink);
}
.empty-state--lg p { font-style: normal; margin-bottom: 24px; }

/* ------- Pagination ------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(10,10,10,0.08);
}
.pagination__btn {
  font-size: 18px;
  letter-spacing: 0.3em;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 16px;
  border: 1px solid transparent;
  transition: all var(--t-fast) var(--ease);
}
.pagination__btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.pagination__btn.is-disabled {
  color: var(--sand);
  cursor: not-allowed;
  pointer-events: none;
}
.pagination__nums {
  display: flex;
  gap: 6px;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
}
.pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-family: var(--ff-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--graphite);
  border: 1px solid rgba(10,10,10,0.1);
  transition: all var(--t-fast) var(--ease);
}
.pagination__num:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.pagination__num.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.pagination__sep {
  color: var(--stone);
  font-size: 18px;
  padding: 0 4px;
  list-style: none;
}

@media (max-width: 520px) {
  .pagination { flex-direction: column; gap: 14px; }
}

/* ------- Product Detail ------- */
.product-detail { padding: 30px 0 100px; }
.breadcrumb {
  font-size: 18px;
  letter-spacing: 0.15em;
  color: var(--stone);
  margin-bottom: 40px;
}
.breadcrumb a { color: var(--graphite); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--ink); }

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.pd-gallery {
  position: sticky;
  top: 132px;
  display: flex; flex-direction: column; gap: 14px;
}
.pd-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.pd-gallery__thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0;
  background: var(--linen);
  border: 1px solid rgba(10,10,10,0.08);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease);
}
.pd-gallery__thumb > span {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--t-med) var(--ease);
}
.pd-gallery__thumb:hover { border-color: var(--gold); }
.pd-gallery__thumb:hover > span { transform: scale(1.06); }
.pd-gallery__thumb.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset;
}
.pd-gallery__thumb.is-active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -8px;
  width: 18px; height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
}

@media (max-width: 600px) {
  .pd-gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
}
.pd-gallery__main {
  aspect-ratio: 3/4;
  position: relative;
  background: var(--linen);
}
.pd-gallery__main {
  background-size: contain;      /* 完整顯示整張商品圖，不裁切 */
  background-repeat: no-repeat;
  background-position: center;
}
/* 有真實商品圖時鋪白底，讓完整商品照乾淨呈現 */
.pd-gallery__main--has-img { background-color: #fff; }
.pd-gallery__main .card__badge {
  position: absolute; top: 24px; left: 24px;
  z-index: 2;
}

/* When a real product image is uploaded, suppress the placeholder bottle silhouette */
.pd-gallery__main--has-img::before,
.pd-gallery__main--has-img::after,
.card__img--has-img::before,
.card__img--has-img::after { content: none !important; }
.pd-gallery__main::before,
.pd-gallery__main::after {
  /* reuse the bottle silhouette from card */
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.pd-gallery__main::before {
  width: 32%; height: 60%;
  background: linear-gradient(180deg, rgba(10,10,10,0.85), rgba(10,10,10,0.95));
  border-radius: 8px;
  box-shadow: 0 24px 40px -14px rgba(10,10,10,0.35);
}
.pd-gallery__main::after {
  width: 22%; height: 28%;
  background: var(--cream);
  background-image: linear-gradient(transparent calc(50% - .5px), var(--gold) calc(50% - .5px), var(--gold) calc(50% + .5px), transparent calc(50% + .5px));
  background-size: 60% 1px;
  background-repeat: no-repeat;
  background-position: center 20%;
  top: 55%;
}

.pd-info__sku {
  margin: -6px 0 14px;
  font-size: 18px;
  letter-spacing: 0.2em;
  color: var(--stone);
}
.pd-info__sku code {
  font-family: 'Inter', monospace;
  background: var(--linen);
  color: var(--ink);
  padding: 3px 8px;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.pd-info__title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.15;
  margin: 14px 0 18px;
}
.pd-info__short {
  font-size: 1.05rem;
  color: var(--graphite);
  line-height: 1.7;
  margin: 0 0 28px;
}
.pd-info__price {
  display: flex; align-items: baseline; gap: 14px;
  padding: 18px 0;
  border-top: 1px solid rgba(10,10,10,0.08);
  border-bottom: 1px solid rgba(10,10,10,0.08);
}
.pd-info__price-now {
  font-family: var(--ff-display);
  font-size: 2rem; font-weight: 500;
  color: var(--ink);
}
.pd-info__price-orig {
  font-size: 18px; color: var(--stone);
  text-decoration: line-through;
}
.pd-info__price--sale .pd-info__price-now { color: #B8253A; }
.pd-info__price-tag {
  align-self: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--cream);
  background: #B8253A;
  padding: 5px 10px;
}
.pd-info__sale-end {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -10px 0 24px;
  padding: 12px 16px;
  background: rgba(184,37,58,0.06);
  border-left: 2px solid #B8253A;
  font-size: 18px;
  color: var(--graphite);
}
.pd-info__sale-end strong { color: #B8253A; font-weight: 600; }
.dot--sale { background: #B8253A; animation: salePulse 1.4s ease-in-out infinite; }
@keyframes salePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}
.pd-info__specs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px 36px;
  margin: 28px 0;
}
.pd-info__specs > div { display: flex; flex-direction: column; gap: 4px; }
.pd-info__specs span {
  font-size: 18px; letter-spacing: 0.3em;
  color: var(--stone); text-transform: uppercase;
}
.pd-info__specs strong { font-weight: 500; color: var(--ink); }

.pd-info__stock {
  font-size: 18px; color: var(--graphite);
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--ok  { background: #1AA86A; }
.dot--err { background: #B8253A; }

.pd-info__form { display: flex; gap: 14px; align-items: stretch; margin-bottom: 36px; }
.qty {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid rgba(10,10,10,0.15);
}
.qty__btn {
  width: 44px; height: 100%;
  background: transparent;
  font-size: 18px;
  color: var(--ink);
  transition: background var(--t-fast) var(--ease);
}
.qty__btn:hover { background: var(--linen); }
.qty input {
  width: 50px; text-align: center;
  border: 0; border-left: 1px solid rgba(10,10,10,0.08);
  border-right: 1px solid rgba(10,10,10,0.08);
  font-family: var(--ff-body); font-size: 18px;
  outline: 0;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm { height: 36px; }
.qty--sm .qty__btn { width: 36px; }
.qty--sm input { width: 44px; font-size: 18px; }

.btn--lg { padding: 0 32px; height: 56px; flex: 1; justify-content: center; }
.btn--block { width: 100%; justify-content: center; }

.pd-info__desc {
  border-top: 1px solid rgba(10,10,10,0.08);
  padding: 18px 0;
}
.pd-info__desc summary {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.pd-info__desc summary::-webkit-details-marker { display: none; }
.pd-info__desc summary::after {
  content: '+';
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--gold);
  transition: transform var(--t-med) var(--ease);
}
.pd-info__desc[open] summary::after { content: '−'; }
.pd-info__desc p,
.pd-info__desc ul,
.pd-info__desc-body {
  margin: 16px 0 0;
  font-size: 18px; color: var(--graphite); line-height: 1.8;
}
.pd-info__desc ul { padding-left: 18px; list-style: disc; }
.pd-info__desc-body img,
.pd-info__desc-body video,
.pd-info__desc-body iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 14px 0;
}
.pd-info__desc-body p { margin: 14px 0; }
.pd-info__desc-body a { color: var(--gold); border-bottom: 1px solid var(--gold); }

/* Responsive video embed (16:9) */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  margin: 16px 0;
  overflow: hidden;
}
.video-embed iframe,
.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pd-related { margin-top: 100px; padding-top: 80px; border-top: 1px solid rgba(10,10,10,0.1); }

@media (max-width: 900px) {
  .pd-grid { grid-template-columns: 1fr; gap: 40px; }
  .pd-gallery { position: static; }
}

/* ------- Cart ------- */
.cart { padding: 30px 0 120px; }
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: start;
}
.cart-head, .cart-row {
  display: grid;
  grid-template-columns: minmax(220px,1fr) 100px 130px 110px 30px;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
}
.cart-head {
  font-size: 18px; letter-spacing: 0.3em; color: var(--stone);
  text-transform: uppercase; border-bottom: 1px solid rgba(10,10,10,0.1);
}
.cart-row { border-bottom: 1px solid rgba(10,10,10,0.08); }
.cart-row__product { display: flex; align-items: center; gap: 18px; }
.cart-row__img {
  width: 70px; height: 90px;
  background: var(--linen);
  flex-shrink: 0;
}
.cart-row__product h3 {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 1.1rem; font-weight: 500;
}
.cart-row__product p {
  margin: 4px 0 0; font-size: 18px; color: var(--stone); letter-spacing: 0.18em;
}
.cart-row__remove {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  color: var(--stone); font-size: 18px;
  border-radius: 50%;
  transition: all var(--t-fast) var(--ease);
}
.cart-row__remove:hover { background: var(--ink); color: var(--cream); }

.cart-actions {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
}

.cart-summary {
  background: var(--linen);
  padding: 36px 32px;
  position: sticky;
  top: 132px;
}
.cart-summary h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 24px;
}
.cart-summary__row {
  display: flex; justify-content: space-between; padding: 10px 0;
  font-size: 18px;
}
.cart-summary__row strong { font-family: var(--ff-display); font-size: 1.1rem; font-weight: 500; }
.cart-summary__row--total {
  border-top: 1px solid rgba(10,10,10,0.15);
  margin-top: 12px; padding-top: 18px;
  font-size: 18px;
}
.cart-summary__row--total strong { color: var(--gold); font-size: 1.5rem; }
.cart-summary__divider { height: 1px; background: rgba(10,10,10,0.1); margin: 12px 0; }
.cart-summary__hint {
  font-size: 18px;
  color: var(--bronze);
  margin: 4px 0 0;
  font-style: italic;
}
.cart-summary__note {
  margin: 20px 0 0;
  font-size: 18px;
  color: var(--stone);
  line-height: 1.7;
}
.cart-summary .btn--block { margin-top: 18px; }

.ta-r { text-align: right; }
.ta-c { text-align: center; }

@media (max-width: 980px) {
  .cart-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-head { display: none; }
  .cart-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px 0;
  }
  .cart-row__product { grid-column: 1 / -1; }
  .ta-r, .ta-c { text-align: left; }
}

/* ------- Checkout ------- */
.checkout { padding: 30px 0 120px; }
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}
.checkout-form { display: flex; flex-direction: column; gap: 32px; }
.form-block {
  background: var(--cream);
  border: 1px solid rgba(10,10,10,0.08);
  padding: 36px;
}
.form-block .eyebrow { color: var(--gold); margin-bottom: 24px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field span {
  font-size: 18px; letter-spacing: 0.25em;
  color: var(--graphite); font-weight: 500;
  text-transform: uppercase;
}
.field input, .field textarea, .field select {
  padding: 14px 16px;
  border: 1px solid rgba(10,10,10,0.18);
  background: var(--cream);
  font-family: var(--ff-body);
  font-size: 18px;
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  border-color: var(--gold);
}
.field input:disabled { background: var(--linen); color: var(--stone); }

.payment-options { display: flex; flex-direction: column; gap: 12px; }
.payment-opt {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(10,10,10,0.12);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.payment-opt:hover { border-color: var(--gold); }
.payment-opt input { margin-top: 4px; accent-color: var(--gold); }
.payment-opt strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 500;
}
.payment-opt p {
  margin: 4px 0 0;
  font-size: 18px;
  color: var(--stone);
}

.checkout-summary {
  background: var(--linen);
  padding: 32px;
  position: sticky;
  top: 132px;
}
.checkout-summary h3 {
  font-family: var(--ff-display); font-weight: 500; font-size: 1.3rem; margin: 0 0 20px;
}
.checkout-items {
  margin: 0 0 20px;
  border-bottom: 1px solid rgba(10,10,10,0.1);
  padding-bottom: 16px;
}
.checkout-items li {
  display: flex; justify-content: space-between;
  font-size: 18px; padding: 8px 0;
}
.checkout-items em { color: var(--stone); font-style: normal; margin-left: 4px; }

/* Coupon field in checkout summary */
.ck-coupon {
  display: flex;
  gap: 8px;
  margin: 4px 0 4px;
}
.ck-coupon__input {
  flex: 1;
  border: 1px solid rgba(10,10,10,0.2);
  background: var(--cream);
  padding: 11px 14px;
  font-family: var(--ff-body);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ck-coupon__input:focus { outline: 0; border-color: var(--gold); }
.ck-coupon__apply {
  border: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0 18px;
  cursor: pointer;
  font-size: 18px;
  letter-spacing: 0.25em;
  font-weight: 600;
  transition: background var(--t-fast) var(--ease);
}
.ck-coupon__apply:hover { background: var(--gold); }
.ck-coupon--applied {
  align-items: center;
  justify-content: space-between;
  background: rgba(184,153,104,0.10);
  border: 1px dashed var(--gold);
  padding: 12px 14px;
}
.ck-coupon__info { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ck-coupon__tag {
  font-size: 18px; letter-spacing: 0.3em; color: var(--gold); font-weight: 600;
}
.ck-coupon__info strong { font-family: 'Inter', monospace; letter-spacing: 0.1em; }
.ck-coupon__info small { color: var(--stone); font-size: 18px; }
.ck-coupon__remove {
  font-size: 18px; letter-spacing: 0.1em; color: var(--stone);
  text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
}
.ck-coupon__remove:hover { color: #B8253A; }
.ck-discount-row strong { color: #B8253A; }

@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ------- Success ------- */
.success {
  padding: 100px 0;
  background: var(--cream);
  text-align: center;
}
.success__inner { max-width: 720px; margin: 0 auto; }
.success__seal {
  width: 80px; height: 80px;
  margin: 0 auto 32px;
  color: var(--gold);
}
.success__seal svg { width: 100%; height: 100%; }
.success__msg { color: var(--graphite); margin: 20px 0 50px; font-size: 1.05rem; }
.success__card {
  text-align: left;
  background: var(--linen);
  padding: 40px;
  border-left: 2px solid var(--gold);
}
.success__card--account { background: var(--cream); border: 1px solid rgba(10,10,10,0.08); border-left: 2px solid var(--gold); max-width: 800px; margin: 0 auto; }
.success__row {
  display: flex; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(10,10,10,0.08);
  font-size: 18px;
}
.success__row span { color: var(--stone); letter-spacing: 0.06em; }
.success__row strong { font-weight: 500; color: var(--ink); text-align: right; }
.success__row--total { border-bottom: 0; padding-top: 18px; }
.success__row--total span { font-size: 18px; }
.success__row--total strong { font-family: var(--ff-display); font-size: 1.5rem; color: var(--gold); }
.success__divider { height: 1px; background: rgba(10,10,10,0.15); margin: 20px 0; }
.success__items { margin: 12px 0 0; }
.success__items li {
  display: flex; justify-content: space-between;
  padding: 8px 0; font-size: 18px;
}
.success__items em { color: var(--stone); font-style: normal; margin-left: 4px; }
.success__card h3 {
  font-family: var(--ff-display); font-size: 1.2rem; font-weight: 500; margin: 0 0 8px;
}
.success__cta {
  margin-top: 48px;
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

/* ------- Auth ------- */
.auth { padding: 80px 0 120px; background: var(--cream); }
.auth__inner { max-width: 560px; }
.auth__card {
  background: var(--cream);
  border: 1px solid rgba(10,10,10,0.08);
  padding: 48px 44px;
  text-align: center;
}
.auth__card--wide { max-width: 700px; }
.auth__title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 12px 0 14px;
}
.auth__sub { color: var(--graphite); margin: 0 0 36px; font-size: 0.95rem; }
.auth__form { display: flex; flex-direction: column; gap: 18px; text-align: left; }
.auth__form--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.auth__form--grid .btn { grid-column: 1 / -1; }
.auth__alt { margin: 28px 0 0; font-size: 18px; color: var(--graphite); }
.auth__alt a { color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.auth__hint {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px dashed rgba(10,10,10,0.1);
  color: var(--stone);
}
.auth__hint code {
  background: var(--linen); padding: 2px 6px;
  font-family: 'Inter', monospace; font-size: 18px;
}

@media (max-width: 600px) {
  .auth__form--grid { grid-template-columns: 1fr; }
}

/* ------- Account ------- */
.account { padding: 30px 0 120px; }
.account-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.account-nav {
  position: sticky; top: 132px;
  border: 1px solid rgba(10,10,10,0.08);
  padding: 24px;
}
.account-nav h3 {
  font-family: var(--ff-display);
  font-weight: 500; font-size: 1rem;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(10,10,10,0.1);
}
.account-nav ul li { margin-bottom: 14px; }
.account-nav ul a {
  font-size: 18px; color: var(--graphite);
  letter-spacing: 0.05em;
}
.account-nav ul a.is-active,
.account-nav ul a:hover { color: var(--gold); }

.account-main { display: flex; flex-direction: column; gap: 32px; }
.account-card {
  background: var(--cream);
  border: 1px solid rgba(10,10,10,0.08);
  padding: 36px;
}
.account-card h2 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(10,10,10,0.08);
}
.account-table {
  width: 100%; border-collapse: collapse; font-size: 18px;
}
.account-table th, .account-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(10,10,10,0.06);
  text-align: left;
}
.account-table th {
  font-size: 18px;
  letter-spacing: 0.3em;
  color: var(--stone);
  font-weight: 600;
  text-transform: uppercase;
}
.badge-status {
  display: inline-block;
  font-size: 18px;
  letter-spacing: 0.25em;
  padding: 4px 10px;
  border: 1px solid;
  font-weight: 600;
}

@media (max-width: 900px) {
  .account-grid { grid-template-columns: 1fr; }
  .account-nav { position: static; }
}

/* ------- 404 / Error Page ------- */
.error-page {
  position: relative;
  padding: 100px 0 120px;
  background: var(--cream);
  overflow: hidden;
  text-align: center;
}
.error-page__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
}
.error-page__pattern svg { width: 100%; height: 100%; }

.error-page__inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.error-page__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gold);
  margin-bottom: 36px;
}
.error-page__digit {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 1;
  color: var(--ink);
}
.error-page__hex {
  width: clamp(80px, 13vw, 130px);
  display: inline-block;
  color: var(--gold);
  animation: hexSpin 18s linear infinite;
}
.error-page__hex svg { width: 100%; height: 100%; display: block; }
@keyframes hexSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.error-page__msg {
  margin: 24px auto 32px;
  color: var(--graphite);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 520px;
}

.error-page__path {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto 36px;
  padding: 10px 18px;
  background: var(--linen);
  border-left: 2px solid var(--gold);
}
.error-page__path span {
  font-size: 18px;
  letter-spacing: 0.32em;
  color: var(--stone);
  font-weight: 600;
}
.error-page__path code {
  font-family: 'Inter', monospace;
  font-size: 18px;
  color: var(--ink);
  background: transparent;
}

.error-page__search {
  display: inline-flex;
  align-items: stretch;
  margin: 0 auto 40px;
  border: 1px solid rgba(10,10,10,0.18);
  background: var(--cream);
  max-width: 480px;
  width: 100%;
  transition: border-color var(--t-fast) var(--ease);
}
.error-page__search:focus-within { border-color: var(--gold); }
.error-page__search input {
  flex: 1;
  border: 0; outline: 0;
  padding: 16px 20px;
  font-family: var(--ff-body);
  font-size: 18px;
  background: transparent;
  color: var(--ink);
}
.error-page__search input::placeholder { color: var(--stone); }
.error-page__search button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 26px;
  background: var(--ink);
  color: var(--cream);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3em;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.error-page__search button:hover { background: var(--gold); }

.error-page__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 90px;
}

.error-page__suggest {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(10,10,10,0.1);
  text-align: left;
}
.error-page__suggest-head {
  text-align: center;
  margin-bottom: 48px;
}
.error-page__suggest-title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.15;
}

@media (max-width: 600px) {
  .error-page { padding: 70px 0 90px; }
  .error-page__code { gap: 4px; }
  .error-page__search { flex-direction: column; }
  .error-page__search button { justify-content: center; padding: 14px; }
}

/* =========================================================
   Prose — 長文排版系統
   品牌故事（/brand）與法務頁（/privacy /terms /cookies）共用。
   內文來自後台自由編輯的 HTML（product_description_html），
   標籤組合無法預期，所以這裡把可能出現的區塊全部定義過，
   不留任何一個吃瀏覽器預設樣式。
   ========================================================= */
.prose {
  max-width: var(--measure-box);   /* 全站長文唯一寬度 — 見 style.css --measure */
  margin: 0 auto;
  font-family: var(--ff-body);
  font-size: 18px;
  line-height: 1.95;
  color: var(--graphite);
}
.prose > :first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose > :last-child  { margin-bottom: 0; }

/* ---- 標題階層 ---- */
.prose h2 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin: 56px 0 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(10,10,10,0.08);
  text-wrap: balance;
}
.prose h3 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 40px 0 14px;
  text-wrap: balance;
}
.prose h4 {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin: 32px 0 12px;
}

/* ---- 段落 ---- */
.prose p {
  margin: 0 0 22px;
  text-wrap: pretty;
}
/* 開場段落放大半級，給長文一個入口。
   只認真正排在最前面的段落 — 用 :first-of-type 的話，
   以 h2 開頭的法務頁會把中段的第一個 <p> 誤放大。 */
.prose__lead,
.prose > p:first-child {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 32px;
}

/* ---- 清單 ---- */
.prose ul,
.prose ol {
  margin: 0 0 24px;
  padding-left: 26px;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 10px; padding-left: 4px; }
.prose li::marker { color: var(--gold-ink); }
.prose li > ul,
.prose li > ol { margin: 10px 0 0; }

/* ---- 行內 ---- */
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-family: var(--ff-italic); font-style: italic; }
/* --gold 對 cream 僅 2.58:1，淺底金色一律用 --gold-ink（6.16:1，AA） */
/* :not(.btn) — CTA 按鈕也在 .prose 裡面，.prose a 的權重會壓過
   .btn--primary 的顏色，把按鈕畫成帶底線的文字連結。 */
.prose a:not(.btn) {
  color: var(--gold-ink);
  border-bottom: 1px solid rgba(111,92,53,0.4);
  padding-bottom: 1px;
  transition: border-color var(--t-fast) var(--ease);
}
.prose a:not(.btn):hover { border-bottom-color: var(--gold-ink); }

/* ---- 引言 ---- */
.prose blockquote {
  margin: 36px 0;
  padding: 4px 0 4px 28px;
  border-left: 2px solid var(--gold-ink);
  font-family: var(--ff-italic);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--ink);
}
.prose blockquote p:last-child { margin-bottom: 0; }

/* ---- 分隔線 ---- */
.prose hr {
  margin: 56px auto;
  width: 60px;
  border: 0;
  border-top: 1px solid var(--sand);
}

/* ---- 媒體 ---- */
.prose img,
.prose video,
.prose iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 36px auto;
}
.prose figure { margin: 36px 0; }
.prose figure img { margin: 0; }
.prose figcaption {
  margin-top: 12px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--stone);
  text-align: center;
}

/* ---- 表格 ---- */
.prose table {
  width: 100%;
  margin: 32px 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.prose th,
.prose td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(10,10,10,0.08);
  vertical-align: top;
}
.prose th {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  border-bottom-color: rgba(10,10,10,0.2);
}

/* =========================================================
   Brand Story page (/brand)
   ========================================================= */
.brand-hero {
  padding: 120px 0 72px;
  background: var(--cream);
  text-align: center;
}
.brand-hero__inner { max-width: var(--measure-box); }  /* 與內文同一條邊界 */
.brand-hero .display {
  margin: 18px 0 32px;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  text-wrap: balance;
}
.brand-hero__sub {
  color: var(--graphite);
  font-size: 1.15rem;
  line-height: 1.85;
  font-family: var(--ff-italic);
  font-style: italic;
  text-wrap: pretty;
}

.brand-body {
  padding: 0 0 140px;
  background: var(--cream);
}

.brand-body__cta {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid rgba(10,10,10,0.1);
  text-align: center;
}

/* =========================================================
   Legal pages (/privacy /terms /cookies)
   ========================================================= */
.legal-hero {
  padding: 90px 0 50px;
  background: var(--cream);
  border-bottom: 1px solid rgba(10,10,10,0.06);
  text-align: center;
}
.legal-hero .display {
  font-size: clamp(36px, 4.4vw, 56px);
  margin: 14px 0 0;
  letter-spacing: 0.02em;
}
.legal-body { padding: 70px 0 100px; background: var(--cream); }

.legal-nav {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(10,10,10,0.1);
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}
.legal-nav a {
  font-family: var(--ff-display);
  font-size: 18px;
  letter-spacing: 0.18em;
  /* 原為 --ink + opacity 0.55（對 cream 約 4.1:1，未達 AA）。
     改用 --stone 這顆已驗算過的淺底文字色。 */
  color: var(--stone);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.legal-nav a:hover { color: var(--ink); border-bottom-color: var(--gold-ink); }
.legal-nav a.is-active { color: var(--gold-ink); border-bottom-color: var(--gold-ink); }

/* =========================================================
   Prose / brand / legal — 行動版
   ========================================================= */
@media (max-width: 768px) {
  .prose { font-size: 17px; line-height: 1.9; }
  .prose__lead,
  .prose > p:first-child { font-size: 1.08rem; margin-bottom: 26px; }
  .prose h2 { margin: 40px 0 16px; padding-top: 24px; }
  .prose h3 { margin: 30px 0 12px; }
  .prose blockquote { margin: 28px 0; padding-left: 20px; font-size: 1.1rem; }
  .prose hr { margin: 40px auto; }
  .prose img,
  .prose video,
  .prose iframe { margin: 28px auto; }
  /* 窄螢幕放不下整張表，讓它自己橫向捲，不要撐破版面 */
  .prose table { display: block; overflow-x: auto; white-space: nowrap; }

  .brand-hero { padding: 72px 0 48px; }
  .brand-body { padding: 0 0 90px; }
  .brand-body__cta { margin-top: 52px; padding-top: 32px; }

  .legal-hero { padding: 56px 0 36px; }
  .legal-body { padding: 48px 0 72px; }
  .legal-nav { margin-top: 56px; padding-top: 32px; gap: 20px; }
  .legal-nav a { font-size: 16px; letter-spacing: 0.12em; }
}

/* =========================================================
   Track / Order Tracking page
   ========================================================= */
.track { padding: 30px 0 120px; }
.track__inner { max-width: 720px; }
.track__form {
  background: var(--cream);
  border: 1px solid rgba(10,10,10,0.08);
  padding: 36px;
  display: flex; flex-direction: column; gap: 18px;
  margin-bottom: 40px;
}
.track__form .field input { text-transform: none; }
.track__form .field input[name="order_no"] { letter-spacing: 0.08em; }
.track__error {
  padding: 12px 16px;
  background: rgba(184,37,58,0.08);
  border-left: 3px solid #B8253A;
  color: #B8253A;
  font-size: 18px;
}

.track__result {
  background: var(--linen);
  padding: 36px;
  border-top: 2px solid var(--gold);
}
.track__result .eyebrow { margin-bottom: 24px; }

.track__timeline {
  display: flex; align-items: center;
  margin: 0 0 32px;
}
.track__step {
  flex: 0 0 auto;
  text-align: center;
  opacity: 0.4;
  transition: opacity .3s;
}
.track__step.is-done, .track__step.is-active { opacity: 1; }
.track__dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--sand);
  margin: 0 auto 10px;
  border: 2px solid transparent;
}
.track__step.is-done .track__dot { background: var(--gold); }
.track__step.is-active .track__dot {
  background: var(--ink);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184,153,104,0.25);
  animation: trackPulse 1.6s ease-in-out infinite;
}
@keyframes trackPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(184,153,104,0.25); }
  50%      { box-shadow: 0 0 0 9px rgba(184,153,104,0.15); }
}
.track__label {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 18px;
}
.track__step small { display: block; font-size: 18px; color: var(--stone); margin-top: 3px; }
.track__line {
  flex: 1;
  height: 2px;
  background: var(--sand);
  margin: 0 6px;
  margin-bottom: 26px;
}

.track__card {
  background: var(--cream);
  padding: 24px;
}
.track__row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(10,10,10,0.08);
  font-size: 18px;
  gap: 12px;
}
.track__row:last-child { border-bottom: 0; }
.track__row span { color: var(--stone); letter-spacing: 0.06em; flex-shrink: 0; }
.track__row strong { font-weight: 500; color: var(--ink); text-align: right; }
.track__row code {
  font-family: 'Inter', monospace;
  background: var(--linen);
  padding: 3px 8px;
  font-size: 18px;
  letter-spacing: 0.12em;
}

.track__hint {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(10,10,10,0.08);
  text-align: center;
  font-size: 18px;
  color: var(--graphite);
}
.track__hint p { margin: 4px 0; }
.track__hint a { color: var(--gold); border-bottom: 1px solid var(--gold); }

@media (max-width: 600px) {
  .track__form { padding: 24px; }
  .track__result { padding: 24px; }
  .track__timeline { font-size: 18px; }
  .track__label { font-size: 18px; }
}

/* =========================================================
   Fortune Wheel (hero)
   ========================================================= */
.wheel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 10px auto 0;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

/* Prominent gold downward pointer at the top of the wheel */
.wheel__pointer {
  position: absolute;
  top: 4px;            /* sits slightly inside the wheel edge */
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid #D4BC8A;   /* champagne-gold for higher contrast on ink */
  /* Stacked drop-shadows fake a dark outline + soft shadow → visible on any segment */
  filter:
    drop-shadow(1px 0 0 #0A0A0A)
    drop-shadow(-1px 0 0 #0A0A0A)
    drop-shadow(0 1px 0 #0A0A0A)
    drop-shadow(0 -1px 0 #0A0A0A)
    drop-shadow(0 4px 5px rgba(10,10,10,0.55));
  pointer-events: none;
  animation: wheelPointerBob 2.4s ease-in-out infinite;
}
@keyframes wheelPointerBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-3px); }
}

/* Flat 2D plane that carries the disc + hub */
.wheel__plate {
  position: relative;
  width: 100%; height: 100%;
}

.wheel__disc {
  width: 100%; height: 100%;
  display: block;
  border-radius: 50%;
  box-shadow:
    0 0 0 8px var(--cream),
    0 0 0 10px rgba(184,153,104,0.45),
    0 26px 60px -24px rgba(10,10,10,0.45);
  transform: rotate(0deg);
  cursor: pointer;
}
.wheel:hover .wheel__disc {
  box-shadow:
    0 0 0 8px var(--cream),
    0 0 0 10px rgba(184,153,104,0.85),
    0 26px 60px -24px rgba(10,10,10,0.45),
    0 0 46px rgba(184,153,104,0.45);
}

/* Center hub = spin trigger */
.wheel__hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 27%; height: 27%;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
  border-radius: 50%;
}
.wheel__hub svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transition: transform 700ms cubic-bezier(.16,1,.3,1);
  filter: drop-shadow(0 8px 16px rgba(10,10,10,0.35));
}
.wheel__hub:hover svg { transform: rotate(30deg) scale(1.04); }
.wheel__hub.is-spinning svg { animation: hubPulse 1s ease-in-out infinite; }
@keyframes hubPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.06)} }
.wheel__hub-text {
  position: relative; z-index: 1;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(11px, 2.4vw, 15px);
  line-height: 1.2;
  letter-spacing: 0.12em;
  color: var(--gold-ink);
  text-align: center;
  pointer-events: none;
}

/* Caption under the wheel */
.wheel__caption {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  margin-top: 34px;
  font-size: 18px;
  letter-spacing: 0.3em;
  color: var(--graphite);
  font-weight: 500;
  transition: opacity 400ms var(--ease);
}
.wheel__caption .hero__cap-line { width: 40px; height: 1px; background: var(--gold); }

/* Result card sits BELOW the wheel (never covers it) */
.wheel__result {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 22px auto 0;
  background: var(--cream);
  border: 1px solid rgba(184,153,104,0.45);
  border-top: 2px solid var(--gold);
  box-shadow: 0 24px 50px -24px rgba(10,10,10,0.35);
  padding: 26px 26px;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
}
.wheel__result-close {
  position: absolute;
  top: 8px; right: 10px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--stone);
  border-radius: 50%;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.wheel__result-close:hover { background: var(--ink); color: var(--cream); }

.wheel__result.is-in {
  animation: wheelResultIn 600ms cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes wheelResultIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wheel__result-eyebrow {
  font-size: 18px; letter-spacing: 0.4em; color: var(--gold-ink);
  font-weight: 600; margin: 0 0 10px;
}
.wheel__result-title {
  font-family: var(--ff-display);
  font-weight: 500; font-size: 1.7rem;
  margin: 0 0 8px; color: var(--ink);
}
.wheel__result-desc {
  font-size: 18px; color: var(--graphite);
  line-height: 1.6; margin: 0 0 18px;
}
.wheel__code {
  display: flex; align-items: stretch;
  border: 1px dashed var(--gold);
  background: var(--linen);
  margin-bottom: 18px;
}
.wheel__code-label {
  display: none;
}
.wheel__code code {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', monospace;
  font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink);
  padding: 12px 8px;
}
.wheel__copy {
  border: 0; border-left: 1px dashed var(--gold);
  background: var(--ink); color: var(--cream);
  padding: 0 18px; cursor: pointer;
  font-size: 18px; letter-spacing: 0.2em; font-weight: 600;
  transition: background var(--t-fast) var(--ease);
}
.wheel__copy:hover { background: var(--gold); }

/* 已使用／已過期的優惠碼：仍然看得到（顧客要能對得上自己抽過什麼），
   但畫上刪除線並收起複製按鈕，避免誤以為還能拿去結帳。 */
.wheel__code.is-void {
  border-style: solid;
  border-color: var(--stone, #9a9186);
  background: transparent;
  opacity: 0.7;
}
.wheel__code.is-void code {
  color: var(--stone, #9a9186);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.wheel__code-status {
  margin: -10px 0 16px;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #B8253A;
}

.wheel__result-cta {
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.wheel__once-note {
  margin: 4px 0 0;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--stone);
}


@media (max-width: 900px) {
  .wheel { max-width: 360px; }
}

/* ------- Toast (override) ------- */
/* keeps the .toast from style.css */

/* ---------- 商品規格（容量）選擇 ---------- */
.pd-variants { margin: 20px 0 4px; }
.pd-variants__label {
  display: block; font-size: 15px; letter-spacing: .22em;
  color: #8a8a80; margin-bottom: 10px;
}
.pd-variants__opts { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-variant {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 11px 18px; border: 1px solid #ddd9cf; border-radius: 6px;
  background: #fff; cursor: pointer; font: inherit; color: #2a2a26;
  transition: border-color .18s, box-shadow .18s, background .18s;
  min-width: 116px;
}
.pd-variant:hover { border-color: #B89968; }
.pd-variant em {
  font-style: normal; font-size: 15px; color: #8a8a80; letter-spacing: .02em;
}
.pd-variant.is-active {
  border-color: #B89968; background: #FBF7EF;
  box-shadow: 0 0 0 1px #B89968 inset;
}
.pd-variant.is-active em { color: #9a7b3f; font-weight: 600; }
@media (max-width: 560px) {
  .pd-variant { flex: 1 1 calc(50% - 10px); min-width: 0; }
}

/* ---------- 購物車：優惠碼提示（引導到結帳頁輸入） ---------- */
.cart-coupon-tip {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 14px 0 4px; padding: 13px 15px;
  background: #FDF6E3;
  border: 1px solid #E8C97A;
  border-left: 4px solid #B89968;
  border-radius: 6px;
}
.cart-coupon-tip__icon { font-size: 20px; line-height: 1.35; flex-shrink: 0; }
.cart-coupon-tip p {
  margin: 0; font-size: 15px; line-height: 1.7;
  color: #7A5E22; letter-spacing: .02em;
}
.cart-coupon-tip strong { color: #8A5A1B; font-weight: 700; }

/* ---------- 轉盤：已抽過（鎖定）狀態 ---------- */
/* 已抽過的顧客回到首頁時，轉盤停在中獎格並顯示優惠碼，不再轉動 */
.wheel.is-locked { cursor: default; }
.wheel.is-locked:hover .wheel__disc {
  box-shadow:
    0 0 0 8px var(--cream),
    0 0 0 10px rgba(184,153,104,0.85),
    0 26px 60px -24px rgba(10,10,10,0.45);   /* 移除 hover 發光，暗示不可再轉 */
}

/* ---------- 商品頁：收藏鍵 ---------- */
.pd-wish {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 10px; padding: 0 18px; height: 100%;
  min-height: 54px;
  border: 1px solid #ddd9cf; border-radius: 4px;
  background: #fff; color: #6b6b62; cursor: pointer;
  font: inherit; font-size: 16px; letter-spacing: .08em;
  transition: border-color .18s, color .18s, background .18s;
}
.pd-wish:hover { border-color: #C9556B; color: #C9556B; }
.pd-wish.is-saved { border-color: #C9556B; color: #C9556B; background: #FDF3F5; }
.pd-wish.is-saved svg { fill: #C9556B; }
.pd-wish svg { transition: fill .18s; }
@media (max-width: 560px) {
  .pd-wish { margin-left: 0; margin-top: 10px; width: 100%; justify-content: center; }
}

/* 會員中心：說明文字 */
.account-hint { margin: -6px 0 16px; font-size: 15px; line-height: 1.75; color: #8a8a80; }

/* ---------- 待付款訂單：前往付款 / 逾期提示 ---------- */
.pay-now {
  display: inline-block; margin-left: 12px;
  padding: 5px 14px; border-radius: 4px;
  background: #0A0A0A; color: #F7F5F0 !important;
  font-size: 15px; letter-spacing: .08em; font-weight: 600;
  text-decoration: none; vertical-align: middle;
  transition: background .18s;
}
.pay-now:hover { background: #B89968; }
.pay-expired {
  display: inline-block; margin-left: 12px;
  font-size: 15px; color: #B8253A; font-weight: 600;
}
.pay-notice-row { padding: 4px 0 14px; }
.pay-notice {
  margin: 0; padding: 12px 16px; border-radius: 6px;
  font-size: 15px; line-height: 1.8;
}
.pay-notice--ok      { background: #FDF6E3; border-left: 4px solid #B89968; color: #7A5E22; }
.pay-notice--expired { background: #FDECEC; border-left: 4px solid #B8253A; color: #8A1B2B; }
.pay-notice a { color: inherit; font-weight: 700; text-decoration: underline; }

/* ---------- 退貨申請 ---------- */
.return-hint {
  margin: 6px 0 0;
  color: var(--stone, #6B655C);
  font-size: 14px;
  line-height: 1.75;
}
.return-note { display: block; color: var(--stone, #6B655C); font-size: 13px; font-weight: 400; }

.return-picker { list-style: none; margin: 14px 0 0; padding: 0; }
.return-picker__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid rgba(10,10,10,0.07);
}
.return-picker__row:last-child { border-bottom: 0; }
.return-picker__info { flex: 1 1 240px; }
.return-picker__info small { color: #8a8a80; }
.return-picker__meta { display: block; margin-top: 4px; color: var(--stone, #6B655C); font-size: 14px; }
.return-picker__qty {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--stone, #6B655C); font-size: 14px; white-space: nowrap;
}
.return-picker__qty input {
  width: 72px; padding: 8px 10px; text-align: center;
  border: 1px solid rgba(10,10,10,0.2); border-radius: var(--radius, 2px);
  font: inherit; color: var(--ink, #0A0A0A); background: #fff;
}
.return-picker__qty input:focus-visible { outline: 2px solid #B89968; outline-offset: 1px; }

.return-reasons { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.return-reason { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.return-reason input { accent-color: #B89968; }

.return-actions {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 26px;
}

/* 進度條 —— 被駁回時不顯示（見 return_detail.php） */
.return-flow { list-style: none; margin: 18px 0 4px; padding: 0; }
.return-flow__step {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 0 0 18px 0;
  color: var(--stone, #6B655C); font-size: 15px;
}
.return-flow__step:last-child { padding-bottom: 0; }
/* 連接線：畫在圓點正下方，最後一步不畫 */
.return-flow__step:not(:last-child)::before {
  content: ''; position: absolute; left: 5px; top: 16px; bottom: 2px;
  width: 2px; background: rgba(10,10,10,0.12);
}
.return-flow__step.is-done:not(:last-child)::before { background: #B89968; }
.return-flow__dot {
  position: relative; z-index: 1; flex: 0 0 auto;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid rgba(10,10,10,0.18);
}
.return-flow__step.is-done .return-flow__dot { background: #B89968; border-color: #B89968; }
.return-flow__step.is-current .return-flow__text { color: var(--ink, #0A0A0A); font-weight: 600; }

.return-list { list-style: none; margin: 12px 0 0; padding: 0; }
.return-list li { border-bottom: 1px solid rgba(10,10,10,0.07); }
.return-list li:last-child { border-bottom: 0; }
.return-list a {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 0; color: inherit;
}
.return-list a:hover strong { color: #8b6d3a; }
.return-list em { margin-left: auto; font-style: normal; color: var(--stone, #6B655C); }

@media (max-width: 560px) {
  .return-picker__row { align-items: flex-start; }
  .return-picker__qty { margin-left: auto; }
  .return-actions { flex-direction: column; align-items: stretch; }
  .return-actions .btn { justify-content: center; }
}

/* ---------- 專業知識 ---------- */
.knowledge { padding: 0 0 90px; }
.container--narrow { max-width: 760px; }

/* 分類清單：橫向可捲，手機不換行擠成一團 */
.know-cats {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 0 0 28px; margin: 0 0 32px;
  border-bottom: 1px solid rgba(10,10,10,0.08);
}
.know-cat {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  border: 1px solid rgba(10,10,10,0.14);
  border-radius: 999px;
  font-size: 15px; color: var(--ink, #0A0A0A);
  transition: all .2s;
}
.know-cat:hover { border-color: var(--ink, #0A0A0A); }
.know-cat.is-active { background: var(--ink, #0A0A0A); color: var(--cream, #FAFAF7); border-color: var(--ink, #0A0A0A); }
.know-cat__n { font-size: 13px; opacity: .55; }
.know-count { margin: 0 0 22px; color: var(--stone, #6B655C); font-size: 15px; }

.know-grid {
  display: grid; gap: 34px 28px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.know-card__link { display: block; color: inherit; }
.know-card__media {
  display: block; position: relative;
  aspect-ratio: 16 / 9; overflow: hidden;
  background: #F2EFE8; margin-bottom: 16px;
}
.know-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease, ease);
}
.know-card__link:hover .know-card__media img { transform: scale(1.04); }
.know-card__placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: .18;
}
.know-card__cat {
  display: inline-block; margin-bottom: 8px;
  font-size: 12px; letter-spacing: .18em; color: #8b6d3a; font-weight: 600;
}
.know-card__title {
  margin: 0 0 8px; font-size: 1.12rem; line-height: 1.5;
  font-family: 'Spectral', 'Noto Serif TC', Georgia, serif; font-weight: 500;
  /* 固定兩行，否則同列卡片的日期會高低不齊 */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.know-card__link:hover .know-card__title { text-decoration: underline; text-underline-offset: 3px; }
.know-card__excerpt {
  margin: 0 0 10px; color: var(--stone, #6B655C); font-size: 15px; line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.know-card__date { font-size: 13px; color: var(--sand, #A9A296); letter-spacing: .06em; }

.pagination {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin-top: 56px; font-size: 15px;
}
.pagination__now { color: var(--stone, #6B655C); }

/* ----- 文章內頁 ----- */
.article__hero { padding: 56px 0 26px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--stone, #6B655C); margin-bottom: 18px; }
.crumbs a:hover { text-decoration: underline; }
.article__meta { margin: 16px 0 0; color: var(--stone, #6B655C); font-size: 14px; letter-spacing: .04em; }
.article__meta-sep { margin: 0 8px; }
.article__cover { width: 100%; height: auto; display: block; margin: 12px 0 40px; }
.article__body { padding-bottom: 44px; }
.article__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 30px 0 0; border-top: 1px solid rgba(10,10,10,0.08);
}
.article__related { padding: 60px 0 90px; }
.article__related-title {
  font-family: 'Spectral', 'Noto Serif TC', Georgia, serif; font-weight: 500;
  font-size: 1.2rem; margin: 0 0 18px;
}
.know-list { list-style: none; margin: 0; padding: 0; }
.know-list li { border-top: 1px solid rgba(10,10,10,0.08); }
.know-list a { display: block; padding: 16px 0; color: inherit; }
.know-list a:hover strong { color: #8b6d3a; }
.know-list small { display: block; margin-top: 4px; color: var(--stone, #6B655C); font-size: 14px; }

@media (max-width: 640px) {
  .know-grid { gap: 28px 18px; grid-template-columns: 1fr; }
  .article__hero { padding: 36px 0 20px; }
  .article__foot { flex-direction: column; align-items: stretch; }
}

/* ---------- 文章內的流程圖與知識區塊 ---------- */

/* 流程圖：用 inline SVG，不引入任何繪圖函式庫。
   外層可橫向捲動——手機上寧可捲，也不要把圖縮到看不清字。 */
.figure {
  margin: 40px 0;
  padding: 0;
}
.figure__frame {
  overflow-x: auto;
  background: #FBFAF7;
  border: 1px solid rgba(10,10,10,0.08);
  border-radius: 4px;
  padding: 26px 22px;
}
.figure__frame svg { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.figure figcaption {
  margin-top: 12px;
  color: var(--stone, #6B655C);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}
.figure figcaption strong { color: var(--ink, #0A0A0A); font-weight: 600; }

/* 流程圖節點的共用配色，直接寫在 SVG 的 class 上 */
.dg-box   { fill: #fff; stroke: rgba(10,10,10,.22); stroke-width: 1.2; }
.dg-box--q{ fill: #F2EFE8; stroke: rgba(10,10,10,.28); }
.dg-box--a{ fill: #0A0A0A; stroke: #0A0A0A; }
.dg-t     { font-family: 'Noto Sans TC', system-ui, sans-serif; font-size: 14px; fill: #0A0A0A; }
.dg-t--w  { fill: #FAFAF7; }
.dg-t--s  { font-size: 12.5px; fill: #6B655C; }
.dg-line  { stroke: rgba(10,10,10,.3); stroke-width: 1.2; fill: none; }
.dg-lbl   { font-family: 'Noto Sans TC', system-ui, sans-serif; font-size: 12px; fill: #8b6d3a; font-weight: 600; }

/* 重點提示區塊 */
.callout {
  margin: 32px 0;
  padding: 20px 22px;
  background: #FDF9F0;
  border-left: 3px solid #B89968;
  border-radius: 0 4px 4px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout__label {
  display: block; margin-bottom: 8px;
  font-size: 12px; letter-spacing: .2em; font-weight: 700; color: #8b6d3a;
}

/* 法規聲明：每篇文章底部都要有 */
.disclaimer {
  margin: 44px 0 0;
  padding: 16px 18px;
  background: rgba(10,10,10,0.03);
  border-radius: 4px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--stone, #6B655C);
}

/* 常見問題：對 AI 搜尋（GEO）與 Google FAQ 摘要都重要，
   所以做成語意明確的 dl，並搭配 FAQPage 結構化資料 */
.faq { margin: 44px 0 0; }
.faq__title {
  font-family: 'Spectral', 'Noto Serif TC', Georgia, serif;
  font-weight: 500; font-size: 1.25rem; margin: 0 0 6px;
}
.faq dl { margin: 0; }
.faq dt {
  margin-top: 22px; font-weight: 600; color: var(--ink, #0A0A0A);
  font-size: 1.02rem; line-height: 1.6;
}
.faq dd { margin: 8px 0 0; color: #3a3530; line-height: 1.85; }

/* 文章內的重點表格 */
.prose .tbl { width: 100%; border-collapse: collapse; margin: 30px 0; font-size: 15px; }
.prose .tbl th, .prose .tbl td {
  padding: 12px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid rgba(10,10,10,0.08);
}
.prose .tbl th { background: #F2EFE8; font-weight: 600; white-space: nowrap; }
.prose .tbl tr:last-child td { border-bottom: 0; }

@media (max-width: 640px) {
  .figure__frame { padding: 18px 14px; }
  .prose .tbl { display: block; overflow-x: auto; }
}
