/* =========================================================
   JBK INTERNATIONAL — STYLE.CSS
   Curated by Professionals. Trusted Every Day.
   Based on JBK CIS Manual — Vol. I · 2026
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Primary Palette — 70 / 25 / 5 */
  --ink:        #0A0A0A;
  --cream:      #FAFAF7;
  --gold:       #B89968;

  /* Secondary */
  --carbon:     #1A1A1A;
  --graphite:   #3A3A3A;
  /* 原為 #888076，對 --cream 只有 3.72:1，未達 AA 內文標準。
     實測全站 46 處 --stone 皆用於淺底文字，故直接調深至 5.51:1。 */
  --stone:      #6B655C;
  --sand:       #C8C2B6;
  --linen:      #F2EFE8;
  --bronze:     #8B7544;
  --champagne:  #D4BC8A;
  --espresso:   #5A4A3A;

  /* --gold 在深底上是 7.35:1（很好），但在 --cream 上只有 2.58:1，
     連 WCAG 大字標準 3:1 都不到。淺底上的金色文字一律改用 --gold-ink，
     --gold 則保留給深底（頁首黑帶、深色按鈕）與 hover 狀態。 */
  --gold-ink:   #6F5C35;   /* 對 cream 6.16:1 — AA 內文 */

  /* Functional */
  --success:    #1AA86A;
  --error:      #B8253A;

  /* Type
     標題字原為 Playfair Display（Didone 系，粗細對比極大、髮絲線極細），
     與 logo 的粗切角幾何、以及中文 Noto Serif TC 的厚實骨架不同調。
     改用 Spectral：中低對比、楔形銳角襯線，三者調性一致。
     Spectral 本家即有義大利體，故 --ff-italic 併入同一套，
     不再需要 Cormorant Garamond。 */
  --ff-display: 'Spectral', 'Noto Serif TC', Georgia, serif;
  --ff-italic:  'Spectral', 'Noto Serif TC', Georgia, serif;
  /* 內文中文交給系統字體（蘋方／微軟正黑體），可省下約 1.3MB 的字體下載。
     標題仍使用自 host 的 Noto Serif TC，品牌感由標題承擔。 */
  --ff-body:    'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI",
                'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif;

  /* Scale (Web) */
  --fs-h1:    clamp(2.6rem, 5.6vw, 4.6rem);
  --fs-h2:    clamp(2rem, 3.6vw, 3rem);
  --fs-h3:    clamp(1.4rem, 2vw, 1.75rem);
  --fs-body:  1rem;
  --fs-sm:    0.875rem;
  --fs-xs:    0.75rem;

  /* Layout */
  --container: 1280px;
  --gutter:    24px;
  /* 長文閱讀寬度（不含 gutter）。中文內文 18px 時約 40 字／行，
     落在 CJK 舒適區間。品牌故事與法務頁共用同一條垂直邊界，
     套在同時掛 .container 的元素上時要用 --measure-box（已加回左右 gutter）。 */
  --measure:     780px;
  --measure-box: calc(780px + var(--gutter) * 2);
  --radius:    2px;
  --radius-lg: 4px;

  /* Motion */
  --ease:    cubic-bezier(.2, .65, .2, 1);
  --t-fast:  220ms;
  --t-med:   400ms;
  --t-slow:  700ms;
}

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

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

