/* ==========================================================================
   HERMES v2 - modern e-commerce design system
   Sources (ui-ux-pro-max): style "Minimalism & Swiss" + typography
   "Geometric Modern" (Outfit headings) with Inter body. One accent colour.
   Decisions are logged in çıktılar/2026-11-26_web-tasarim-ajani_hermes-v2/.
   ========================================================================== */
:root {
  --ink: #111111;
  --ink-2: #3F3F46;
  --muted: #62626A;          /* 5.9:1 on white, 5.4:1 on surface */
  --bg: #FFFFFF;
  --surface: #F4F4F2;
  --surface-2: #EBE9E5;
  --line: #E4E4E0;
  --accent: #7F4A24;         /* cognac, 7.7:1 on white, 5.5:1 on warm slide bg */
  --accent-soft: #F5ECE4;
  --ok: #1F7A4D;
  --danger: #B42318;

  --display: "Outfit", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 6px; --r: 10px; --r-lg: 16px; --r-xl: 24px; --pill: 999px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --max: 100%;               /* full-width site: content spans the screen, gutters only */
  --header-h: 128px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 160ms; --t: 260ms; --t-slow: 520ms;
  --shadow: 0 1px 2px rgba(17,17,17,.04), 0 8px 24px rgba(17,17,17,.06);
  --shadow-lg: 0 20px 60px rgba(17,17,17,.16);
}

/* ---------- Base ---------- */
#chrome-top, #chrome-bottom { display: contents; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--sm { width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--pill);
  font-weight: 600; font-size: 15px; background: var(--ink); color: #fff; border: 1px solid var(--ink);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
