/* =====================================================================
   TY DRESS COLLECTION — Design System v2.0
   Dark-luxury default · light mode via [data-theme="light"]
===================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #03050b;
  --bg-2: #0b1220;
  --bg-card: rgba(15, 23, 35, 0.72);
  --bg-elevated: #101b2c;
  --ink: #f5e7d9;
  --ink-dim: #b9c6d6;
  --ink-faint: #8a9bb0;
  --gold: #c9a96e;
  --gold-bright: #e0c68c;
  --line: rgba(201, 169, 110, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --danger: #e5484d;
  --success: #46a758;
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .55);
  --shadow-sm: 0 10px 24px -10px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.22, .98, .48, 1);
  --radius: 20px;
}

[data-theme="light"] {
  --bg: #faf7f1;
  --bg-2: #fffdf8;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-elevated: #ffffff;
  --ink: #1d2733;
  --ink-dim: #46566a;
  --ink-faint: #7c8aa0;
  --gold: #a8853f;
  --gold-bright: #c9a96e;
  --line: rgba(168, 133, 63, 0.28);
  --line-soft: rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 30px 60px -24px rgba(30, 30, 40, .18);
  --shadow-sm: 0 10px 24px -12px rgba(30, 30, 40, .12);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: radial-gradient(ellipse at 30% -10%, var(--bg-2), var(--bg) 60%);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}
h1, h2, h3, h4, .serif { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; letter-spacing: -.01em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
::selection { background: var(--gold); color: #03050b; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 99px; }

.container { max-width: 1400px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 44px); }

/* ---------------- announcement ---------------- */
.announce {
  background: linear-gradient(90deg, #14100a, #2b2110, #14100a);
  color: var(--gold-bright);
  text-align: center; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 9px 16px; position: relative; z-index: 1201;
}
[data-theme="light"] .announce { background: linear-gradient(90deg,#f4ead6,#efe0c2,#f4ead6); color:#7c5f26; }

/* ---------------- navbar ---------------- */
.nav-wrap { position: sticky; top: 0; z-index: 1200; padding: 14px clamp(12px, 3vw, 28px); background: linear-gradient(var(--bg) 40%, transparent); }
.navbar {
  max-width: 1400px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 13px 26px; border-radius: 99px;
  background: color-mix(in srgb, var(--bg-card) 82%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: all .4s var(--ease);
}
.navbar.scrolled { box-shadow: var(--shadow-lg); }
.logo {
  font-family: 'Playfair Display', serif; font-size: 1.45rem; font-weight: 700; white-space: nowrap;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo small { display:block; font-family:'Inter'; font-size:.55rem; letter-spacing:.42em; color:var(--ink-faint); -webkit-text-fill-color: var(--ink-faint); font-weight:500; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  padding: 9px 16px; border-radius: 99px; font-size: .86rem; font-weight: 500; color: var(--ink-dim);
  transition: all .25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: rgba(201,169,110,.1); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: transparent; border: none; color: var(--ink-dim);
  transition: all .25s var(--ease); font-size: 1rem;
}
.icon-btn:hover { background: rgba(201,169,110,.12); color: var(--gold-bright); transform: translateY(-2px); }
.icon-btn .badge-dot {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px; background: var(--gold); color: #10131a;
  font-size: .66rem; font-weight: 700; display: grid; place-items: center;
}
.hamburger { display: none; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 2100; background: var(--bg); padding: 90px 32px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateX(-102%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s;
}
.mobile-menu.open { transform: none; visibility: visible; }
.mobile-menu a { font-family: 'Playfair Display', serif; font-size: 1.6rem; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }

/* search */
.search-shell { position: relative; flex: 1; max-width: 380px; }
.search-input {
  width: 100%; padding: 11px 18px 11px 42px; border-radius: 99px;
  background: rgba(127,127,127,.08); border: 1px solid var(--line-soft);
  color: var(--ink); outline: none; font-size: .88rem; transition: all .3s;
}
.search-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,110,.15); }
.search-shell > svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 16px; opacity: .55; }
.search-suggest {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 50;
  background: var(--bg-elevated); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden; display: none;
}
.search-suggest.open { display: block; }
.search-suggest a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; transition: background .2s; }
.search-suggest a:hover { background: rgba(201,169,110,.08); }
.search-suggest img { width: 44px; height: 56px; object-fit: cover; border-radius: 8px; }
.search-suggest .sn { font-size: .87rem; font-weight: 600; }
.search-suggest .sp { font-size: .78rem; color: var(--gold); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 30px; border-radius: 99px; border: none;
  font-weight: 600; font-size: .92rem; letter-spacing: .02em;
  transition: all .35s var(--ease); white-space: nowrap;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #131007; box-shadow: 0 10px 24px -8px rgba(201,169,110,.45); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -10px rgba(201,169,110,.55); filter: brightness(1.06); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-3px); }
.btn-danger { background: rgba(229,72,77,.12); color: var(--danger); border: 1px solid rgba(229,72,77,.3); }
.btn-sm { padding: 9px 18px; font-size: .8rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------------- hero ---------------- */
.hero {
  position: relative; min-height: min(88vh, 860px); display: grid; place-items: center;
  overflow: hidden; isolation: isolate; text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(3,5,11,.42) 0%, rgba(3,5,11,.28) 45%, var(--bg) 100%);
}
.hero-kicker { font-size: .78rem; letter-spacing: .5em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 22px; animation: fadeUp .9s .1s var(--ease) both; }
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem); line-height: 1.05; color: #fff; max-width: 900px;
  text-wrap: balance; animation: fadeUp .9s .25s var(--ease) both;
  text-shadow: 0 8px 40px rgba(0,0,0,.45);
}
.hero h1 em { font-style: italic; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { margin: 22px auto 34px; max-width: 520px; color: #d9dee8; font-weight: 300; animation: fadeUp .9s .4s var(--ease) both; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: fadeUp .9s .55s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.marquee { overflow: hidden; border-block: 1px solid var(--line-soft); padding: 18px 0; }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 30s linear infinite; }
.marquee span { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.05rem; color: var(--ink-faint); white-space: nowrap; }
.marquee i { color: var(--gold); font-size: .6rem; margin-right: 64px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- sections ---------------- */
section.block { padding: clamp(64px, 9vw, 110px) 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 44px; flex-wrap: wrap; }
.kicker { font-size: .74rem; letter-spacing: .38em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.sec-title { font-size: clamp(1.9rem, 4vw, 2.9rem); }

/* category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5;
  border: 1px solid var(--line-soft); transition: all .5s var(--ease);
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.cat-card:hover img { transform: scale(1.07); }
.cat-card::after { content:''; position:absolute; inset:0; background:linear-gradient(180deg, transparent 35%, rgba(3,5,11,.85)); }
.cat-body { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: 26px; }
.cat-body h3 { font-size: 1.55rem; color: #fff; }
.cat-body p { font-size: .84rem; color: #cfd6e0; margin-top: 4px; }
.cat-body .go { display:inline-flex; align-items:center; gap:8px; margin-top: 12px; font-size:.8rem; letter-spacing:.12em; text-transform:uppercase; color: var(--gold-bright); font-weight:600; transition: gap .3s; }
.cat-card:hover .go { gap: 14px; }

/* ---------------- product cards ---------------- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 24px; }
.p-card {
  background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; transition: all .45s var(--ease); display: flex; flex-direction: column;
  backdrop-filter: blur(8px);
}
.p-card:hover { transform: translateY(-8px); border-color: var(--line); box-shadow: var(--shadow-lg); }
.p-media { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg-2); }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.p-card:hover .p-media img { transform: scale(1.06); }
.p-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(3,5,11,.75); color: var(--gold-bright); backdrop-filter: blur(6px);
  border: 1px solid var(--line); padding: 5px 13px; border-radius: 99px;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
}
.p-sale { position:absolute; top: 14px; right: 14px; z-index: 2; background: var(--danger); color: #fff; padding: 5px 11px; border-radius: 99px; font-size: .68rem; font-weight: 700; }
.p-wish {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(3,5,11,.55); color: #fff;
  border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(6px);
  transition: all .3s var(--ease); font-size: .95rem;
}
.p-wish:hover { background: var(--gold); color: #131007; transform: scale(1.12); }
.p-wish.active { background: var(--gold); color: #131007; }
.p-quick {
  position: absolute; left: 12px; right: 62px; bottom: 12px; z-index: 3;
  background: rgba(3,5,11,.72); color: #f5e7d9; border: 1px solid var(--line);
  backdrop-filter: blur(10px); padding: 10px 0; border-radius: 99px; font-weight: 600; font-size: .82rem;
  opacity: 0; transform: translateY(10px); transition: all .35s var(--ease);
}
.p-card:hover .p-quick { opacity: 1; transform: none; }
.p-info { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-name { font-family: 'Playfair Display', serif; font-size: 1.08rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.p-cat { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.p-price-row { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 10px; }
.p-price { font-weight: 700; font-size: 1.18rem; color: var(--gold); }
.p-compare { color: var(--ink-faint); text-decoration: line-through; font-size: .88rem; }
.p-stars { color: var(--gold); font-size: .78rem; letter-spacing: 2px; }
.p-stock-low { color: var(--danger); font-size: .74rem; font-weight: 600; }
.p-stock-ok { color: var(--success); font-size: .74rem; }

/* skeleton shimmer */
.skeleton { position: relative; overflow: hidden; background: var(--bg-card); border-radius: var(--radius); }
.skeleton::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,.09), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%);} to { transform: translateX(100%);} }

/* ---------------- cart drawer ---------------- */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(2,4,9,.6); backdrop-filter: blur(4px);
  z-index: 2000; opacity: 0; visibility: hidden; transition: all .4s var(--ease);
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: -440px; width: min(430px, 94vw); height: 100dvh; z-index: 2001;
  background: var(--bg-elevated); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; transition: right .5s var(--ease);
  box-shadow: var(--shadow-lg);
}
.drawer.open { right: 0; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line-soft); }
.drawer-head h3 { font-size: 1.25rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px; display: flex; flex-direction: column; gap: 16px; }
.drawer-foot { padding: 20px 24px 26px; border-top: 1px solid var(--line-soft); }
.ship-progress { margin-bottom: 16px; }
.ship-progress p { font-size: .78rem; color: var(--ink-dim); margin-bottom: 8px; }
.ship-progress .bar { height: 6px; border-radius: 99px; background: rgba(127,127,127,.15); overflow: hidden; }
.ship-progress .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); border-radius: 99px; transition: width .6s var(--ease); }