body {
  margin: 0;
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

button {
  font-family: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

ul { list-style: none; padding: 0; margin: 0; }

::selection { background: var(--gold); color: var(--cream); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typography Utilities ---------- */
.eyebrow {
  font-family: var(--ff-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--graphite);
  margin: 0 0 1.4rem;
}
.eyebrow--gold { color: var(--gold); }

.italic {
  font-family: var(--ff-italic);
  font-style: italic;
  font-weight: 500;
}

.display,
.section-title,
.newsletter__title {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.display       { font-size: var(--fs-h1); }
.section-title { font-size: var(--fs-h2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn--sm { padding: 10px 22px; font-size: 18px; white-space: nowrap; }

.btn--primary {
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
}
.btn--primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--cream);
  transform: translateY(-1px);
}
.btn--primary .btn__arrow { transition: transform var(--t-med) var(--ease); }
.btn--primary:hover .btn__arrow { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

.btn--text {
  padding: 18px 0;
  color: var(--ink);
  position: relative;
}
.btn--text .btn__line {
  position: absolute;
  left: 0; bottom: 12px;
  width: 100%; height: 1px;
  background: var(--ink);
  transform-origin: right;
  transition: transform var(--t-med) var(--ease);
}
.btn--text:hover .btn__line { transform: scaleX(0); transform-origin: left; }

/* ---------- Edition Bar ---------- */
.edition-bar {
  background: var(--ink);
  color: var(--cream);
  font-size: 18px;
  letter-spacing: 0.28em;
  font-weight: 500;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(184,153,104,0.18);
}
.edition-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}
.edition-bar__center { color: var(--gold); }
.edition-bar__left,
.edition-bar__right { color: var(--sand); }

@media (max-width: 880px) {
  .edition-bar__left,
  .edition-bar__right { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--cream);
  transition: background var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(250,250,247,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(10,10,10,0.06);
  box-shadow: 0 1px 20px rgba(10,10,10,0.04);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 168px;
  transition: height var(--t-med) var(--ease);
}
.site-header.is-scrolled .site-header__inner { height: 120px; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav--right { justify-content: flex-end; gap: 16px; }

.nav__link {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-med) var(--ease);
}
.nav__link:hover { color: var(--gold); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand__mark {
  display: inline-block;
  width: 144px;
  height: 144px;
  margin-top: -14px;       /* 視覺往上提，補償圖檔底部留白 */
  transition: transform var(--t-slow) var(--ease),
              width var(--t-med) var(--ease),
              height var(--t-med) var(--ease);
}
.brand__mark svg, .brand__mark img { width: 100%; height: 100%; object-fit: contain; object-position: center 30%; }
.brand:hover .brand__mark { transform: rotate(60deg); }
/* Scrolled header → 稍微再小一點，閱讀內頁更舒服 */
.site-header.is-scrolled .brand__mark { width: 96px; height: 96px; margin-top: -10px; }

/* Footer / large variant for the full logo (含公司名) */
.brand__mark--lg { width: auto; height: auto; }
.brand__mark--lg img { width: 1200px; height: auto; max-width: 100%; }
.brand--footer:hover .brand__mark--lg { transform: none; }

.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__word-main {
  font-family: var(--ff-display);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand__word-sub {
  font-size: 18px;
  letter-spacing: 0.45em;
  color: var(--stone);
  margin-top: 4px;
  font-weight: 500;
}

/* Lang / Icons */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.18em;
  margin-right: 6px;
  color: var(--stone);
}
.lang-switch__btn { padding: 4px; color: var(--stone); }
.lang-switch__btn.is-active { color: var(--ink); }
.lang-switch__btn:hover { color: var(--gold); }
.lang-switch__divider { opacity: 0.35; }

.icon-btn {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border-radius: 50%;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  position: relative;
}
.icon-btn:hover { background: rgba(184,153,104,0.12); color: var(--gold); }

.icon-btn--bag .bag-count {
  position: absolute;
  top: 2px; right: -2px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  /* 數字徽章：cream 疊在 --gold 上只有 2.58:1，底色換成深金 */
  background: var(--gold-ink);
  color: var(--cream);
  border-radius: 999px;
  font-size: 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform var(--t-med) var(--ease);
}
.icon-btn--bag.has-items .bag-count { transform: scale(1); }

.menu-toggle { display: none; width: 28px; height: 22px; position: relative; }
.menu-toggle span {
  display: block;
  position: absolute; left: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast) var(--ease);
}
.menu-toggle span:nth-child(1) { top: 4px; }
.menu-toggle span:nth-child(2) { top: 50%; }
.menu-toggle span:nth-child(3) { bottom: 4px; }
.menu-toggle.is-open span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { bottom: auto; top: 50%; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .nav--left { display: none; }
  .site-header__inner { grid-template-columns: auto 1fr auto; }
  .brand { justify-self: start; }
  .nav--right .btn { display: none; }
  .menu-toggle { display: inline-block; }
  .lang-switch { display: none; }
}

/* Drawer */
.drawer {
  position: fixed;
  inset: 132px 0 0 0;
  background: var(--cream);
  z-index: 40;
  padding: 40px 24px;
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease);
  display: flex; flex-direction: column;
  justify-content: space-between;
}
.drawer.is-open { transform: translateX(0); }
.drawer__nav { display: flex; flex-direction: column; gap: 24px; }
.drawer__nav a {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid rgba(10,10,10,0.08);
  padding-bottom: 14px;
}
.drawer__foot {
  font-family: var(--ff-italic);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--graphite);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--cream);
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.10;
  background-image:
    /* hex pattern via repeating linear/radial */
    radial-gradient(circle at 50% 50%, transparent 19px, var(--gold) 20px, transparent 21px);
  background-size: 90px 100px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 80%, transparent 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__copy { padding: 20px 0; }

.hero__sub {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--graphite);
  margin: 32px 0 44px;
  max-width: 460px;
  font-weight: 300;
}

.hero__cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid rgba(10,10,10,0.10);
}
.meta-item { display: flex; flex-direction: column; gap: 6px; }
.meta-num {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.meta-label {
  font-size: 18px;
  letter-spacing: 0.3em;
  color: var(--stone);
  font-weight: 500;
}
.meta-divider {
  width: 1px;
  height: 36px;
  background: rgba(10,10,10,0.12);
}

/* Hero Visual */
.hero__visual {
  position: relative;
  padding: 0 0 0 20px;
}
.hero__image {
  margin: 0;
  position: relative;
}
.hero__image-frame {
  aspect-ratio: 4 / 5;
  background: var(--linen);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(10,10,10,0.25);
  position: relative;
}
.hero-illu { width: 100%; height: 100%; }

.hero__image::before,
.hero__image::after {
  content: '';
  position: absolute;
  border: 1px solid var(--gold);
  opacity: 0.6;
  pointer-events: none;
}
.hero__image::before {
  top: -16px; left: -16px;
  width: 60px; height: 60px;
  border-right: 0; border-bottom: 0;
}
.hero__image::after {
  bottom: -16px; right: -16px;
  width: 60px; height: 60px;
  border-left: 0; border-top: 0;
}

.hero__cap {
  position: absolute;
  bottom: -50px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  letter-spacing: 0.32em;
  font-weight: 500;
  color: var(--graphite);
}
.hero__cap-line {
  width: 40px; height: 1px;
  background: var(--gold);
}

.hero__scroll {
  position: absolute;
  left: 24px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  letter-spacing: 0.4em;
  color: var(--stone);
  font-weight: 500;
}
.hero__scroll-line {
  width: 50px; height: 1px;
  background: var(--stone);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -50%;
  width: 50%; height: 100%;
  background: var(--gold);
  animation: scrollDot 2.4s var(--ease) infinite;
}
@keyframes scrollDot {
  0%   { left: -50%; }
  100% { left: 100%; }
}

@media (max-width: 900px) {
  .hero { padding: 50px 0 100px; }
  .hero__inner { grid-template-columns: 1fr; gap: 60px; }
  .hero__visual { padding-left: 0; }
  .hero__scroll { display: none; }
  .hero__meta { gap: 18px; margin-top: 48px; }
  .meta-divider { display: none; }
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--graphite);
  border-bottom: 1px solid var(--graphite);
}
.marquee__track {
  display: inline-flex;
  gap: 60px;
  white-space: nowrap;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  animation: marquee 32s linear infinite;
  color: var(--cream);
}
.marquee__track span { opacity: 0.85; }
.marquee__track span:nth-child(3n) { color: var(--gold); opacity: 1; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

/* =========================================================
   Section head shared
   ========================================================= */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
}
.view-all {
  font-size: 18px;
  letter-spacing: 0.32em;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: gap var(--t-med) var(--ease), color var(--t-fast) var(--ease);
}
.view-all:hover { color: var(--gold); border-color: var(--gold); gap: 18px; }

/* =========================================================
   Selection (Featured)
   ========================================================= */
.selection { padding: 120px 0 100px; }

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(10,10,10,0.08);
}
.chip {
  padding: 10px 22px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--graphite);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all var(--t-med) var(--ease);
}
.chip:hover { color: var(--ink); border-color: rgba(10,10,10,0.15); }
.chip.is-active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 24px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-med) var(--ease);
}

