/* =====================================================================
   BloomBox "Depth" theme  (update_redesign)
   - same brand palette (sage / blush / champagne gold), now with depth, light and glass
   - two themes: light (default = device setting) and dark, switched by <html data-theme="light|dark">
   - every effect respects prefers-reduced-motion; tilt only on devices with a real mouse
   Delete the <link> to this file in index.html to return to the old flat look.
   ===================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
  --surface: 255 255 255;          /* cards, dialogs, inputs */
  --surface-2: 251 248 242;        /* second layer (warm ivory) */
  --sh: 44 53 49;                  /* shadow colour */
  --sk: 1;                         /* shadow strength */
  --hl: 255 255 255;               /* top-edge highlight colour */
  --hla: .85;                      /* top-edge highlight strength */
  --glare: .38;                    /* card shine strength */
  color-scheme: light;

  --shadow-soft: 0 1px 1px rgb(var(--sh) / calc(.05 * var(--sk))), 0 3px 8px -2px rgb(var(--sh) / calc(.07 * var(--sk))), 0 14px 26px -14px rgb(var(--sh) / calc(.14 * var(--sk)));
  --shadow-lift: 0 2px 2px rgb(var(--sh) / calc(.05 * var(--sk))), 0 10px 18px -6px rgb(var(--sh) / calc(.12 * var(--sk))), 0 32px 52px -18px rgb(var(--sh) / calc(.30 * var(--sk)));
  --shadow-deep: 0 4px 6px rgb(var(--sh) / calc(.06 * var(--sk))), 0 24px 44px -12px rgb(var(--sh) / calc(.28 * var(--sk))), 0 60px 100px -30px rgb(var(--sh) / calc(.40 * var(--sk)));
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

/* Dark theme: the same hues, mirrored. Low scale numbers become deep tints, high numbers become light text. */
html[data-theme="dark"] {
  color-scheme: dark;
  --cream: 16 21 18;
  --ink: 236 239 232;
  --surface: 27 34 30;
  --surface-2: 34 43 37;
  --sh: 0 0 0;
  --sk: 2.6;
  --hl: 255 255 255;
  --hla: .07;
  --glare: .12;

  --sage-50: 26 34 29;  --sage-100: 34 46 38;  --sage-200: 48 63 52;  --sage-300: 70 89 74;  --sage-400: 104 124 106;
  --sage-500: 122 139 121; --sage-600: 108 124 107; --sage-700: 178 194 176; --sage-800: 205 217 203; --sage-900: 236 239 232;

  --blush-50: 36 27 29;  --blush-100: 47 33 36;  --blush-200: 68 46 50;  --blush-300: 112 78 84;
  --blush-400: 168 118 124; --blush-500: 201 138 145; --blush-600: 222 164 170; --blush-700: 238 192 197;

  --gold-50: 38 33 20;  --gold-100: 52 45 24;  --gold-200: 84 71 30;  --gold-300: 138 114 40;  --gold-400: 212 175 55;
  --gold-500: 214 180 78; --gold-600: 228 198 112; --gold-700: 240 218 158;

  --danger-50: 44 26 25; --danger-100: 58 32 30; --danger-200: 88 46 42;
  --danger-500: 196 90 82; --danger-600: 200 88 80; --danger-700: 240 160 152;

  --stone-50: 23 30 26;  --stone-100: 30 38 33;  --stone-200: 44 55 48;  --stone-300: 62 76 67;  --stone-400: 112 124 115;
  --stone-500: 148 158 150; --stone-600: 176 185 178; --stone-700: 201 209 203; --stone-800: 226 231 227; --stone-900: 242 244 240;
}

/* smooth cross-fade only while the visitor switches theme */
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .4s ease, border-color .4s ease, color .4s ease, box-shadow .4s ease, fill .4s ease, stroke .4s ease !important;
}

