/* ==========================================================================
   JOSH & KOSH — base
   tokens · reset · type · motion helpers · buttons · header · menu · cart ·
   cursor · grain · preloader
   ========================================================================== */

/* ---------- fonts (Montserrat variable, self-hosted) ---------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* static 900 cut: used for outlined (stroked) display text so variable-font contour overlaps never show */
@font-face {
  font-family: "Montserrat Static"; font-style: normal; font-weight: 900; font-display: swap;
  src: url("../fonts/montserrat-latin-ext-900-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat Static"; font-style: normal; font-weight: 900; font-display: swap;
  src: url("../fonts/montserrat-latin-900-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ---------- tokens ---------- */
:root {
  --ink: #0b0b0c;
  --ink-2: #131315;
  --ink-3: #1c1c1f;
  --paper: #f3f2ee;
  --paper-2: #e9e7e1;
  --white: #ffffff;
  --mute: #77767b;
  --mute-d: #9b9aa0;
  --line: rgba(11, 11, 12, .14);
  --line-d: rgba(255, 255, 255, .16);

  --pad: clamp(20px, 4vw, 64px);
  --header-h: 78px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --f: "Montserrat", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-out: "Montserrat Static", "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; background: var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 450;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
main { overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 400; background: var(--ink); color: var(--paper); padding: .8em 1.2em; border-radius: 99px; font-size: .8rem; font-weight: 600; transition: top .3s; }
.skip:focus { top: 12px; }

/* page is locked while the preloader runs */
html.is-loading, html.is-loading body { overflow: hidden; }

/* ---------- type helpers ---------- */
.label {
  font-size: .72rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; line-height: 1.4;
}
.label--mute { color: var(--mute); }
.amp { font-weight: 500; font-size: .66em; letter-spacing: 0; padding: 0 .04em; }
.h-xl, .h-lg {
  font-weight: 800; letter-spacing: -.045em; line-height: .92;
}
.h-xl { font-size: clamp(3.2rem, 10.5vw, 12rem); }
.h-lg { font-size: clamp(2.5rem, 7.2vw, 8.4rem); }
.lead { font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.7; color: var(--mute); max-width: 46ch; }

/* ---------- motion helpers ---------- */
/* (only hidden when JS is present, so the page still works without it) */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, var(--rv-y, 48px), 0);
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease), clip-path 1.5s var(--ease-io);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="left"]  { --rv-y: 0px; transform: translate3d(-70px, 0, 0); }
.js [data-reveal="right"] { --rv-y: 0px; transform: translate3d(70px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(.9); }
.js [data-reveal="fade"]  { transform: none; }
.js [data-reveal="clip"]  { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); }
.js [data-reveal].in      { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* word masks produced by JS (data-split) */
.w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: .24em 0 .2em; margin: -.24em 0 -.2em;
}
.w > i {
  display: inline-block; font-style: normal;
  transform: translate3d(0, 115%, 0);
  transition: transform 1.2s var(--ease) calc(var(--d, 0s) + var(--i, 0) * 42ms);
}
.in .w > i, .w.in > i { transform: none; }
.ln { display: block; overflow: hidden; padding: .22em 0 .16em; margin: -.22em 0 -.16em; }
.ln > span { display: block; transform: translate3d(0, 112%, 0); transition: transform 1.3s var(--ease) calc(var(--d, 0s) + var(--i, 0) * 110ms); }
.in .ln > span { transform: none; }

/* text roll hover */
.roll { display: inline-block; overflow: hidden; vertical-align: top; height: 1.25em; line-height: 1.25; }
.roll > span { display: block; transition: transform .65s var(--ease); }
.roll > span::after { content: attr(data-t); display: block; }
a:hover > .roll > span, button:hover > .roll > span, .roll:hover > span { transform: translateY(-100%); }

/* underline link */
.ulink { position: relative; display: inline-block; }
.ulink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.15em; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.ulink:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-hbg: var(--paper); --btn-hfg: var(--ink); --btn-bd: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 1em;
  padding: 1.1em 1.5em 1.1em 1.95em; border-radius: 99px;
  font-size: .74rem; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; line-height: 1.2; white-space: nowrap;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-bd);
  overflow: hidden; isolation: isolate;
  transition: color .55s var(--ease), border-color .55s var(--ease), transform .6s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--btn-hbg); border-radius: 50% 50% 0 0 / 80% 80% 0 0; transform: translateY(104%);
  transition: transform .75s var(--ease), border-radius .75s var(--ease);
}
.btn:hover { color: var(--btn-hfg); }
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn__ico { width: 1.15em; height: 1.15em; flex: none; transition: transform .6s var(--ease); }
.btn:hover .btn__ico { transform: translateX(.3em); }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; --btn-hbg: currentColor; --btn-hfg: var(--paper); --btn-bd: currentColor; }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-hbg: var(--ink); --btn-hfg: var(--paper); --btn-bd: var(--paper); }
.btn--light:hover { --btn-bd: var(--paper); }
.btn--ghost-l { --btn-bg: transparent; --btn-fg: var(--paper); --btn-hbg: var(--paper); --btn-hfg: var(--ink); --btn-bd: rgba(255,255,255,.45); }
.btn--sm { padding: .9em 1.2em .9em 1.5em; font-size: .68rem; }
.btn.is-done { --btn-bg: #1f7a4d; --btn-bd: #1f7a4d; --btn-fg: #fff; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid currentColor; transition: background .4s, color .4s, transform .5s var(--ease);
}