.card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--linen);
  overflow: hidden;
  margin-bottom: 20px;
}

.card__badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  /* 11px 小字疊在 cream 上，用 --gold 只有 2.58:1，改用深金 */
  color: var(--gold-ink);
  background: var(--cream);
  padding: 3px 8px;
  border: 1px solid rgba(111,92,53,0.45);
}
.card__badge--new { color: var(--cream); background: var(--ink); border-color: var(--ink); }

.card__img {
  position: absolute;
  inset: 0;
  transition: transform var(--t-slow) var(--ease);
}
.card:hover .card__img { transform: scale(1.05); }

/* Faux product imagery via gradients + decorative SVG */
.card__img--mask    { background: linear-gradient(160deg, #EAE1D0 0%, #C9B797 100%); }
.card__img--mousse  { background: linear-gradient(160deg, #F2EFE8 0%, #D8D0C0 100%); }
.card__img--spray   { background: linear-gradient(160deg, #DCD6CA 0%, #A8A092 100%); }
.card__img--tonic   { background: linear-gradient(160deg, #F0E8DA 0%, #D4BC8A 100%); }

.card__img::before {
  /* a stylized bottle silhouette */
  content: '';
  position: absolute;
  left: 50%; top: 52%;
  transform: translate(-50%, -50%);
  width: 38%; height: 60%;
  background: linear-gradient(180deg, rgba(10,10,10,0.85), rgba(10,10,10,0.95));
  border-radius: 8px 8px 4px 4px;
  box-shadow: inset 0 0 30px rgba(255,255,255,0.05),
              0 18px 30px -10px rgba(10,10,10,0.3);
}
.card__img::after {
  /* label */
  content: '';
  position: absolute;
  left: 50%; top: 58%;
  transform: translate(-50%, -50%);
  width: 28%; height: 36%;
  background: var(--cream);
  background-image:
    linear-gradient(transparent calc(50% - 0.5px), var(--gold) calc(50% - 0.5px), var(--gold) calc(50% + 0.5px), transparent calc(50% + 0.5px));
  background-size: 60% 1px;
  background-repeat: no-repeat;
  background-position: center 22%;
}

.card__img--tonic::before { background: linear-gradient(180deg, #F2EFE8, #D4BC8A); }
.card__img--tonic::after  { background: var(--ink); background-image: linear-gradient(transparent 49.5%, var(--gold) 49.5%, var(--gold) 50.5%, transparent 50.5%); background-size: 60% 1px; background-repeat: no-repeat; background-position: center 22%; }

.card__actions {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  transform: translateY(100%);
  transition: transform var(--t-med) var(--ease);
}
.card:hover .card__actions { transform: translateY(0); }

/* Stretched link — 讓整張商品卡點哪都能進商品頁 */
.card { cursor: pointer; }
.card__title a::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  /* 透明覆蓋層，捕捉整張卡的點擊 */
}
/* 保留 card__actions 原本的 absolute（不能改 position）— 只加 z-index 讓按鈕優先 */
.card__actions   { z-index: 3; pointer-events: none; }  /* 容器點擊穿透 → padding 空白區也能進商品頁 */
.card__actions .card__btn { pointer-events: auto; }     /* 只有按鈕本身接住點擊 → 加入購物袋 */
.card__media-link { z-index: 2; }
.card__title a { position: relative; }


.card__btn {
  width: 100%;
  background: var(--ink);
  color: var(--cream);
  padding: 14px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.35em;
  transition: background var(--t-fast) var(--ease);
}
.card__btn:hover { background: var(--gold); }

.card__body { padding: 0 4px; }
.card__cat {
  font-size: 18px;
  letter-spacing: 0.3em;
  color: var(--stone);
  margin: 0 0 8px;
  font-weight: 500;
}
.card__title {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--ink);
}
.card__desc {
  font-size: 0.875rem;
  color: var(--graphite);
  margin: 0 0 14px;
  line-height: 1.65;
}
.card__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 12px;
  border-top: 1px solid rgba(10,10,10,0.08);
}
.card__price {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
}
.card__price-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.card__price-was {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  color: var(--stone);
  text-decoration: line-through;
}
.card__price--sale { color: #B8253A; }

.card__sale-tag {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--cream);
  background: #B8253A;
  padding: 6px 10px;
}
.card__vol {
  font-size: 18px;
  letter-spacing: 0.25em;
  color: var(--stone);
}

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* =========================================================
   Story Strip
   ========================================================= */
.story-strip {
  position: relative;
  padding: 140px 0;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}
.story-strip__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(184,153,104,0.10), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(184,153,104,0.06), transparent 40%);
}
.story-strip__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 980px;
}

.pull-quote {
  font-family: var(--ff-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.45;
  color: var(--cream);
  margin: 0 0 36px;
  position: relative;
}
.pull-quote__open {
  font-family: var(--ff-display);
  font-style: normal;
  font-size: 4rem;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 12px;
}
.pull-quote__em { color: var(--gold); display: block; margin-top: 12px; }

.story-strip__cite {
  font-size: 18px;
  letter-spacing: 0.4em;
  color: var(--sand);
  margin: 0 0 48px;
  font-weight: 500;
}

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--gold);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold);
  transition: gap var(--t-med) var(--ease);
}
.link-underline:hover { gap: 20px; }
.link-underline--sm { font-size: 18px; color: var(--ink); border-color: var(--ink); }
.link-underline--sm:hover { color: var(--gold); border-color: var(--gold); }

/* =========================================================
   Categories
   ========================================================= */
.categories { padding: 120px 0; background: var(--cream); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cat-card {
  position: relative;
  aspect-ratio: 1 / 1;   /* 正方形 */
  overflow: hidden;
  display: block;
  color: var(--cream);
  isolation: isolate;
  /* Default: rich espresso brown */
  background: linear-gradient(135deg, #5A4028 0%, #2A1A0E 100%);
}

/* 三色金屬交替：金 → 銀 → 玫瑰金 循環 */
.category-grid .cat-card:nth-child(3n+1) {
  /* 琥珀棕 — 溫潤沉穩，呼應品牌金 */
  background: linear-gradient(150deg, #8A6A3C 0%, #55401F 55%, #2E2110 100%);
}
.category-grid .cat-card:nth-child(3n+2) {
  /* 黛墨綠 — 草本清新，適合髮／頭皮養護 */
  background: linear-gradient(150deg, #3E5A4E 0%, #26382E 55%, #142219 100%);
}
.category-grid .cat-card:nth-child(3n+3) {
  /* 黛藍灰 — 沉靜高級感 */
  background: linear-gradient(150deg, #3E556E 0%, #273848 55%, #151F2A 100%);
}

/* 金屬光澤 — 加一層對角高光細紋，提升「拋光金屬」感 */
.category-grid .cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255,255,255,0.18) 46%,
    rgba(255,255,255,0.04) 52%,
    transparent 60%);
  mix-blend-mode: overlay;
  transition: opacity 500ms var(--ease);
  opacity: 0.9;
}
.category-grid .cat-card:hover::before { opacity: 1; }

.cat-card::after {
  /* hex decoration */
  content: '';
  position: absolute;
  top: -10%; right: -10%;
  width: 50%; height: 50%;
  background:
    radial-gradient(circle at center, transparent 30%, rgba(255,255,255,0.10) 31%, rgba(255,255,255,0.10) 34%, transparent 35%);
  background-size: 80px 90px;
  opacity: 0.5;
  pointer-events: none;
}

.cat-card__overlay {
  position: absolute;
  inset: 0;
  /* Top gets a subtle dark tint so titles pop; bottom deepens for CTA readability */
  background: linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.15) 45%, rgba(10,10,10,0.75) 100%);
  transition: background var(--t-med) var(--ease);
}
.cat-card:hover .cat-card__overlay {
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.35) 45%, rgba(10,10,10,0.85) 100%);
}

