/* =========================================================
   Altyn Top — premium storefront theme
   ========================================================= */
:root {
  --gold: #F2C255;
  --gold-2: #FFD978;
  --gold-deep: #D9A22E;
  --gold-soft: #FBF1D6;
  --navy: #373D51;
  --ink: #0F1220;
  --ink-2: #181C2E;
  --ink-3: #23283D;
  --text: #1A1D29;
  --muted: #717586;
  --line: #ECE8DE;
  --cream: #FAF7F0;
  --white: #FFFFFF;
  --fg: #0F1220;              /* strong text (headings, prices) */
  --surface: #FFFFFF;         /* cards, header, panels */
  --glass: rgba(255,255,255,.92);
  --page: var(--cream);       /* page background */
  --red: #E5484D;
  --green: #22A06B;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(15, 18, 32, .05);
  --shadow: 0 14px 40px rgba(15, 18, 32, .10);
  --shadow-gold: 0 12px 30px rgba(242, 194, 85, .35);
  --container: 1280px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--page);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.01em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 800; font-size: 15px; line-height: 1.2; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-deep)); color: var(--ink); box-shadow: var(--shadow-gold); }
.btn-gold:hover { box-shadow: 0 16px 36px rgba(242, 194, 85, .5); }
.btn-navy, .btn-dark { background: var(--ink); color: #fff; }
.btn-navy:hover, .btn-dark:hover { background: var(--ink-3); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--ink); color: var(--fg); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { border-color: var(--gold); color: var(--gold); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Announcement marquee ---------- */
.announce { background: var(--gold); color: var(--ink); font-size: 13px; font-weight: 800; overflow: hidden; white-space: nowrap; }
.announce-track { display: inline-flex; gap: 48px; padding: 9px 0; animation: marquee 38s linear infinite; }
.announce-track span { display: inline-flex; align-items: center; gap: 10px; }
.announce-track span::before { content: "★"; font-size: 10px; opacity: .6; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.header { background: var(--glass); backdrop-filter: saturate(160%) blur(14px); position: sticky; top: 0; z-index: 60; border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.header.scrolled { box-shadow: 0 8px 30px rgba(15,18,32,.08); }
.header-main { display: flex; align-items: center; gap: 28px; height: 80px; }
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo img { width: 46px; height: 46px; border-radius: 12px; }
.logo span { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: -.02em; }
.search { flex: 1; position: relative; max-width: 620px; }
.search input {
  width: 100%; height: 50px; border-radius: 999px; border: 1.5px solid var(--line); padding: 0 60px 0 50px;
  background: var(--cream); outline: none; font-size: 15px; transition: .2s;
}
.search input:focus { border-color: var(--gold); background: var(--surface); box-shadow: 0 0 0 4px rgba(242,194,85,.2); }
.search .search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search button {
  position: absolute; right: 5px; top: 5px; height: 40px; padding: 0 18px; border-radius: 999px;
  border: 0; background: var(--ink); color: #fff; cursor: pointer; font-weight: 800; font-size: 13px;
}
.search button:hover { background: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.lang-switch { display: flex; gap: 2px; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-right: 8px; }
.lang-switch a { padding: 5px 10px; border-radius: 999px; font-weight: 800; font-size: 11.5px; text-transform: uppercase; color: var(--muted); }
.lang-switch a.active { background: var(--ink); color: var(--gold); }
.icon-btn {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  color: var(--fg); font-size: 14px; font-weight: 800; transition: background .2s;
}
.icon-btn:hover { background: var(--cream); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .badge {
  position: absolute; top: 3px; left: 28px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 900; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--surface);
}
.icon-btn.cart-btn { background: var(--ink); color: #fff; padding: 10px 18px 10px 14px; }
.icon-btn.cart-btn:hover { background: var(--ink-3); }
.menu-toggle { display: none; background: none; border: 0; color: var(--fg); cursor: pointer; padding: 6px; }

.nav { border-top: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; gap: 2px; height: 52px; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-item > a { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14.5px; transition: .2s; }
.nav-item > a:hover, .nav-item > a.active { background: var(--cream); color: var(--fg); }
.nav-item > a.active { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 999px 999px 6px 6px; }
.nav-item .dropdown {
  position: absolute; top: calc(100% - 4px); left: 0; min-width: 240px; background: var(--surface); border-radius: var(--r);
  box-shadow: var(--shadow); border: 1px solid var(--line); padding: 10px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: .2s var(--ease); z-index: 50;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.dropdown a:hover { background: var(--gold-soft); }
.nav-sale { margin-left: auto; }
.nav-sale a { background: var(--red); color: #fff !important; padding: 8px 16px !important; }
.nav-sale a:hover { background: #cf3a3f !important; }
.nav-phone { margin-left: 14px; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--navy); }

/* ---------- Toast flash messages ---------- */
.toasts { position: fixed; top: 96px; right: 20px; z-index: 200; display: grid; gap: 10px; }
.flash {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; font-weight: 700; font-size: 14.5px;
  background: var(--ink); color: #fff; box-shadow: var(--shadow); animation: toastIn .4s var(--ease); max-width: 360px;
}
.flash::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.flash-success::before { background: var(--green); box-shadow: 0 0 0 4px rgba(34,160,107,.25); }
.flash-error::before { background: var(--red); box-shadow: 0 0 0 4px rgba(229,72,77,.25); }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 78% 40%, rgba(242,194,85,.22), transparent 60%),
    radial-gradient(600px 400px at 10% 110%, rgba(55,61,81,.9), transparent 70%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, #1d2235 100%);
}
.hero::before { /* pitch markings */
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 159px, #fff 160px, #fff 162px, transparent 163px),
    linear-gradient(90deg, transparent calc(50% - 1px), #fff calc(50% - 1px), #fff calc(50% + 1px), transparent calc(50% + 1px));
}
.hero-slides { position: relative; min-height: 600px; }
.hero-slide {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s;
}
.hero-slide.active { opacity: 1; visibility: visible; position: relative; }
.hero-slide.has-image { background-size: cover; background-position: center; border-radius: var(--r-lg); margin: 30px 0; padding: 60px; min-height: 540px; }
.hero-slide.has-image::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(15,18,32,.85), rgba(15,18,32,.2)); }
.hero-copy { position: relative; z-index: 2; padding: 70px 0; }
.hero-slide.active .hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-slide.active .hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-slide.active .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-slide.active .hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-slide.active .hero-copy > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(242,194,85,.12); border: 1px solid rgba(242,194,85,.35); color: var(--gold-2);
  font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow i { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; color: var(--ink); font-style: normal; font-size: 12px; }
.hero h1, .hero h2.hero-title {
  font-size: clamp(36px, 5vw, 66px); line-height: 1.04; margin: 22px 0 18px; font-weight: 800; letter-spacing: -.03em;
}
.hero h1 em, .hero-title em { font-style: normal; background: linear-gradient(120deg, var(--gold-2), var(--gold) 50%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 18px; color: rgba(255,255,255,.72); max-width: 520px; margin: 0 0 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 46px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-stats b { display: block; font-family: var(--display); font-size: 26px; color: var(--gold); font-weight: 700; }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,.6); font-weight: 600; }
.hero-visual { position: relative; z-index: 1; display: grid; place-items: center; height: 100%; min-height: 480px; }
.hero-visual .glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(242,194,85,.45), transparent 65%); filter: blur(20px); animation: pulse 5s ease-in-out infinite; }
.hero-visual .ring { position: absolute; width: 440px; height: 440px; border-radius: 50%; border: 1px dashed rgba(242,194,85,.35); animation: spin 40s linear infinite; }
.hero-visual .ring.r2 { width: 540px; height: 540px; border-style: solid; border-color: rgba(255,255,255,.06); animation-duration: 70s; animation-direction: reverse; }
.hero-visual img.art { position: relative; width: min(420px, 90%); filter: drop-shadow(0 40px 50px rgba(0,0,0,.45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-18px) rotate(2deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.float-card {
  position: absolute; z-index: 3; background: rgba(255,255,255,.96); color: var(--text); border-radius: 18px; padding: 12px 16px 12px 12px;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.35); animation: float 7s ease-in-out infinite;
}
.float-card img { width: 54px; height: 54px; border-radius: 12px; background: var(--cream); object-fit: cover; }
.float-card small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.float-card b { display: block; font-size: 14px; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float-card .p { font-family: var(--display); color: var(--navy); font-size: 15px; }
.float-card.fc-1 { left: 0; bottom: 70px; animation-delay: -2s; }
.float-card.fc-2 { right: 0; top: 70px; padding: 14px 18px; flex-direction: column; align-items: flex-start; gap: 2px; animation-delay: -4s; }
.float-card.fc-2 .big { font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--red); line-height: 1; }
.hero-controls { position: absolute; bottom: 34px; left: 24px; right: 24px; max-width: var(--container); margin: 0 auto; display: flex; align-items: center; gap: 14px; z-index: 5; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 4px; border-radius: 4px; border: 0; padding: 0; background: rgba(255,255,255,.2); cursor: pointer; overflow: hidden; position: relative; }
.hero-dots button.active::after { content: ""; position: absolute; inset: 0; background: var(--gold); animation: progress 6s linear forwards; transform-origin: left; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-arrows { margin-left: auto; display: flex; gap: 8px; }
.hero-arrows button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04); color: #fff; cursor: pointer; display: grid; place-items: center; transition: .2s; }
.hero-arrows button:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ---------- Trust bar ---------- */
.trust { position: relative; z-index: 4; margin-top: -1px; background: var(--surface); border-bottom: 1px solid var(--line); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 24px 20px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--gold-soft); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.trust-item b { display: block; font-size: 15px; font-weight: 800; }
.trust-item small { color: var(--muted); font-size: 13px; }
/* legacy features strip (used on other pages) */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { display: flex; gap: 14px; align-items: center; background: var(--surface); border-radius: var(--r); padding: 18px; border: 1px solid var(--line); }
.feature-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--gold-soft); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { margin: 84px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; gap: 20px; flex-wrap: wrap; }
.section-head .kicker { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }
.section-head h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); font-weight: 700; color: var(--fg); line-height: 1.1; }
.section-head .link { font-weight: 800; color: var(--fg); display: inline-flex; gap: 8px; align-items: center; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); transition: .2s; }
.section-head .link:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-tile {
  position: relative; border-radius: var(--r-lg); padding: 22px 20px 0; min-height: 250px; overflow: hidden;
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); transition: .35s var(--ease);
}
.cat-tile:nth-child(6n+1) { background: linear-gradient(160deg, #FFF6DD, #F9E6B0); }
.cat-tile:nth-child(6n+2) { background: linear-gradient(160deg, #FFE9DF, #FFD2BF); }
.cat-tile:nth-child(6n+3) { background: linear-gradient(160deg, #EEF1F7, #DCE2EE); }
.cat-tile:nth-child(6n+4) { background: linear-gradient(160deg, #E6F4EE, #CDEADB); }
.cat-tile:nth-child(6n+5) { background: linear-gradient(160deg, #2A2F45, #171A2A); color: #fff; }
.cat-tile:nth-child(6n+6) { background: linear-gradient(160deg, #E5EFFC, #CFE0F7); }
.cat-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-tile b { font-family: var(--display); font-size: 16px; font-weight: 700; line-height: 1.2; }
.cat-tile small { opacity: .65; font-size: 13px; font-weight: 700; margin-top: 4px; }
.cat-tile .cat-img { margin-top: auto; height: 150px; display: grid; place-items: end center; font-size: 80px; }
.cat-tile .cat-img img { height: 150px; width: auto; object-fit: contain; transition: transform .45s var(--ease); filter: drop-shadow(0 16px 16px rgba(0,0,0,.15)); }
.cat-tile:hover .cat-img img { transform: scale(1.08) rotate(-4deg); }
.cat-tile .arrow { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.7); color: var(--ink); display: grid; place-items: center; transition: .3s; }
.cat-tile:hover .arrow { background: var(--ink); color: var(--gold); transform: rotate(-45deg); }

/* Tabs */
.tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 10px 18px; border-radius: 999px; font-weight: 800; font-size: 14px; cursor: pointer; color: var(--muted); transition: .2s; }
.tabs button.active { background: var(--ink); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Product grid & card */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); padding: 10px; border: 1px solid var(--line); transition: .35s var(--ease); }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); border-color: transparent; }
.product-media { position: relative; aspect-ratio: 1 / 1.02; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, #F7F3EA, #EFE9DC); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.07); }
.product-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; align-items: flex-start; }
.tag { padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 900; letter-spacing: .02em; }
.tag-sale { background: var(--red); color: #fff; }
.tag-new { background: var(--ink); color: var(--gold); }
.tag-out { background: rgba(15,18,32,.55); color: #fff; backdrop-filter: blur(4px); }
.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-sm); transition: .2s;
}
.fav-btn:hover { transform: scale(1.1); }
.fav-btn.active { color: var(--red); }
.fav-btn.active svg { fill: currentColor; }
.quick-add {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; opacity: 0; transform: translateY(12px); transition: .3s var(--ease);
}
.quick-add .btn { width: 100%; padding: 11px; font-size: 13.5px; box-shadow: none; }
.product-card:hover .quick-add { opacity: 1; transform: none; }
.product-body { padding: 14px 8px 8px; display: flex; flex-direction: column; flex: 1; }
.product-brand { font-size: 11.5px; font-weight: 900; color: var(--gold-deep); text-transform: uppercase; letter-spacing: .12em; }
.product-name { font-weight: 700; font-size: 15px; margin: 5px 0 10px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 41px; }
.product-name:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.size-preview { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.size-preview span { font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 6px; background: var(--cream); color: var(--muted); }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--fg); white-space: nowrap; }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; font-weight: 700; margin-left: 6px; white-space: nowrap; }
.cart-mini {
  width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center;
  cursor: pointer; flex-shrink: 0; transition: .2s;
}
.cart-mini:hover { background: var(--gold); color: var(--ink); transform: rotate(-8deg); }

/* Deal of the week */
.deal {
  position: relative; overflow: hidden; border-radius: 36px; color: #fff; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  background: radial-gradient(700px 400px at 80% 50%, rgba(242,194,85,.3), transparent 60%), linear-gradient(140deg, var(--ink), var(--ink-3));
}
.deal-copy { padding: 60px; position: relative; z-index: 2; }
.deal-copy h2 { font-size: clamp(28px, 3.4vw, 44px); margin: 18px 0 10px; line-height: 1.08; }
.deal-copy p { color: rgba(255,255,255,.7); margin: 0 0 24px; }
.deal-price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; }
.deal-price .price { color: var(--gold); font-size: 40px; }
.deal-price .price-old { color: rgba(255,255,255,.45); font-size: 20px; }
.countdown { display: flex; gap: 10px; margin-bottom: 30px; }
.countdown div { min-width: 74px; padding: 12px 8px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); text-align: center; }
.countdown b { display: block; font-family: var(--display); font-size: 28px; color: #fff; line-height: 1.1; }
.countdown span { font-size: 11px; color: rgba(255,255,255,.55); text-transform: uppercase; font-weight: 800; letter-spacing: .08em; }
.deal-visual { position: relative; height: 100%; min-height: 440px; display: grid; place-items: center; }
.deal-visual img { width: 78%; max-width: 420px; border-radius: 30px; position: relative; z-index: 1; box-shadow: 0 40px 80px rgba(0,0,0,.45); transform: rotate(4deg); transition: .5s var(--ease); }
.deal:hover .deal-visual img { transform: rotate(0) scale(1.03); }
.deal-badge { position: absolute; z-index: 2; top: 44px; right: 54px; width: 116px; height: 116px; border-radius: 50%; background: var(--red); display: grid; place-items: center; text-align: center; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; box-shadow: 0 20px 40px rgba(229,72,77,.45); animation: spin 18s linear infinite; }
.deal-badge small { display: block; font-size: 11px; letter-spacing: .1em; font-family: "Manrope"; }
.deal-badge > span { animation: spin 18s linear infinite reverse; display: block; }

/* Promo banners */
.promo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.promo { border-radius: var(--r-lg); padding: 44px; min-height: 260px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; transition: .35s var(--ease); }
.promo:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.promo h3 { font-size: 28px; margin: 0 0 10px; font-weight: 700; position: relative; z-index: 1; max-width: 330px; line-height: 1.15; }
.promo p { margin: 0 0 22px; position: relative; z-index: 1; max-width: 300px; opacity: .8; }
.promo .btn { align-self: flex-start; position: relative; z-index: 1; }
.promo-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, var(--gold-deep)); color: var(--ink); }
.promo-navy { background: linear-gradient(135deg, var(--navy), var(--ink)); color: #fff; }
.promo-art { position: absolute; right: -10px; bottom: -30px; width: 260px; height: 260px; transition: transform .5s var(--ease); }
.promo:hover .promo-art { transform: rotate(-8deg) scale(1.06); }

/* Team kits CTA */
.team-cta { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 36px; padding: 50px 56px; position: relative; overflow: hidden; }
.team-cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, var(--gold-soft), transparent 70%); }
.team-cta h2 { font-size: clamp(26px, 3vw, 38px); margin: 10px 0 12px; line-height: 1.1; }
.team-cta p { color: var(--muted); margin: 0 0 24px; max-width: 520px; }
.team-steps { display: grid; gap: 14px; position: relative; z-index: 1; }
.team-step { display: flex; gap: 14px; align-items: center; background: var(--cream); border-radius: 18px; padding: 16px 18px; }
.team-step i { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--gold); font-style: normal; font-family: var(--display); font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.team-step b { display: block; font-size: 15px; }
.team-step small { color: var(--muted); }

/* Brands marquee */
.brand-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.brand-track { display: inline-flex; gap: 16px; animation: marquee 30s linear infinite; }
.brand-marquee:hover .brand-track { animation-play-state: paused; }
.brand-chip {
  min-width: 200px; height: 96px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--navy); letter-spacing: .04em; padding: 12px 24px; transition: .25s;
}
.brand-chip img { max-height: 54px; object-fit: contain; }
.brand-chip:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-3px); }
.brand-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Page header band (catalog/static) ---------- */
.page-band { background: linear-gradient(160deg, var(--ink), var(--ink-3)); color: #fff; padding: 36px 0 40px; margin-bottom: 34px; position: relative; overflow: hidden; }
.page-band::after { content: ""; position: absolute; right: -60px; top: -100px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(242,194,85,.3), transparent 65%); }
.page-band .breadcrumbs { color: rgba(255,255,255,.55); margin: 0 0 10px; }
.page-band .breadcrumbs a:hover { color: var(--gold); }
.page-band .page-title { color: #fff; margin: 0; }
.page-band .page-title small { font-family: "Manrope"; font-size: 15px; color: rgba(255,255,255,.55); font-weight: 700; margin-left: 10px; letter-spacing: 0; }
.breadcrumbs { display: flex; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); margin: 26px 0 8px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--fg); }
.page-title { font-size: clamp(26px, 3vw, 40px); font-weight: 700; color: var(--fg); margin: 0 0 26px; line-height: 1.1; }

