/* ==========================================================================
   ONESHOP · 一頁式銷售頁樣式
   來源：kinjo 靜態站 assets/css/style.css，移植進 mini7 並補上電商所需元件。
   這支檔案「不」與主站 css/style.css 同頁載入，class 名稱刻意保持原樣。
   顏色由後台「配色計畫」以 inline <style> 覆蓋 :root 變數。
   ========================================================================== */

:root {
  --warm-white: #F4F2ED;
  --pure-white: #FFFFFF;
  --charcoal: #222220;
  --material-gray: #817D76;
  --clear-blue-gray: #DDE3E3;
  --mini7-red: #C85C3E;

  --font-serif: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  --font-sans: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft JhengHei", sans-serif;

  --maxw: 1200px;
  --gutter: 24px;
  --radius: 2px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--warm-white);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--material-gray);
  margin: 0 0 20px;
}

.h-lead {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin: 0 0 32px;
}

.body-text {
  font-size: 1rem;
  line-height: 2.1;
  color: var(--charcoal);
  margin: 0 0 1.6em;
  max-width: 46em;
}
.body-text:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 242, 237, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34, 34, 32, 0.07);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.site-header__brand { display: inline-flex; align-items: center; text-decoration: none; }
.site-header__logo { height: 34px; width: auto; display: block; }
@media (max-width: 640px) { .site-header__logo { height: 28px; } }

.site-header__utils { display: flex; align-items: center; gap: 4px; }

/* 會員 / 購物車（kinjo 原稿沒有，這裡是併入 mini7 電商流程後補上的） */
.site-header__ico {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--charcoal);
  text-decoration: none;
  transition: background 0.2s var(--ease);
}
.site-header__ico:hover { background: rgba(34, 34, 32, 0.06); }
.site-header__ico svg {
  width: 19px; height: 19px;
  fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.site-header__count {
  position: absolute;
  top: 3px; right: 1px;
  min-width: 15px; height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--mini7-red);
  color: #fff;
  font-size: 10px;
  line-height: 15px;
  text-align: center;
  font-weight: 600;
  display: none;
}
.site-header__count.is-on { display: block; }

.site-header__cta {
  margin-left: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--mini7-red);
  text-decoration: none;
  border: 1px solid var(--mini7-red);
  border-radius: var(--radius);
  padding: 8px 18px;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.site-header__cta:hover { background: var(--mini7-red); color: var(--pure-white); }
@media (max-width: 640px) {
  .site-header__cta { padding: 7px 12px; letter-spacing: 0.06em; }
  .site-header__ico { width: 34px; height: 34px; }
}

/* --------------------------------------------------------------------------
   01 Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: clamp(480px, 82vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}

.hero__slides { position: absolute; inset: 0; }

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.hero__bg.is-active { opacity: 1; }

.hero__dots {
  position: absolute;
  z-index: 3;
  left: 0; right: 0; bottom: 26px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero__dot {
  width: 9px; height: 9px;
  padding: 0; border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.hero__dot:hover { background: rgba(255, 255, 255, 0.7); }
.hero__dot.is-active { background: var(--pure-white); transform: scale(1.25); }

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(20, 16, 12, 0.78) 0%,
    rgba(20, 16, 12, 0.52) 46%,
    rgba(20, 16, 12, 0.22) 100%
  );
}

.hero__inner { position: relative; z-index: 2; width: 100%; }

.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.55;
  letter-spacing: 0.06em;
  color: var(--pure-white);
  margin: 0 0 28px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

.hero__sub {
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 44px;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.hero__scroll::after {
  content: "";
  width: 44px; height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease);
}
.hero__scroll:hover::after { width: 64px; }

/* --------------------------------------------------------------------------
   02 Product — gallery + purchase
   -------------------------------------------------------------------------- */

.product { background: var(--warm-white); }

.product__grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .product__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Gallery ---------------------------------------------------------------- */

.gallery__stage {
  position: relative;
  background: var(--pure-white);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.gallery__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s var(--ease);
  touch-action: pan-y;
}

.gallery__slide { flex: 0 0 100%; height: 100%; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

/* ── 影片張（YouTube）── */
.gallery__slide--video { position: relative; }
.gallery__slide--video img { cursor: pointer; }        /* 不是放大鏡，是播放 */
.gallery__slide--video iframe { width: 100%; height: 100%; border: 0; display: block; }
.gallery__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.18);
  border: 0; cursor: pointer;
  transition: background .2s ease;
}
.gallery__play:hover { background: rgba(0,0,0,0.28); }
.gallery__play svg { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); transition: transform .2s ease; }
.gallery__play:hover svg { transform: scale(1.06); }
.gallery__play-bg { fill: #212121; fill-opacity: 0.82; transition: fill-opacity .2s ease; }
.gallery__play:hover .gallery__play-bg { fill: #f00; fill-opacity: 1; }

/* 縮圖上的影片標記 */
.gallery__thumb--video { position: relative; }
.gallery__thumb--video::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0;
  transform: translate(-40%, -50%);
  border-left: 11px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
  pointer-events: none;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--charcoal);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 12px rgba(34, 34, 32, 0.14);
  transition: background 0.25s var(--ease), opacity 0.25s var(--ease);
}
.gallery__nav:hover { background: var(--pure-white); }
.gallery__nav:disabled { opacity: 0.32; cursor: default; }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }

.gallery__counter {
  position: absolute;
  right: 14px; bottom: 14px;
  background: rgba(34, 34, 32, 0.72);
  color: var(--pure-white);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(var(--thumb-cols, 7), 1fr);
  gap: 8px;
  margin-top: 10px;
}
@media (max-width: 480px) {
  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
}

.gallery__thumb {
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--pure-white);
  aspect-ratio: 1 / 1;
  opacity: 0.5;
  transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 0.82; }
.gallery__thumb[aria-current="true"] { opacity: 1; border-color: var(--charcoal); }

/* Purchase panel --------------------------------------------------------- */

.buy {
  background: var(--pure-white);
  border-radius: var(--radius);
  padding: 40px 36px;
  position: sticky;
  top: 84px;
}
@media (max-width: 900px) {
  .buy { position: static; padding: 32px 24px; }
}

.buy__tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--mini7-red);
  border: 1px solid currentColor;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.buy__name {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin: 0 0 16px;
}

.buy__desc {
  font-size: 0.92rem;
  line-height: 2;
  color: var(--material-gray);
  margin: 0 0 28px;
}
/* 後台沒填一頁式短述時，這裡會退回商品描述（富文本 HTML），給它基本排版 */
.buy__desc p { margin: 0 0 10px; }
.buy__desc p:last-child { margin-bottom: 0; }
.buy__desc ul,
.buy__desc ol { margin: 0 0 10px; padding-left: 1.3em; }
.buy__desc img { max-width: 100%; height: auto; }

.buy__price {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
  font-variant-numeric: tabular-nums;
}
/* 售價未定：後台價格為 0 時顯示 ＿＿＿＿ */
.buy__price[data-price=""] .buy__price-value {
  color: var(--material-gray);
  letter-spacing: 0.1em;
}
.buy__price-origin {
  font-size: 0.92rem;
  color: var(--material-gray);
  text-decoration: line-through;
  margin-left: 10px;
  letter-spacing: 0.02em;
}

.buy__price-note {
  font-size: 0.72rem;
  color: var(--material-gray);
  letter-spacing: 0.06em;
  margin: 0 0 30px;
}

.buy__divider {
  border: 0;
  border-top: 1px solid rgba(34, 34, 32, 0.08);
  margin: 30px 0;
}

.field { margin-bottom: 22px; }

.field__label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--material-gray);
  margin-bottom: 10px;
}

.variant { display: flex; flex-wrap: wrap; gap: 8px; }

.variant__btn {
  border: 1px solid rgba(34, 34, 32, 0.18);
  background: transparent;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.variant__btn:hover { border-color: var(--charcoal); }
.variant__btn[aria-pressed="true"] {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--pure-white);
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(34, 34, 32, 0.18);
  border-radius: var(--radius);
}
.qty__btn {
  width: 42px; height: 42px;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--charcoal);
  transition: background 0.2s var(--ease);
}
.qty__btn:hover:not(:disabled) { background: var(--warm-white); }
.qty__btn:disabled { color: rgba(34, 34, 32, 0.24); cursor: default; }

.qty__input {
  width: 52px; height: 42px;
  border: none;
  border-left: 1px solid rgba(34, 34, 32, 0.12);
  border-right: 1px solid rgba(34, 34, 32, 0.12);
  text-align: center;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  background: transparent;
  color: var(--charcoal);
  -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buy__stock {
  margin: 12px 0 0;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--material-gray);
}

.btn {
  display: block;
  width: 100%;
  font-family: inherit;
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-align: center;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), opacity 0.25s var(--ease);
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn--outline { background: transparent; color: var(--charcoal); }
.btn--outline:hover:not(:disabled) { background: var(--charcoal); color: var(--pure-white); }

.btn--solid {
  background: var(--mini7-red);
  border-color: var(--mini7-red);
  color: var(--pure-white);
}
.btn--solid:hover:not(:disabled) { background: #b04f34; border-color: #b04f34; }

/* 加入購物車 / 立即購買：電腦版同一列，手機版上下 */
.buy__actions { display: flex; gap: 12px; }
.buy__actions .btn { flex: 1; margin: 0; }
@media (max-width: 768px) { .buy__actions { flex-direction: column; } }

.buy__status {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--mini7-red);
  text-align: center;
}