.cat-card__content {
  position: absolute;
  inset: 0;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}

.cat-card__num {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.2em;
  /* 疊在照片遮罩上，--gold 太暗（約 1.8:1），改用較亮的香檳金 */
  color: var(--champagne);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.cat-card__title {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  margin: 0 0 8px;
  color: #FFFFFF;                                   /* 純白，最大對比度 */
  text-shadow: 0 2px 12px rgba(0,0,0,0.55),
               0 1px 3px rgba(0,0,0,0.5);           /* 雙層陰影確保任何背景下都清楚 */
  letter-spacing: 0.04em;
}
.cat-card__desc {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.95);                    /* 幾乎純白，容易閱讀 */
  margin: 0 0 18px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.cat-card__cta {
  display: inline-block;
  font-size: 18px;
  letter-spacing: 0.4em;
  color: #E6C88C;                                    /* 更亮的金色 */
  font-weight: 700;
  transition: letter-spacing var(--t-med) var(--ease);
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.cat-card:hover .cat-card__cta { letter-spacing: 0.5em; color: #F4DDAA; }

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

/* =========================================================
   Journal
   ========================================================= */
.journal {
  padding: 120px 0;
  background: var(--linen);
}

.journal-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
}

.article { display: block; color: var(--ink); }

.article__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
}
.article__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  transition: transform var(--t-slow) var(--ease);
}