.c-line { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; animation: fadeUp .35s var(--ease); }
.c-line img { width: 74px; height: 92px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-soft); }
.c-line .cn { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.c-line .cm { font-size: .76rem; color: var(--ink-faint); margin-top: 3px; }
.c-line .cp { color: var(--gold); font-weight: 700; font-size: .92rem; margin-top: 6px; }
.qty-stepper { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line-soft); border-radius: 99px; padding: 4px 10px; }
.qty-stepper button { background: none; border: none; color: var(--gold); font-size: 1rem; width: 22px; }
.qty-stepper span { font-size: .88rem; min-width: 18px; text-align: center; }
.c-remove { background: none; border: none; color: var(--ink-faint); font-size: .85rem; transition: color .2s; align-self: start; }
.c-remove:hover { color: var(--danger); }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--ink-faint); }
.cart-empty i { font-size: 2.6rem; color: var(--line); display: block; margin-bottom: 18px; }
.t-row { display: flex; justify-content: space-between; font-size: .9rem; color: var(--ink-dim); padding: 4px 0; }
.t-row.total { font-size: 1.25rem; font-weight: 700; color: var(--ink); border-top: 1px solid var(--line-soft); margin-top: 10px; padding-top: 14px; }
.t-row .gold { color: var(--gold); }

