/* =====================================================================
   STAR LAWMAN OUTFITTERS — storefront styles
   Palette: court black + bands ivory + brand orange (#FF6600 from logo)
   ===================================================================== */
:root {
  --orange: #FF6600;
  --orange-600: #E05A00;
  --orange-050: #FFF1E7;
  --ink: #141417;
  --ink-2: #22222A;
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --surface-2: #F3EEE5;
  --text: #17171B;
  --muted: #5F5B55;
  --line: #E4DCCF;
  --line-strong: #CFC4B2;
  --success: #1E7B4C;
  --danger: #B3261E;
  --warning: #9A6200;
  --on-orange: #FFFFFF;
  --header-bg: rgba(250, 248, 244, .92);
  --shadow: 0 1px 2px rgba(20, 20, 23, .06), 0 8px 24px rgba(20, 20, 23, .06);
  --shadow-lg: 0 18px 48px rgba(20, 20, 23, .14);
  --radius: 10px;
  --radius-sm: 6px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --orange: #FF7A1F;
  --orange-600: #FF8F45;
  --orange-050: #2A1A0F;
  --bg: #0F0F12;
  --surface: #17171C;
  --surface-2: #1E1E25;
  --text: #F1ECE3;
  --muted: #A8A196;
  --line: #2C2C35;
  --line-strong: #3B3B46;
  --success: #49C287;
  --danger: #FF7B72;
  --warning: #F0B44C;
  --on-orange: #141417;
  --header-bg: rgba(15, 15, 18, .9);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  --shadow-lg: 0 18px 48px rgba(0,0,0,.5);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --orange: #FF7A1F; --orange-600: #FF8F45; --orange-050: #2A1A0F;
    --bg: #0F0F12; --surface: #17171C; --surface-2: #1E1E25; --text: #F1ECE3; --muted: #A8A196;
    --line: #2C2C35; --line-strong: #3B3B46; --success: #49C287; --danger: #FF7B72; --warning: #F0B44C;
    --on-orange: #141417; --header-bg: rgba(15, 15, 18, .9);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3); --shadow-lg: 0 18px 48px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.muted { color: var(--muted); }
.eyebrow { font: 600 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--orange); margin-bottom: .9rem; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: 0 1.4rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .1s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: var(--orange-600); color: var(--on-orange); }
.btn-dark { background: var(--ink); color: #F6F1E7; }
:root[data-theme="dark"] .btn-dark { background: #F1ECE3; color: var(--ink); }
.btn-dark:hover { color: var(--orange); }
.btn-outline { border-color: var(--line-strong); background: transparent; }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-ghost-light { border-color: rgba(246,241,231,.5); color: #F6F1E7; background: transparent; }
.btn-ghost-light:hover { border-color: var(--orange); color: var(--orange); }
.btn-wa { background: #1FA855; color: #fff; }
.btn-wa:hover { background: #178a45; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 .9rem; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: .85rem; font-weight: 600; }
.field .hint { font-size: .8rem; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: .65rem .85rem; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 22%, transparent); }
.input.is-invalid { border-color: var(--danger); }
.grid-2 { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--ink); color: #D9D2C5; font-size: .8rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 1rem; }
.topbar a { color: #D9D2C5; display: inline-flex; gap: .35rem; align-items: center; }
.topbar a:hover { color: var(--orange); }
.topbar .icon { width: 15px; height: 15px; }
.topbar-links { display: flex; gap: 1.2rem; }
.topbar-msg { display: none; }
@media (min-width: 900px) { .topbar-msg { display: block; } }
@media (max-width: 599px) { .topbar-links a:not(:first-child) { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-main { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 700 1.35rem/1 var(--serif); letter-spacing: .08em; }
.brand-sub { font: 600 .62rem/1 var(--sans); letter-spacing: .38em; color: var(--orange); margin-top: .35rem; }
.header-search { flex: 1; max-width: 520px; margin: 0 auto; position: relative; display: none; }
.header-search input { padding-left: 2.6rem; border-radius: 999px; min-height: 44px; background: var(--surface); }
.header-search .icon { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
@media (min-width: 900px) { .header-search { display: block; } }
.header-actions { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--orange); }
.icon-btn .icon { width: 22px; height: 22px; }
.badge-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--orange); color: var(--on-orange); font: 700 .68rem/18px var(--sans); text-align: center; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
.hide-mobile { display: none !important; }
@media (min-width: 900px) { .hide-mobile { display: inline-grid !important; } .show-mobile { display: none !important; } }

.main-nav { border-top: 1px solid var(--line); display: none; }
@media (min-width: 900px) { .main-nav { display: block; } }
.main-nav > .wrap > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; }
.main-nav li { position: relative; }
.main-nav > .wrap > ul > li > a { display: flex; align-items: center; gap: .25rem; padding: .8rem .7rem; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.main-nav > .wrap > ul > li:first-child > a { padding-left: 0; }
@media (max-width: 1100px) { .main-nav > .wrap > ul > li > a { padding: .8rem .5rem; letter-spacing: .03em; } .main-nav .nav-extra { display: none; } }
.main-nav .caret { width: 14px; height: 14px; }
.mega { position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--orange); box-shadow: var(--shadow-lg); padding: .6rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; border-radius: 0 0 var(--radius) var(--radius); }
.main-nav li:hover > .mega, .main-nav li:focus-within > .mega { opacity: 1; visibility: visible; transform: none; }
.mega a { display: block; padding: .55rem .8rem; border-radius: var(--radius-sm); font-size: .93rem; }
.mega a:hover { background: var(--surface-2); }
.mega .all { font-weight: 600; color: var(--orange); }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); background: var(--surface); transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; padding: 1rem; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { list-style: none; padding: .9rem .2rem; font-weight: 600; display: flex; justify-content: space-between; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer details a, .drawer .drawer-link { display: block; padding: .7rem .8rem; }
.drawer .drawer-link { padding: .9rem .2rem; border-bottom: 1px solid var(--line); font-weight: 600; }
.drawer-search { margin-bottom: 1rem; }

/* Bottom nav (mobile) */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .5rem 0 .45rem; font-size: .68rem; font-weight: 600; color: var(--muted); background: none; border: 0; position: relative; }
.bottom-nav .active, .bottom-nav a:hover { color: var(--orange); }
.bottom-nav .icon { width: 22px; height: 22px; }
.bottom-nav .badge-count { top: 2px; right: calc(50% - 22px); }
body { padding-bottom: 64px; }
@media (min-width: 900px) { .bottom-nav { display: none; } body { padding-bottom: 0; } }

/* ---------- Flash ---------- */
.flash-stack { position: fixed; top: 84px; right: 16px; left: 16px; z-index: 100; display: grid; gap: .5rem; justify-items: end; pointer-events: none; }
.flash { pointer-events: auto; max-width: 420px; width: 100%; padding: .85rem 1rem; border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-lg); border-left: 4px solid var(--orange); font-size: .92rem; display: flex; gap: .7rem; align-items: start; animation: flashIn .25s ease; }
.flash.success { border-color: var(--success); }
.flash.error { border-color: var(--danger); }
.flash button { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1.2rem; line-height: 1; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #F6F1E7; overflow: hidden; }
.hero-slide { position: relative; min-height: clamp(460px, 62vh, 640px); display: none; align-items: center; }
.hero-slide.active { display: flex; animation: fade .6s ease; }
@keyframes fade { from { opacity: .3; } }
.hero-slide picture, .hero-slide picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,23,.92) 0%, rgba(20,20,23,.7) 45%, rgba(20,20,23,.05) 75%); }
@media (max-width: 767px) { .hero-slide::after { background: linear-gradient(180deg, rgba(20,20,23,.35) 0%, rgba(20,20,23,.92) 62%); } .hero-slide { align-items: flex-end; } }
.hero-copy { position: relative; z-index: 2; max-width: 620px; padding: 3rem 0 4rem; }
.hero-copy h1 { color: #FBF8F2; }
.hero-copy p { font-size: 1.08rem; color: #D9D2C5; max-width: 520px; margin-bottom: 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-dots { position: absolute; z-index: 3; bottom: 1.4rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; }
.hero-dots button { width: 28px; height: 4px; border: 0; border-radius: 2px; background: rgba(246,241,231,.35); cursor: pointer; padding: 0; }
.hero-dots button.active { background: var(--orange); }

.marquee { background: var(--orange); color: var(--on-orange); font-weight: 600; font-size: .85rem; letter-spacing: .04em; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 3rem; padding: .65rem 0; animation: marquee 32s linear infinite; }
.marquee-track span { display: inline-flex; gap: .6rem; align-items: center; }
.marquee-track span::before { content: "★"; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } * { scroll-behavior: auto !important; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--surface-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.link-arrow { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; color: var(--orange); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Category tiles */
.cat-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 1; display: block; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile .label { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1rem .9rem; background: linear-gradient(transparent, rgba(20,20,23,.85)); color: #FBF8F2; display: flex; justify-content: space-between; align-items: end; }
.cat-tile .label strong { font: 600 1.25rem/1.1 var(--serif); }
.cat-tile .label .icon { color: var(--orange); }

/* Product cards */
.product-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .product-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.p-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s, transform .2s; }
.p-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); transform: translateY(-2px); }
.p-media { position: relative; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; }
.p-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .5s; }
.p-media .alt { opacity: 0; }
.p-card:hover .p-media .alt { opacity: 1; }
.p-card:hover .p-media img:only-of-type { transform: scale(1.04); }
.p-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; flex-wrap: wrap; }
.tag { padding: 3px 8px; border-radius: 4px; font: 700 .68rem/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: #F6F1E7; }
.tag-orange { background: var(--orange); color: var(--on-orange); }
.tag-soft { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.wish-btn { position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); color: var(--text); }
.wish-btn.on { color: var(--orange); }
.wish-btn.on .icon { fill: currentColor; }
.p-body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.p-cat { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.p-name { font: 600 1.12rem/1.25 var(--serif); margin: 0; }
@media (min-width: 768px) { .p-name { font-size: 1.22rem; } }
.p-price { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; margin-top: auto; padding-top: .35rem; }
.price { font-weight: 700; font-size: 1.05rem; }
.mrp { color: var(--muted); text-decoration: line-through; font-size: .85rem; }
.off { color: var(--success); font-weight: 700; font-size: .8rem; }
.p-from { font-size: .75rem; color: var(--muted); }
.stock-low { color: var(--warning); font-size: .78rem; font-weight: 600; }
.stock-out { color: var(--danger); font-size: .78rem; font-weight: 600; }

/* Why choose */
.why-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why { background: var(--surface); padding: 1.8rem 1.5rem; }
.why .num { font: 600 2.2rem/1 var(--serif); color: var(--orange); margin-bottom: .8rem; }
.why h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.why p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Promo banners */
.promo-grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .promo-grid { grid-template-columns: 1fr 1fr; } }
.promo { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 280px; display: flex; align-items: center; color: #F6F1E7; background: var(--ink); }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,23,.95) 25%, rgba(20,20,23,.2)); }
.promo-copy { position: relative; z-index: 2; padding: 2rem; max-width: 70%; }
@media (max-width: 520px) { .promo-copy { max-width: 100%; } }
.promo-copy h3 { font-size: 1.9rem; color: #FBF8F2; }
.promo-copy p { color: #D9D2C5; }

/* Brand statement */
.statement { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .statement { grid-template-columns: 1.05fr 1fr; gap: 4rem; } }
.statement figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.statement blockquote { margin: 1.5rem 0; padding-left: 1.2rem; border-left: 3px solid var(--orange); font: 500 1.4rem/1.35 var(--serif); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.stats strong { display: block; font: 600 2rem/1 var(--serif); color: var(--orange); }
.stats span { font-size: .82rem; color: var(--muted); }

/* Institution CTA */
.cta-band { background: var(--ink); color: #F6F1E7; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1.5rem; align-items: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: var(--orange); opacity: .14; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { color: #FBF8F2; margin-bottom: .4rem; }
.cta-band p { color: #D9D2C5; margin: 0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .8rem; position: relative; }

/* ---------- Page banner & breadcrumbs ---------- */
.page-banner { position: relative; background: var(--ink); color: #FBF8F2; overflow: hidden; }
.page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.page-banner .wrap { position: relative; z-index: 2; padding-top: 2.6rem; padding-bottom: 2.6rem; }
.page-banner h1 { color: #FBF8F2; margin: .4rem 0 0; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-banner p { color: #D9D2C5; margin: .5rem 0 0; max-width: 640px; }
.crumbs { font-size: .8rem; color: #CFC6B6; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a:hover { color: var(--orange); }
.crumbs span[aria-hidden] { opacity: .5; }
.crumbs-plain { color: var(--muted); padding: 1rem 0; }

/* ---------- Shop ---------- */
.shop-layout { display: grid; gap: 2rem; padding-top: 2rem; padding-bottom: 4rem; }
@media (min-width: 1000px) { .shop-layout { grid-template-columns: 250px 1fr; } }
.filters { display: none; }
@media (min-width: 1000px) { .filters { display: block; position: sticky; top: 140px; align-self: start; } }
.filters.open { display: block; position: fixed; inset: 0; z-index: 95; background: var(--surface); padding: 1rem 1rem 6rem; overflow-y: auto; }
.filter-block { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.filter-block h4 { font: 700 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin-bottom: .8rem; }
.filter-block a { display: flex; justify-content: space-between; padding: .3rem 0; font-size: .93rem; }
.filter-block a.on { color: var(--orange); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; min-height: 34px; padding: 0 .8rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .85rem; background: var(--surface); cursor: pointer; }
.chip.on, .chip:hover { border-color: var(--orange); color: var(--orange); }
.chip.on { background: var(--orange-050); }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.shop-toolbar select { min-height: 40px; width: auto; }
.filter-open-btn { display: inline-flex; }
@media (min-width: 1000px) { .filter-open-btn { display: none; } }
.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 .6rem; }
.pagination .on { background: var(--orange); color: var(--on-orange); border-color: var(--orange); }

.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state img { width: 220px; margin: 0 auto 1rem; }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 2rem; padding-top: 1rem; padding-bottom: 3rem; }
@media (min-width: 960px) { .pdp { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; } }
.gallery-main { position: relative; aspect-ratio: 1; background: var(--surface-2); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.gallery-main.zoom img { transform: scale(2); cursor: zoom-out; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .7rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.gallery-thumbs button { flex: none; width: 72px; height: 72px; border-radius: var(--radius-sm); border: 2px solid transparent; padding: 0; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.gallery-thumbs button.on { border-color: var(--orange); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) { .pdp-info { position: sticky; top: 140px; align-self: start; } }
.pdp-info h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: .4rem; }
.pdp-price { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; margin: .8rem 0 .2rem; }
.pdp-price .price { font-size: 1.8rem; }
.tax-note { font-size: .8rem; color: var(--muted); }
.size-row { display: flex; justify-content: space-between; align-items: center; margin: 1.4rem 0 .6rem; }
.size-row strong { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.size-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.size-options label { position: relative; }
.size-options input { position: absolute; opacity: 0; }
.size-options span { display: grid; place-items: center; min-width: 56px; min-height: 46px; padding: 0 .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; background: var(--surface); }
.size-options input:checked + span { border-color: var(--orange); background: var(--orange-050); color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.size-options input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.size-options .oos span { opacity: .45; text-decoration: line-through; }
.qty { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; height: 46px; background: var(--surface); }
.qty button { width: 42px; border: 0; background: transparent; cursor: pointer; font-size: 1.2rem; }
.qty input { width: 52px; text-align: center; border: 0; background: transparent; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: .6rem; margin: 1.2rem 0; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 150px; }
.highlights { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .55rem; }
.highlights li { display: flex; gap: .6rem; align-items: start; font-size: .95rem; }
.highlights li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--orange-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6600' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.pdp-meta { display: grid; gap: .3rem; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1.2rem 0; }
.assure div { background: var(--surface-2); border-radius: var(--radius-sm); padding: .7rem .5rem; text-align: center; font-size: .75rem; font-weight: 600; }
.assure .icon { margin: 0 auto .3rem; color: var(--orange); }
.tabs { border-top: 1px solid var(--line); margin-top: 1rem; }
.tabs details { border-bottom: 1px solid var(--line); }
.tabs summary { padding: 1rem 0; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; letter-spacing: .02em; }
.tabs summary::-webkit-details-marker { display: none; }
.tabs summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--orange); }
.tabs details[open] summary::after { content: "−"; }
.tabs .tab-body { padding-bottom: 1.2rem; }
.size-chart table, .rich table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.size-chart th, .size-chart td, .rich th, .rich td { border: 1px solid var(--line); padding: .5rem .6rem; text-align: left; }
.size-chart th, .rich th { background: var(--surface-2); }
.pin-check { display: flex; gap: .5rem; }
.pin-check .input { max-width: 180px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 64px; z-index: 55; background: var(--surface); border-top: 1px solid var(--line); padding: .6rem 16px; display: flex; gap: .6rem; align-items: center; transform: translateY(150%); transition: transform .25s; }
.sticky-buy.show { transform: none; }
.sticky-buy .btn { flex: 1; }
@media (min-width: 900px) { .sticky-buy { display: none; } }

/* ---------- Cart ---------- */
.cart-layout { display: grid; gap: 2rem; padding-top: 2rem; padding-bottom: 4rem; }
@media (min-width: 960px) { .cart-layout { grid-template-columns: 1fr 380px; } }
.cart-line { display: grid; grid-template-columns: 88px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .cart-line { grid-template-columns: 110px 1fr auto; } }
.cart-line img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.cart-line h3 { font-size: 1.15rem; margin: 0 0 .2rem; }
.cart-line .line-actions { display: flex; align-items: center; gap: .8rem; margin-top: .6rem; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .85rem; }
.link-btn:hover { color: var(--danger); }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; align-self: start; }
@media (min-width: 960px) { .summary { position: sticky; top: 140px; } }
.summary-row { display: flex; justify-content: space-between; padding: .45rem 0; font-size: .95rem; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .9rem; font-weight: 700; font-size: 1.15rem; }
.progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin: .5rem 0 1rem; }
.progress span { display: block; height: 100%; background: var(--orange); }
.notice { padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--orange-050); border: 1px solid color-mix(in srgb, var(--orange) 30%, transparent); font-size: .9rem; }

/* ---------- Auth ---------- */
.auth-wrap { display: grid; min-height: calc(100vh - 180px); }
@media (min-width: 960px) { .auth-wrap { grid-template-columns: 1fr 1fr; } }
.auth-side { display: none; position: relative; background: var(--ink); overflow: hidden; }
.auth-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-side .quote { position: absolute; left: 3rem; right: 3rem; bottom: 3rem; color: #FBF8F2; font: 500 1.7rem/1.3 var(--serif); }
.auth-side .quote small { display: block; font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--orange); margin-top: 1rem; }
@media (min-width: 960px) { .auth-side { display: block; } }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 2.5rem 16px; }
.auth-box { width: 100%; max-width: 420px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 1.4rem; }
.seg button { border: 0; background: transparent; min-height: 42px; border-radius: 4px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .4rem; color: var(--muted); }
.seg button.on { background: var(--surface); box-shadow: var(--shadow); color: var(--text); }
.otp-inputs { display: flex; gap: .5rem; justify-content: space-between; margin: 1rem 0; }
.otp-inputs input { width: 100%; max-width: 56px; height: 58px; text-align: center; font-size: 1.5rem; font-weight: 700; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
.otp-inputs input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 22%, transparent); }
.prefix-input { display: flex; }
.prefix-input span { display: grid; place-items: center; padding: 0 .8rem; border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--surface-2); font-weight: 600; }
.prefix-input .input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.dev-code { margin-top: .8rem; padding: .6rem .8rem; border: 1px dashed var(--warning); border-radius: var(--radius-sm); font-size: .85rem; color: var(--warning); }

/* ---------- Account ---------- */
.account-layout { display: grid; gap: 2rem; padding-top: 2rem; padding-bottom: 4rem; }
@media (min-width: 900px) { .account-layout { grid-template-columns: 240px 1fr; } }
.account-nav { display: flex; gap: .4rem; overflow-x: auto; }
@media (min-width: 900px) { .account-nav { flex-direction: column; } }
.account-nav a, .account-nav button { padding: .7rem 1rem; border-radius: var(--radius-sm); white-space: nowrap; font-weight: 600; font-size: .92rem; background: none; border: 0; text-align: left; cursor: pointer; }
.account-nav a.on { background: var(--orange-050); color: var(--orange); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card + .card { margin-top: 1rem; }
.address-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .address-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Content pages ---------- */
.rich { max-width: 760px; }
.rich h2, .rich h3 { margin-top: 1.6em; }
.contact-grid { display: grid; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-item .icon { color: var(--orange); width: 24px; height: 24px; margin-top: 2px; }
.contact-item strong { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.map { border: 0; width: 100%; height: 320px; border-radius: var(--radius); filter: grayscale(.2); }
:root[data-theme="dark"] .map { filter: invert(.9) hue-rotate(180deg) grayscale(.3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9C1B3; padding: 3.5rem 0 1.5rem; margin-top: 2rem; font-size: .92rem; }
.site-footer a { color: #C9C1B3; }
.site-footer a:hover { color: var(--orange); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h4 { color: #FBF8F2; font: 700 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer .brand-name { color: #FBF8F2; }
.footer-contact li { display: flex; gap: .6rem; }
.footer-contact .icon { color: var(--orange); width: 18px; height: 18px; margin-top: 3px; }
.footer-bottom { border-top: 1px solid #2C2C35; margin-top: 2.5rem; padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; }
.socials { display: flex; gap: .5rem; margin-top: 1rem; }
.socials a { width: 38px; height: 38px; border: 1px solid #3B3B46; border-radius: 50%; display: grid; place-items: center; }

.wa-float { position: fixed; right: 16px; bottom: 80px; z-index: 58; width: 54px; height: 54px; border-radius: 50%; background: #1FA855; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(31,168,85,.4); }
.wa-float:hover { color: #fff; transform: scale(1.05); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
@media (min-width: 900px) { .wa-float { bottom: 24px; right: 24px; } }

.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- mobile fixes ---------- */
.shop-layout > *, .cart-layout > *, .account-layout > *, .pdp > * { min-width: 0; }
.p-tags { right: 54px; }
@media (max-width: 600px) {
  .p-tags .tag-soft { display: none; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 1.08rem; letter-spacing: .05em; }
  .brand-sub { font-size: .54rem; letter-spacing: .3em; }
  .header-main { gap: .4rem; }
  .icon-btn { width: 40px; height: 40px; }
  .shop-toolbar select { max-width: 52vw; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-dark { background: #F1ECE3; color: var(--ink); } }

/* ---------- Phase 2: checkout, orders, documents ---------- */
.seg-opt { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 4px; font-weight: 600; cursor: pointer; color: var(--muted); }
.seg input:checked + .seg-opt { background: var(--surface); box-shadow: var(--shadow); color: var(--text); }
.seg input:focus-visible + .seg-opt { outline: 2px solid var(--orange); }
.radio-card { display: flex; gap: .8rem; align-items: flex-start; cursor: pointer; padding: 1rem; }
.radio-card input { margin-top: .25rem; accent-color: var(--orange); width: 18px; height: 18px; flex: none; }
.radio-card:has(input:checked) { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1.1rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: var(--orange); }
.timeline li > strong { display: block; font-weight: 600; font-size: .94rem; }
.timeline li > span { display: block; font-size: .82rem; }
.timeline li:first-child::before { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-050); }
.timeline li.good::before { background: var(--success); }
.timeline li.bad::before { background: var(--danger); }
.status-steps.s4, .status-labels.s4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { form.card[action$="/track"] { grid-template-columns: 1fr !important; } }
.status-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 1rem 0 .4rem; }
.status-steps span { height: 6px; border-radius: 3px; background: var(--surface-2); }
.status-steps span.on { background: var(--orange); }
.status-labels { display: grid; grid-template-columns: repeat(5, 1fr); font-size: .72rem; color: var(--muted); text-align: center; }
.order-row { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.order-row:last-child { border-bottom: 0; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; background: var(--surface-2); color: var(--muted); }
.pill-green { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.pill-orange { background: var(--orange-050); color: var(--orange); }
.pill-red { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.pay-box { display: grid; gap: 1rem; align-items: center; }
@media (min-width: 640px) { .pay-box { grid-template-columns: 170px 1fr; } }
.pay-box .qr { background: #fff; padding: 8px; border-radius: 8px; border: 1px solid var(--line); width: 170px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: .35rem .8rem; font-size: .92rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.gw-choice { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.gw-choice label { position: relative; }
.gw-choice input { position: absolute; opacity: 0; }
.gw-choice span { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .85rem; font-weight: 600; cursor: pointer; background: var(--surface); }
.gw-choice input:checked + span { border-color: var(--orange); color: var(--orange); background: var(--orange-050); }

/* Reviews & support */
.stars { --s: 14px; font-size: var(--s); letter-spacing: 1px; color: var(--line-strong); white-space: nowrap; }
.stars .on { color: #E8A317; }
.stars .half { background: linear-gradient(90deg, #E8A317 50%, var(--line-strong) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating-line { display: inline-flex; gap: .4rem; align-items: center; font-size: .9rem; margin: -.2rem 0 .6rem; color: inherit; }
.review-reply { margin-top: .5rem; padding: .5rem .8rem; border-left: 3px solid var(--orange); background: var(--surface-2); font-size: .88rem; border-radius: 0 6px 6px 0; }
.review-form { display: grid; gap: .5rem; margin-top: .5rem; max-width: 560px; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 1.9rem; line-height: 1; color: var(--line-strong); cursor: pointer; transition: color .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #E8A317; }
.star-input input:focus-visible + label { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.thread { display: grid; gap: .7rem; }
.thread .msg { border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; max-width: 86%; }
.thread .msg.me { margin-left: auto; background: var(--orange-050); border-color: transparent; }
.thread .msg .who { font-size: .78rem; color: var(--muted); margin-bottom: .25rem; }
.chips-front { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips-front label { cursor: pointer; }
.chips-front input { position: absolute; opacity: 0; pointer-events: none; }
.chips-front span { display: inline-block; padding: .45rem .85rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .86rem; }
.chips-front input:checked + span { background: var(--orange); border-color: var(--orange); color: #fff; }
.chips-front input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