.article__img--featured { background: linear-gradient(135deg, #C8C2B6 0%, #8B7544 100%); aspect-ratio: 16 / 11; }
.article__img--row1     { background: linear-gradient(135deg, #D4BC8A 0%, #5A4A3A 100%); }
.article__img--row2     { background: linear-gradient(135deg, #888076 0%, #1A1A1A 100%); }
.article__img--row3     { background: linear-gradient(135deg, #F2EFE8 0%, #B89968 100%); }

.article__meta {
  font-size: 18px;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex; gap: 8px; align-items: center;
}
.article__meta .dot { color: var(--sand); }

.article__title {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--ink);
  transition: color var(--t-fast) var(--ease);
}
.article:hover .article__title { color: var(--gold); }

.article__excerpt {
  font-size: 0.95rem;
  color: var(--graphite);
  line-height: 1.7;
  margin: 0 0 20px;
  max-width: 540px;
}

.journal-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article--row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(10,10,10,0.10);
}
.article--row:last-child { border-bottom: 0; padding-bottom: 0; }
.article--row .article__img { margin-bottom: 0; aspect-ratio: 1 / 1; }
.article__title-sm {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
  transition: color var(--t-fast) var(--ease);
}
.article:hover .article__title-sm { color: var(--gold); }

@media (max-width: 900px) {
  .journal-grid { grid-template-columns: 1fr; gap: 56px; }
}

/* =========================================================
   Newsletter
   ========================================================= */
.newsletter {
  padding: 120px 0;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(184,153,104,0.10), transparent 35%),
    radial-gradient(circle at 85% 50%, rgba(184,153,104,0.06), transparent 30%);
  pointer-events: none;
}
.newsletter__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.newsletter__title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  margin-bottom: 18px;
}
.newsletter__sub {
  color: var(--sand);
  font-size: 1rem;
  margin: 0 0 36px;
}

.newsletter__form {
  display: flex;
  gap: 12px;
  max-width: 540px;
  margin: 0 auto;
}
.newsletter__form input {
  flex: 1;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--sand);
  color: var(--cream);
  padding: 18px 4px;
  font-family: var(--ff-body);
  font-size: 18px;
  letter-spacing: 0.05em;
  transition: border-color var(--t-fast) var(--ease);
}
.newsletter__form input::placeholder { color: rgba(200,194,182,0.5); }
.newsletter__form input:focus {
  outline: 0;
  border-bottom-color: var(--gold);
}

.newsletter__note {
  margin: 18px 0 0;
  font-size: 18px;
  letter-spacing: 0.1em;
  min-height: 18px;
  color: var(--gold);
}

@media (max-width: 600px) {
  .newsletter__form { flex-direction: column; }
  .newsletter__form input { padding: 14px 4px; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--cream);
  color: var(--ink);
  padding: 96px 0 40px;
  border-top: 1px solid rgba(10,10,10,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(10,10,10,0.10);
}
.footer-col--brand { min-width: 0; }

/* 頁尾右側情境圖 */
.footer-col--image {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.footer-col--image img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 18px 46px -18px rgba(10,10,10,0.4);
}
@media (max-width: 980px) {
  .footer-col--image { display: none; }   /* 窄螢幕隱藏，避免擠壓 */
}

.brand--footer { display: block; margin-bottom: 36px; }
/* Override: footer 完整版 logo 用 lg 尺寸（不被 .brand__mark 48px 限制）*/
.brand--footer .brand__mark--lg {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 0 0 8px;
}
.brand--footer .brand__mark--lg img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: initial;
  object-position: initial;
}

.footer-tag {
  font-family: var(--ff-italic);
  font-style: italic;
  font-size: 2rem;
  color: var(--graphite);
  margin: 0 0 36px;
  line-height: 1.45;
}
.footer-addr {
  font-style: normal;
  font-size: 18px;
  color: var(--graphite);
  line-height: 2;
}

.footer-col h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--gold-ink);
  margin: 8px 0 26px;
}
.footer-col ul li { margin-bottom: 16px; }
.footer-col ul a {
  font-size: 18px;
  color: var(--graphite);
}
.footer-col ul a:hover { color: var(--ink); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 18px;
  letter-spacing: 0.2em;
  color: var(--stone);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--stone); }