/* ---------- scroll progress ---------- */
.progress { position: fixed; z-index: 140; left: 0; top: 0; width: 100%; height: 3px; pointer-events: none; }
.progress > i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }
.progress[data-t="dark"] > i { background: #fff; }

/* ---------- custom cursor ---------- */
/* two small layers moved with transform only; colour follows the section theme (no blend modes) */
.cursor { --cur: #0b0b0c; --cur-ink: #fff; position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; opacity: 0; transition: opacity .4s; }
.cursor[data-t="dark"] { --cur: #fff; --cur-ink: #0b0b0c; }
.has-cursor .cursor.is-on { opacity: 1; }
.cursor__dotpos, .cursor__ringpos { position: absolute; left: 0; top: 0; will-change: transform; }
.cursor__dot { display: block; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--cur); transition: transform .3s var(--ease); }
.cursor__ring {
  width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 1px solid var(--cur);
  display: grid; place-items: center;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background-color .35s, transform .4s var(--ease);
}
.cursor__label { font-size: .6rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--cur-ink); opacity: 0; transform: scale(.7); transition: opacity .3s, transform .5s var(--ease); white-space: nowrap; }
.cursor.is-link .cursor__ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; background-color: color-mix(in srgb, var(--cur) 14%, transparent); }
.cursor.is-link .cursor__dot { transform: scale(0); }
.cursor.has-label .cursor__ring { width: 98px; height: 98px; margin: -49px 0 0 -49px; background-color: var(--cur); }
.cursor.has-label .cursor__dot { transform: scale(0); }
.cursor.has-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-down .cursor__ring { transform: scale(.82); }
.cursor.is-text .cursor__ring { width: 4px; height: 30px; margin: -15px 0 0 -2px; border-radius: 2px; background-color: var(--cur); }
.cursor.is-text .cursor__dot { transform: scale(0); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor [data-cursor] { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: none; }
/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; z-index: 120; left: 0; right: 0; top: 0; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: var(--pad);
  pointer-events: none;
  transition: transform .9s var(--ease);
}
.site-header > * { pointer-events: auto; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--hbg, rgba(243, 242, 238, .94)); border-bottom: 1px solid var(--hline, rgba(11, 11, 12, .07));
  opacity: 0; transition: opacity .6s ease, background .5s ease;
}
.site-header.is-compact::before { opacity: 1; }
.site-header[data-bg="dark"] { --hbg: rgba(11, 11, 12, .9); --hline: rgba(255, 255, 255, .08); }
.site-header[data-bg="none"]::before { opacity: 0; }
.menu-open .site-header::before { opacity: 0; }
.site-header.is-hidden { transform: translate3d(0, -110%, 0); }
.hz { transition: color .55s ease; color: var(--ink); }
.hz[data-t="dark"] { color: #fff; }
.hz--l { justify-self: start; }
.hz--r { justify-self: end; display: flex; align-items: center; gap: 10px; }

.logo { display: inline-flex; align-items: center; gap: 7px; height: 42px; }
.logo__mono { height: 100%; aspect-ratio: 166.4 / 111; fill: currentColor; flex: none; }
.logo__wordbox { overflow: hidden; max-width: 150px; opacity: 1; transition: max-width .9s var(--ease), opacity .5s ease; }
.logo__word { height: 15px; aspect-ratio: 283.2 / 37.6; fill: currentColor; }
.site-header.is-compact .logo__wordbox { max-width: 0; opacity: 0; }
.logo { transition: transform .6s var(--ease); }
.logo:hover { transform: scale(1.04); }

.nav { display: flex; gap: clamp(18px, 2.6vw, 44px); justify-self: center; }
.nav a { font-size: .7rem; font-weight: 650; letter-spacing: .2em; text-transform: uppercase; }

.cart-btn {
  display: inline-flex; align-items: center; gap: .8em; height: 46px; padding: 0 .55em 0 1.25em; border-radius: 99px;
  border: 1px solid currentColor; font-size: .7rem; font-weight: 650; letter-spacing: .2em; text-transform: uppercase;
  transition: background .45s var(--ease), color .45s var(--ease);
}
.cart-btn__count {
  display: grid; place-items: center; min-width: 32px; height: 32px; border-radius: 50%; padding: 0 6px;
  background: currentColor; font-size: .72rem; letter-spacing: 0; transition: transform .5s var(--ease);
}
.cart-btn__count > span { color: var(--paper); }
.hz[data-t="dark"] .cart-btn__count > span { color: var(--ink); }
.cart-btn.bump .cart-btn__count { animation: bump .7s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
.cart-btn:hover { background: currentColor; }
.cart-btn:hover .cart-btn__label { color: var(--paper); }
.hz[data-t="dark"] .cart-btn:hover .cart-btn__label { color: var(--ink); }
.cart-btn:hover .cart-btn__count { transform: scale(.9); }
.cart-btn:hover .cart-btn__count { background: var(--paper); }
.cart-btn:hover .cart-btn__count > span { color: var(--ink); }
.hz[data-t="dark"] .cart-btn:hover .cart-btn__count { background: var(--ink); }
.hz[data-t="dark"] .cart-btn:hover .cart-btn__count > span { color: var(--paper); }

.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; position: relative; }
.menu-btn i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .6s var(--ease), top .6s var(--ease); }
.menu-btn i:nth-child(1) { top: 20px; }
.menu-btn i:nth-child(2) { top: 26px; }
.menu-open .menu-btn i:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .menu-btn i:nth-child(2) { top: 23px; transform: rotate(-45deg); }