/* ------------------------------------------------------------------ page: ambient light + paper grain */
html { background: rgb(var(--cream)); }
html body.bg-cream, body { background: transparent; position: relative; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 8% -5%, rgb(var(--blush-300) / .30), transparent 60%),
    radial-gradient(800px 560px at 96% 4%, rgb(var(--sage-300) / .26), transparent 60%),
    radial-gradient(900px 700px at 50% 112%, rgb(var(--gold-300) / .16), transparent 62%);
}
html[data-theme="dark"] body::before {
  background:
    radial-gradient(900px 600px at 8% -5%, rgb(var(--blush-300) / .20), transparent 60%),
    radial-gradient(800px 560px at 96% 4%, rgb(var(--sage-400) / .20), transparent 60%),
    radial-gradient(900px 700px at 50% 112%, rgb(var(--gold-300) / .12), transparent 62%);
}

/* tokenised "white": everything that used bg-white now follows the theme */
html .bg-white { background-color: rgb(var(--surface) / var(--tw-bg-opacity, 1)); }
html [class~="bg-white/90"] { background-color: rgb(var(--surface) / .9); }
html [class~="bg-white/80"] { background-color: rgb(var(--surface) / .8); }
html [class~="bg-white/70"] { background-color: rgb(var(--surface) / .7); }
html .ring-white { --tw-ring-color: rgb(var(--surface)); }
html .focus\:bg-white:focus { background-color: rgb(var(--surface)); }
html .hover\:bg-white:hover { background-color: rgb(var(--surface)); }
html[data-theme="dark"] .bg-stone-800, html[data-theme="dark"] .bg-stone-900 { background-color: rgb(58 70 62); color: #fff; }
html[data-theme="dark"] .hover\:bg-sage-700:hover { background-color: rgb(82 95 81); }
html[data-theme="dark"] .bg-sage-500, html[data-theme="dark"] .bg-sage-600 { color: #fff; }

/* ------------------------------------------------------------------ dialogs, drawers, overlays */
dialog {
  background: rgb(var(--surface)); color: rgb(var(--ink));
  border: 1px solid rgb(var(--gold-300) / .45);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgb(var(--hl) / var(--hla));
}
dialog[open] { animation: dlg-in .34s var(--ease-out); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(22px) scale(.96) perspective(900px) rotateX(5deg); } to { opacity: 1; transform: none; } }
dialog[class]::backdrop { background: radial-gradient(circle at 50% 30%, rgb(30 42 35 / .42), rgb(8 12 10 / .66)); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
html #cart-overlay { background: rgb(8 12 10 / .5); backdrop-filter: blur(5px); }
html #cart-drawer { background: rgb(var(--surface)); box-shadow: -30px 0 60px -20px rgb(var(--sh) / calc(.35 * var(--sk))); border-left: 1px solid rgb(var(--gold-300) / .4); }
html #cart-drawer.translate-x-full { box-shadow: none; border-left-color: transparent; }

/* ------------------------------------------------------------------ header: frosted glass */
html header.sticky {
  background: linear-gradient(180deg, rgb(var(--surface) / .86), rgb(var(--surface) / .72));
  backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border-bottom-color: rgb(var(--stone-200) / .7);
  box-shadow: 0 1px 0 rgb(var(--hl) / calc(var(--hla) * .6)) inset, 0 10px 30px -18px rgb(var(--sh) / calc(.35 * var(--sk)));
}
html header.sticky::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(var(--gold-400) / .75) 50%, transparent);
}
/* the round header controls become small raised "buttons" */
#lang-switch, #login-btn, #user-btn, #news-btn, #cart-btn, #theme-btn {
  background: linear-gradient(180deg, rgb(var(--surface)), rgb(var(--surface-2)));
  box-shadow: 0 1px 0 rgb(var(--hl) / var(--hla)) inset, 0 1px 2px rgb(var(--sh) / calc(.10 * var(--sk))), 0 6px 12px -8px rgb(var(--sh) / calc(.35 * var(--sk)));
  transition: transform .18s var(--ease-out), box-shadow .18s ease, border-color .18s ease, color .18s ease;
}
#login-btn:hover, #user-btn:hover, #news-btn:hover, #cart-btn:hover, #theme-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgb(var(--hl) / var(--hla)) inset, 0 2px 3px rgb(var(--sh) / calc(.10 * var(--sk))), 0 12px 18px -8px rgb(var(--sh) / calc(.45 * var(--sk)));
}
#login-btn:active, #user-btn:active, #news-btn:active, #cart-btn:active, #theme-btn:active { transform: translateY(0) scale(.96); }
#search-input { box-shadow: inset 0 2px 4px rgb(var(--sh) / calc(.08 * var(--sk))), 0 1px 0 rgb(var(--hl) / var(--hla)); }
#search-input:focus { box-shadow: inset 0 1px 2px rgb(var(--sh) / calc(.06 * var(--sk))), 0 0 0 4px rgb(var(--sage-200) / .7), 0 8px 24px -10px rgb(var(--sage-500) / .55); }
.lang-btn.is-active { background: linear-gradient(180deg, rgb(var(--sage-400)), rgb(var(--sage-600))); box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 2px 6px -1px rgb(var(--sage-700) / .5); }
#cart-badge { animation: badge-pop .45s var(--ease-out); }
@keyframes badge-pop { 0% { transform: scale(.3); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* theme switch button (created by js/theme.js) */
#theme-btn { position: relative; display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 9999px; border: 1px solid rgb(var(--stone-200)); color: rgb(var(--ink)); cursor: pointer; overflow: hidden; }
#theme-btn svg { position: absolute; width: 1.25rem; height: 1.25rem; transition: transform .55s var(--ease-out), opacity .3s ease; }
#theme-btn .i-moon { transform: translateY(150%) rotate(-90deg); opacity: 0; }
html[data-theme="dark"] #theme-btn .i-sun { transform: translateY(-150%) rotate(90deg); opacity: 0; }
html[data-theme="dark"] #theme-btn .i-moon { transform: none; opacity: 1; color: rgb(var(--gold-500)); }
#theme-btn .i-sun { color: rgb(var(--gold-500)); }
#theme-btn:hover .i-sun { transform: rotate(40deg) scale(1.1); }

/* ------------------------------------------------------------------ hero: light, depth, motion (cheap: no blur filters) */
html .hero-sec { isolation: isolate; background: none; }            /* transparent: the page's own soft light shows through, no hard edge */
.hero-sec > .mx-auto { position: relative; z-index: 2; }
.hero-fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%); }
.hero-fx i.b { position: absolute; border-radius: 50%; will-change: transform;
  translate: calc(var(--px, 0) * var(--k, 20) * 1px) calc(var(--py, 0) * var(--k, 20) * 1px); }
