/* =====================================================================
   Klyvoro storefront — mobile-first stylesheet
   ===================================================================== */
:root {
  --ink: #151412;
  --ink-2: #3b3833;
  --muted: #7b756c;
  --line: #e9e3d8;
  --line-2: #f1ece3;
  --bg: #ffffff;
  --cream: #faf6ef;
  --cream-2: #f4ede1;
  --gold: #b8893b;
  --gold-2: #d4a650;
  --gold-dark: #8f6a2b;
  --sale: #b42318;
  --ok: #2f7d4f;
  --warn: #b26b00;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(21, 20, 18, .08);
  --shadow-lg: 0 24px 60px rgba(21, 20, 18, .18);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-h: 64px;
  --wrap: 1320px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  padding-bottom: 64px; /* mobile tab bar */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(30px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
::selection { background: var(--gold-2); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 10px; display: inline-block; }
.section { padding: 44px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.divider-title { text-align: center; margin-bottom: 26px; }
.divider-title h2 { margin: 0; }
.divider-title p { color: var(--muted); margin: 6px 0 0; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px;
  border-radius: var(--radius); font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); transition: background .2s, color .2s, border-color .2s, transform .1s;
  white-space: nowrap;
}
.btn:hover { background: #000; }
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--cream); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 12px; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.link { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; font-size: 16px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23151412' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 137, 59, .15); }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin-top: 2px; flex: none; }
.form-msg { font-size: 14px; margin-top: 10px; }
.form-msg.error { color: var(--sale); }
.form-msg.ok { color: var(--ok); }

/* ---------- announcement & header ---------- */
.announce { background: var(--ink); color: var(--gold-2); font-size: 12px; letter-spacing: .08em; text-align: center; padding: 8px var(--gutter); }
.announce span { color: #fff; opacity: .9; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.logo { display: flex; align-items: center; gap: 8px; justify-self: center; }
.logo img { width: 34px; height: 34px; object-fit: contain; }
.logo-word { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .14em; line-height: 1; }
.logo-word b { color: var(--gold); font-weight: 600; }
.header-left, .header-right { display: flex; align-items: center; gap: 2px; }
.header-right { justify-content: flex-end; }
.icon-btn { position: relative; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .2s; }
.icon-btn:hover { background: var(--cream); }
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.badge-count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.badge-count:empty, .badge-count[data-n="0"] { display: none; }
.nav { display: none; }
.hide-mobile { display: none !important; }

/* mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); background: #fff; z-index: 100; transform: translateX(-100%); transition: transform .3s ease; display: flex; flex-direction: column; overflow-y: auto; }
.drawer.right { left: auto; right: 0; transform: translateX(100%); }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 22px; }
.drawer-links a { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--line-2); font-size: 15px; letter-spacing: .04em; }
.drawer-links a.sale { color: var(--sale); }
.drawer-foot { margin-top: auto; padding: 18px 20px; background: var(--cream); font-size: 14px; }
.drawer-foot a { display: block; padding: 6px 0; }

/* search overlay */
.search-panel { position: fixed; inset: 0; background: #fff; z-index: 120; display: none; flex-direction: column; }
.search-panel.open { display: flex; }
.search-bar { display: flex; align-items: center; gap: 8px; padding: 12px var(--gutter); border-bottom: 1px solid var(--line); }
.search-bar input { flex: 1; border: 0; font-size: 18px; padding: 10px 4px; outline: none; min-width: 0; }
.search-results { overflow-y: auto; padding: 16px var(--gutter) 40px; }
.search-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.search-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.search-item img { width: 56px; height: 70px; object-fit: cover; border-radius: 4px; background: var(--cream); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; background: #fff; transition: all .2s; }
.chip:hover, .chip.active { border-color: var(--ink); background: var(--ink); color: #fff; }

/* bottom tab bar (mobile) */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); height: 62px; padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; letter-spacing: .04em; color: var(--muted); position: relative; }
.tabbar a.active { color: var(--ink); }
.tabbar a.active::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--gold); }
.tabbar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.tabbar .badge-count { top: 6px; right: calc(50% - 22px); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); }
.hero-track { display: flex; transition: transform .7s cubic-bezier(.7, 0, .3, 1); }
.hero-slide { position: relative; flex: 0 0 100%; height: min(78vh, 620px); min-height: 440px; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .15) 55%, rgba(0, 0, 0, .05) 100%); }
.hero-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: 56px; color: #fff; }
.hero-copy .eyebrow { color: var(--gold-2); }
.hero-copy h1 { color: #fff; max-width: 680px; font-size: clamp(36px, 7vw, 76px); font-weight: 500; }
.hero-copy p { max-width: 520px; font-size: 16px; opacity: .92; margin-bottom: 22px; }
.hero-dots { position: absolute; z-index: 3; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 28px; height: 3px; background: rgba(255, 255, 255, .45); border-radius: 2px; transition: background .3s, width .3s; }
.hero-dots button.active { background: var(--gold-2); width: 44px; }

/* trust strip */
.trust { background: var(--cream); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 18px 0; }
.trust-item { display: flex; gap: 10px; align-items: center; font-size: 13px; line-height: 1.3; }
.trust-item svg { width: 28px; height: 28px; flex: none; stroke: var(--gold); fill: none; stroke-width: 1.3; }
.trust-item b { display: block; font-weight: 500; font-size: 13.5px; }

/* category tiles */
.cat-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.cat-scroller::-webkit-scrollbar { display: none; }
.cat-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; aspect-ratio: 4 / 5; background: var(--cream); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 12px; color: #fff; font-family: var(--serif); font-size: 21px; font-weight: 600; background: linear-gradient(0deg, rgba(0, 0, 0, .65), transparent); }
.cat-tile small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; font-weight: 400; }