/* ---------- fullscreen menu (mobile) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 110; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 20px) var(--pad) var(--pad);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s linear .9s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu__links { display: grid; gap: .1em; }
.menu__links a {
  display: block; font-size: clamp(2.4rem, 11vw, 4.6rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.05;
  transform: translate3d(0, 40px, 0); opacity: 0; transition: transform .9s var(--ease), opacity .6s;
}
.menu-open .menu__links a { transform: none; opacity: 1; }
.menu-open .menu__links a:nth-child(1) { transition-delay: .25s; }
.menu-open .menu__links a:nth-child(2) { transition-delay: .31s; }
.menu-open .menu__links a:nth-child(3) { transition-delay: .37s; }
.menu-open .menu__links a:nth-child(4) { transition-delay: .43s; }
.menu-open .menu__links a:nth-child(5) { transition-delay: .49s; }
.menu__foot { margin-top: 3rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--mute-d); font-size: .8rem; }
.menu .label { color: var(--mute-d); margin-bottom: 1.2rem; }

/* ==========================================================================
   Cart drawer + toast
   ========================================================================== */
.scrim { position: fixed; inset: 0; z-index: 180; background: rgba(8, 8, 9, .55); opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.cart-open .scrim { opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; }
.cart {
  position: fixed; z-index: 190; top: 0; right: 0; bottom: 0; width: min(440px, 100vw);
  background: var(--paper); color: var(--ink); display: flex; flex-direction: column;
  transform: translate3d(104%, 0, 0); transition: transform .9s var(--ease); box-shadow: -30px 0 80px rgba(0, 0, 0, .25);
  visibility: hidden;
}
.cart-open .cart { transform: none; visibility: visible; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.cart__head h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: .6em; }
.cart__close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .4s, color .4s, transform .6s var(--ease); }
.cart__close:hover { background: var(--ink); color: var(--paper); transform: rotate(90deg); }
.cart__ship { padding: 16px 26px; font-size: .78rem; border-bottom: 1px solid var(--line); }
.cart__ship-bar { height: 3px; background: var(--line); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.cart__ship-bar > i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--ship, 0)); transition: transform .8s var(--ease); }
.cart__list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 26px; }
.cart__empty { height: 100%; display: grid; place-content: center; text-align: center; gap: 1.2rem; color: var(--mute); padding: 2rem; }
.cart__empty strong { color: var(--ink); font-size: 1.5rem; letter-spacing: -.03em; font-weight: 800; }
.cart__empty svg { width: 90px; margin-inline: auto; fill: var(--ink); opacity: .9; }
.citem { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); animation: citemIn .7s var(--ease) both; }
@keyframes citemIn { from { opacity: 0; transform: translate3d(30px, 0, 0); } to { opacity: 1; transform: none; } }
.citem__img { width: 64px; height: 84px; border-radius: 10px; background: var(--paper-2); display: grid; place-items: end center; padding-bottom: 10px; position: relative; overflow: hidden; }
.citem__img .mini { transform: scale(.82); transform-origin: 50% 100%; }
.citem__name { font-weight: 800; letter-spacing: -.01em; font-size: 1rem; line-height: 1.2; }
.citem__meta { font-size: .72rem; color: var(--mute); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.qty { display: inline-flex; align-items: center; margin-top: 10px; border: 1px solid var(--line); border-radius: 99px; }
.qty button { width: 30px; height: 30px; display: grid; place-items: center; font-size: 1rem; line-height: 1; border-radius: 50%; transition: background .3s; }
.qty button:hover { background: var(--ink); color: var(--paper); }
.qty span { min-width: 22px; text-align: center; font-size: .8rem; font-weight: 700; }
.citem__price { font-weight: 700; font-size: .95rem; text-align: right; }
.citem__rm { display: block; margin-top: 10px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.citem__rm:hover { color: var(--ink); text-decoration: underline; }
.cart__foot { padding: 22px 26px 28px; border-top: 1px solid var(--line); display: grid; gap: 14px; background: var(--paper); }
.cart__sum { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; letter-spacing: -.02em; font-size: 1.3rem; }
.cart__sum small { font-size: .72rem; letter-spacing: .16em; font-weight: 600; text-transform: uppercase; color: var(--mute); }
.cart__note { font-size: .72rem; color: var(--mute); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .32; pointer-events: none; }

/* tiny CSS bottle used in the cart */
.mini { position: relative; width: 30px; height: 56px; display: block; --liq: #1a1a1c; }
.mini::before { content: ""; position: absolute; left: 50%; top: 0; width: 15px; height: 13px; margin-left: -7.5px; background: linear-gradient(90deg, #060607, #2a2a2e 40%, #060607); border-radius: 2px; }
.mini::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 40px; border-radius: 3px; background: var(--liq); background: linear-gradient(180deg, color-mix(in srgb, var(--liq) 70%, #fff), var(--liq) 40%, color-mix(in srgb, var(--liq) 75%, #000)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55), 0 6px 10px -4px rgba(0, 0, 0, .35); }

.toast {
  position: fixed; z-index: 250; left: 50%; bottom: 28px; transform: translate3d(-50%, 140%, 0); background: var(--ink); color: var(--paper);
  padding: 15px 22px; border-radius: 99px; font-size: .82rem; font-weight: 550; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .5);
  transition: transform .8s var(--ease), opacity .5s ease, visibility 0s linear .8s; max-width: calc(100vw - 32px); text-align: center;
  opacity: 0; visibility: hidden;
}
.toast.show { transform: translate3d(-50%, 0, 0); opacity: 1; visibility: visible; transition: transform .8s var(--ease), opacity .5s ease, visibility 0s; }

.fly { position: fixed; z-index: 260; width: 18px; height: 18px; border-radius: 50%; pointer-events: none; left: 0; top: 0; box-shadow: 0 0 0 4px rgba(255,255,255,.3); }

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; color: #fff; pointer-events: all; }
.preloader__half { position: absolute; top: 0; bottom: 0; width: 50.2%; background: var(--ink); transition: transform 1.25s var(--ease-io); }
.preloader__half--l { left: 0; }
.preloader__half--r { right: 0; }
.preloader__inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: clamp(18px, 3vh, 34px); transition: opacity .5s ease, transform .9s var(--ease); }
.pl-mark { width: clamp(150px, 22vw, 260px); aspect-ratio: 166.4 / 111; overflow: visible; }
.pl-mark path { fill: transparent; stroke: #fff; stroke-width: .55; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: plDraw 1.5s var(--ease-io) .15s forwards, plFill .7s ease 1.35s forwards; }
.pl-mark path:nth-of-type(2) { animation-delay: .35s, 1.45s; }
.pl-mark rect { fill: #fff; transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); animation: plLine 1.2s var(--ease-io) .1s forwards; }
@keyframes plDraw { to { stroke-dashoffset: 0; } }
@keyframes plFill { to { fill: #fff; } }
@keyframes plLine { to { transform: scaleY(1); } }
.pl-word { width: clamp(140px, 20vw, 230px); aspect-ratio: 283.2 / 37.6; fill: #fff; opacity: 0; transform: translateY(14px); animation: plWord 1s var(--ease) 1.1s forwards; }
@keyframes plWord { to { opacity: 1; transform: none; } }
.pl-count { position: absolute; right: var(--pad); bottom: var(--pad); font-size: clamp(2.6rem, 7vw, 6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; z-index: 3; }
.pl-count small { font-size: .35em; letter-spacing: .1em; margin-left: .2em; font-weight: 600; opacity: .6; }
.pl-tag { position: absolute; left: var(--pad); bottom: var(--pad); z-index: 3; color: rgba(255,255,255,.55); }
.is-ready .preloader { pointer-events: none; }
.is-ready .preloader__half--l { transform: translate3d(-101%, 0, 0); }
.is-ready .preloader__half--r { transform: translate3d(101%, 0, 0); }
.is-ready .preloader__inner { opacity: 0; transform: scale(1.08); }
.is-ready .pl-count, .is-ready .pl-tag { opacity: 0; transition: opacity .4s; }
.is-done .preloader { display: none; }
/* if JS never finishes, get out of the way */
.preloader { animation: plFailsafe 0.01s linear 9s forwards; }
@keyframes plFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ==========================================================================
   Performance guards
   - decorative infinite animations only run while their section is on screen
     (js toggles .is-live on every [data-live] element)
   - html.lite (slow devices, detected by js or ?lite=1) freezes them completely
   ========================================================================== */
[data-live]:not(.is-live) *,
[data-live]:not(.is-live) *::before,
[data-live]:not(.is-live) *::after { animation-play-state: paused !important; }
/* bottles of sections that are far from the viewport are not painted at all (their ~25 layers each disappear) */
[data-live]:not(.is-live) .bottle { visibility: hidden; }
html.lite .marquee__row, html.lite .bottle__sway, html.lite .scroll-cue i::after, html.lite .set__badge svg { animation-play-state: paused !important; }
html.lite [data-reveal] { transition-duration: .45s !important; }
/* ==========================================================================
   Responsive: header
   ========================================================================== */
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: inline-block; }
  .site-header { grid-template-columns: 1fr auto; }
  .cart-btn__label { display: none; }
  .cart-btn { padding: 0 .4em; }
  .logo { height: 38px; }
  .logo__word { height: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}

/* WhatsApp yüzen buton */
.wa-fab { position: fixed; z-index: 150; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: .6em; height: 54px; padding: 0 20px 0 16px; border-radius: 99px; background: #25d366; color: #06361a; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 14px 34px -10px rgba(0,0,0,.5); transition: transform .5s var(--ease), box-shadow .4s; }
.wa-fab:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 20px 40px -10px rgba(37,211,102,.55); }
.is-loading .wa-fab, .cart-open .wa-fab, .menu-open .wa-fab { opacity: 0; pointer-events: none; }
@media (max-width: 600px) { .wa-fab { width: 54px; padding: 0; justify-content: center; } .wa-fab span { display: none; } }

/* ürün penceresi üst katmanda açıldığı için özel imleç görünmez: o sırada normal imleci göster */
.has-cursor dialog[open], .has-cursor dialog[open] * { cursor: auto; }
.has-cursor dialog[open] button, .has-cursor dialog[open] a, .has-cursor dialog[open] label { cursor: pointer; }
.has-cursor dialog[open]::backdrop { cursor: auto; }
html:has(dialog[open]) .cursor { opacity: 0 !important; }