.hero-fx .b1 { --k: 34; width: 40rem; height: 40rem; left: -12rem; top: -14rem; background: radial-gradient(circle, rgb(var(--blush-300) / .85), rgb(var(--blush-300) / 0) 68%); animation: blob 18s ease-in-out infinite; }
.hero-fx .b2 { --k: -26; width: 38rem; height: 38rem; right: -12rem; top: 6%; background: radial-gradient(circle, rgb(var(--sage-300) / .75), rgb(var(--sage-300) / 0) 68%); animation: blob 22s ease-in-out -6s infinite; }
.hero-fx .b3 { --k: 18; width: 28rem; height: 28rem; left: 36%; bottom: -12rem; background: radial-gradient(circle, rgb(var(--gold-300) / .55), rgb(var(--gold-300) / 0) 68%); animation: blob 26s ease-in-out -11s infinite; }
html[data-theme="dark"] .hero-fx i.b { opacity: .5; }
@keyframes blob { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(30px, 22px, 0) scale(1.08); } }

.hero-fx .petal { position: absolute; top: -8%; left: var(--x); width: var(--s); height: var(--s); opacity: 0; border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, rgb(var(--c) / .95), rgb(var(--c) / .5)); animation: petal var(--d) linear var(--dl) infinite; }
@keyframes petal {
  0% { transform: translate3d(0, -6vh, 0) rotate(0deg); opacity: 0; }
  10% { opacity: .8; }
  90% { opacity: .7; }
  100% { transform: translate3d(calc(var(--w) * 1px), 76vh, 0) rotate(300deg); opacity: 0; }
}
/* nothing keeps running while the hero is scrolled out of view (this was the main cause of the slowness) */
.hero-off .hero-fx i, .hero-off .hero-stage > *, .hero-off .hero-stage::after { animation-play-state: paused !important; }