/* ---------------- forms ---------------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.input, select.input, textarea.input {
  width: 100%; padding: 13px 16px; border-radius: 14px;
  background: rgba(127,127,127,.07); border: 1px solid var(--line-soft);
  color: var(--ink); outline: none; transition: all .3s var(--ease);
}
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,110,.14); background: transparent; }
textarea.input { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.alert { padding: 13px 18px; border-radius: 12px; font-size: .88rem; margin-bottom: 16px; }
.alert-err { background: rgba(229,72,77,.1); border: 1px solid rgba(229,72,77,.35); color: #ff9ba0; }
[data-theme="light"] .alert-err { color: #a32830; }
.alert-ok { background: rgba(70,167,88,.1); border: 1px solid rgba(70,167,88,.35); color: #7fd68d; }
[data-theme="light"] .alert-ok { color: #207032; }

/* ---------------- toasts ---------------- */
.toast-zone { position: fixed; bottom: 26px; left: 50%; translate: -50% 0; z-index: 3000; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  background: var(--bg-elevated); color: var(--ink); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); padding: 13px 26px; border-radius: 99px; font-size: .88rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px; animation: toastIn .45s var(--ease);
}
.toast.err { border-color: rgba(229,72,77,.5); } .toast.ok i { color: var(--success); } .toast.err i { color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
.toast.out { transition: all .4s; opacity: 0; transform: translateY(12px); }

/* ---------------- quick view / modal ---------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2500; background: rgba(2,4,9,.7); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: all .35s var(--ease);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.qv-modal {
  width: min(1020px, 96vw); max-height: 90vh; overflow: auto;
  background: var(--bg-elevated); border: 1px solid var(--line); border-radius: 26px;
  display: grid; grid-template-columns: 1fr 1fr; transform: scale(.95); transition: transform .35s var(--ease);
}
.modal-overlay.open .qv-modal { transform: scale(1); }
.qv-media img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.qv-body { padding: 36px 34px; display: flex; flex-direction: column; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 4px; }
.swatch {
  padding: 8px 16px; border-radius: 99px; font-size: .8rem; font-weight: 500;
  border: 1px solid var(--line-soft); background: transparent; color: var(--ink-dim); transition: all .25s;
}
.swatch.active, .swatch:hover { border-color: var(--gold); color: var(--gold-bright); background: rgba(201,169,110,.08); }
.sizes-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 18px; }
.size-chip {
  min-width: 46px; padding: 9px 12px; text-align: center; border-radius: 12px; font-size: .84rem; font-weight: 600;
  border: 1px solid var(--line-soft); background: transparent; color: var(--ink-dim); transition: all .25s;
}
.size-chip.active, .size-chip:hover { border-color: var(--gold); color: var(--gold-bright); background: rgba(201,169,110,.08); }

/* ---------------- product page ---------------- */
.pdp-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.pdp-gallery { position: sticky; top: 110px; }
.pdp-main-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 26px; border: 1px solid var(--line-soft); }
.pdp-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pdp-thumbs img { width: 72px; height: 90px; object-fit: cover; border-radius: 12px; cursor: pointer; border: 2px solid transparent; transition: all .3s; opacity: .65; }
.pdp-thumbs img:hover { opacity: 1; }
.pdp-thumbs img.active { border-color: var(--gold); opacity: 1; }
.pdp-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 6px 0 10px; }
.pdp-price { font-size: 1.9rem; color: var(--gold); font-weight: 700; display: flex; align-items: baseline; gap: 14px; }
.pdp-price s { font-size: 1.05rem; color: var(--ink-faint); font-weight: 400; }
.pdp-desc { color: var(--ink-dim); line-height: 1.75; font-weight: 300; margin: 18px 0 22px; }
.pdp-meta { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 14px; margin: 22px 0; }
.meta-box { background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: 14px; padding: 13px 16px; }
.meta-box b { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; font-weight: 600; }
.acc-item { border-bottom: 1px solid var(--line-soft); }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 17px 4px; background: none; border: none; color: var(--ink); font-size: .95rem; font-weight: 600; }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.acc-panel > div { padding: 0 4px 18px; color: var(--ink-dim); font-weight: 300; line-height: 1.7; font-size: .92rem; }
.sticky-buy-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1500;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.sticky-buy-bar.show { transform: none; }