.footer-legal a:hover { color: var(--gold); }
.footer-domain { color: var(--gold-ink); font-weight: 600; letter-spacing: 0.32em; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Toast
   ========================================================= */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  border-left: 2px solid var(--gold);
  padding: 16px 24px;
  font-size: 18px;
  letter-spacing: 0.05em;
  box-shadow: 0 18px 50px -20px rgba(10,10,10,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
  pointer-events: none;
  max-width: 320px;
}
.toast.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  will-change: transform, opacity;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .marquee__track { animation: none; }
  .hero__scroll-line::after { animation: none; }
}

/* ---------- 收藏（我的最愛）：頁首愛心徽章 ---------- */
.icon-btn--wish .wish-count {
  position: absolute;
  top: 2px; right: -2px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  /* 數字徽章：cream 疊在 --gold 上只有 2.58:1，底色換成深金 */
  background: var(--gold-ink);
  color: var(--cream);
  border-radius: 999px;
  font-size: 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform var(--t-med) var(--ease);
}
.icon-btn--wish.has-items .wish-count { transform: scale(1); }
/* 已有收藏時，愛心填滿呈金色 */
.icon-btn--wish.has-items svg { fill: rgba(184,153,104,0.85); color: var(--gold); }

/* =========================================================
   分類區：縮小版型（卡片改為橫向比例、內距與字級同步縮小）
   ========================================================= */