html .hero-sec h1, html .hero-sec [data-hero="title"] {
  font-size: clamp(1.9rem, 3.3vw, 2.85rem); text-wrap: balance; line-height: 1.14; letter-spacing: -.005em; font-weight: 700;
  background: linear-gradient(115deg, rgb(var(--ink)) 8%, rgb(var(--sage-700)) 55%, rgb(var(--gold-500)) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sec span.inline-flex.rounded-full {
  background: linear-gradient(180deg, rgb(var(--surface) / .95), rgb(var(--surface-2) / .85));
  box-shadow: inset 0 1px 0 rgb(var(--hl) / var(--hla)), 0 4px 12px -4px rgb(var(--sh) / calc(.3 * var(--sk)));
  border: 1px solid rgb(var(--gold-300) / .5);
}
#cta-b2b { background: linear-gradient(180deg, rgb(var(--surface) / .9), rgb(var(--surface-2) / .75));
  box-shadow: inset 0 1px 0 rgb(var(--hl) / var(--hla)), 0 1px 2px rgb(var(--sh) / calc(.1 * var(--sk))), 0 10px 18px -10px rgb(var(--gold-500) / .6);
  transition: transform .2s var(--ease-out), box-shadow .2s ease; }
#cta-b2b:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgb(var(--hl) / var(--hla)), 0 14px 24px -10px rgb(var(--gold-500) / .75); }

/* the picture on the right floats in 3D and follows the mouse */
.hero-stage { position: relative; perspective: 1100px; }
.hero-stage > svg, .hero-stage > img {
  transform: rotateX(calc(var(--hy, 0) * 1deg)) rotateY(calc(var(--hx, 0) * 1deg));
  transition: transform .25s ease-out; animation: float 7s ease-in-out infinite; will-change: transform;
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.hero-stage:not(:has(> img))::after {
  content: ""; position: absolute; left: 14%; right: 14%; bottom: 0; height: 9%; border-radius: 50%; z-index: -1;
  background: radial-gradient(ellipse at center, rgb(var(--sh) / calc(.34 * var(--sk))), transparent 70%); animation: ground 7s ease-in-out infinite;
}
@keyframes ground { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.82); opacity: .6; } }
html[data-theme="dark"] .hero-stage > svg circle[fill="#fff"] { opacity: .16; }
.hero-stage > img { border-radius: 1.75rem; box-shadow: var(--shadow-lift); }

/* picture holders: always a light studio, even in dark mode */
html[data-theme="dark"] #pm-main { background: radial-gradient(120% 90% at 50% 18%, #fffdf9, #f1eadd); box-shadow: inset 0 -20px 30px -22px rgb(60 50 30 / .3), 0 8px 20px -10px rgb(0 0 0 / .5); }
html[data-theme="dark"] #pm-thumbs button { background-color: #f6f0e6; }
html[data-theme="dark"] #cart-items div.h-16.w-16 { background: #f6f0e6; }

/* section titles get a gold under-line */
main h2.font-display { position: relative; padding-bottom: .55rem; }
main h2.font-display::after { content: ""; position: absolute; left: 0; bottom: 0; width: 3.2rem; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, rgb(var(--gold-400)), rgb(var(--blush-400))); box-shadow: 0 2px 8px rgb(var(--gold-400) / .55); }