/* shop by gender */
.gender-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.gender-card { position: relative; aspect-ratio: 16 / 11; border-radius: var(--radius); overflow: hidden; display: block; }
.gender-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gender-card:hover img { transform: scale(1.04); }
.gender-card div { position: absolute; inset: auto 0 0 0; padding: 22px; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .6), transparent); }
.gender-card h3 { color: #fff; font-size: 30px; margin: 0 0 4px; }
.gender-card span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid #fff; }

/* tabs (home product rails) */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; justify-content: flex-start; }
.tabs::-webkit-scrollbar { display: none; }

/* ---------- product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--cream); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .4s; }
.card-media img.alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-media img:first-child { transform: scale(1.04); }
.card:hover .card-media img.alt { opacity: 1; }
.card-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.tag { display: inline-block; padding: 3px 8px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; border-radius: 3px; background: #fff; color: var(--ink); }
.tag.dark { background: var(--ink); color: #fff; }
.tag.sale { background: var(--sale); color: #fff; }
.tag.gold { background: var(--gold); color: #fff; }
.wish-btn { position: absolute; top: 8px; right: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); transition: transform .15s; }
.wish-btn:active { transform: scale(.88); }
.wish-btn svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.6; }
.wish-btn.on svg { fill: var(--sale); stroke: var(--sale); }
.soldout { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .55); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; z-index: 1; }
.card-body { padding: 10px 2px 0; }
.card-cat { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.card-title { font-size: 14.5px; font-weight: 400; margin: 0 0 4px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price b { font-weight: 600; font-size: 15px; }
.price s { color: var(--muted); font-size: 13px; }
.price .off { color: var(--ok); font-size: 12.5px; font-weight: 500; }
.stars { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); margin-top: 3px; }
.stars i { font-style: normal; color: var(--gold); letter-spacing: 1px; }

/* skeletons */
.skel { background: linear-gradient(90deg, var(--line-2) 25%, var(--cream) 37%, var(--line-2) 63%); background-size: 400% 100%; animation: skel 1.3s ease infinite; border-radius: var(--radius); }
@keyframes skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skel-card .card-media { background: none; }