/* Spec table ------------------------------------------------------------- */

.spec { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.spec caption {
  text-align: left;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--material-gray);
  margin-bottom: 12px;
}
.spec th, .spec td {
  padding: 11px 0;
  border-bottom: 1px solid rgba(34, 34, 32, 0.07);
  vertical-align: top;
}
.spec th {
  text-align: left;
  font-weight: 400;
  color: var(--material-gray);
  width: 38%;
  letter-spacing: 0.06em;
}
.spec td { color: var(--charcoal); }

/* Notes list ------------------------------------------------------------- */

.buy__notes {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 10px;
}
.buy__notes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--material-gray);
}
.buy__notes svg {
  flex: 0 0 auto;
  width: 16px; height: 16px;
  margin-top: 4px;
  stroke: var(--material-gray);
}
.buy__notes li[data-deny="true"] svg { stroke: var(--mini7-red); }

/* --------------------------------------------------------------------------
   03-1 左圖右文段落
   -------------------------------------------------------------------------- */

.notglass { background: var(--charcoal); color: var(--warm-white); }

.notglass__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .notglass__grid { grid-template-columns: 1fr; gap: 36px; }
}

.notglass__figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.notglass__figure img { width: 100%; height: 100%; object-fit: cover; }

.notglass .eyebrow { color: rgba(244, 242, 237, 0.55); }
.notglass .h-lead { color: var(--warm-white); }
.notglass .body-text { color: rgba(244, 242, 237, 0.76); }

/* --------------------------------------------------------------------------
   03-2 商品特色
   -------------------------------------------------------------------------- */

.features { background: var(--clear-blue-gray); }

.features__head { text-align: center; margin-bottom: 64px; }
.features__head .h-lead { margin-bottom: 0; }

.features__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 768px) { .features__grid { grid-template-columns: 1fr; } }

.feature { background: var(--warm-white); border-radius: var(--radius); padding: 44px 36px; }

.feature--visual { padding: 0; min-height: 300px; border-radius: var(--radius); overflow: hidden; }
.feature--visual img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }

.feature__no {
  font-family: var(--font-serif);
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  color: var(--mini7-red);
  margin: 0 0 14px;
}
.feature__title {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}
.feature__text { font-size: 0.9rem; line-height: 2; color: var(--material-gray); margin: 0; }

/* --------------------------------------------------------------------------
   03-3 品牌故事與年表
   -------------------------------------------------------------------------- */

.origin__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .origin__grid { grid-template-columns: 1fr; gap: 36px; }
}

.origin__figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; order: 2; }
@media (max-width: 900px) { .origin__figure { order: 0; } }
.origin__figure img { width: 100%; height: 100%; object-fit: cover; }

.origin__timeline { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; }
.origin__timeline li {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 18px;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid rgba(34, 34, 32, 0.1);
  font-size: 0.88rem;
  color: var(--material-gray);
  line-height: 1.8;
}
.origin__timeline b {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   04 使用注意事項
   -------------------------------------------------------------------------- */

.care { background: var(--pure-white); }
.care__head { margin-bottom: 56px; }

.care__icons {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 32px 0 44px;
  border-bottom: 1px solid rgba(34, 34, 32, 0.08);
  margin-bottom: 48px;
}

.care-icon { display: grid; justify-items: center; gap: 10px; width: 84px; text-align: center; }
.care-icon svg {
  width: 34px; height: 34px;
  stroke: var(--charcoal);
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.care-icon[data-deny="true"] svg { stroke: var(--mini7-red); }
.care-icon span {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--material-gray);
  line-height: 1.5;
}
.care-icon[data-deny="true"] span { color: var(--mini7-red); }

.care__cols { display: grid; grid-template-columns: repeat(var(--care-cols, 3), 1fr); gap: 48px; }
@media (max-width: 860px) { .care__cols { grid-template-columns: 1fr; gap: 40px; } }

.care-col__title {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--charcoal);
}
.care-col--warn .care-col__title { color: var(--mini7-red); border-bottom-color: var(--mini7-red); }

.care-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.care-col li {
  position: relative;
  padding-left: 18px;
  font-size: 0.86rem;
  line-height: 1.85;
  color: var(--material-gray);
}
.care-col li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.75em;
  width: 5px; height: 1px;
  background: var(--material-gray);
}
.care-col--warn li::before { background: var(--mini7-red); }

/* --------------------------------------------------------------------------
   05 FAQ
   -------------------------------------------------------------------------- */

.faq { background: var(--warm-white); }
.faq__head { margin-bottom: 44px; }
.faq__list { border-top: 1px solid rgba(34, 34, 32, 0.14); max-width: 880px; }
.faq__item { border-bottom: 1px solid rgba(34, 34, 32, 0.14); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background: none;
  border: none;
  padding: 26px 0;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--charcoal);
}