/* ------------------------------------------------------------------ buttons: tactile, with a bottom edge */
.btn-primary {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgb(var(--sage-400)) 0%, rgb(var(--sage-500)) 48%, rgb(var(--sage-600)) 100%);
  border: 0; text-shadow: 0 1px 1px rgb(0 0 0 / .25);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .38), inset 0 -2px 0 rgb(0 0 0 / .10), 0 3px 0 rgb(var(--sage-700)), 0 10px 18px -6px rgb(var(--sage-700) / .55);
  transition: transform .16s var(--ease-out), box-shadow .16s ease, filter .2s ease;
}
html[data-theme="dark"] .btn-primary { box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), inset 0 -2px 0 rgb(0 0 0 / .18), 0 3px 0 rgb(55 66 55), 0 10px 22px -6px rgb(122 139 121 / .45); }
.btn-primary::after {                       /* light sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .38), transparent); transition: transform .65s var(--ease-out);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.05);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .42), inset 0 -2px 0 rgb(0 0 0 / .10), 0 5px 0 rgb(var(--sage-700)), 0 16px 24px -8px rgb(var(--sage-700) / .6); }
.btn-primary:hover:not(:disabled)::after { transform: translateX(120%) skewX(-18deg); }
.btn-primary:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 2px 4px rgb(0 0 0 / .18), 0 0 0 rgb(var(--sage-700)), 0 3px 6px -3px rgb(var(--sage-700) / .5); }
.btn-primary:disabled { filter: grayscale(.4); box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 2px 0 rgb(var(--sage-700) / .5); }
.btn-secondary { background: linear-gradient(180deg, rgb(var(--surface) / .7), rgb(var(--surface-2) / .5));
  box-shadow: inset 0 1px 0 rgb(var(--hl) / var(--hla)), 0 6px 14px -8px rgb(var(--gold-500) / .6); transition: transform .18s var(--ease-out), background .2s, box-shadow .2s; }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgb(var(--hl) / var(--hla)), 0 12px 20px -8px rgb(var(--gold-500) / .65); }
.btn-secondary:active { transform: translateY(1px); }

/* inputs: slightly sunken, glow on focus */
.input, .scan-input { box-shadow: inset 0 2px 3px rgb(var(--sh) / calc(.06 * var(--sk))), 0 1px 0 rgb(var(--hl) / var(--hla)); }
.input:focus, .scan-input:focus { box-shadow: inset 0 1px 2px rgb(var(--sh) / calc(.05 * var(--sk))), 0 0 0 4px rgb(var(--sage-200) / .6), 0 10px 22px -10px rgb(var(--sage-500) / .6); }
select, .input { color-scheme: inherit; }

/* ------------------------------------------------------------------ product cards: 3D */
.product-card {
  --tx: 0deg; --ty: 0deg; --lift: 0px; --mx: 50%; --my: 0%;
  position: relative; border-color: rgb(var(--stone-200) / .85);
  background: linear-gradient(165deg, rgb(var(--surface)) 0%, rgb(var(--surface-2)) 100%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgb(var(--hl) / var(--hla));
  transform: perspective(1000px) rotateX(var(--tx)) rotateY(var(--ty)) translateY(var(--lift));
  transition: transform .55s var(--ease-out), box-shadow .35s ease, border-color .3s ease;
  animation: card-rise .7s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 55ms);
}
.product-card.is-tilt { will-change: transform; transition: transform .09s linear, box-shadow .35s ease, border-color .3s ease; }
.product-card:hover { --lift: -8px; border-color: rgb(var(--gold-400) / .65); box-shadow: var(--shadow-lift), 0 0 0 1px rgb(var(--gold-400) / .25), inset 0 1px 0 rgb(var(--hl) / var(--hla)); }
.product-card::after {                       /* moving shine under the pointer */
  content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgb(255 255 255 / var(--glare)), transparent 55%);
}
.product-card.is-tilt::after { opacity: 1; }
.product-card .art { transform: scale(1) translate(0, 0); transition: transform .6s var(--ease-out); }
.product-card:hover .art { transform: scale(1.07) translate(var(--px, 0px), var(--py, 0px)); }
.product-card .art svg, .product-card .art img { transition: filter .4s ease; }
.product-card:hover .art svg, .product-card:hover .art img { filter: drop-shadow(0 12px 12px rgb(0 0 0 / .18)); }
@keyframes card-rise { from { opacity: 0; transform: perspective(1000px) translateY(34px) rotateX(-9deg) scale(.96); } to { opacity: 1; } }
#product-grid > :nth-child(1) { --i: 0; } #product-grid > :nth-child(2) { --i: 1; } #product-grid > :nth-child(3) { --i: 2; }
#product-grid > :nth-child(4) { --i: 3; } #product-grid > :nth-child(5) { --i: 4; } #product-grid > :nth-child(6) { --i: 5; }
#product-grid > :nth-child(7) { --i: 6; } #product-grid > :nth-child(8) { --i: 7; } #product-grid > :nth-child(n+9) { --i: 8; }