/* promo banner */
.promo { display: grid; grid-template-columns: 1fr; background: var(--cream); border-radius: var(--radius); overflow: hidden; }
.promo img { width: 100%; height: 300px; object-fit: cover; object-position: top; }
.promo-copy { padding: 30px 22px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.promo-copy p { color: var(--ink-2); }

/* offers strip */
.offers { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.offers::-webkit-scrollbar { display: none; }
.offer { border: 1px dashed var(--gold); border-radius: var(--radius); padding: 16px; background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.offer code { font-family: var(--sans); font-weight: 600; letter-spacing: .12em; color: var(--gold-dark); font-size: 16px; }
.offer p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

/* newsletter */
.newsletter { background: var(--ink); color: #fff; text-align: center; padding: 48px 0; }
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255, 255, 255, .7); }
.newsletter form { display: flex; gap: 8px; max-width: 460px; margin: 18px auto 0; flex-direction: column; }
.newsletter .input { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.newsletter .input::placeholder { color: rgba(255, 255, 255, .5); }

/* ---------- footer ---------- */
.footer { background: #0e0d0c; color: rgba(255, 255, 255, .72); font-size: 14px; padding: 44px 0 20px; }
.footer h4 { font-family: var(--sans); color: #fff; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 18px; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .logo-word { color: #fff; font-size: 28px; }
.footer-brand p { margin-top: 12px; max-width: 340px; }
.footer a { display: block; padding: 4px 0; transition: color .2s; }
.footer a:hover { color: var(--gold-2); }
.footer .contact-mail { color: var(--gold-2); }
.socials { display: flex; gap: 10px; margin-top: 12px; }
.socials a { width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0; }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 18px; display: flex; flex-direction: column; gap: 12px; font-size: 12.5px; }
.pay-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-icons span { border: 1px solid rgba(255, 255, 255, .2); border-radius: 4px; padding: 3px 8px; font-size: 11px; letter-spacing: .06em; }

/* ---------- breadcrumbs / page head ---------- */
.crumbs { font-size: 12.5px; color: var(--muted); padding: 14px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: var(--ink); }
.page-head { background: var(--cream); padding: 30px 0 26px; text-align: center; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0; font-size: clamp(30px, 5vw, 46px); }
.page-head p { color: var(--muted); margin: 6px 0 0; }

/* ---------- shop ---------- */
.shop-layout { display: grid; grid-template-columns: 1fr; gap: 26px; padding-bottom: 50px; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; margin-bottom: 14px; border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); background: #fff; z-index: 20; }
.shop-toolbar .count { font-size: 13px; color: var(--muted); }
.toolbar-actions { display: flex; gap: 8px; }
.filters { display: none; }
.filter-group { border-bottom: 1px solid var(--line); padding: 16px 0; }
.filter-group h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
.filter-list { display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow-y: auto; }
.filter-list .check span { flex: 1; }
.filter-list .check small { color: var(--muted); }
.size-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.size-pill { min-width: 44px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; background: #fff; transition: all .15s; }
.size-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.price-inputs { display: flex; gap: 8px; align-items: center; }
.price-inputs .input { min-height: 42px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.active-filters .chip { padding: 6px 12px; }
.empty { text-align: center; padding: 60px 16px; }
.empty svg { width: 64px; height: 64px; stroke: var(--gold); fill: none; stroke-width: 1.2; margin: 0 auto 16px; }
.load-more { display: flex; justify-content: center; margin-top: 34px; }
.filter-drawer .drawer-body { padding: 0 20px; flex: 1; overflow-y: auto; }
.filter-drawer .drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: #fff; }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1fr; gap: 22px; padding-bottom: 40px; }
.gallery { position: relative; margin: 0 calc(var(--gutter) * -1); }
.gallery-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--cream); }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; cursor: zoom-in; }
.gallery-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gallery-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(0, 0, 0, .25); }
.gallery-dots i.active { background: var(--ink); }
.thumbs { display: none; }
.pdp-info .card-cat { font-size: 12px; }
.pdp-info h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.pdp-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 12px 0 2px; }
.pdp-price b { font-size: 26px; font-weight: 600; }
.pdp-price s { color: var(--muted); font-size: 17px; }
.pdp-price .off { color: var(--ok); font-weight: 600; font-size: 16px; }
.tax-note { font-size: 12.5px; color: var(--muted); }
.opt-label { display: flex; justify-content: space-between; align-items: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin: 22px 0 10px; }
.opt-label button { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn { position: relative; min-width: 52px; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-size: 14px; transition: all .15s; }
.size-btn:hover { border-color: var(--ink); }
.size-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.size-btn:disabled { color: #bbb; background: #fafafa; cursor: not-allowed; background-image: linear-gradient(to top right, transparent calc(50% - 1px), #ddd, transparent calc(50% + 1px)); }
.size-btn .low { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); background: var(--warn); color: #fff; font-size: 9px; padding: 0 5px; border-radius: 3px; white-space: nowrap; }
.colors { display: flex; flex-wrap: wrap; gap: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); height: 48px; }
.qty button { width: 42px; height: 100%; font-size: 18px; }
.qty input { width: 40px; text-align: center; border: 0; height: 100%; font-size: 15px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pdp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.pdp-actions .wish-big { grid-column: 1 / -1; }
.stock-msg { font-size: 13px; margin-top: 12px; }
.stock-msg.low { color: var(--warn); }
.pdp-perks { display: grid; gap: 10px; margin-top: 22px; padding: 16px; background: var(--cream); border-radius: var(--radius); font-size: 13.5px; }
.pdp-perks div { display: flex; gap: 10px; align-items: center; }
.pdp-perks svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 1.5; flex: none; }
.pin-check { display: flex; gap: 8px; margin-top: 10px; }
.pin-check .input { min-height: 44px; }
.accordion { border-top: 1px solid var(--line); margin-top: 24px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 16px 0; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; display: flex; justify-content: space-between; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 20px; font-weight: 300; line-height: 1; }
.accordion details[open] summary::after { content: '–'; }
.accordion .acc-body { padding: 0 0 18px; color: var(--ink-2); font-size: 14.5px; white-space: pre-line; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 62px; z-index: 55; background: #fff; border-top: 1px solid var(--line); padding: 10px var(--gutter); display: flex; gap: 10px; align-items: center; transform: translateY(150%); transition: transform .3s; box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
.sticky-buy.show { transform: none; }
.sticky-buy .price { flex: 1; }
.reviews-summary { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.reviews-summary .big { font-family: var(--serif); font-size: 48px; line-height: 1; }
.review { border-bottom: 1px solid var(--line); padding: 16px 0; }
.review-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.review p { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { display: none; }
.star-input label { font-size: 28px; color: #d9d3c7; cursor: pointer; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--gold); }

/* zoom lightbox */
.lightbox { position: fixed; inset: 0; z-index: 150; background: #fff; display: none; overflow: auto; }
.lightbox.open { display: block; }
.lightbox img { width: 100%; max-width: 1100px; margin: 0 auto; }
.lightbox .icon-btn { position: fixed; top: 12px; right: 12px; background: #fff; box-shadow: var(--shadow); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 140; display: none; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .45); }
.modal.open { display: flex; }
.modal-box { background: #fff; width: 100%; max-width: 620px; max-height: 88vh; overflow-y: auto; border-radius: 14px 14px 0 0; padding: 22px 20px; animation: up .25s ease; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-head h3 { margin: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { font-weight: 600; background: var(--cream); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 10px 0 60px; }
.cart-item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 96px; height: 120px; object-fit: cover; border-radius: var(--radius); background: var(--cream); }
.cart-item h4 { font-family: var(--sans); font-size: 15px; font-weight: 500; margin: 0 0 4px; }
.cart-item .meta { font-size: 13px; color: var(--muted); }
.cart-item .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.cart-item .qty { height: 38px; }
.cart-item .qty button { width: 34px; }
.cart-item .remove { font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cart-item .err { color: var(--sale); font-size: 12.5px; margin-top: 6px; }
.summary { background: var(--cream); border-radius: var(--radius); padding: 20px; align-self: start; }
.summary h3 { font-size: 24px; }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14.5px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 17px; font-weight: 600; }
.sum-row .save { color: var(--ok); }
.coupon-form { display: flex; gap: 8px; margin: 14px 0 6px; }
.coupon-form .input { min-height: 46px; text-transform: uppercase; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px dashed var(--ok); color: var(--ok); border-radius: var(--radius); font-size: 14px; margin: 12px 0; background: #fff; }
.free-ship-bar { font-size: 13px; margin-bottom: 14px; }
.free-ship-bar .bar { height: 5px; background: var(--line); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.free-ship-bar .bar i { display: block; height: 100%; background: var(--gold); transition: width .4s; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.secure-note svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 10px 0 60px; }
.co-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; background: #fff; }
.co-card h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.co-card h3 .num { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--sans); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; margin-bottom: 10px; transition: border-color .2s, background .2s; }
.pay-opt:has(input:checked) { border-color: var(--ink); background: var(--cream); }
.pay-opt input { width: 18px; height: 18px; accent-color: var(--ink); margin-top: 3px; }
.pay-opt b { display: block; font-weight: 500; }
.pay-opt small { color: var(--muted); }
.pay-opt.disabled { opacity: .5; pointer-events: none; }
.mini-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini-item img { width: 54px; height: 68px; object-fit: cover; border-radius: 4px; }
.mini-item .grow { flex: 1; min-width: 0; }
.mini-item .meta { font-size: 12.5px; color: var(--muted); }
.mobile-pay-bar { position: fixed; bottom: 62px; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px var(--gutter); display: flex; align-items: center; gap: 12px; z-index: 55; }
.mobile-pay-bar .grow { flex: 1; }
.mobile-pay-bar b { font-size: 18px; display: block; }

/* success, track, account */
.success-box { max-width: 640px; margin: 40px auto; text-align: center; }
.success-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.success-icon svg { width: 38px; height: 38px; stroke: var(--ok); fill: none; stroke-width: 2; }
.order-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: left; margin-top: 24px; }
.timeline { display: flex; justify-content: space-between; position: relative; margin: 26px 0 10px; }
.timeline::before { content: ''; position: absolute; top: 13px; left: 8%; right: 8%; height: 2px; background: var(--line); }
.timeline .step { position: relative; flex: 1; text-align: center; font-size: 11.5px; color: var(--muted); }
.timeline .step i { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; font-style: normal; font-size: 13px; }
.timeline .step.done { color: var(--ink); }
.timeline .step.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--cream-2); color: var(--ink-2); }
.status-pill.delivered, .status-pill.paid { background: #e3f3e8; color: var(--ok); }
.status-pill.shipped { background: #e6eefb; color: #2459a8; }
.status-pill.cancelled, .status-pill.failed, .status-pill.returned { background: #fbe7e5; color: var(--sale); }
.status-pill.pending, .status-pill.placed { background: #fff3dc; color: var(--warn); }
.auth-box { max-width: 440px; margin: 30px auto 60px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.seg button { padding: 13px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.seg button.active { background: var(--ink); color: #fff; }
.account-layout { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 20px 0 60px; }
.account-nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.account-nav button { white-space: nowrap; }
.acc-order { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.acc-order-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 14px; margin-bottom: 10px; }
.acc-order-imgs { display: flex; gap: 8px; overflow-x: auto; }
.acc-order-imgs img { width: 54px; height: 68px; object-fit: cover; border-radius: 4px; flex: none; }

/* content pages */
.prose { max-width: 760px; margin: 0 auto; padding: 36px 0 60px; font-size: 16px; color: var(--ink-2); }
.prose h2 { font-size: 28px; color: var(--ink); margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 36px 0 60px; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); align-items: flex-start; }
.contact-card svg { width: 26px; height: 26px; stroke: var(--gold); fill: none; stroke-width: 1.4; flex: none; }
.contact-card b { display: block; font-weight: 500; }
.contact-card a { color: var(--gold-dark); }
.merchant-hero { background: linear-gradient(120deg, #151412 0%, #2c2620 100%); color: #fff; padding: 56px 0; }
.merchant-hero h1 { color: #fff; }
.merchant-hero p { color: rgba(255, 255, 255, .78); max-width: 620px; }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.feature { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.feature svg { width: 30px; height: 30px; stroke: var(--gold); fill: none; stroke-width: 1.3; margin-bottom: 10px; }
.feature h3 { font-size: 21px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

/* toast */
.toast-wrap { position: fixed; left: 0; right: 0; bottom: 76px; z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-size: 14px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; pointer-events: auto; animation: up .25s ease; max-width: 480px; }
.toast a { color: var(--gold-2); text-decoration: underline; white-space: nowrap; }
.toast.error { background: var(--sale); }

/* ---------- ≥ 600px ---------- */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 30px 18px; }
  .rail { grid-auto-columns: 31%; gap: 18px; }
  .cat-scroller { grid-auto-columns: 28%; }
  .gender-grid { grid-template-columns: repeat(3, 1fr); }
  .gender-card { aspect-ratio: 3 / 4; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .offers { grid-auto-columns: 46%; }
  .newsletter form { flex-direction: row; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .modal { align-items: center; }
  .modal-box { border-radius: 10px; padding: 28px; }
  .promo { grid-template-columns: 1fr 1fr; }
  .promo img { height: 100%; min-height: 380px; }
  .promo-copy { padding: 44px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- ≥ 1024px (laptop / desktop) ---------- */
@media (min-width: 1024px) {
  :root { --header-h: 76px; --gutter: 32px; }
  body { padding-bottom: 0; font-size: 15.5px; }
  .tabbar, .sticky-buy, .mobile-pay-bar, .hide-desktop { display: none !important; }
  .hide-mobile { display: initial !important; }
  .header-inner { grid-template-columns: auto 1fr auto; gap: 30px; }
  .logo { justify-self: start; }
  .logo img { width: 40px; height: 40px; }
  .logo-word { font-size: 30px; }
  .nav { display: flex; justify-content: center; gap: 4px; }
  .nav a { position: relative; padding: 10px 14px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
  .nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
  .nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
  .nav a.sale { color: var(--sale); }
  .section { padding: 72px 0; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 40px 22px; }
  .rail { grid-auto-columns: calc(25% - 17px); gap: 22px; }
  .cat-scroller { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; gap: 18px; }
  .cat-scroller .cat-tile:nth-child(n+11) { display: none; }
  .hero-slide { height: min(82vh, 720px); }
  .hero-copy { bottom: 90px; }
  .offers { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); }
  .shop-layout { grid-template-columns: 250px 1fr; gap: 40px; }
  .filters { display: block; position: sticky; top: calc(var(--header-h) + 16px); align-self: start; max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding-right: 6px; }
  .shop-toolbar { position: static; }
  .pdp { grid-template-columns: 1.15fr 1fr; gap: 56px; padding-top: 6px; }
  .gallery { margin: 0; display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-self: start; position: sticky; top: calc(var(--header-h) + 16px); }
  .gallery-main { order: 2; border-radius: var(--radius); }
  .gallery-dots { display: none; }
  .thumbs { display: flex; flex-direction: column; gap: 10px; order: 1; }
  .thumbs button { border: 1px solid transparent; border-radius: 4px; overflow: hidden; }
  .thumbs button.active { border-color: var(--ink); }
  .thumbs img { width: 84px; aspect-ratio: 4 / 5; object-fit: cover; }
  .pdp-actions { grid-template-columns: 1fr 1fr auto; }
  .pdp-actions .wish-big { grid-column: auto; width: 52px; padding: 0; }
  .pdp-actions .wish-big .lbl { display: none; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr 400px; gap: 48px; }
  .summary { position: sticky; top: calc(var(--header-h) + 20px); padding: 28px; }
  .cart-item { grid-template-columns: 120px 1fr; }
  .cart-item img { width: 120px; height: 150px; }
  .account-layout { grid-template-columns: 220px 1fr; gap: 44px; }
  .account-nav { flex-direction: column; }
  .account-nav button { text-align: left; justify-content: flex-start; }
  .contact-layout { grid-template-columns: 1fr 1.3fr; gap: 56px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .toast-wrap { bottom: 24px; align-items: flex-end; right: 24px; left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* filled heart on the product page wishlist button */
.wish-btn-inline.on svg { fill: var(--sale); stroke: var(--sale); }
.wish-btn-inline svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.empty svg, .feature svg, .trust-item svg { display: block; }
.drawer-links svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 1.6; }
.search-bar > svg { width: 22px; height: 22px; stroke: var(--muted); fill: none; stroke-width: 1.6; flex: none; }
.icon-btn svg, .drawer-head svg { stroke: currentColor; fill: none; }
@media (min-width: 1024px) { .header-right .hide-mobile.icon-btn { display: inline-flex !important; } }
.hero-copy .eyebrow, .hero-copy p { text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
@media (max-width: 1023px) {
  .header .logo img { width: 28px; height: 28px; }
  .header .logo-word { font-size: 21px; letter-spacing: .1em; }
  .header .icon-btn { width: 38px; height: 40px; }
  .header-left, .header-right { gap: 0; }
}
@media (max-width: 360px) { .header .logo img { display: none; } }