.categories { padding: 84px 0; }

.category-grid { gap: 14px; }

/* 由正方形改為橫向長方形 → 高度明顯降低 */
.cat-card { aspect-ratio: 16 / 10; }

.cat-card__content { padding: 16px 18px; }

.cat-card__num   { font-size: 15px; letter-spacing: 0.18em; }
.cat-card__title { font-size: clamp(1.15rem, 1.7vw, 1.45rem); margin: 0 0 5px; }
.cat-card__desc  { font-size: 15px; line-height: 1.55; margin: 0 0 10px; }
.cat-card__cta   { font-size: 15px; letter-spacing: 0.3em; }
.cat-card:hover .cat-card__cta { letter-spacing: 0.38em; }

/* 寬螢幕排 4 欄，單張再小一點、一次看到更多分類 */
@media (min-width: 1280px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
}

/* 平板：兩欄 */
@media (max-width: 900px) and (min-width: 561px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .category-grid { grid-template-columns: 1fr; }
  .cat-card { aspect-ratio: 16 / 9; }
}

/* =========================================================
   分類區 v2：小尺寸「正方形」卡片 + 全新六色輪替配色
   （放在最後，覆寫上方的舊比例與三色設定）
   ========================================================= */

/* 正方形，但靠增加欄數把每張控制在精巧尺寸 */
.cat-card { aspect-ratio: 1 / 1; }