/* reviews */
.review-card { background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: 18px; padding: 22px; }
.review-card .who { font-weight: 700; font-size: .92rem; }
.review-card .when { color: var(--ink-faint); font-size: .76rem; }
.stars { color: var(--gold); letter-spacing: 3px; }

/* breadcrumbs + tables + misc */
.crumbs { display: flex; gap: 10px; font-size: .8rem; color: var(--ink-faint); padding: 26px 0 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--gold); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 18px; }
table.lux { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.lux th { text-align: left; padding: 14px 18px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px solid var(--line-soft); }
table.lux td { padding: 15px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.lux tr:last-child td { border-bottom: none; }
.status-pill { padding: 4px 12px; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.st-pending   { background: rgba(234,179,8,.12);  color: #eab308; }
.st-paid      { background: rgba(70,167,88,.12);  color: #57c267; }
.st-processing{ background: rgba(59,130,246,.12); color: #6ea8fe; }
.st-shipped   { background: rgba(168,85,247,.14); color: #c084fc; }
.st-delivered { background: rgba(70,167,88,.18);  color: #57c267; }
.st-cancelled,.st-failed { background: rgba(229,72,77,.12); color: #f2777b; }

/* pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.page-link { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-soft); color: var(--ink-dim); font-size: .88rem; transition: all .25s; }
.page-link:hover, .page-link.active { border-color: var(--gold); color: var(--gold-bright); background: rgba(201,169,110,.08); }

/* footer */
.footer { border-top: 1px solid var(--line-soft); margin-top: 80px; padding: 70px 0 0; background: linear-gradient(var(--bg-2), var(--bg)); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.foot-grid h4 { font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.foot-grid ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.foot-grid ul a { color: var(--ink-dim); font-size: .9rem; transition: color .2s; }
.foot-grid ul a:hover { color: var(--gold-bright); }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-soft); display: grid; place-items: center; color: var(--ink-dim); transition: all .3s; }
.social-row a:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-3px); }
.newsletter-row { display: flex; gap: 10px; }
.newsletter-row input { flex: 1; }
.foot-bottom { margin-top: 54px; border-top: 1px solid var(--line-soft); padding: 22px 0; text-align: center; color: var(--ink-faint); font-size: .8rem; }

/* cookie banner */
.cookie-bar {
  position: fixed; bottom: 22px; left: 22px; z-index: 2800; max-width: 380px;
  background: var(--bg-elevated); border: 1px solid var(--line); border-radius: 20px;
  padding: 20px 22px; box-shadow: var(--shadow-lg); font-size: .84rem; color: var(--ink-dim);
  transform: translateY(140%); transition: transform .6s var(--ease);
}
.cookie-bar.show { transform: none; }

/* reveal on scroll — progressive enhancement: only hides when JS is active */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .pdp-grid { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links, .search-shell { display: none; }
  .hamburger { display: grid; }
  .qv-modal { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .p-info { padding: 14px; }
  .p-name { font-size: .95rem; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.4rem; }
}

@media print { .nav-wrap, .footer, .drawer, .toast-zone { display: none !important; } }

/* =====================================================================
   v2.1 — EDITORIAL POLISH LAYER
   Sharper radii, film grain, luxury ornaments, refined rhythm
===================================================================== */

/* buttons: editorial radius (nav keeps pills) */
.btn { border-radius: 14px; }
.btn-gold { box-shadow: 0 12px 28px -10px rgba(201,169,110,.5); }
.navbar, .search-input, .newsletter-row input { border-radius: 99px; }
.p-card, .cat-card { border-radius: 16px; }

/* film grain + vignette for hero depth */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 1; }
[data-theme="light"] .hero::after {
  background: linear-gradient(180deg, rgba(20,16,8,.5) 0%, rgba(20,16,8,.32) 45%, var(--bg) 100%);
}

/* ornament divider — the couture hairline */
.ornament { display: flex; align-items: center; gap: 18px; color: var(--gold); margin: 0 auto; max-width: 420px; opacity: .7; }
.ornament::before, .ornament::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.ornament i { font-size: .55rem; }

/* product card refinements */
.p-card:hover .p-media img { transform: scale(1.05); }
.p-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(3,5,11,.38));
  opacity: 0; transition: opacity .45s var(--ease);
}
.p-card:hover .p-media::after { opacity: 1; }
.p-name { transition: color .25s; }
.p-card:hover .p-name { color: var(--gold-bright); }
.p-quick { border-radius: 99px; left: 14px; right: auto; padding: 10px 22px; }
.p-wish:not(.btn) { top: auto; bottom: 14px; right: 14px; width: 40px; height: 40px; }
.p-sale { border-radius: 8px; top: 12px; right: 12px; }
.p-badge { border-radius: 8px; backdrop-filter: blur(8px); letter-spacing: .16em; font-weight: 600; font-size: .64rem; padding: 6px 12px; }

/* kicker refinement */
.kicker { display: inline-flex; align-items: center; gap: 12px; }
.kicker::before { content: ''; width: 26px; height: 1px; background: var(--gold); display: inline-block; }

/* section titles get italic accent support */
.sec-title em { font-style: italic; color: var(--gold); }

/* forms focus ring a11y */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* drawer & modal polish */
.drawer { border-left: 1px solid var(--line); }
.qv-modal { border-radius: 20px; }

/* footer newsletter button square-ish */
.newsletter-row .btn { border-radius: 99px; }

/* marquee pause on hover */
.marquee:hover .marquee-track { animation-play-state: paused; }

/* image rendering */
.p-media img, .cat-card img, .pdp-main-img { image-rendering: auto; }

/* scroll-margin for anchors */
section[id] { scroll-margin-top: 110px; }

/* reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   v2.2 — RESPONSIVE FIXES
===================================================================== */
.split-7-5 {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(22px, 3.5vw, 40px);
  align-items: start;
}
.split-2-1 {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 32px);
  align-items: start;
}
.cart-page-line {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 14px;
}
.checkout-summary { position: sticky; top: 110px; }
.cart-summary { position: sticky; top: 110px; }

@media (max-width: 960px) {
  /* hide the promo announcement strip on small screens */
  .announce { display: none; }

  /* collapse all split layouts */
  .split-7-5, .split-2-1 { grid-template-columns: 1fr; }
  .checkout-summary, .cart-summary { position: static; }

  /* shop filters become a normal block above the grid */
  .shop-grid { gap: 18px !important; }
  .shop-filters { position: static !important; }
  .shop-filters form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 14px; align-items: end; }
  .shop-filters .btn-block { grid-column: span 1; }

  /* cart lines stack tighter */
  .c-line { grid-template-columns: 64px 1fr auto; gap: 10px; }
  .c-line img { width: 64px; height: 82px; }

  /* checkout payment box stacks */
  .qv-body, .panel { padding: 18px; }

  /* footer newsletter stacks */
  .newsletter-row { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding-inline: 14px; }
  section.block { padding-block: 44px; }
  .sec-head { margin-bottom: 26px; }
  .btn { padding: 12px 22px; font-size: .88rem; }
  .pdp-meta { grid-template-columns: 1fr 1fr; }
  table.lux th, table.lux td { padding: 10px 10px; font-size: .82rem; }
}

/* lookbook editorial split */
.lookbook { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.lookbook-media { position: relative; }
.lookbook-media img.main { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 18px; }
.lookbook-media img.accent {
  position: absolute; width: 46%; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px;
  right: -6%; bottom: -8%; border: 6px solid var(--bg); box-shadow: var(--shadow-lg);
}
.lookbook-num {
  font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(3.4rem, 7vw, 5.6rem);
  color: transparent; -webkit-text-stroke: 1px var(--line); line-height: 1;
}
[data-theme="light"] .lookbook-num { -webkit-text-stroke: 1px rgba(168,133,63,.4); }

@media (max-width: 900px) {
  .lookbook { grid-template-columns: 1fr; }
  .lookbook-media img.accent { right: 0; }
}