.btn:hover { background: #2A2A2A; }
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--surface); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 16px; }
/* WhatsApp: bright WhatsApp green with near-black text (contrast 9.6:1) */
.icon--wa { fill: currentColor; stroke: none; width: 22px; height: 22px; }
.btn--wa { background: #25D366; border-color: #25D366; color: #0B1F14; }
.btn--wa:hover { background: #1FBF5B; border-color: #1FBF5B; }
.btn--icon { padding: 0; width: 48px; flex: none; }
.wa-cta { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 20px 10px 10px; border-radius: var(--pill); color: #0B1F14; text-decoration: none;
  background: linear-gradient(135deg, #2FE073 0%, #25D366 45%, #1EBE5D 100%); box-shadow: 0 10px 24px -12px rgba(18,140,70,.7); transition: transform var(--t-fast), box-shadow var(--t-fast); }
.wa-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(18,140,70,.8); }
.wa-cta:active { transform: translateY(0) scale(.99); }
.wa-cta:focus-visible { outline: 3px solid #0B1F14; outline-offset: 3px; }
.wa-cta__ico { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #1DAA55; }
.wa-cta__ico .icon--wa { width: 24px; height: 24px; }
/* soft "ping" ring so the button draws the eye, every few seconds */
.wa-cta__ico::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; animation: wa-ping 3.2s var(--ease) infinite; }
@keyframes wa-ping { 0%, 55% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-cta__txt { flex: 1; min-width: 0; display: grid; gap: 1px; line-height: 1.25; }
.wa-cta__txt b { font-size: 16px; font-weight: 700; }
.wa-cta__txt small { font-size: 13px; opacity: .85; }
.wa-cta__arrow { flex: none; width: 20px; height: 20px; stroke-width: 2; transition: transform var(--t-fast); }
.wa-cta:hover .wa-cta__arrow { transform: translateX(4px); }
/* light sweep on hover */
.wa-cta::before { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); pointer-events: none; }
.wa-cta:hover::before { left: 120%; }
@media (prefers-reduced-motion: reduce) { .wa-cta__ico::after { animation: none; opacity: 0; } .wa-cta::before { display: none; } .wa-cta, .wa-cta__arrow { transition: none; } }

/* ---------- Floating WhatsApp (all pages except product) ---------- */
.wa-float { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: flex-end; gap: 12px; pointer-events: none; }
.wa-float > * { pointer-events: auto; }
.wa-float__btn { position: relative; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none;
  background: radial-gradient(circle at 30% 25%, #2FD571, #179B4B 70%); box-shadow: 0 12px 28px -8px rgba(15,110,55,.65), 0 0 0 4px #fff; transition: transform var(--t-fast); }
.wa-float__btn .icon--wa { width: 32px; height: 32px; }
.wa-float__btn::before, .wa-float__btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: wa-ring 2.8s var(--ease) infinite; }
.wa-float__btn::after { animation-delay: 1.4s; }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.75); opacity: 0; } }
.wa-float__btn:hover { transform: scale(1.07); }
.wa-float__btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
.wa-float__tip { position: relative; display: flex; align-items: flex-start; gap: 6px; max-width: 250px; margin-bottom: 8px; padding: 12px 8px 12px 16px; background: #fff; border-radius: 18px 18px 4px 18px; box-shadow: 0 14px 36px -10px rgba(0,0,0,.28); font-size: 14px; font-weight: 500; line-height: 1.35;
  opacity: 0; transform: translateY(8px) scale(.96); transform-origin: bottom right; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.wa-float__tip.is-on { opacity: 1; transform: none; }
.wa-float__x { flex: none; width: 28px; height: 28px; margin-top: -4px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.wa-float__x:hover { background: var(--surface); color: var(--ink); }
@media (max-width: 1000px) { .wa-float { right: 14px; bottom: calc(64px + 14px + env(safe-area-inset-bottom)); } .wa-float__btn { width: 56px; height: 56px; } .wa-float__btn .icon--wa { width: 28px; height: 28px; } }

/* ---------- Home: WhatsApp Hotline ---------- */
.hotline-sec { padding-block: 8px clamp(40px, 6vw, 72px); }
.mq { overflow: hidden; background: var(--ink); color: #fff; padding-block: 14px; margin-bottom: clamp(24px, 4vw, 44px); }
.mq__track { display: flex; width: max-content; animation: mq 38s linear infinite; }
.mq:hover .mq__track { animation-play-state: paused; }
.mq__item { display: inline-flex; align-items: center; gap: 12px; padding-inline: 28px; font-size: clamp(15px, 1.4vw, 19px); font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.mq__item .icon--wa { width: 20px; height: 20px; color: #25D366; }
@keyframes mq { to { transform: translateX(-50%); } }
.hotline { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(28px, 4.5vw, 64px); border-radius: var(--r-xl); color: #08261A;
  background: radial-gradient(120% 140% at 100% 0%, #B9F6CF 0%, transparent 55%), linear-gradient(135deg, #34E27A 0%, #25D366 45%, #1BB457 100%); }
.hotline::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 60px solid rgba(255,255,255,.14); pointer-events: none; }
.hotline__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--pill); background: rgba(255,255,255,.55); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hotline__dot { width: 8px; height: 8px; border-radius: 50%; background: #08261A; box-shadow: 0 0 0 0 rgba(8,38,26,.5); animation: dot 2s infinite; }
@keyframes dot { 70% { box-shadow: 0 0 0 8px rgba(8,38,26,0); } 100% { box-shadow: 0 0 0 0 rgba(8,38,26,0); } }
.hotline h2 { margin: 18px 0 12px; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -.02em; font-weight: 700; }
.hotline__body > p { max-width: 46ch; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.5; }
.hotline__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.hotline__cta { display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 26px 0 20px; border-radius: var(--pill); background: #08261A; color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); transition: transform var(--t-fast), background var(--t-fast); }
.hotline__cta .icon--wa { color: #25D366; width: 24px; height: 24px; }
.hotline__cta .icon { transition: transform var(--t-fast); }
.hotline__cta:hover { transform: translateY(-2px); background: #000; }
.hotline__cta:hover .icon:last-child { transform: translateX(4px); }
.hotline__cta:focus-visible, .hotline__num:focus-visible { outline: 3px solid #08261A; outline-offset: 3px; }
.hotline__num { display: grid; color: inherit; text-decoration: none; line-height: 1.2; }
.hotline__num small { font-size: 13px; opacity: .8; }
.hotline__num b { font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; letter-spacing: .01em; }
.hotline__num:hover b { text-decoration: underline; text-underline-offset: 4px; }
/* chat card */
.chat { text-align: left; position: relative; z-index: 1; width: 100%; max-width: 380px; justify-self: center; border-radius: 26px; overflow: hidden; background: #EFE7DE; box-shadow: 0 30px 60px -24px rgba(5,40,20,.55); transform: rotate(2deg); }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #075E54; color: #fff; }
.chat__head > div { flex: 1; display: grid; line-height: 1.2; }
.chat__head b { font-size: 15px; letter-spacing: .08em; }
.chat__head small { font-size: 12px; opacity: .85; }
.chat__head .icon--wa { width: 22px; height: 22px; opacity: .9; }
.chat__avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #075E54; font-weight: 800; }
.chat__avatar img { width: 28px; height: 28px; object-fit: contain; }
.chat__body { display: grid; gap: 10px; padding: 18px 14px 22px; background-image: radial-gradient(rgba(0,0,0,.05) 1px, transparent 1px); background-size: 14px 14px; }
.msg { position: relative; max-width: 84%; padding: 8px 10px 6px; border-radius: 12px; font-size: 14px; line-height: 1.4; color: #111; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.msg time { display: block; text-align: right; font-size: 11px; color: #667; margin-top: 2px; }
.msg time i { font-style: normal; color: #34B7F1; letter-spacing: -2px; }
.msg--me { justify-self: end; background: #D9FDD3; border-top-right-radius: 4px; }
.msg--them { justify-self: start; background: #fff; border-top-left-radius: 4px; }
.msg__card { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; padding: 6px; border-radius: 8px; background: rgba(255,255,255,.7); }
.msg__media { width: 46px; height: 54px; flex: none; border-radius: 6px; overflow: hidden; background: #fff; }
.msg__media > * { width: 100%; height: 100%; }
.msg__card b { display: block; font-size: 13px; }
.msg__card small { font-size: 12px; color: #555; }
.msg--typing { justify-self: start; display: flex; gap: 4px; padding: 12px 14px; background: #fff; border-top-left-radius: 4px; }
.msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: #9AA; animation: typing 1.2s infinite; }
.msg--typing span:nth-child(2) { animation-delay: .15s; } .msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
/* the chat plays once when it scrolls into view: question, typing dots, answer */
.hotline-sec .msg--me, .hotline-sec .msg--them { animation: pop .45s var(--ease) both; }
.hotline-sec .msg--me { animation-delay: .2s; }
.hotline-sec .msg--typing { animation: pop .3s var(--ease) .9s both, gone .01s 2.4s forwards; }
.hotline-sec .msg--them { animation-delay: 2.45s; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes gone { to { opacity: 0; height: 0; padding: 0; margin-top: -10px; overflow: hidden; } }
.hotline-sec:not(.is-in) .msg { animation-play-state: paused; }
@media (max-width: 900px) {
  .hotline { grid-template-columns: 1fr; }
  .chat { max-width: 100%; transform: none; }
  .hotline__cta { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .mq__track { animation: none; } .mq { overflow-x: auto; }
  .wa-float__btn::before, .wa-float__btn::after, .hotline__dot { animation: none; opacity: 0; }
  .hotline-sec .msg { animation: none !important; } .hotline-sec .msg--typing { display: none; }
  .wa-float__tip { transition: none; }
}
.link-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 15px; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: background var(--t-fast); position: relative; flex: none; }
.icon-btn:hover { background: var(--surface); }
.badge-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.badge-count[data-n="0"] { display: none; }

/* ---------- Utility bar + header ---------- */
.util { background: var(--ink); color: #E4E4E7; font-size: 13px; }
.util .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.util__usp { display: flex; gap: 24px; overflow: hidden; white-space: nowrap; }
.util__usp span { display: inline-flex; align-items: center; gap: 8px; }
.util__links { display: flex; gap: 20px; white-space: nowrap; }
.util__links a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 760px) { .util__links { display: none; } .util__usp span:not(:first-child) { display: none; } .util .wrap { justify-content: center; } }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 3vw, 48px); min-height: 76px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; line-height: 1; }
.logo img { display: block; height: 30px; width: auto; }
.logo--sm img { height: 24px; }
.header__tools { display: flex; align-items: center; gap: 2px; }
.menu-toggle { display: none; }

/* Search */
.search { position: relative; max-width: 720px; width: 100%; justify-self: center; }
.search__box { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 18px; border-radius: var(--pill); background: var(--surface); border: 1px solid transparent; transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast); }
.search__box:focus-within { background: #fff; border-color: var(--ink); box-shadow: var(--shadow); }
.search__box input { flex: 1; min-width: 0; border: 0; background: transparent; height: 100%; font-size: 15px; }
.search__box input:focus { outline: none; }
.search__box input::-webkit-search-cancel-button { display: none; }
.search__clear { display: none; }
.search__box.has-text .search__clear { display: inline-grid; }
.search__panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 20px; display: none; z-index: 60; max-height: min(70vh, 640px); overflow: auto;
}
.search.is-open .search__panel { display: block; }
.search__label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.search__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.search__hits { display: grid; gap: 4px; }
.hit { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 8px; border-radius: var(--r); }
.hit:hover, .hit[aria-selected="true"] { background: var(--surface); }
.hit__media { width: 56px; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; }
.hit__name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.hit__meta { font-size: 13px; color: var(--muted); }
.hit__price { font-size: 14px; font-weight: 600; }
.hit mark { background: var(--accent-soft); color: inherit; border-radius: 2px; }
.search__all { display: flex; justify-content: center; margin-top: 12px; }

/* Nav + mega menu */
.nav { border-top: 1px solid var(--line); }
.nav__list { display: flex; gap: 4px; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.nav__list::-webkit-scrollbar { display: none; }
.nav__item { position: static; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; height: 50px; padding: 0 14px; font-size: 15px; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; transition: border-color var(--t-fast), color var(--t-fast); }
.nav__link:hover, .nav__link[aria-expanded="true"], .nav__link[aria-current="page"] { border-bottom-color: var(--ink); }
.nav__link--accent { color: var(--accent); }
.nav__link .icon { width: 14px; height: 14px; transition: transform var(--t-fast); }
.nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(17,17,17,.2); display: none; }
.mega.is-open { display: block; animation: fade-down var(--t) var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }
.mega__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.3fr; gap: 32px; padding-block: 32px 40px; }
.mega h3 { font-size: 15px; margin-bottom: 12px; }
.mega ul a { display: flex; justify-content: space-between; min-height: 36px; align-items: center; color: var(--ink-2); font-size: 15px; }
.mega ul a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.mega ul a .mcount { color: var(--muted); font-size: 12px; margin-left: auto; padding-left: 8px; }
.mega ul a { justify-content: flex-start; gap: 6px; min-height: 32px; font-size: 14px; }
.mega__grid { max-height: calc(100vh - 160px); overflow-y: auto; }
.mbadge { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--accent); color: #fff; margin-left: 6px; flex: none; }
.mbadge--popular { background: var(--ink); }
.nav__link .mbadge { margin-left: 4px; }
.mega__promo { border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--surface); }
.mega__promo .media { aspect-ratio: 1; background: transparent; }
.mega__promo div:last-child { padding: 20px; display: grid; gap: 10px; }
@media (max-width: 1000px) {
  .header__row { grid-template-columns: auto 1fr auto; min-height: 64px; gap: 8px; }
  .menu-toggle { display: inline-grid; }
  .logo { justify-self: center; }
  .logo img { height: 24px; }
  .header__row .search { grid-column: 1 / -1; grid-row: 2; max-width: none; margin-bottom: 12px; }
  .search__box { height: 44px; }
  .nav { display: none; }
  .header__tools .hide-sm { display: none; }
}

/* ---------- Dialogs ---------- */
dialog { padding: 0; border: 0; color: var(--ink); background: #fff; max-width: none; max-height: none; }
dialog:not([open]) { display: none !important; }
/* main stays invisible for the few ms until js/app.js has rendered it (prevents layout shift) */
.is-booting main { visibility: hidden; }
dialog::backdrop { background: rgba(17,17,17,.45); }
.drawer { margin: 0 0 0 auto; height: 100dvh; width: min(440px, 100vw); display: flex; flex-direction: column; }
.drawer--left { margin: 0 auto 0 0; }
.drawer[open] { animation: slide-r var(--t) var(--ease); }
.drawer--left[open] { animation-name: slide-l; }
.drawer--bottom { margin: auto 0 0; width: 100vw; height: auto; max-height: 88dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.drawer--bottom[open] { animation-name: slide-up; }
@keyframes slide-r { from { transform: translateX(32px); opacity: 0; } }
@keyframes slide-l { from { transform: translateX(-32px); opacity: 0; } }
@keyframes slide-up { from { transform: translateY(32px); opacity: 0; } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 24px; border-bottom: 1px solid var(--line); min-height: 64px; }
.drawer__title { font-size: 20px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer__foot { padding: 16px 24px 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }

.mnav__cat { border-bottom: 1px solid var(--line); }
.mnav__cat summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 56px; font-family: var(--display); font-weight: 600; font-size: 20px; cursor: pointer; }
.mnav__cat summary::-webkit-details-marker { display: none; }
.mnav__cat[open] summary .icon { transform: rotate(180deg); }
.mnav__cat ul { padding-bottom: 12px; }
.mnav__cat ul a { display: flex; align-items: center; min-height: 44px; color: var(--ink-2); }
.mnav__link { display: flex; justify-content: space-between; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 600; font-size: 20px; }

/* Bag */
.bag-item { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.bag-item .media { aspect-ratio: 4 / 5; border-radius: var(--r-sm); }
.bag-item__brand { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.bag-item__name { font-size: 14px; line-height: 1.35; }
.bag-item__meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.bag-item__row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--pill); }
.qty button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.qty button:hover { background: var(--surface); }
.qty span { min-width: 24px; text-align: center; font-size: 14px; font-weight: 600; }
.remove { font-size: 13px; color: var(--muted); min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.remove:hover { color: var(--ink); }
.free-bar { font-size: 13px; color: var(--ink-2); display: grid; gap: 8px; }
.free-bar__track { height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.free-bar__fill { height: 100%; background: var(--ok); border-radius: 2px; transition: width var(--t-slow) var(--ease); }
.sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.sum strong { font-family: var(--display); font-size: 24px; }
.note { font-size: 13px; color: var(--muted); }
.note--box { background: var(--accent-soft); padding: 12px 14px; border-radius: var(--r); color: var(--ink-2); }
.empty-state { text-align: center; padding: 48px 0; display: grid; gap: 12px; justify-items: center; }
.empty-state .icon { width: 40px; height: 40px; stroke-width: 1.2; color: var(--muted); }

/* ---------- Media (photo or render) ---------- */
.media { position: relative; overflow: hidden; background: var(--surface); display: grid; place-items: center; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media .art { width: 70%; height: auto; transition: transform var(--t-slow) var(--ease); filter: drop-shadow(0 16px 18px rgba(17,17,17,.14)); overflow: visible; }
.art .f * { fill: var(--c); stroke: rgba(17,17,17,.22); stroke-width: 1; vector-effect: non-scaling-stroke; }
.art .h * { fill: none; stroke: var(--c); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.art .l * { fill: none; stroke: rgba(17,17,17,.32); stroke-width: 1.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.art.is-dark .f * { stroke: rgba(0,0,0,.35); }
.art.is-dark .l * { stroke: rgba(255,255,255,.32); }
.art .l .st { stroke-dasharray: 2 4; }
.art .l .gold { stroke: #B8934A; stroke-width: 2; }
.art .l .hi { stroke: rgba(255,255,255,.7); stroke-width: 3; }
.art .l .cut { stroke: var(--surface); stroke-width: 3; }
.art .l .wax { fill: #F2EBDD; stroke: rgba(17,17,17,.2); }
.art .l .flame { fill: #E8A93A; stroke: none; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(40px, 5vw, 72px); }
.section--tint { background: var(--surface); }
.section--tint .card .media:not(.media--alt), .section--tint .bubble .media { background: #fff; }
.section--tint .art .l .cut { stroke: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(24px, 2.6vw, 36px); }
.sec-head p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.sec-head__tools { display: flex; align-items: center; gap: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* ---------- Mouse drag-to-scroll ---------- */
.can-drag { cursor: grab; }
.is-dragging { cursor: grabbing !important; scroll-snap-type: none !important; scroll-behavior: auto !important; user-select: none; -webkit-user-select: none; }
.is-dragging * { pointer-events: none; }

/* Overlay arrows for full-width rows */
.scroller { position: relative; }
.scroller__btn {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.scroller__btn:hover { transform: translateY(-50%) scale(1.06); }
.scroller__btn--prev { left: max(8px, calc(var(--gutter) - 24px)); }
.scroller__btn--next { right: max(8px, calc(var(--gutter) - 24px)); }
.scroller__btn[disabled] { opacity: 0; pointer-events: none; }
.scroller .bubbles + .scroller__btn, .scroller .scroller__btn { top: calc(50% - 14px); }
@media (hover: none) { .scroller__btn { display: none; } }

/* ---------- Hero carousel (full width, 3-4 banners visible) ---------- */
.hero { padding-top: 16px; }
.slider { position: relative; }
.hero__track {
  position: relative; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain;
  min-height: clamp(440px, 36vw, 540px);
}
.hero__track::-webkit-scrollbar { display: none; }
.hcard {
  flex: 0 0 clamp(270px, 23vw, 360px); height: clamp(440px, 36vw, 540px); scroll-snap-align: start;
  position: relative; border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  padding: clamp(22px, 2.2vw, 32px); display: flex; flex-direction: column; gap: 10px;
}
.hcard h3 { font-size: clamp(24px, 2vw, 30px); line-height: 1.08; }
.hcard p { color: var(--ink-2); font-size: 15px; }
.hcard--dark { background: #17181B; color: #fff; }
.hcard--dark p { color: #D4D4D8; }
.hcard--dark .eyebrow { color: #E7C9A9; }
.hcard--warm  { background: linear-gradient(140deg, #F4EDE5 0%, #E6D7C7 100%); }
.hcard--cool  { background: linear-gradient(150deg, #EEF2F4 0%, #D8E1E5 100%); }
.hcard--sage  { background: linear-gradient(150deg, #EFF0E9 0%, #DCDFD1 100%); }
.hcard--blush { background: linear-gradient(150deg, #F7EEEB 0%, #EAD6CF 100%); }
.hcard--sand  { background: linear-gradient(150deg, #F3EFE7 0%, #E3DACB 100%); }
.hcard__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 15px; width: fit-content; }
.hcard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hcard__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hcard__art { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: flex-end; gap: 4px; }
.hcard__art .art { height: 100%; max-height: 260px; width: auto; max-width: 100%; filter: drop-shadow(0 22px 22px rgba(17,17,17,.2)); transition: transform var(--t-slow) var(--ease); }
.hcard__art--duo .art { max-width: 50%; }
.hcard:hover .hcard__art .art { transform: translateY(-6px); }

.hcard--wide { flex-basis: min(50vw, 760px); display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 16px; padding: clamp(28px, 3.2vw, 52px); }
.hcard__copy { display: grid; gap: 16px; position: relative; z-index: 2; }
.hcard .btn--ghost { border-color: rgba(17,17,17,.28); background: rgba(255,255,255,.35); }
.hcard .btn--ghost:hover { background: #fff; border-color: var(--ink); }
.hcard__visual { position: relative; height: 100%; display: grid; place-items: center; }
.hcard__visual .art { width: min(92%, 360px); filter: drop-shadow(0 30px 30px rgba(17,17,17,.2)); transition: transform var(--t-slow) var(--ease); }
.hcard--wide:hover .hcard__visual .art { transform: translateY(-6px) rotate(-1.5deg); }
.slide__title { font-size: clamp(32px, 3.4vw, 54px); line-height: 1.02; letter-spacing: -0.03em; }
.slide__text { font-size: 15px; color: var(--ink-2); max-width: 40ch; }
.slide__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.slide__price b { font-family: var(--display); font-size: clamp(24px, 2.2vw, 32px); }
.slide__meta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); background: rgba(255,255,255,.65); padding: 6px 12px; border-radius: var(--pill); width: fit-content; }
.slide__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.slide__ring { position: absolute; width: min(100%, 400px); aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.55); }
.rank { position: absolute; top: clamp(16px, 2vw, 28px); right: clamp(16px, 2vw, 28px); z-index: 2; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--ink); color: #fff; text-align: center; line-height: 1.1; }
.rank b { display: block; font-family: var(--display); font-size: 28px; }
.rank span { font-size: 11px; letter-spacing: .04em; }

.slider__ui { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; }
.dots { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.dot { width: 36px; height: 44px; display: grid; place-items: center; }
.dot span { display: block; width: 24px; height: 4px; border-radius: 2px; background: var(--surface-2); transition: background var(--t-fast), width var(--t-fast); }
.dot[aria-current="true"] span { background: var(--ink); width: 32px; }
.slider__ctrl { display: flex; gap: 6px; }
.round { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; transition: border-color var(--t-fast), background var(--t-fast), opacity var(--t-fast); }
.round:hover { border-color: var(--ink); }
.round[disabled] { opacity: .35; cursor: default; }

@media (max-width: 820px) {
  .hero__track { gap: 12px; min-height: 0; align-items: stretch; }
  .hcard { flex-basis: 74vw; height: auto; min-height: 440px; }
  .hcard--wide { flex-basis: 88vw; grid-template-columns: 1fr; align-content: start; padding: 22px; }
  .hcard__visual { order: -1; height: 190px; }
  .hcard__visual .art { width: auto; height: 100%; }
  .slide__ring { width: 190px; }
  .rank { width: 64px; height: 64px; }
  .rank b { font-size: 20px; }
  .slide__actions .btn { flex: 1; min-height: 48px; padding: 0 16px; font-size: 15px; }
  .dot { width: 22px; }
  .dot span { width: 14px; }
  .dot[aria-current="true"] span { width: 20px; }
}

/* ---------- Category bubbles (carousel) ---------- */
.bubbles {
  display: flex; gap: clamp(12px, 1.4vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  overscroll-behavior-x: contain; padding-bottom: 4px;
}
.bubbles::-webkit-scrollbar { display: none; }
.bubble { flex: 0 0 clamp(84px, 8.6vw, 128px); scroll-snap-align: start; display: grid; gap: 10px; justify-items: center; align-content: start; text-align: center; font-size: 15px; font-weight: 500; line-height: 1.25; }
.bubble .media { width: 100%; aspect-ratio: 1; border-radius: 50%; }
.bubble .art { width: 62%; }
.bubble:hover .art { transform: scale(1.07) translateY(-2px); }
@media (max-width: 760px) { .bubble { font-size: 13px; } }

/* ---------- Product rail (horizontal slider) ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-progress { height: 3px; background: var(--surface-2); border-radius: 2px; margin-top: 20px; overflow: hidden; }
.rail-progress span { display: block; height: 100%; background: var(--ink); border-radius: 2px; width: 25%; transition: transform var(--t) var(--ease); transform-origin: left; }
@media (min-width: 1500px) { .rail { grid-auto-columns: calc((100% - 4 * 20px) / 5); } }
@media (min-width: 1900px) { .rail { grid-auto-columns: calc((100% - 5 * 20px) / 6); } }
@media (max-width: 1100px) { .rail { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; } }
@media (max-width: 760px) {
  .rail { grid-auto-columns: 46%; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .sec-head__tools .round { display: none; }
}

/* ---------- Product card ---------- */
.card { position: relative; display: grid; gap: 12px; align-content: start; }
.card__media { position: relative; border-radius: var(--r); overflow: hidden; }
.card__media .media { aspect-ratio: 4 / 5; }
.card__media .media--alt { position: absolute; inset: 0; opacity: 0; transition: opacity var(--t) var(--ease); }
.card:hover .media--alt { opacity: 1; }
.card:hover .media .art { transform: scale(1.04); }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__badges { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: var(--pill); background: #fff; color: var(--ink); }
.tag--accent { background: var(--accent); color: #fff; }
.tag .icon { width: 13px; height: 13px; stroke-width: 2.2; }
.wish { position: absolute; right: 8px; top: 8px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.9); transition: transform var(--t-fast), background var(--t-fast); }
.wish:hover { background: #fff; }
.wish:active { transform: scale(.9); }
.wish .icon { width: 19px; height: 19px; }
.wish[aria-pressed="true"] .icon { fill: var(--accent); stroke: var(--accent); }
.card__add { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; min-height: 44px; border-radius: var(--pill); background: rgba(255,255,255,.95); font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; transform: translateY(6px); transition: opacity var(--t-fast), transform var(--t-fast), background var(--t-fast), color var(--t-fast); }
.card:hover .card__add, .card:focus-within .card__add { opacity: 1; transform: none; }
.card__add:hover { background: var(--ink); color: #fff; }
@media (hover: none) { .card__add { display: none; } }
.card__body { display: grid; gap: 3px; }
.card__brand { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card__name { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--ink-2); line-height: 1.4; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.card__price { font-size: 15px; font-weight: 600; }
.swatches { display: flex; align-items: center; gap: 4px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(17,17,17,.18); }
.swatches small { font-size: 12px; color: var(--muted); margin-left: 2px; }

/* ---------- Grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
@media (min-width: 1600px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 2000px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1200px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } }

/* ---------- Banners ---------- */
.banners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1200px) {
  .banners { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; gap: 16px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .banners::-webkit-scrollbar { display: none; }
  .banners .banner { flex: 0 0 min(560px, 62%); scroll-snap-align: start; }
}
.banner { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 340px; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; padding: clamp(24px, 3vw, 44px); gap: 16px; isolation: isolate; }
.banner--dark { background: #1B1C1F; color: #fff; }
.banner--warm { background: #EFE6DC; }
.banner--cool { background: #E3E8EA; }
.banner--sage { background: #E4E6DC; }
.banner__copy { display: grid; gap: 12px; align-content: center; }
.banner__copy h3 { font-size: clamp(26px, 2.6vw, 38px); }
.banner__copy p { color: var(--ink-2); font-size: 15px; }
.banner--dark .banner__copy p { color: #D4D4D8; }
.banner .art { width: 100%; max-width: 260px; justify-self: center; filter: drop-shadow(0 20px 22px rgba(0,0,0,.22)); transition: transform var(--t-slow) var(--ease); }
.banner:hover .art { transform: translateY(-6px) rotate(-2deg); }
.banner .link-more::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.tiles .banner { min-height: 220px; grid-template-columns: 1fr 1fr; }
.tiles .banner .art { max-width: 150px; }
@media (max-width: 900px) {
  .banners .banner { flex-basis: 84%; }
  .tiles { scroll-padding-inline: var(--gutter); }
  .banner { grid-template-columns: minmax(0, 1fr) 36%; padding: 22px; gap: 12px; }
  .banner__copy h3 { font-size: 24px; }
  .banner__copy p { font-size: 14px; }
  .banner .link-more { white-space: nowrap; }
  .banner .art { max-width: 140px; }
  .tiles .banner .art { max-width: 104px; }
  .tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .tiles::-webkit-scrollbar { display: none; }
  .tiles .banner { flex: 0 0 78%; scroll-snap-align: start; }
  .banner { min-height: 260px; }
}

/* ---------- Brands ---------- */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.brand { display: grid; place-items: center; min-height: 88px; border: 1px solid var(--line); border-radius: var(--r); font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: .04em; text-align: center; padding: 12px; transition: border-color var(--t-fast), background var(--t-fast); }
.brand small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.brand:hover { border-color: var(--ink); background: var(--surface); }

/* ---------- Stats / USP ---------- */
.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.usp__item { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.usp__item .icon { width: 26px; height: 26px; color: var(--accent); stroke-width: 1.5; }
.usp__item b { display: block; font-size: 15px; }
.usp__item span { font-size: 14px; color: var(--muted); }
@media (max-width: 1000px) { .usp { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .usp { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.newsletter { border-radius: var(--r-xl); background: var(--ink); color: #fff; padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.newsletter h2 { font-size: clamp(26px, 3vw, 40px); }
.newsletter p { color: #D4D4D8; margin-top: 8px; }
.news-form { display: flex; gap: 8px; background: #fff; border-radius: var(--pill); padding: 6px; }
.news-form input { flex: 1; min-width: 0; border: 0; padding: 0 16px; color: var(--ink); background: transparent; font-size: 15px; }
.news-form input:focus { outline: none; }
.news-form:focus-within { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
@media (max-width: 800px) { .newsletter { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--surface); margin-top: clamp(40px, 5vw, 72px); padding-block: 56px 28px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; }
.footer__h { font-family: var(--sans); font-size: 14px; font-weight: 700; margin-bottom: 12px; letter-spacing: 0; }
.footer ul a { display: inline-flex; align-items: center; min-height: 36px; font-size: 15px; color: var(--ink-2); }
.footer ul a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__about { display: grid; gap: 14px; align-content: start; color: var(--ink-2); font-size: 15px; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pay { display: flex; gap: 8px; flex-wrap: wrap; }
.pay span { border: 1px solid var(--line); background: #fff; border-radius: var(--r-sm); padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }

/* ---------- Mobile bottom bar ---------- */
.tabbar { display: none; }
@media (max-width: 1000px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); backdrop-filter: blur(10px); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 60px; font-size: 11px; font-weight: 500; color: var(--ink-2); position: relative; }
  .tabbar [aria-current="page"] { color: var(--ink); font-weight: 700; }
  .tabbar .badge-count { top: 6px; right: calc(50% - 22px); }
}

/* ---------- Catalogue page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); padding-top: 20px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 24px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.cat-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; padding-block: 12px 20px; }
.cat-head h1 { font-size: clamp(28px, 3.4vw, 44px); }
.cat-head p { color: var(--muted); margin-top: 4px; }
.subcats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 20px; }
.subcats::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .icon { width: 14px; height: 14px; }
.catalog { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.fgroup { border-bottom: 1px solid var(--line); }
.fgroup summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px; font-weight: 600; font-size: 15px; cursor: pointer; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary .icon { width: 16px; height: 16px; transition: transform var(--t-fast); }
.fgroup[open] summary .icon { transform: rotate(180deg); }
.fgroup__body { padding-bottom: 16px; display: grid; gap: 2px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; flex: none; }
.check span:last-child { margin-left: auto; color: var(--muted); font-size: 13px; }
.colors { display: flex; flex-wrap: wrap; gap: 8px; }
.color-opt { position: relative; }
.color-opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.color-opt span { display: block; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(17,17,17,.2); box-shadow: inset 0 0 0 3px #fff; transition: box-shadow var(--t-fast); }
.color-opt input:checked + span { box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--ink); }
.color-opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-row label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.price-row input { height: 40px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 10px; font-size: 14px; width: 100%; }
.size-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.size-opt { position: relative; }
.size-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.size-opt span { display: grid; place-items: center; min-width: 44px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13px; }
.size-opt input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.active-filters .chip { min-height: 34px; padding: 0 12px; font-size: 13px; background: var(--surface); border-color: transparent; }
.active-filters .clear { font-size: 13px; text-decoration: underline; min-height: 34px; padding: 0 6px; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { height: 40px; border-radius: var(--pill); border: 1px solid var(--line); padding: 0 36px 0 14px; font-size: 14px; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; appearance: none; cursor: pointer; }
.filter-btn { display: none; }
.more { display: grid; justify-items: center; gap: 12px; margin-top: 40px; font-size: 14px; color: var(--muted); }
.more__bar { width: 220px; height: 3px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.more__bar span { display: block; height: 100%; background: var(--ink); }
@media (max-width: 1000px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filter-btn { display: inline-flex; }
}
.filters--drawer { position: static; max-height: none; overflow: visible; display: block; padding: 0; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding-block: 16px 56px; align-items: start; }
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; position: sticky; top: calc(var(--header-h) + 16px); }
.thumbs { display: grid; gap: 8px; align-content: start; }
.thumb { border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; transition: border-color var(--t-fast); }
.thumb .media { aspect-ratio: 4 / 5; }
.thumb .art { width: 78%; filter: none; }
.thumb[aria-current="true"] { border-color: var(--ink); }
.stage { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: var(--r-lg); scrollbar-width: none; }
.stage::-webkit-scrollbar { display: none; }
.stage .media { aspect-ratio: 4 / 5; scroll-snap-align: start; max-height: calc(100vh - var(--header-h) - 48px); }
.thumbs .media { max-height: none; }
.stage .art { width: 62%; }
.stage__dots { display: none; }
.pinfo { display: grid; gap: 20px; }
.pinfo__brand { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pinfo__brand a:hover { text-decoration: underline; }
.pinfo h1 { font-size: clamp(26px, 2.6vw, 36px); margin-top: 6px; }
.pinfo__price { font-family: var(--display); font-size: 28px; font-weight: 600; }
.pinfo__trend { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: var(--pill); width: fit-content; }
.opt { display: grid; gap: 10px; }
.opt__label { display: flex; justify-content: space-between; font-size: 14px; }
.opt__label b { font-weight: 600; }
.opt__label button { text-decoration: underline; color: var(--muted); font-size: 14px; }
.variants { display: flex; gap: 8px; flex-wrap: wrap; }
.variant { width: 64px; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; }
.variant .media { aspect-ratio: 4 / 5; }
.variant .art { width: 80%; filter: none; }
.variant[aria-current="true"] { border-color: var(--ink); }
.variant:hover { border-color: var(--muted); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; }
.sizes label { position: relative; }
.sizes input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sizes span { display: grid; place-items: center; height: 48px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 15px; transition: border-color var(--t-fast); }
.sizes label:hover span { border-color: var(--ink); }
.sizes input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.sizes input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.err { color: var(--danger); font-size: 14px; min-height: 1.3em; }
.buy { display: grid; grid-template-columns: 1fr 56px; gap: 8px; }
.buy .wish { position: static; width: 56px; height: 56px; border: 1px solid var(--line); background: #fff; }
.delivery { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); }
.delivery li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; font-size: 14px; }
.delivery li + li { border-top: 1px solid var(--line); }
.delivery .icon { color: var(--accent); }
.delivery b { font-weight: 600; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 56px; font-weight: 600; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .icon { transition: transform var(--t-fast); }
.acc details[open] summary .icon { transform: rotate(180deg); }
.acc details > div { padding-bottom: 18px; color: var(--ink-2); font-size: 15px; display: grid; gap: 6px; }
.spec { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
.sticky-buy { display: none; }
@media (max-width: 1000px) {
  .pdp { grid-template-columns: 1fr; }
  .gallery { position: static; grid-template-columns: 1fr; margin-inline: calc(var(--gutter) * -1); }
  .thumbs { display: none; }
  .stage { border-radius: 0; }
  .stage__dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
  .stage__dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--surface-2); transition: background var(--t-fast), width var(--t-fast); }
  .stage__dots span[aria-current="true"] { background: var(--ink); width: 18px; border-radius: 3px; }
  .sticky-buy { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 44; display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter); background: #fff; border-top: 1px solid var(--line); transform: translateY(120%); visibility: hidden; transition: transform var(--t) var(--ease), visibility var(--t); }
  .sticky-buy.is-on { transform: none; visibility: visible; }
  .sticky-buy div { flex: 1; min-width: 0; }
  .sticky-buy p { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-buy b { font-size: 16px; }
}

/* ---------- Product page: 3 columns (gallery | buy panel | details) ---------- */
.pdp { grid-template-columns: minmax(0, 1.3fr) minmax(320px, .85fr) minmax(280px, .7fr); grid-template-areas: "gallery info details"; gap: clamp(24px, 2.6vw, 48px); }
#pdp:empty { min-height: calc(100vh - 100px); }   /* reserve space until the product renders (no layout shift) */
.pdp__gallery { grid-area: gallery; min-width: 0; }
.gallery { position: static; }
.stage .media { max-height: none; }
.pinfo { grid-area: info; position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
.pdetails { grid-area: details; position: sticky; top: calc(var(--header-h) + 16px); align-self: start; display: grid; gap: 16px; min-width: 0; }
.pbox { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 12px; }
.pbox h2 { font-size: 18px; letter-spacing: -0.01em; }
.pbox > p { color: var(--ink-2); font-size: 15px; }
.pbox .spec { grid-template-columns: 110px 1fr; font-size: 14px; }
.pdetails .acc details:first-child { border-top: 1px solid var(--line); }
.mini-list { display: grid; gap: 2px; margin-inline: -6px; }
.mini { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 6px; border-radius: var(--r); transition: background var(--t-fast); }
.mini:hover { background: var(--surface); }
.mini__media { border-radius: var(--r-sm); overflow: hidden; }
.mini__media .media { aspect-ratio: 4 / 5; }
.mini__media .art { width: 80%; filter: none; }
.mini p { font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.mini b { font-size: 14px; }
.brand-cta { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 14px 20px; border-radius: var(--r-lg); background: var(--surface); font-size: 14px; transition: background var(--t-fast); }
.brand-cta:hover { background: var(--surface-2); }
@media (max-width: 1280px) {
  .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "gallery info" "gallery details"; }
  .pinfo, .pdetails { position: static; }
  .pdp__gallery .gallery { position: sticky; top: calc(var(--header-h) + 16px); }
}
@media (max-width: 1000px) {
  .pdp { grid-template-columns: 1fr; grid-template-areas: "gallery" "info" "details"; }
  .pdp__gallery .gallery { position: static; }
}

/* ---------- Auth modal (login / register) ---------- */
.modal { margin: auto; width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.modal[open] { animation: pop var(--t) var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 16px 0 28px; }
.modal__head h2 { font-size: 22px; }
.modal__body { padding: 16px 28px 28px; display: grid; gap: 16px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: var(--pill); padding: 4px; }
.seg button { min-height: 44px; border-radius: var(--pill); font-weight: 600; font-size: 15px; color: var(--muted); transition: background var(--t-fast), color var(--t-fast); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.social { display: grid; gap: 10px; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; border-radius: var(--pill); font-weight: 600; font-size: 15px; border: 1px solid #D4D4D0; background: #fff; color: #1F1F1F; transition: background var(--t-fast), border-color var(--t-fast); }
.btn-social:hover { background: var(--surface); }
.btn-social svg { width: 20px; height: 20px; flex: none; }
.btn-social--fb { background: #1877F2; border-color: #1877F2; color: #fff; }
.btn-social--fb:hover { background: #0F65D8; border-color: #0F65D8; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field label small { color: var(--muted); font-weight: 400; }
.field input { width: 100%; height: 48px; border: 1px solid #D4D4D0; border-radius: var(--r); padding: 0 14px; font-size: 16px; background: #fff; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,17,17,.1); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__err { color: var(--danger); font-size: 13px; }
.field__err:empty { display: none; }
.field__hint { color: var(--muted); font-size: 13px; }
.pw { position: relative; }
.pw input { padding-right: 52px; }
.pw button { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r); color: var(--muted); }
.pw button:hover { color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.check-inline { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; line-height: 1.45; }
.check-inline input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.auth-note { font-size: 14px; color: var(--muted); text-align: center; }
.auth-note--box { background: var(--accent-soft); color: var(--ink-2); padding: 12px 14px; border-radius: var(--r); text-align: left; font-size: 13px; }
.auth-note--box:empty { display: none; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.avatar--lg { width: 64px; height: 64px; font-size: 24px; }
.acct { display: grid; gap: 4px; justify-items: center; text-align: center; padding-top: 4px; }
.acct p { color: var(--muted); font-size: 14px; }
.acct-list { display: grid; }
.acct-list a, .acct-list button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 52px; border-bottom: 1px solid var(--line); font-weight: 500; text-align: left; }
.acct-list a:hover, .acct-list button:hover { color: var(--accent); }
.mnav__link { width: 100%; text-align: left; }
@media (max-width: 560px) {
  .modal { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 94dvh; }
  .modal[open] { animation-name: slide-up; }
  .modal__body { padding: 12px 20px 24px; }
  .modal__head { padding-left: 20px; }
  .row2 { grid-template-columns: 1fr; }
}

/* ---------- Prices on sale + mobile menu groups ---------- */
.price s { color: var(--muted); font-weight: 400; margin-right: 2px; }
.price--sale { color: var(--danger); }
.card__price.price { font-size: 15px; font-weight: 600; }
.pinfo__price .price s { font-size: 20px; }
.tag--sale { background: var(--danger); color: #fff; }
.mnav__group > a { min-height: 40px; }
.mnav__group ul { padding: 0 0 8px 14px; border-left: 1px solid var(--line); margin-left: 4px; }
.mnav__group ul a { min-height: 36px; font-size: 15px; }

/* ---------- Admin-managed banner visuals ---------- */
.banner__vis { display: flex; justify-content: center; align-items: center; gap: 8px; min-width: 0; }
.banner__vis .art { max-width: 260px; }
.banner--dark .eyebrow { color: #E7C9A9; }
.banner--blush { background: #F3E6E1; }
.banner--sand { background: #EEE8DD; }
.vis-img { display: block; max-width: 100%; max-height: 260px; width: auto; height: auto; object-fit: contain; border-radius: var(--r); }
.hcard__art .vis-img { max-height: 100%; }
.vis-img--hero { max-height: 420px; position: relative; z-index: 1; }
.banner:hover .vis-img { transform: translateY(-4px); transition: transform var(--t-slow) var(--ease); }

/* ---------- Language switch (EN / AZ / RU) ---------- */
.lang { display: inline-flex; align-items: center; gap: 2px; }
.lang a { display: grid; place-items: center; min-width: 34px; min-height: 26px; padding: 0 8px; border-radius: var(--pill); font-size: 12px; font-weight: 600; letter-spacing: .04em; transition: background var(--t-fast), color var(--t-fast); }
.util .lang { margin-left: 4px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.2); }
.util .lang a { color: #A1A1AA; }
.util .lang a:hover { color: #fff; text-decoration: none; }
.util .lang a[aria-current="true"] { background: rgba(255,255,255,.16); color: #fff; }
.lang--light a { min-width: 44px; min-height: 36px; color: var(--muted); border: 1px solid transparent; }
.lang--light a:hover { color: var(--ink); }
.lang--light a[aria-current="true"] { color: var(--ink); border-color: var(--ink); }
.mnav__lang { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--muted); }
.footer__base .lang { order: 0; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 16px); opacity: 0; display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--pill); font-size: 14px; box-shadow: var(--shadow-lg); transition: opacity var(--t-fast), transform var(--t) var(--ease); pointer-events: none; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1000px) { .toast { bottom: calc(80px + env(safe-area-inset-bottom)); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