.category-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (min-width: 1500px) { .category-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1100px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---- 六色輪替：深邃寶石色系，與品牌金相襯 ---- */
.category-grid .cat-card:nth-child(6n+1) {   /* 勃根地酒紅 */
  background: linear-gradient(150deg, #7E3646 0%, #4C1F2B 55%, #29111A 100%);
}
.category-grid .cat-card:nth-child(6n+2) {   /* 森林祖母綠 */
  background: linear-gradient(150deg, #2F6152 0%, #1C3C32 55%, #0E211B 100%);
}
.category-grid .cat-card:nth-child(6n+3) {   /* 午夜靛藍 */
  background: linear-gradient(150deg, #3C4E80 0%, #253052 55%, #131A2F 100%);
}
.category-grid .cat-card:nth-child(6n+4) {   /* 焦糖可可 */
  background: linear-gradient(150deg, #8C6338 0%, #573B1F 55%, #2D1D0F 100%);
}
.category-grid .cat-card:nth-child(6n+5) {   /* 紫檀藕紫 */
  background: linear-gradient(150deg, #613C67 0%, #3D2542 55%, #201325 100%);
}
.category-grid .cat-card:nth-child(6n+6) {   /* 靜謐孔雀藍 */
  background: linear-gradient(150deg, #266064 0%, #163C40 55%, #0B2124 100%);
}

/* 小卡片：內距與字級再收斂，讓正方形版面清爽 */
.cat-card__content { padding: 15px 17px; }
.cat-card__num     { font-size: 14px; letter-spacing: 0.16em; }
.cat-card__title   { font-size: clamp(1.1rem, 1.5vw, 1.35rem); margin: 0 0 5px; }
.cat-card__desc    { font-size: 14.5px; line-height: 1.5; margin: 0 0 8px; }
.cat-card__cta     { font-size: 14px; letter-spacing: 0.26em; }

/* 分類區：桌機固定 5 欄（配合分類的分群配置） */
@media (min-width: 1200px) { .category-grid { grid-template-columns: repeat(5, 1fr); } }

/* =========================================================
   分類區 v3：金 × 銀 雙色交替（金屬拉絲質感）
   放在最後，覆寫前面的六色設定
   ========================================================= */

/* 單數張 — 香檳金 */
.category-grid .cat-card:nth-child(2n+1),
.category-grid .cat-card:nth-child(6n+1),
.category-grid .cat-card:nth-child(6n+3),
.category-grid .cat-card:nth-child(6n+5) {
  background:
    /* 拉絲紋理 */
    repeating-linear-gradient(115deg,
      rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px,
      rgba(0,0,0,0.04) 1px,      rgba(0,0,0,0.04) 3px),
    linear-gradient(150deg, #D4B478 0%, #A8823F 32%, #6E5223 68%, #382709 100%);
}

/* 雙數張 — 鉑銀 */
.category-grid .cat-card:nth-child(2n),
.category-grid .cat-card:nth-child(6n+2),
.category-grid .cat-card:nth-child(6n+4),
.category-grid .cat-card:nth-child(6n+6) {
  background:
    repeating-linear-gradient(115deg,
      rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 1px,
      rgba(0,0,0,0.05) 1px,      rgba(0,0,0,0.05) 3px),
    linear-gradient(150deg, #C3C9CF 0%, #8E969E 32%, #5A626A 68%, #2A2F34 100%);
}

/* 金屬高光：斜向掃過的亮帶，強化「拋光金屬」感 */
.category-grid .cat-card::before {
  background: linear-gradient(115deg,
    transparent 26%,
    rgba(255,255,255,0.34) 44%,
    rgba(255,255,255,0.10) 51%,
    transparent 62%);
  opacity: 0.85;
}
.category-grid .cat-card:hover::before { opacity: 1; }

/* 深色遮罩加重一點，確保白字在淺色金屬上仍清晰 */
.cat-card__overlay {
  background: linear-gradient(180deg,
    rgba(10,10,10,0.42) 0%,
    rgba(10,10,10,0.26) 45%,
    rgba(10,10,10,0.80) 100%);
}
.cat-card:hover .cat-card__overlay {
  background: linear-gradient(180deg,
    rgba(10,10,10,0.58) 0%,
    rgba(10,10,10,0.42) 45%,
    rgba(10,10,10,0.88) 100%);
}

/* 銀色卡的 CTA 改為冷白金，與金色卡做出區隔 */
.category-grid .cat-card:nth-child(2n) .cat-card__cta { color: #EDEFF2; }
.category-grid .cat-card:nth-child(2n):hover .cat-card__cta { color: #FFFFFF; }

/* 金屬底色較淺，遮罩需夠深才能保護卡片上的文字。
   底圖亮度不可控（商品圖可能很淺），所以用「最壞情況」推算遮罩濃度：
   對純白底圖，白字要達 AA 4.5:1，遮罩 alpha 至少需 0.56；
   金色系文字（--champagne）要達 AA，則需約 0.75。取 0.75 以確保任何底圖都安全。 */
.cat-card__overlay {
  background: linear-gradient(180deg,
    rgba(10,10,10,0.75) 0%,
    rgba(10,10,10,0.75) 45%,
    rgba(10,10,10,0.90) 100%);
}
.cat-card:hover .cat-card__overlay {
  background: linear-gradient(180deg,
    rgba(10,10,10,0.82) 0%,
    rgba(10,10,10,0.82) 45%,
    rgba(10,10,10,0.93) 100%);
}

/* ---------- 密碼欄位：顯示／隱藏眼睛 ---------- */
.pwd-wrap { position: relative; display: block; }
.pwd-wrap input[type="password"],
.pwd-wrap input[type="text"] { padding-right: 46px; width: 100%; }

.pwd-eye {
  position: absolute;
  top: 50%; right: 10px;
  transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  padding: 0; border: 0; background: transparent;
  color: #9a948a; cursor: pointer; border-radius: 4px;
  transition: color .18s, background .18s;
}
.pwd-eye:hover  { color: #B89968; background: rgba(184,153,104,0.10); }
.pwd-eye:focus-visible { outline: 2px solid #B89968; outline-offset: 1px; }
.pwd-eye[aria-pressed="true"] { color: #B89968; }