.faq__icon { position: relative; flex: 0 0 auto; width: 14px; height: 14px; margin-top: 8px; }
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--charcoal);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.faq__icon::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.faq__icon::after { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.faq__panel { overflow: hidden; height: 0; transition: height 0.34s var(--ease); }
.faq__panel-inner {
  padding: 0 40px 28px 0;
  font-size: 0.9rem;
  line-height: 2.05;
  color: var(--material-gray);
}

/* --------------------------------------------------------------------------
   06 Closing CTA
   -------------------------------------------------------------------------- */

.closing {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: var(--charcoal);
}
.closing__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.closing__scrim { position: absolute; inset: 0; background: rgba(18, 15, 12, 0.62); }
.closing__inner { position: relative; z-index: 2; width: 100%; }

.closing__en {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--pure-white);
  margin: 0 0 22px;
}
.closing__zh {
  font-family: var(--font-serif);
  font-size: clamp(1.06rem, 2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.76);
  margin: 0 0 48px;
}
.closing .btn { display: inline-block; width: auto; min-width: 260px; padding: 17px 44px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--warm-white);
  padding: 64px 0 40px;
  border-top: 1px solid rgba(34, 34, 32, 0.08);
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}
.site-footer__brand { font-size: 0.86rem; font-weight: 600; letter-spacing: 0.24em; margin: 0; }
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  list-style: none;
  padding: 0; margin: 0;
}
.site-footer__nav a {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--material-gray);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.site-footer__nav a:hover { color: var(--charcoal); }
.site-footer__bottom {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--material-gray);
  border-top: 1px solid rgba(34, 34, 32, 0.08);
  padding-top: 24px;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(18, 15, 12, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.lightbox[data-open="true"] { opacity: 1; visibility: visible; }

.lightbox__img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  user-select: none;
  touch-action: pan-y;
}

.lightbox__btn {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--pure-white);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox__btn--prev { left: 3vw; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 3vw; top: 50%; transform: translateY(-50%); }
.lightbox__btn--close { top: 3vh; right: 3vw; }

.lightbox__counter {
  position: absolute;
  bottom: 3vh; left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
  .lightbox__btn--prev, .lightbox__btn--next { display: none; }
}

/* --------------------------------------------------------------------------
   A11y / motion
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible { outline: 2px solid var(--mini7-red); outline-offset: 3px; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}


/* ── 2026-08-20 客戶要求（TG mid 2783）：庫存不足的提示 ────────────────
   1) 缺貨的顏色按鈕本身要看得出來（不是只有下面那行字變）
   2) 點下去要有彈跳視窗，說明庫存不足、可以聯繫小編                    */

/* 缺貨的款式按鈕：轉灰 + 斜線，但仍可點（點了才跳說明視窗） */
.variant__btn.is-out {
  opacity: .45;
  text-decoration: line-through;
  border-style: dashed;
}
.variant__btn.is-out::after {
  content: "缺貨";
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  letter-spacing: .06em;
  text-decoration: none;
  vertical-align: middle;
  opacity: .8;
}

/* 庫存文字缺貨時轉紅 */
.buy__stock.is-out { color: #c0392b; font-weight: 600; }

/* 缺貨說明彈窗 */
.stock-modal[hidden] { display: none; }
.stock-modal {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.stock-modal__mask {
  position: absolute; inset: 0;
  background: rgba(20, 18, 16, .55);
  backdrop-filter: blur(2px);
}
.stock-modal__box {
  position: relative;
  width: 100%; max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 30px 28px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  animation: stockPop .18s ease;
}
@keyframes stockPop {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.stock-modal__x {
  position: absolute; top: 10px; right: 12px;
  border: 0; background: none; cursor: pointer;
  font-size: 24px; line-height: 1; color: #999;
  width: 34px; height: 34px; border-radius: 8px;
}
.stock-modal__x:hover { background: #f2f2f2; color: #333; }
.stock-modal__title {
  margin: 0 0 12px;
  font-size: 19px; font-weight: 600; letter-spacing: .02em;
}
.stock-modal__body {
  margin: 0 0 22px;
  font-size: 14px; line-height: 1.95; color: #5b5651;
}
.stock-modal__acts { display: flex; gap: 10px; flex-wrap: wrap; }
.stock-modal__acts .btn { flex: 1 1 auto; min-width: 130px; text-align: center; }

@media (max-width: 480px) {
  .stock-modal__box { padding: 26px 20px 22px; }
  .stock-modal__acts .btn { flex: 1 1 100%; }
}


/* 2026-08-22（mid 2804）：使用注意事項的自訂圖示 —— 尺寸比照內建 SVG */
.care-icon__img { width:32px; height:32px; object-fit:contain; display:block; }
.care-icon[data-deny="true"] .care-icon__img { opacity:.85; }