/* product photos always sit on a light "studio" stage so colours stay true, also in dark mode */
div[class*="from-blush-50"][class*="via-cream"] {
  background: radial-gradient(120% 90% at 50% 18%, #fffdf9 0%, #f6f0e6 58%, #ece4d6 100%);
  box-shadow: inset 0 -26px 40px -28px rgb(60 50 30 / .28);
}
.art, [class*="from-blush-50"] .art { color-scheme: light; }

.swatch { box-shadow: inset 0 -3px 5px rgb(0 0 0 / .16), inset 0 2px 3px rgb(255 255 255 / .45), 0 2px 4px -1px rgb(var(--sh) / calc(.35 * var(--sk))); }
.swatch:hover { transform: translateY(-2px) scale(1.14); }
.swatch.is-active { box-shadow: inset 0 -3px 5px rgb(0 0 0 / .16), inset 0 2px 3px rgb(255 255 255 / .45), 0 0 0 2px rgb(var(--surface)), 0 0 0 4px rgb(var(--gold-400)), 0 6px 10px -2px rgb(var(--gold-400) / .5); }
.color-chip, .type-card, .pay-opt { box-shadow: inset 0 1px 0 rgb(var(--hl) / var(--hla)), 0 1px 2px rgb(var(--sh) / calc(.08 * var(--sk))); transition: transform .16s var(--ease-out), border-color .2s, background .2s, box-shadow .2s; }
.color-chip:hover, .type-card:hover, .pay-opt:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(var(--hl) / var(--hla)), 0 8px 14px -8px rgb(var(--sh) / calc(.4 * var(--sk))); }

/* ------------------------------------------------------------------ misc surfaces */
.bk-stat, .help-item, .info-seller, .chat-prod { box-shadow: var(--shadow-soft), inset 0 1px 0 rgb(var(--hl) / var(--hla)); }
.chat-panel, .chat-nudge, #user-menu, #news-panel, .mnav-sub { box-shadow: var(--shadow-deep); }
.chat-fab { background: linear-gradient(180deg, rgb(var(--sage-400)), rgb(var(--sage-600))); box-shadow: 0 0 0 2px rgb(var(--surface)), 0 0 0 3.5px rgb(var(--gold-400) / .85), inset 0 1px 0 rgb(255 255 255 / .35), var(--shadow-lift); }
.chat-fab:hover { transform: translateY(-3px) scale(1.04); }
.site-footer { background: linear-gradient(to bottom, transparent, rgb(var(--blush-50) / .7)); }
html[data-theme="dark"] .site-footer { background: linear-gradient(to bottom, transparent, rgb(var(--sage-50))); }
.footer-ic, .social-btn { background: linear-gradient(180deg, rgb(var(--surface)), rgb(var(--surface-2))); }
.toast { box-shadow: var(--shadow-deep); }
.mnav-link.is-active { text-shadow: 0 0 18px rgb(var(--sage-500) / .35); }