/* ---------- Catalog ---------- */
.catalog { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; margin-bottom: 70px; }
.filters { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); padding: 24px; position: sticky; top: 150px; }
.filter-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group h4 { margin: 0 0 12px; font-size: 13px; color: var(--fg); text-transform: uppercase; letter-spacing: .08em; }
.filter-group label { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: 14.5px; font-weight: 600; }
.filter-group input[type=checkbox], .filter-group input[type=radio] { accent-color: var(--ink); width: 18px; height: 18px; }
.filter-cats a { display: flex; justify-content: space-between; padding: 7px 10px; margin: 0 -10px; border-radius: 10px; font-size: 14.5px; font-weight: 600; }
.filter-cats a:hover { background: var(--cream); }
.filter-cats a.active { background: var(--gold-soft); color: var(--fg); font-weight: 800; }
.filter-cats .sub { padding-left: 24px; font-size: 14px; color: var(--muted); }
.size-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.size-pills label { padding: 0; }
.size-pills input { position: absolute; opacity: 0; pointer-events: none; }
.size-pills span { display: inline-block; min-width: 46px; text-align: center; padding: 8px 10px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 800; font-size: 13.5px; background: var(--surface); cursor: pointer; transition: .15s; }
.size-pills span:hover { border-color: var(--ink); }
.size-pills input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--gold); }
.size-pills input:focus-visible + span { box-shadow: 0 0 0 3px rgba(242,194,85,.5); }
.price-inputs { display: flex; gap: 8px; align-items: center; }
.price-inputs input { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); outline: none; background: var(--cream); }
.price-inputs input:focus { border-color: var(--ink); background: var(--surface); }
.catalog-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 14px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 22px; }
.catalog-bar .count { color: var(--muted); font-weight: 600; }
.catalog-bar .count b { color: var(--fg); }
.select { padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--cream); outline: none; cursor: pointer; font-weight: 700; }
.catalog .product-grid { grid-template-columns: repeat(3, 1fr); }
.filters-toggle { display: none; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.active-filters a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }
.active-filters a span { color: var(--gold); font-size: 15px; line-height: 1; }
.empty { text-align: center; padding: 80px 20px; background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); }
.empty-icon { font-size: 60px; margin-bottom: 10px; }
.empty h3 { margin: 0 0 8px; color: var(--fg); }
.empty p { color: var(--muted); margin: 0 0 22px; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 46px; height: 46px; padding: 0 14px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-weight: 800; transition: .2s; }
.pagination a:hover { border-color: var(--ink); }
.pagination .active { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.pagination .disabled { opacity: .4; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 54px; margin: 10px 0 70px; align-items: start; }
.pdp-gallery { position: sticky; top: 150px; display: grid; grid-template-columns: 86px 1fr; gap: 14px; }
.pdp-gallery.single { grid-template-columns: 1fr; }
.gallery-main { border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, #F7F3EA, #EFE9DC); aspect-ratio: 1; position: relative; border: 1px solid var(--line); grid-column: -2; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease), opacity .15s; cursor: zoom-in; }
.gallery-main:hover img { transform: scale(1.04); }
.gallery-thumbs { display: flex; flex-direction: column; gap: 10px; grid-row: 1; }
.gallery-thumbs button { width: 86px; height: 86px; border-radius: 16px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #F4F0E6; transition: .2s; }
.gallery-thumbs button.active { border-color: var(--gold); box-shadow: var(--shadow-gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info .product-brand { font-size: 13px; }
.pdp-info h1 { font-size: clamp(26px, 3vw, 38px); line-height: 1.12; margin: 8px 0 14px; color: var(--fg); font-weight: 700; }
.pdp-meta { display: flex; gap: 10px; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; margin-bottom: 22px; font-weight: 700; }
.pdp-meta > span { padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.pdp-price { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); flex-wrap: wrap; }
.pdp-price .price { font-size: 34px; }
.pdp-price .price-old { font-size: 18px; }
.pdp-price .save { margin-left: auto; font-weight: 800; color: var(--green); font-size: 14px; background: #E6F6EE; padding: 6px 12px; border-radius: 999px; }
.stock-ok { color: var(--green) !important; }
.stock-no { color: var(--red) !important; }
.option-label { font-weight: 800; color: var(--fg); margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.option-label small, .option-label a { color: var(--muted); font-weight: 700; font-size: 13px; }
.option-label a { text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pdp .size-pills span { min-width: 58px; padding: 13px 12px; font-size: 15px; border-radius: 14px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { width: 44px; height: 48px; border: 0; background: none; cursor: pointer; font-size: 20px; color: var(--fg); font-weight: 700; }
.qty input { width: 44px; text-align: center; border: 0; outline: none; font-weight: 900; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pdp-actions { display: flex; gap: 12px; margin: 26px 0 18px; flex-wrap: wrap; }
.pdp-actions .btn { flex: 1; min-width: 170px; }
.pdp-fav { display: inline-flex; gap: 8px; align-items: center; background: none; border: 0; cursor: pointer; font-weight: 800; color: var(--fg); padding: 6px 0; }
.pdp-fav.active svg { fill: var(--red); color: var(--red); }
.pdp-perks { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 22px 0; }
.pdp-perks div { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 700; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; color: var(--muted); }
.pdp-perks svg { color: var(--gold-deep); }
.pdp-tabs { margin-top: 26px; }
.pdp-tabs .tab-panel { padding: 22px 4px 0; }
.pdp-desc p { color: #444; white-space: pre-line; margin: 0; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.size-table th, .size-table td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.size-table th { background: var(--ink); color: var(--gold); font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.size-table tr:last-child td { border-bottom: 0; }
.error-text { color: var(--red); font-size: 14px; font-weight: 700; margin-top: 8px; }
.sticky-buy { display: none; }

/* ---------- Cart & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 390px; gap: 28px; align-items: start; margin-bottom: 70px; }
.box { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); padding: 26px; }
.cart-line { display: grid; grid-template-columns: 104px 1fr auto auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line:first-child { padding-top: 0; }
.cart-line:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-line img { width: 104px; height: 104px; border-radius: 18px; object-fit: cover; background: #F4F0E6; }
.cart-line h4 { margin: 0 0 6px; font-size: 15.5px; font-family: "Manrope"; font-weight: 800; }
.cart-line small { color: var(--muted); font-weight: 600; }
.cart-line .line-total { font-family: var(--display); font-weight: 700; font-size: 17px; min-width: 110px; text-align: right; color: var(--fg); }
.remove-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; padding: 6px 0 0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.remove-btn:hover { color: var(--red); }
.summary { position: sticky; top: 150px; }
.summary h3 { margin: 0 0 18px; color: var(--fg); font-size: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; font-weight: 600; gap: 12px; }
.summary-row.total { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 18px; font-size: 21px; font-weight: 800; color: var(--fg); font-family: var(--display); }
.free-note { background: var(--gold-soft); padding: 14px 16px; border-radius: 14px; font-size: 13.5px; font-weight: 700; margin: 12px 0; }
.progress { height: 7px; background: rgba(15,18,32,.08); border-radius: 7px; margin-top: 10px; overflow: hidden; }
.progress div { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); border-radius: 7px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 800; font-size: 13.5px; margin-bottom: 7px; color: var(--fg); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream); outline: none; transition: .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 4px rgba(242,194,85,.18); }
.field .error-text { margin-top: 6px; font-size: 13px; }
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-option { border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer; display: flex; gap: 12px; align-items: center; font-weight: 800; transition: .15s; background: var(--surface); }
.pay-option:has(input:checked) { border-color: var(--ink); background: var(--gold-soft); }
.pay-option input { accent-color: var(--ink); width: 18px; height: 18px; }
.mini-line { display: flex; gap: 12px; align-items: center; padding: 9px 0; }
.mini-line img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; background: #F4F0E6; }
.mini-line div { flex: 1; font-size: 14px; font-weight: 700; }
.mini-line small { color: var(--muted); font-weight: 600; }
.steps { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 800; font-size: 13.5px; color: var(--muted); }
.steps span i { width: 24px; height: 24px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; font-style: normal; font-size: 12px; }
.steps span.done i, .steps span.on i { background: var(--ink); color: var(--gold); }
.steps span.on { color: var(--fg); border-color: var(--ink); }
.success-card { max-width: 660px; margin: 60px auto 80px; text-align: center; }
.success-icon { width: 92px; height: 92px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); color: var(--ink); display: grid; place-items: center; margin: 0 auto 20px; box-shadow: var(--shadow-gold); animation: pop .6s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.success-card h1 { color: var(--fg); margin: 0 0 10px; }
.order-no { display: inline-block; background: var(--ink); color: var(--gold); padding: 10px 20px; border-radius: 999px; font-weight: 800; margin: 12px 0 26px; font-family: var(--display); font-size: 15px; }

/* ---------- Static pages ---------- */
.page-content { max-width: 900px; margin-bottom: 70px; }
.page-content p { color: #444; font-size: 16.5px; }
.page-content h3 { margin-top: 30px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 26px 0; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; transition: .3s var(--ease); }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.info-card .feature-icon { margin-bottom: 14px; }
.info-card h4 { margin: 0 0 6px; color: var(--fg); font-size: 16px; }
.info-card p { margin: 0; font-size: 15px; color: var(--muted); word-break: break-word; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.62); margin-top: 90px; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; left: 50%; top: -260px; width: 700px; height: 400px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(242,194,85,.14), transparent 70%); }
.footer-cta { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 46px 0; border-bottom: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.footer-cta h3 { color: #fff; font-size: clamp(22px, 2.6vw, 32px); margin: 0; max-width: 560px; line-height: 1.2; }
.footer-cta h3 em { font-style: normal; color: var(--gold); }
.footer-top { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding: 56px 0 44px; }
.footer .logo span { color: #fff; }
.footer p { font-size: 14.5px; margin: 18px 0; max-width: 320px; }
.footer h4 { color: #fff; margin: 0 0 18px; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 14.5px; font-weight: 600; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: .2s; }
.socials a:hover { background: var(--gold); color: var(--ink); transform: translateY(-3px); }
.pay-badges { display: flex; gap: 8px; margin-top: 18px; }
.pay-badges span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: rgba(255,255,255,.06); font-size: 12.5px; font-weight: 800; color: #fff; }
.footer-bottom { position: relative; border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: 13.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Drawer, bottom nav, back-to-top ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15,18,32,.55); backdrop-filter: blur(3px); z-index: 90; opacity: 0; visibility: hidden; transition: .25s; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 320px; max-width: 88vw; background: var(--surface); z-index: 100; transform: translateX(-100%); transition: transform .3s var(--ease); overflow-y: auto; padding: 22px; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); font-weight: 800; color: var(--fg); }
.drawer .sub { padding-left: 18px; font-weight: 600; color: var(--muted); }
.drawer .lang-switch { margin: 16px 0 0; display: inline-flex; }
.drawer .lang-switch a { border: 0; padding: 6px 12px; }
.bottom-nav { display: none; }
.to-top { position: fixed; right: 22px; bottom: 26px; z-index: 70; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: var(--gold); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .trust .container { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .nav-phone { display: none; }
  .icon-btn .label { display: none; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .header-main { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 10px 14px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search input { height: 46px; }
  .header-actions .lang-switch { display: none; }
  .hero-slide { grid-template-columns: 1fr; gap: 0; }
  .hero-slides { min-height: 0; }
  .hero-copy { padding: 50px 0 10px; }
  .hero-visual { min-height: 320px; padding-bottom: 80px; }
  .hero-visual .ring, .hero-visual .ring.r2 { width: 300px; height: 300px; }
  .hero-visual .glow { width: 280px; height: 280px; }
  .hero-visual img.art { width: 260px; }
  .float-card.fc-2 { right: 0; top: 10px; }
  .float-card.fc-1 { left: 0; bottom: 90px; }
  .hero-slide.has-image { padding: 40px 28px; }
  .catalog, .pdp, .cart-layout, .deal, .team-cta { grid-template-columns: 1fr; }
  .pdp-gallery, .summary, .filters { position: static; }
  .filters { display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .promo-row, .info-grid { grid-template-columns: 1fr; }
  .deal-copy { padding: 40px 30px 10px; }
  .deal-visual { min-height: 320px; padding-bottom: 40px; }
  .deal-badge { top: 10px; right: 24px; width: 92px; height: 92px; font-size: 24px; }
  .team-cta { padding: 34px 26px; }
  .section { margin: 60px 0; }
  .toasts { top: auto; bottom: 86px; left: 16px; right: 16px; }
  .flash { max-width: none; }
  /* mobile app-style bottom navigation */
  body { padding-bottom: 70px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: var(--glass); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 800; color: var(--muted); padding: 6px 0; position: relative; }
  .bottom-nav a.active { color: var(--fg); }
  .bottom-nav a.active svg { color: var(--gold-deep); }
  .bottom-nav .badge { position: absolute; top: 0; left: calc(50% + 4px); min-width: 17px; height: 17px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 10px; font-weight: 900; display: grid; place-items: center; padding: 0 4px; }
  .to-top { bottom: 86px; }
  .header-actions .icon-btn:not(.cart-btn) { display: none; }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 70px; z-index: 75; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px; align-items: center; gap: 12px; box-shadow: 0 -10px 30px rgba(15,18,32,.08); }
  .sticky-buy .price { font-size: 18px; }
  .sticky-buy .btn { flex: 1; }
}
@media (max-width: 620px) {
  .container { padding: 0 16px; }
  .product-grid, .catalog .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card { padding: 6px; border-radius: 20px; }
  .product-media { border-radius: 16px; }
  .product-body { padding: 10px 6px 6px; }
  .product-name { font-size: 13.5px; min-height: 37px; }
  .size-preview { display: none; }
  .price { font-size: 15px; }
  .price-old { display: block; margin: 0; font-size: 12px; }
  .cart-mini { width: 38px; height: 38px; border-radius: 12px; }
  .quick-add { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-tile { min-height: 200px; padding: 16px 14px 0; border-radius: 22px; }
  .cat-tile .cat-img, .cat-tile .cat-img img { height: 110px; }
  .trust .container { grid-template-columns: 1fr 1fr; padding: 0; }
  .trust-item { flex-direction: column; text-align: center; gap: 8px; padding: 18px 10px; }
  .trust-item small { display: none; }
  .hero-stats { gap: 22px; }
  .hero-stats b { font-size: 20px; }
  .hero-controls { bottom: 18px; }
  .hero-arrows { display: none; }
  .float-card.fc-1 { display: none; }
  .logo span { font-size: 18px; }
  .logo img { width: 38px; height: 38px; }
  .icon-btn.cart-btn { padding: 9px 12px; }
  .form-grid, .pay-options { grid-template-columns: 1fr; }
  /* Phone: photo + name on top, then quantity on the left and the line total on the right */
  .cart-line { grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "img info info" "qty qty total"; gap: 12px; }
  .cart-line .cl-img { grid-area: img; }
  .cart-line .cl-info { grid-area: info; min-width: 0; }
  .cart-line .cl-qty { grid-area: qty; justify-self: start; }
  .cart-line .line-total { grid-area: total; min-width: 0; text-align: right; white-space: nowrap; align-self: center; }
  .cart-line img { width: 76px; height: 76px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .pdp-gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; grid-row: 2; overflow-x: auto; }
  .gallery-thumbs button { width: 68px; height: 68px; flex-shrink: 0; }
  .pdp-perks { grid-template-columns: 1fr; }
  .countdown div { min-width: 0; flex: 1; }
  .deal-price .price { font-size: 30px; }
  .box { padding: 18px; }
  .catalog-bar { border-radius: 20px; padding: 10px 14px; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 10px 8px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Per-size stock on the product page & cards */
.size-pills label.sold-out span { opacity: .45; text-decoration: line-through; cursor: not-allowed; background: repeating-linear-gradient(-45deg, #fff, #fff 5px, #f3f0e8 5px, #f3f0e8 10px); }
.size-pills label.sold-out span:hover { border-color: var(--line); }
.size-left { margin-top: 10px; font-size: 14px; font-weight: 800; color: var(--green); min-height: 21px; }
.size-left.few { color: var(--red); }
.size-preview span.zero { text-decoration: line-through; opacity: .5; }

/* ---------- Extra phone polish ---------- */
.pdp-tabs .tab-panel { overflow-x: auto; }
.product-name, .pdp-info h1, .cart-line h4, .mini-line div { overflow-wrap: anywhere; }
@media (max-width: 960px) {
  /* 16px form fields stop iPhone Safari from zooming in while typing */
  .field input, .field select, .field textarea, .search input, .price-inputs input, .select, .qty input { font-size: 16px; }
  .pdp-actions .btn { min-width: 0; }
  .catalog-bar form { flex: 1; }
  .catalog-bar .select { width: 100%; }
  .page-band { padding: 26px 0 30px; margin-bottom: 22px; }

}
@media (max-width: 380px) {
  .product-grid, .catalog .product-grid { gap: 8px; }
  .hero h1, .hero h2.hero-title { font-size: 30px; }
  .hero-stats { gap: 14px; }
  .countdown b { font-size: 22px; }
}

/* Sold-out products: still shown, clearly marked "Gutardy" */
.product-card.is-soldout .product-media img { filter: grayscale(.85); opacity: .55; }
.product-card.is-soldout .price { color: var(--muted); }
.product-card.is-soldout .product-badges .tag-out { display: none; }
.soldout-ribbon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg); z-index: 2;
  background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .06em;
  padding: 9px 18px; border-radius: 10px; box-shadow: 0 10px 24px rgba(15,18,32,.25); text-transform: uppercase; white-space: nowrap; }
.soldout-note { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; background: #FDECED; border: 1px solid #F6C9CB; margin: -8px 0 22px; }
.soldout-note b { color: var(--red); font-size: 17px; font-family: var(--display); }
.soldout-note span { color: #7a3a3d; font-size: 14px; font-weight: 600; }

/* ---------- Scroll progress line ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-2)); box-shadow: 0 0 10px rgba(242,194,85,.7); transition: transform .08s linear; }

/* ---------- Live search ---------- */
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 80; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); padding: 8px; max-height: 70vh; overflow-y: auto; animation: fadeUp .2s var(--ease); }
.suggest-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.suggest-item:hover, .suggest-item.active { background: var(--cream); }
.suggest-item img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: #F4F0E6; flex-shrink: 0; }
.suggest-item.soldout img { filter: grayscale(.9); opacity: .6; }
.suggest-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.suggest-text b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-text small { color: var(--muted); font-size: 12px; font-weight: 700; }
.suggest-item.soldout .suggest-text small { color: var(--red); }
.suggest-price { font-family: var(--display); font-weight: 700; font-size: 14px; white-space: nowrap; text-align: right; display: flex; flex-direction: column; }
.suggest-price s { font-family: "Manrope"; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.suggest-all { display: block; text-align: center; padding: 11px; margin-top: 4px; border-top: 1px solid var(--line); font-weight: 800; color: var(--navy); border-radius: 0 0 12px 12px; }
.suggest-all:hover, .suggest-all.active { background: var(--gold-soft); }
.suggest-empty { padding: 16px; text-align: center; color: var(--muted); font-weight: 700; }

/* ---------- Photo zoom & lightbox ---------- */
.gallery-main img { transition: transform .15s ease-out, opacity .15s; }
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(10,12,22,.94); display: none; align-items: center; justify-content: center; padding: 50px 70px; }
.lightbox.open { display: flex; animation: fadeUp .25s var(--ease); }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; user-select: none; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 28px; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lightbox button:hover { background: var(--gold); color: var(--ink); }
.lb-close { top: 16px; right: 16px; font-size: 20px !important; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.75); font-weight: 800; font-size: 14px; }
@media (max-width: 620px) { .lightbox { padding: 60px 8px; } .lb-prev, .lb-next { width: 42px !important; height: 42px !important; } }

/* ---------- Order tracking ---------- */
.track-layout { display: grid; grid-template-columns: 380px 1fr; gap: 26px; align-items: start; margin-bottom: 60px; }
.timeline { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; top: 20px; left: 12%; right: 12%; height: 3px; background: var(--line); }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; color: var(--muted); }
.timeline .dot { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); display: grid; place-items: center; font-size: 18px; position: relative; z-index: 1; }
.timeline li.done .dot { border-color: var(--green); background: #E6F6EE; }
.timeline li.current .dot { border-color: var(--gold-deep); background: var(--gold-soft); box-shadow: 0 0 0 6px rgba(242,194,85,.25); animation: pulse 2s infinite; }
.timeline li.done, .timeline li.current { color: var(--fg); }
@media (max-width: 960px) { .track-layout { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .timeline .dot { width: 34px; height: 34px; font-size: 15px; } .timeline::before { top: 16px; } .timeline li { font-size: 11.5px; } }

/* ---------- Add to cart / favorites without reload ---------- */
.badge.bump { animation: badgeBump .45s var(--ease); }
@keyframes badgeBump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
button.is-loading { opacity: .65; pointer-events: none; }

/* ---------- Banners: separate phone photo + photo-only banners ---------- */
.hero-slide.has-image { background-image: var(--bg); }
.hero-slide.hero-photo { display: block; margin: 30px 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.hero-slide.hero-photo picture, .hero-slide.hero-photo img { display: block; width: 100%; height: auto; }
.hero-slide.hero-photo:not(.active) img { height: 100%; object-fit: cover; }
.hero-slides:has(> .hero-photo.active) { min-height: 0; }
.hero:has(.hero-photo.active) .hero-controls { bottom: 46px; left: 50px; right: 50px; }
@media (max-width: 620px) {
  .hero-slide.has-image { background-image: var(--bg-m, var(--bg)); }
  .hero-slide.hero-photo { margin: 14px 0 44px; border-radius: 18px; }
  .hero:has(.hero-photo.active) .hero-controls { bottom: 16px; left: 24px; right: 24px; }
}

/* =====================================================================
   HERO v2 — full-width slider; every slide has exactly the same size
   computer: 1920×720 shape (37.5% of the width) · phone: 1080×1350 (4:5)
   ===================================================================== */
.hx { position: relative; overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; }
.hx-track { position: relative; height: clamp(440px, 37.5vw, 760px); }
.hx-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility .9s;
  background:
    radial-gradient(70% 90% at 80% 45%, rgba(242,194,85,.24), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(0,0,0,.35), transparent 70%),
    linear-gradient(150deg, color-mix(in srgb, var(--c) 92%, #fff 8%), color-mix(in srgb, var(--c) 55%, #000 45%));
}
.hx-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hx-slide.is-text::before { /* pitch markings */
  content: ""; position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background:
    radial-gradient(circle at 70% 50%, transparent 159px, #fff 160px, #fff 162px, transparent 163px),
    linear-gradient(90deg, transparent calc(70% - 1px), #fff calc(70% - 1px), #fff calc(70% + 1px), transparent calc(70% + 1px));
}
.hx-bg, .hx-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hx-bg img { object-fit: cover; object-position: center; transform: scale(1.06); transition: transform 7s linear; }
.hx-slide.is-active .hx-bg img { transform: scale(1); }
.hx-slide.is-text.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,14,26,.88) 0%, rgba(12,14,26,.55) 45%, rgba(12,14,26,.05) 100%); }
.hx-cover { position: absolute; inset: 0; z-index: 2; }
.hx-inner { position: relative; z-index: 2; height: 100%; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 30px; }
.hx-copy { max-width: 640px; padding-bottom: 20px; }
.hx-title { font-size: clamp(34px, 4.6vw, 72px); line-height: 1.02; margin: 20px 0 16px; font-weight: 800; letter-spacing: -.035em; color: #fff; }
.hx-title em { font-style: normal; background: linear-gradient(120deg, var(--gold-2), var(--gold) 50%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-sub { font-size: clamp(15px, 1.3vw, 19px); color: rgba(255,255,255,.75); max-width: 520px; margin: 0 0 30px; }
.hx-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hx-slide.is-active .hx-copy > * { animation: rise .8s var(--ease) both; }
.hx-slide.is-active .hx-copy > :nth-child(2) { animation-delay: .08s; }
.hx-slide.is-active .hx-copy > :nth-child(3) { animation-delay: .16s; }
.hx-slide.is-active .hx-copy > :nth-child(4) { animation-delay: .24s; }
.hx-art { position: relative; height: 100%; display: grid; place-items: center; }
.hx-art img { position: relative; width: min(400px, 82%); max-height: 78%; object-fit: contain; filter: drop-shadow(0 40px 50px rgba(0,0,0,.45)); animation: float 6s ease-in-out infinite; }
.hx-art .glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(242,194,85,.42), transparent 65%); filter: blur(20px); animation: pulse 5s ease-in-out infinite; }
.hx-art .ring { position: absolute; width: 78%; aspect-ratio: 1; max-height: 90%; border-radius: 50%; border: 1px dashed rgba(242,194,85,.35); animation: spin 40s linear infinite; }
.hx-chip { position: absolute; top: 14%; right: 4%; z-index: 3; padding: 12px 18px; border-radius: 18px; background: rgba(255,255,255,.95); color: var(--text); box-shadow: 0 20px 50px rgba(0,0,0,.35); animation: float 7s ease-in-out infinite -3s; }
.hx-chip small { display: block; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.hx-chip b { font-family: var(--display); font-size: 30px; color: var(--red); line-height: 1; }

/* controls */
.hx-arrow {
  position: absolute; top: 50%; z-index: 5; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .3s, background .2s, transform .2s;
}
.hx-arrow.prev { left: 24px; } .hx-arrow.next { right: 24px; }
.hx:hover .hx-arrow, .hx-arrow:focus-visible { opacity: 1; }
.hx-arrow:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: scale(1.06); }
.hx-dots { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 5; display: flex; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(10,12,22,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hx-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.45); cursor: pointer; overflow: hidden; position: relative; transition: width .4s var(--ease), background .3s; }
.hx-dots button.is-active { width: 38px; background: rgba(255,255,255,.3); }
.hx-dots button.is-active span { position: absolute; inset: 0; background: var(--gold); transform-origin: left; animation: progress var(--hx-time, 6s) linear forwards; }
.hx.is-paused .hx-dots button.is-active span { animation-play-state: paused; }

@media (max-width: 960px) {
  .hx-inner { grid-template-columns: 1fr; }
  .hx-art { position: absolute; right: -8%; bottom: 0; width: 52%; height: 70%; opacity: .55; z-index: -1; }
  .hx-chip { display: none; }
}
@media (max-width: 620px) {
  .hx-track { height: min(125vw, 82svh); }     /* 4:5 — same as the phone photo */
  .hx-inner { align-items: end; padding-bottom: 64px; }
  .hx-copy { padding: 0; }
  .hx-title { font-size: clamp(30px, 9vw, 40px); margin: 14px 0 10px; }
  .hx-sub { margin-bottom: 20px; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hx-ctas .btn { padding: 14px 20px; font-size: 15px; }
  .hx-art { right: -18%; top: 4%; bottom: auto; width: 80%; height: 55%; opacity: .5; }
  .hx-slide.is-text.has-img::after { background: linear-gradient(0deg, rgba(12,14,26,.92) 0%, rgba(12,14,26,.55) 50%, rgba(12,14,26,.1) 100%); }
  .hx-arrow { display: none; }
  .hx-dots { bottom: 16px; }
  .eyebrow { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .hx-bg img { transition: none; transform: none; } }

/* ---------- Mobile polish ---------- */
@media (max-width: 960px) {
  .search input { padding-right: 96px; text-overflow: ellipsis; }
}
@media (max-width: 620px) {
  .search input::placeholder { font-size: 14px; }
  .section { margin: 46px 0; }
  .cat-tile b { font-size: 15px; }
  .cat-tile .arrow { display: none; }
  .footer { margin-top: 56px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 18px; padding: 40px 0 30px; }
  .footer-top > :first-child, .footer-top > :last-child { grid-column: 1 / -1; }
  .footer ul { gap: 9px; font-size: 14px; }
}

/* ---------- Catalog loading in place ---------- */
.catalog.is-loading .product-grid, .catalog.is-loading .empty { opacity: .45; filter: saturate(.6); transition: opacity .2s; pointer-events: none; }
.catalog.is-loading .catalog-bar .count::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 8px; vertical-align: -1px; border: 2px solid var(--gold); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

/* ---------- Size picker sheet (add sized products straight from a card) ---------- */
.size-sheet { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(12,14,26,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.size-sheet.open { opacity: 1; visibility: visible; }
.ss-panel { position: relative; width: min(420px, 100%); background: var(--surface); color: var(--text); border-radius: 24px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.35); transform: translateY(16px) scale(.98); transition: transform .3s var(--ease); }
.size-sheet.open .ss-panel { transform: none; }
.ss-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--cream); cursor: pointer; font-size: 15px; }
.ss-head { display: flex; gap: 14px; align-items: center; padding-right: 40px; }
.ss-head img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--cream); flex-shrink: 0; }
.ss-head b { display: block; font-size: 15.5px; line-height: 1.3; }
.ss-head span { display: block; margin-top: 4px; font-family: var(--display); font-weight: 800; color: var(--navy); }
.ss-title { margin: 20px 0 10px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ss-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.ss-sizes button { height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 800; font-size: 15px; cursor: pointer; transition: .15s; color: var(--text); }
.ss-sizes button:hover, .ss-sizes button:focus-visible { border-color: var(--ink); background: var(--ink); color: var(--gold); outline: none; }
.ss-more { display: inline-block; margin-top: 16px; font-weight: 700; font-size: 14px; color: var(--muted); }
.ss-more:hover { color: var(--fg); }
@media (max-width: 620px) {
  .size-sheet { place-items: end stretch; padding: 0; }
  .ss-panel { width: 100%; border-radius: 24px 24px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%); }
  .ss-panel::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: -8px auto 14px; }
}
.product-card form { margin: 0; }

/* ---------- Snow ---------- */
.snow-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 150; }
.snow-toggle { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; opacity: .8; }
.snow-toggle:hover { color: var(--gold); opacity: 1; }

/* =====================================================================
   HERO v3 — boxed banner (inside the page margins), smaller, rounded.
   Same fixed shape for every banner: computer 1920×720 (8:3), phone 1080×1350 (4:5).
   ===================================================================== */
.hx { width: calc(100% - 48px); max-width: calc(var(--container) - 48px); margin: 24px auto; border-radius: 28px; box-shadow: 0 30px 60px -36px rgba(23,26,42,.55); }
.hx-track { height: auto; aspect-ratio: 8 / 3; }
.hx .hx-inner { max-width: none; padding: 0 64px; }
.hx-title { font-size: clamp(30px, 3.6vw, 56px); }
.hx-sub { margin-bottom: 24px; }
.hx-arrow { width: 44px; height: 44px; margin-top: -22px; }
.hx-arrow.prev { left: 16px; } .hx-arrow.next { right: 16px; }
.hx-dots { bottom: 16px; }
.hx + .trust { border-top: 1px solid var(--line); }
@media (max-width: 1100px) {
  .hx-track { aspect-ratio: auto; height: clamp(320px, 37.5vw, 460px); }  /* keep room for the text on tablets */
  .hx .hx-inner { padding: 0 40px; }
}
@media (max-width: 620px) {
  .hx { width: calc(100% - 32px); margin: 14px auto 18px; border-radius: 22px; }
  .hx-track { height: auto; aspect-ratio: 4 / 5; max-height: 72svh; }
  .hx .hx-inner { padding: 0 20px 56px; }
  .hx-title { font-size: clamp(26px, 8vw, 36px); }
  .eyebrow { padding: 5px 12px 5px 6px; }
}

/* =====================================================================
   DARK MODE  (html[data-theme="dark"]) — switched with the ☀️/🌙 button
   ===================================================================== */
html[data-theme="dark"] {
  color-scheme: dark;
  --page: #0C0E17;
  --surface: #151826;
  --cream: #1C2031;          /* inputs, hover, photo backgrounds */
  --glass: rgba(16,18,30,.86);
  --fg: #F3F4F8;
  --text: #DADCE5;
  --muted: #9298AC;
  --line: #272B3E;
  --navy: #C9CEE2;
  --ink: #262B41;            /* dark buttons & panels: a bit lighter so they stand out */
  --ink-2: #1A1E2F;
  --ink-3: #31374F;
  --gold-soft: rgba(242,194,85,.13);
  --shadow-sm: 0 2px 10px rgba(0,0,0,.35);
  --shadow: 0 14px 40px rgba(0,0,0,.45);
}
html[data-theme="dark"] body { background: var(--page); }
html[data-theme="dark"] .hx { box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
html[data-theme="dark"] .cat-tile:nth-child(6n+1) { background: linear-gradient(160deg, #2B2617, #1D1A12); }
html[data-theme="dark"] .cat-tile:nth-child(6n+2) { background: linear-gradient(160deg, #2D1F1A, #1E1512); }
html[data-theme="dark"] .cat-tile:nth-child(6n+3) { background: linear-gradient(160deg, #1F2434, #161A26); }
html[data-theme="dark"] .cat-tile:nth-child(6n+4) { background: linear-gradient(160deg, #18291F, #111C16); }
html[data-theme="dark"] .cat-tile:nth-child(6n+5) { background: linear-gradient(160deg, #343A55, #22273A); }
html[data-theme="dark"] .cat-tile:nth-child(6n+6) { background: linear-gradient(160deg, #1A2536, #121A27); }
html[data-theme="dark"] .cat-tile { color: var(--fg); }
html[data-theme="dark"] .cat-tile .arrow { background: rgba(255,255,255,.1); color: var(--fg); }
html[data-theme="dark"] .pdp-price .save, html[data-theme="dark"] .timeline li.done .dot { background: rgba(34,160,107,.16); }
html[data-theme="dark"] .soldout-note { background: rgba(229,72,77,.12); border-color: rgba(229,72,77,.35); }
html[data-theme="dark"] .cart-line img, html[data-theme="dark"] .mini-line img, html[data-theme="dark"] .suggest-item img { background: var(--cream); }
html[data-theme="dark"] .footer { background: #080A12; }
html[data-theme="dark"] .btn-outline { border-color: var(--fg); color: var(--fg); }
html[data-theme="dark"] .btn-outline:hover { background: var(--fg); color: var(--page); }
html[data-theme="dark"] .icon-btn:hover { background: var(--cream); }
html[data-theme="dark"] .lang-switch a.active { background: var(--gold); color: #0F1220; }
html[data-theme="dark"] .bottom-nav a.active { color: var(--gold); }
html[data-theme="dark"] .logo span { color: var(--fg); }
html[data-theme="dark"] .snow-canvas { opacity: .9; }
html[data-theme="dark"] img.logo-dark-fix { filter: none; }
html[data-theme="dark"] ::placeholder { color: #6E748A; }
/* smooth switch */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .35s ease, border-color .35s ease, color .35s ease !important; }

/* ---------- Theme switch button ---------- */
.theme-toggle { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; display: grid; place-items: center; overflow: hidden; flex-shrink: 0; transition: border-color .2s, transform .2s; }
.theme-toggle:hover { border-color: var(--gold); transform: rotate(-12deg); }
.theme-toggle svg { position: absolute; transition: transform .45s var(--ease), opacity .3s; }
.theme-toggle .i-moon { transform: translateY(0); }
.theme-toggle .i-sun { transform: translateY(30px) rotate(90deg); opacity: 0; color: var(--gold); }
html[data-theme="dark"] .theme-toggle .i-moon { transform: translateY(-30px) rotate(-90deg); opacity: 0; }
html[data-theme="dark"] .theme-toggle .i-sun { transform: none; opacity: 1; }
@media (max-width: 960px) { .theme-toggle { width: 40px; height: 40px; } }

/* Cart line while its new quantity is being saved */
.cart-line.is-updating .line-total { opacity: .45; transition: opacity .15s; }

/* Product page: "Back" button next to the breadcrumbs */
.pdp-top { display: flex; align-items: center; gap: 14px; margin: 22px 0 8px; flex-wrap: wrap; }
.pdp-top .breadcrumbs { margin: 0; }
.back-btn { display: inline-flex; align-items: center; gap: 4px; padding: 9px 16px 9px 10px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); font-weight: 800; font-size: 14px; line-height: 1; transition: border-color .2s, transform .2s; }
.back-btn:hover { border-color: var(--fg); }
.back-btn:active { transform: scale(.96); }
@media (max-width: 640px) {
  .pdp-top { margin-top: 14px; }
  .pdp-top .breadcrumbs { display: none; } /* the button is enough on a phone */
}

/* Phone header: a bit more room at the top, and never under the phone's status bar / notch */
@media (max-width: 960px) {
  .header { padding-top: env(safe-area-inset-top, 0px); }
  .header-main { padding: 11px 22px 12px; } /* sides: keep the buttons off the screen edges */
}

/* ---------- Long words in Russian / Turkmen / English ---------- */
/* Menu: one line per item. If the row is too long, JS adds .fit-1 / .fit-2 / .fit-3 to tighten it. */
.nav-item > a, .nav-phone { white-space: nowrap; flex-shrink: 0; }
.nav .container { min-width: 0; }
.nav.fit-1 .nav-item > a { padding: 8px 10px; gap: 4px; }
.nav.fit-1 .nav-sale a { padding: 8px 13px !important; }
.nav.fit-2 .nav-phone { display: none; }
.nav.fit-3 .nav-item > a { font-size: 13.5px; padding: 8px 8px; }
.nav.fit-4 .container { flex-wrap: wrap; height: auto; padding-top: 4px; padding-bottom: 4px; row-gap: 0; }
.nav.fit-4 .nav-item { height: 44px; }
/* Category tiles: the name gets the full width (long Russian words), the round arrow sits in the bottom corner */
.cat-tile b { font-size: 15px; overflow-wrap: break-word; hyphens: auto; }
.cat-tile .arrow { top: auto; bottom: 16px; right: 16px; z-index: 1; }
@media (min-width: 1181px) {
  .cat-tile { padding-left: 16px; padding-right: 16px; }
  .cat-tile b { font-size: 14.5px; }
}
@media (max-width: 640px) {
  /* Tabs (product page, homepage): one line each; if they don't fit, the row scrolls sideways */
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: 1 0 auto; white-space: nowrap; padding: 10px 12px; }
  /* Category tiles are narrow on a phone: smaller title so long words don't break */
  .cat-tile b { font-size: 13.5px; }
  /* Promo cards: text on the left, picture smaller in the corner so they don't cover each other */
  .promo { padding: 28px 22px; min-height: 230px; }
  .promo h3 { font-size: 23px; max-width: 64%; }
  .promo p { max-width: 60%; font-size: 14px; }
  .promo-art { width: 150px; height: 150px; right: -18px; bottom: -14px; }
}

/* "Track order" in the header: label on wide screens, icon only below; stays visible on phones next to the cart */
.icon-btn.track-btn.active { background: var(--cream); }
.icon-btn .label { white-space: nowrap; }
@media (max-width: 1360px) { .icon-btn.track-btn .label { display: none; } }
@media (max-width: 960px) {
  .header-actions .icon-btn.track-btn { display: flex; padding: 9px; }
}

/* Phone header: menu | logo | buttons always on ONE row (the logo name shrinks first), search below */
@media (max-width: 960px) {
  .header-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "menu logo actions" "search search search"; align-items: center; }
  .header-main .menu-toggle { grid-area: menu; }
  .header-main .logo { grid-area: logo; min-width: 0; }
  .header-main .logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-main .search { grid-area: search; }
  .header-main .header-actions { grid-area: actions; margin-left: 0; flex-wrap: nowrap; }
}
@media (max-width: 400px) {
  .header-main { column-gap: 10px; }
  .header-main .logo { gap: 8px; }
  .header-main .logo span { font-size: 16px; }
  .header-main .logo img { width: 34px; height: 34px; }
  .menu-toggle { padding: 4px; }
  .header-actions { gap: 2px; }
  .theme-toggle { width: 38px; height: 38px; }
  .header-actions .icon-btn.track-btn { padding: 8px; }
}
@media (max-width: 350px) { .header-main .logo span { font-size: 14.5px; } .theme-toggle { width: 34px; height: 34px; } }