/* thin themed scrollbars */
:root { scrollbar-width: thin; scrollbar-color: rgb(var(--sage-400) / .7) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgb(var(--sage-400) / .55); border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgb(var(--sage-500) / .8); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------------------------------------------ phones & accessibility */
@media (max-width: 639px) {
  .product-card:hover { --lift: -4px; }
  .hero-fx .petal:nth-child(n+5) { display: none; }
}
@media (hover: none) { .product-card:hover { --lift: 0px; } .product-card:hover .art { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-fx, .hero-stage > svg, .hero-stage > img, .hero-stage::after, .product-card, dialog[open], #cart-badge { animation: none !important; }
  .product-card, .btn-primary, .btn-primary::after { transition: none !important; }
  .product-card:hover { --lift: 0px; }
  html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: none !important; }
}
@media print { body::before, .hero-fx { display: none !important; } }

/* ======================================================================= typography
   A little more air for Georgian. In English and Russian, short labels (menu, buttons, badges, footer headings) are set in
   capitals with wider spacing - the block marked CAPS (Georgian has no reliable CSS capitals, so it stays as it is). */
html { font-feature-settings: "kern", "liga", "calt"; }
body { line-height: 1.62; letter-spacing: .004em; }
h1, h2, h3, .font-display { font-family: "Cormorant Garamond", "Noto Serif Georgian", "Noto Sans Georgian", Georgia, serif; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
h2.font-display, main h2 { font-weight: 700; letter-spacing: -.003em; }
.product-card h3 button { font-weight: 600; letter-spacing: 0; }
/* CAPS */
html[lang="ru"] :is(.btn-primary, .btn-secondary, #cta-b2b, .footer-title, .hero-sec span.inline-flex.rounded-full, .mnav-link, .tab-btn, .mnav-burger),
html[lang="en"] :is(.btn-primary, .btn-secondary, #cta-b2b, .footer-title, .hero-sec span.inline-flex.rounded-full, .mnav-link, .tab-btn, .mnav-burger) { text-transform: uppercase; }
.btn-primary, .btn-secondary, #cta-b2b { letter-spacing: .06em; font-size: .78rem; }
.hero-sec span.inline-flex.rounded-full { letter-spacing: .1em; font-size: .7rem; }
.mnav-list .mnav-link { letter-spacing: .06em; }
@media (min-width: 1024px) { .mnav-list .mnav-link { font-size: .74rem; font-weight: 600; } }
/* /CAPS */

/* ======================================================================= main menu (desktop): capsule items */
@media (min-width: 1024px) {
  .mnav-list { gap: .2rem; padding: .1rem 0 .55rem; }
  .mnav-link { padding: .5rem .95rem; border-radius: 9999px; border: 1px solid transparent; color: rgb(var(--stone-700));
    transition: color .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease, transform .18s var(--ease-out); }
  .mnav-link::after { display: none; }
  .mnav-link:hover { color: rgb(var(--sage-800)); background: linear-gradient(180deg, rgb(var(--surface)), rgb(var(--surface-2)));
    border-color: rgb(var(--stone-200)); transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgb(var(--hl) / var(--hla)), 0 6px 12px -8px rgb(var(--sh) / calc(.45 * var(--sk))); }
  .mnav-link.is-active { color: rgb(var(--sage-800)); font-weight: 700; text-shadow: none;
    background: linear-gradient(180deg, rgb(var(--sage-100)), rgb(var(--sage-50))); border-color: rgb(var(--sage-200));
    box-shadow: inset 0 1px 0 rgb(var(--hl) / var(--hla)), 0 6px 14px -8px rgb(var(--sage-500) / .8); }
  .mnav-link.is-active::before { content: ""; width: .32rem; height: .32rem; border-radius: 50%; margin-right: .5rem; display: inline-block; vertical-align: middle;
    background: rgb(var(--gold-400)); box-shadow: 0 0 0 3px rgb(var(--gold-400) / .22); }
  .mnav-sub { top: calc(100% + .35rem); padding: .55rem; border-radius: 18px; border: 1px solid rgb(var(--gold-300) / .45);
    background: rgb(var(--surface) / .96); backdrop-filter: blur(10px); animation: sub-in .22s var(--ease-out); }
  .mnav-sub::before { content: ""; position: absolute; top: -6px; left: 1.4rem; width: 12px; height: 12px; transform: rotate(45deg);
    background: rgb(var(--surface)); border-left: 1px solid rgb(var(--gold-300) / .45); border-top: 1px solid rgb(var(--gold-300) / .45); }
  .mnav-sublink { position: relative; border-radius: 12px; padding: .62rem .9rem .62rem 1.5rem; font-size: .88rem; text-transform: none; letter-spacing: 0;
    transition: background .16s, color .16s, padding .16s var(--ease-out); }
  .mnav-sublink::before { content: ""; position: absolute; left: .75rem; top: 50%; width: .32rem; height: .32rem; border-radius: 50%; transform: translateY(-50%) scale(0);
    background: rgb(var(--gold-400)); transition: transform .18s var(--ease-out); }
  .mnav-sublink:hover { padding-left: 1.75rem; background: linear-gradient(90deg, rgb(var(--blush-50)), transparent); }
  .mnav-sublink:hover::before, .mnav-sublink.is-active::before { transform: translateY(-50%) scale(1); }
}
@keyframes sub-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
/* the burger button on phones */
.mnav-burger { letter-spacing: .05em; font-size: .8rem; box-shadow: inset 0 1px 0 rgb(var(--hl) / var(--hla)), 0 4px 10px -6px rgb(var(--sh) / calc(.4 * var(--sk))); }
.mnav-link, .mnav-sublink { -webkit-tap-highlight-color: transparent; }

/* ======================================================================= footer */
.site-footer { margin-top: 4rem; border-radius: 2.4rem 2.4rem 0 0; overflow: hidden;
  background: linear-gradient(180deg, rgb(var(--surface) / .72), rgb(var(--blush-50) / .85));
  box-shadow: 0 -24px 50px -34px rgb(var(--sh) / calc(.5 * var(--sk))), inset 0 1px 0 rgb(var(--hl) / var(--hla)); }
html[data-theme="dark"] .site-footer { background: linear-gradient(180deg, rgb(var(--surface)), rgb(var(--sage-50))); }
.site-footer .footer-line { display: none; }
.site-footer::before { content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgb(var(--gold-400)), transparent); }
.footer-title { font-size: .72rem; letter-spacing: .16em; }
#footer-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .15rem 1rem; }
#footer-links > li { margin: 0 !important; }
#footer-links .footer-link { display: flex; align-items: center; gap: .55rem; padding: .42rem .6rem; margin-left: -.6rem; border-radius: 10px; font-size: .9rem;
  transition: background .16s, color .16s, padding .16s var(--ease-out); }
#footer-links .footer-link::after { display: none; }
#footer-links .footer-link::before { content: ""; flex: none; width: .3rem; height: .3rem; border-radius: 50%; background: rgb(var(--gold-400)); opacity: .5; transition: transform .18s var(--ease-out), opacity .18s; }
#footer-links .footer-link:hover { background: rgb(var(--blush-50)); padding-left: .85rem; }
#footer-links .footer-link:hover::before { transform: scale(1.7); opacity: 1; }
html[data-theme="dark"] #footer-links .footer-link:hover { background: rgb(var(--sage-100)); }
#footer-contact li { padding: .7rem .85rem; border-radius: 1rem; border: 1px solid rgb(var(--stone-200) / .8);
  background: linear-gradient(180deg, rgb(var(--surface)), rgb(var(--surface-2)));
  box-shadow: inset 0 1px 0 rgb(var(--hl) / var(--hla)), var(--shadow-soft); transition: transform .2s var(--ease-out), box-shadow .2s; }
#footer-contact li:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgb(var(--hl) / var(--hla)), var(--shadow-lift); }
#footer-contact .footer-ic { box-shadow: inset 0 -2px 4px rgb(var(--gold-400) / .22), var(--shadow-soft); }
.social-btn { transition: transform .2s var(--ease-out), box-shadow .2s, background .2s, color .2s; box-shadow: inset 0 1px 0 rgb(var(--hl) / var(--hla)), var(--shadow-soft); }
a.social-btn:hover { background: linear-gradient(180deg, rgb(var(--sage-400)), rgb(var(--sage-600))); transform: translateY(-3px) scale(1.06); box-shadow: 0 10px 18px -8px rgb(var(--sage-700) / .7); }
/* bottom strip: legal links in one tidy row, copyright below */
.site-footer .border-t { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .65rem 2rem; text-align: center; }
#footer-info { order: -1; flex: 1 0 100%; justify-content: center; gap: .35rem 0; }
#footer-info a { padding: 0 .9rem; font-size: .78rem; white-space: nowrap; }
#footer-info a + a { border-left: 1px solid rgb(var(--gold-300) / .6); }
#footer-info a::after { display: none; }
@media (max-width: 639px) { #footer-links { grid-template-columns: 1fr; } .site-footer { border-radius: 1.6rem 1.6rem 0 0; } #footer-info a { border-left: 0 !important; padding: .15rem .6rem; } }
