@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* ==========================================================================
   1. ROOT & THEME TOKENS
   ========================================================================== */
:root,
.theme-light {
  --ink: #11120f;
  --muted: #6b6d65;
  --paper: #f6f6f2;
  --paper-2: rgba(255, 255, 255, 0.45);
  --blue: #1e4fff;
  --blue-dark: #123ed5;
  --blue-subtle: rgba(30, 79, 255, 0.08);
  --lime: #d9ff5b;
  --line: rgba(17, 18, 15, .08);
  --glass: rgba(255, 255, 255, .25);
  --glass-strong: rgba(255, 255, 255, .55);
  --glass-border: rgba(255, 255, 255, .65);
  --glass-rim: inset 0 1px 1px 0 rgba(255, 255, 255, .9), inset 0 0 14px 0 rgba(255, 255, 255, .15);
  --shadow: 0 20px 60px rgba(32, 40, 54, .1);
  --shadow-sm: 0 6px 24px rgba(32, 40, 54, .05);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

  /* Motion and button tokens: one vocabulary for every storefront page.
     Press = scale(.97) over 160ms ease-out; color/state changes = 200ms ease. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --btn-h: 52px;       /* primary action height */
  --btn-h-sm: 44px;    /* compact primary (sticky bars) and minimum touch target */
  --btn-radius: 99px;  /* primary and secondary buttons are pills */
  --btn-icon-radius: 14px; /* icon buttons are rounded squares */

  /* Embla Theme Tokens */
  --detail-high-contrast: rgb(192, 192, 192);
  --detail-medium-contrast: rgb(220, 220, 224);
  --detail-low-contrast: rgb(240, 240, 242);
  --text-body: rgb(54, 49, 61);
  --text-comment: rgb(99, 94, 105);
  --text-high-contrast: rgb(49, 49, 49);
  --text-high-contrast-rgb-value: 49, 49, 49;
}

html.dark,
.theme-dark {
  --ink: #f5f5f1;
  --muted: #95978f;
  --paper: #08090c;
  --paper-2: rgba(20, 24, 34, 0.45);
  --blue: #3d6aff;
  --blue-dark: #2352f5;
  --blue-subtle: rgba(61, 106, 255, 0.14);
  --lime: #d9ff5b;
  --line: rgba(255, 255, 255, .09);
  --glass: rgba(18, 22, 32, .32);
  --glass-strong: rgba(22, 28, 42, .62);
  --glass-border: rgba(255, 255, 255, .15);
  --glass-rim: inset 0 1px 1px 0 rgba(255, 255, 255, .28), inset 0 0 18px 0 rgba(61, 106, 255, .08);
  --shadow: 0 24px 70px rgba(0, 0, 0, .6);
  --shadow-sm: 0 8px 30px rgba(0, 0, 0, .45);

  /* Embla Theme Tokens (Dark) */
  --detail-high-contrast: rgb(101, 101, 101);
  --detail-medium-contrast: rgb(42, 42, 46);
  --detail-low-contrast: rgb(21, 21, 21);
  --text-body: rgb(222, 222, 222);
  --text-comment: rgb(170, 170, 170);
  --text-high-contrast: rgb(230, 230, 230);
  --text-high-contrast-rgb-value: 230, 230, 230;
}

/* ==========================================================================
   2. BASE & UTILITIES
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
/* No visible scrollbars anywhere on the storefront, at any screen size. Pages and panels still
   scroll with wheel, touch and keyboard; only the bar is hidden. */
html, body, * { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar { display: none; width: 0; height: 0; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s cubic-bezier(.16, 1, .3, 1), color .3s ease;
  position: relative;
}
body.locked { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--lime); color: #11120f; }

.hidden { display: none !important; }
.font-display { font-family: "Plus Jakarta Sans", sans-serif; }

/* Dark-mode backdrop: 21st.dev "Silk Blend". A silky ink-to-midnight linear gradient whose angle
   sways (static/assets/js/silk-bg.js sets --silk-angle), a vignette, and film grain. Day mode
   doesn't show it. */
.silk-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  background-color: #020617;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .424) 100%),
    linear-gradient(var(--silk-angle, 90deg), #020617 0%, #0f1729 100%);
}
.silk-grain {
  position: absolute;
  inset: 0;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.300'/></svg>");
  background-size: 120px 120px;
}
html:not(.dark) .silk-bg { display: none; }

/* Crystal-Clear Frosted Glass Surfaces */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-rim), 0 12px 36px rgba(28, 38, 56, .06);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  position: relative;
}
html.dark .glass {
  box-shadow: var(--glass-rim), 0 16px 45px rgba(0, 0, 0, .45);
}

.glass-strong {
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-rim), var(--shadow-sm);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  position: relative;
}

.product-card,
.category-card,
.cart-item-card,
.summary-card,
.empty-cart-card,
.site-header,
.mobile-nav {
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s cubic-bezier(.16, 1, .3, 1), border-color .25s ease;
}

/* Specular Light Hover Tracking */
.product-card::before,
.category-card::before,
.cart-item-card::before,
.summary-card::before,
.empty-cart-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(255, 255, 255, .2), transparent 60%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 2;
}
html.dark .product-card::before,
html.dark .category-card::before,
html.dark .cart-item-card::before,
html.dark .summary-card::before,
html.dark .empty-cart-card::before {
  background: radial-gradient(420px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(255, 255, 255, .14), transparent 60%);
}

.product-card:hover::before,
.category-card:hover::before,
.cart-item-card:hover::before,
.summary-card:hover::before,
.empty-cart-card:hover::before {
  opacity: 1;
}

.product-card:hover::before,
.category-card:hover::before,
.cart-item-card:hover::before,
.summary-card:hover::before,
.empty-cart-card:hover::before {
  opacity: 1;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  z-index: 30;
  top: 12px;
  left: 12px;
  right: 12px;
  max-width: 1180px;
  margin: auto;
  height: 62px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 18px;
  transition: transform .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header:hover {
  border-color: rgba(255, 255, 255, .6);
  box-shadow: var(--glass-rim), 0 24px 60px rgba(30, 79, 255, .16);
}
.site-header.nav-scroll-hidden {
  transform: translateY(calc(-100% - 20px));
}
.brand {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.05em;
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease;
}
.brand:hover { transform: scale(1.02); }
.brand-logo-img,
.brand img {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  flex-shrink: 0;
}
.brand-name {
  font-weight: 700;
  letter-spacing: -.02em;
}
.brand i { color: var(--blue); font-style: normal; margin-left: 2px; }
.desktop-nav { display: none; }
.header-actions { display: flex; gap: 7px; align-items: center; }
.icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--btn-icon-radius);
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  position: relative;
  font-size: 1.15rem;
}
/* The mark stays 40px; the tappable area grows to the 44px minimum. */
.icon-btn::after { content: ""; position: absolute; inset: -2px; }
html.dark .icon-btn {
  background: transparent;
  color: var(--ink);
}
.icon-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover {
    background: rgba(255, 255, 255, .25);
    border-color: rgba(255, 255, 255, .6);
    color: var(--ink);
  }
  html.dark .icon-btn:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .2);
    color: #fff;
  }
}

/* Theme toggle icon: one SVG. CSS shows the resting sun or moon, so the right one appears with no
   JavaScript. While the theme changes, the morph script (templates/frontend/main.html) hides them and
   animates .tm-live, then hands back to CSS. */
.theme-morph { display: block; width: 1em; height: 1em; overflow: visible; }
.theme-morph .tm-moon { display: none; }
html.dark .theme-morph .tm-sun { display: none; }
html.dark .theme-morph .tm-moon { display: inline; }
.theme-morph .tm-live { display: none; transform-box: view-box; transform-origin: 12px 12px; }
.theme-morph .tm-live-rays line { transform-box: view-box; transform-origin: 12px 12px; }
/* While morphing, only the live group shows. !important because the dark-mode rule above would otherwise keep the resting moon on screen. */
.theme-morph.is-morphing .tm-static { display: none !important; }
.theme-morph.is-morphing .tm-live { display: inline; }

.bag-count {
  position: absolute;
  right: 3px;
  top: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--blue);
  color: white;
  border: 2px solid white;
  font-size: .58rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
html.dark .bag-count {
  border-color: var(--paper);
}

/* ==========================================================================
   4. MAIN CONTAINER & HERO
   ========================================================================== */
main { max-width: 1200px; margin: 0 auto; padding: 94px 14px 110px; }
.eyebrow {
  margin: 0 0 12px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Plus Jakarta Sans", sans-serif; }

.hero {
  min-height: 650px;
  border-radius: 36px;
  background: #dfe5ff;
  overflow: hidden;
  position: relative;
  padding: 34px 24px 26px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
html.dark .hero {
  background: #141f3d;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
  z-index: -1;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  margin-bottom: 14px;
  max-width: 440px;
  font-size: clamp(2.8rem, 13vw, 5rem);
  line-height: .9;
  letter-spacing: -.075em;
}
.hero-text { color: #53596f; font-size: .93rem; line-height: 1.65; max-width: 330px; }
html.dark .hero-text { color: #a5b0cc; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
/* PRIMARY BUTTON. One recipe for every main action on the storefront: Add to Bag,
   Checkout, Explore. Product-page (.buy-btn) and cart (.cart-cta) buttons are the
   same component with their own markup, and read these same tokens. */
.primary-btn {
  border: 0;
  border-radius: var(--btn-radius);
  background: var(--blue);
  color: #fff;
  min-height: var(--btn-h);
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: "Manrope", sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
  text-decoration: none;
}
.primary-btn:active { transform: scale(0.97); }
.primary-btn[disabled], .primary-btn.disabled { opacity: .4; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .primary-btn:hover { background: var(--blue-dark); }
}
.primary-btn.light { background: white; color: var(--ink); }
html.dark .primary-btn.light { background: var(--paper-2); color: var(--ink); }
.text-link { border: 0; background: none; font-size: .8rem; font-weight: 700; padding: 4px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; line-height: 1; transition: color 200ms ease, transform 160ms var(--ease-out); }
.text-link:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .text-link:hover { color: var(--blue); } }

/* ==========================================================================
   4. EMBLA HERO BANNER CAROUSEL (SCREENX 3D PANORAMIC THEATER)
   ========================================================================== */
.hero-banner-carousel,
.embla {
  max-width: 100%;
  margin: 0 auto 14px;
  position: relative;

  --slide-height: 180px;
  --slide-spacing: 5px;
  --slide-size: 68%;
}

@media (min-width: 640px) {
  .hero-banner-carousel,
  .embla {
    --slide-height: 360px;
    --slide-spacing: 6px;
    --slide-size: 64%;
    margin-bottom: 28px;
  }
}

@media (min-width: 1024px) {
  .hero-banner-carousel,
  .embla {
    --slide-height: 450px;
    --slide-spacing: 6px;
    --slide-size: 56%;
    margin-bottom: 36px;
  }
}

.embla__viewport {
  overflow: hidden;
  width: 100%;
  padding: 24px 0 28px;
  margin-top: -12px;
  margin-bottom: -12px;
}

@media (min-width: 640px) {
  .embla__viewport {
    padding: 48px 0 54px;
    margin-top: -24px;
    margin-bottom: -24px;
  }
}

.embla__container {
  display: flex;
  touch-action: pan-y pinch-zoom;
  margin-left: calc(var(--slide-spacing) * -1);
  transform-style: preserve-3d;
}

.embla__slide {
  flex: 0 0 var(--slide-size);
  min-width: 0;
  padding-left: var(--slide-spacing);
  position: relative;
  transform-style: preserve-3d;
}

.embla__slide__link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transform-style: preserve-3d;
}

/* ScreenX 3D Cinema Panel Container */
.embla__parallax {
  border-radius: 6px;
  height: var(--slide-height);
  overflow: hidden;
  position: relative;
  background: #000;
  border: none;
  box-shadow: none;
  will-change: transform, filter, opacity;
  transform-style: preserve-3d;
}

html.dark .embla__parallax {
  box-shadow: none;
  border: none;
}

@media (min-width: 640px) {
  .embla__parallax {
    border-radius: 8px;
  }
}

/* ScreenX 3D Fold Ambient Shadow (Disabled per user request) */
.screenx-fold-shadow {
  display: none !important;
}

.embla__parallax__layer {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform;
}

.embla__slide__img,
.embla__parallax__img {
  max-width: none;
  flex: 0 0 calc(115% + (var(--slide-spacing) * 2));
  height: 100%;
  object-fit: cover;
  user-select: none;
  border-radius: 16px;
}

@media (min-width: 640px) {
  .embla__slide__img,
  .embla__parallax__img {
    border-radius: 24px;
  }
}

/* On mobile: Remove all text, CTA button, and dark overlay */
.embla__slide .banner-gradient {
  display: none;
}

.embla__slide .banner-content {
  display: none;
}

/* On Desktop & Tablet: Display subtle gradient and active slide text */
@media (min-width: 640px) {
  .embla__slide .banner-gradient {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,0.52) 100%);
    pointer-events: none;
    z-index: 2;
    opacity: 0.4;
    transition: opacity 0.35s ease;
  }

  .embla__slide.is-selected .banner-gradient {
    opacity: 1;
  }

  .embla__slide .banner-content {
    display: flex;
    position: absolute;
    inset: 0;
    z-index: 10;
    padding: 24px 28px;
    color: white;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .embla__slide.is-selected .banner-content {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 1024px) {
  .embla__slide .banner-content {
    padding: 28px 32px;
  }
}

.banner-text-group {
  max-width: 480px;
}

.banner-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: white;
  margin: 0 0 2px;
  text-shadow: none;
}

@media (min-width: 640px) {
  .banner-title {
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    margin-bottom: 5px;
    text-shadow: none;
  }
}

.banner-subtitle {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
  margin: 0 0 8px;
  text-shadow: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .banner-subtitle {
    font-size: clamp(0.72rem, 1.1vw, 0.82rem);
    line-height: 1.45;
    margin-bottom: 12px;
    text-shadow: none;
  }
}

.banner-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  background: white;
  color: #11120f;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none !important;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}

@media (min-width: 640px) {
  .banner-cta-btn {
    gap: 7px;
    padding: 7px 16px;
    font-size: 0.74rem;
    box-shadow: none !important;
  }
}

.banner-cta-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .banner-cta-btn:hover {
    background: var(--blue);
    color: white;
  }
}

/* ==================== EMBLA CONTROLS (BUTTONS & DOTS) ==================== */
.embla__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  padding: 0;
}

@media (min-width: 640px) {
  .embla__controls {
    justify-content: space-between;
    margin-top: 16px;
    padding: 0 4px;
  }
}

.embla__buttons {
  display: none;
}

@media (min-width: 640px) {
  .embla__buttons {
    display: flex;
    gap: 8px;
    align-items: center;
  }
}

.embla__button {
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  display: inline-flex;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid rgba(17, 18, 15, 0.12);
  color: var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

html.dark .embla__button {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (min-width: 640px) {
  .embla__button {
    width: 40px;
    height: 40px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .embla__button:hover:not(.embla__button--disabled) {
    border-color: var(--blue);
    color: var(--blue);
    background: white;
  }

  html.dark .embla__button:hover:not(.embla__button--disabled) {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(255, 255, 255, 0.12);
  }
}

.embla__button:active:not(.embla__button--disabled) {
  transform: scale(0.97);
}

.embla__button--disabled {
  opacity: 0.28;
  cursor: not-allowed;
  pointer-events: none;
}

.embla__button__svg {
  width: 14px;
  height: 14px;
}

@media (min-width: 640px) {
  .embla__button__svg {
    width: 16px;
    height: 16px;
  }
}

/* Dots */
.embla__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3px;
}

@media (min-width: 640px) {
  .embla__dots {
    justify-content: flex-end;
    gap: 2px;
  }
}

.embla__dot {
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  touch-action: manipulation;
  display: inline-flex;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
}

@media (min-width: 640px) {
  .embla__dot {
    width: 28px;
    height: 28px;
  }
}

.embla__dot:before,
.embla__dot:after {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  position: absolute;
  display: flex;
  align-items: center;
  content: '';
  transition: opacity 200ms ease, transform 200ms var(--ease-out), border-color 200ms ease, background-color 200ms ease;
}

@media (min-width: 640px) {
  .embla__dot:before,
  .embla__dot:after {
    width: 11px;
    height: 11px;
  }
}

.embla__dot:before {
  border: 1.2px solid rgba(17, 18, 15, 0.25);
}

html.dark .embla__dot:before {
  border-color: rgba(255, 255, 255, 0.25);
}

.embla__dot:after {
  border: 1.2px solid var(--ink);
  background-color: var(--ink);
  opacity: 0;
  transform: scale(0.85);
}

@media (min-width: 640px) {
  .embla__dot:before {
    border-width: 1.5px;
  }
  .embla__dot:after {
    border-width: 1.5px;
    background-color: transparent;
  }
}

html.dark .embla__dot:after {
  border-color: #ffffff;
  background-color: #ffffff;
}

@media (min-width: 640px) {
  html.dark .embla__dot:after {
    background-color: transparent;
  }
}

.embla__dot--selected:after {
  opacity: 1;
  transform: scale(1.15);
}

/* ==========================================================================
   5. TRUST ROW & SECTIONS
   ========================================================================== */
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 18px 5px 6px;
}
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .6rem; color: var(--muted); }
.trust-item iconify-icon { color: var(--blue); font-size: 1.1rem; }

.section { padding: 32px 2px 0; }
#shop { margin-top: 28px; }
@media (min-width: 900px) {
  #shop { margin-top: 32px; }
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head h2,
.section-head h3,
.section h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
.section-sub { color: var(--muted); font-size: .78rem; max-width: 260px; line-height: 1.55; }

/* Filter Chips */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scrollbar-width: none;
  white-space: nowrap;
}
.chips::-webkit-scrollbar, .product-rail::-webkit-scrollbar { display: none; }
.chip, .chip-pill {
  flex: 0 0 auto;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
}
html.dark .chip, html.dark .chip-pill {
  background: var(--glass);
  border-color: var(--glass-border);
  color: var(--ink);
  box-shadow: none;
}
.chip:active, .chip-pill:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .chip:hover, .chip-pill:hover {
    background: var(--glass-strong);
    border-color: rgba(255, 255, 255, .9);
    color: var(--ink);
    box-shadow: none;
  }
  html.dark .chip:hover, html.dark .chip-pill:hover {
    background: var(--glass-strong);
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
    box-shadow: none;
  }
}
/* Animated Diagonal Specular Lighting Beam across Claude Liquid Metal Bezel (No Fill, No Shadow) */
@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes claude-specular-rotate {
  0% { --border-angle: 0deg; }
  100% { --border-angle: 360deg; }
}

.chip.active,
.chip-pill.active {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink) !important;
  text-decoration: none;
  cursor: pointer;
  background: var(--glass) !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}

/* Thin Animated Specular Border (Masked so interior has NO fill) */
.chip.active::before,
.chip-pill.active::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  padding: 1.25px; /* Thinner border around curve */
  background: conic-gradient(
    from var(--border-angle),
    rgba(74, 77, 85, 0.5) 0deg,          /* Top Edge: Soft translucent white / muted silver: #4A4D55 to #6B7280 */
    rgba(107, 114, 128, 0.6) 25deg,
    #E2C799 45deg,                       /* Warm Sheen / Reflection Accent: Pale amber / soft gold: #E2C799 to #C89B68 */
    #FFFFFF 55deg,                       /* Bright Glare / Specular Highlight (Diagonal): Pure white: #FFFFFF */
    #FFFFFF 65deg,
    #C89B68 75deg,
    transparent 95deg,
    #4F597A 135deg,                      /* Cool Glow (Lower-Right edge): Slate / icy lavender blue: #6D7A9C to #4F597A */
    #6D7A9C 160deg,
    rgba(74, 77, 85, 0.45) 180deg,
    rgba(107, 114, 128, 0.6) 205deg,
    #E2C799 225deg,                      /* Dual diagonal specular highlight */
    #FFFFFF 235deg,
    #FFFFFF 245deg,
    #C89B68 255deg,
    transparent 275deg,
    #4F597A 315deg,
    #6D7A9C 335deg,
    rgba(74, 77, 85, 0.5) 360deg
  );
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: claude-specular-rotate 3.5s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.chip.active::after,
.chip-pill.active::after {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .chip.active:hover,
  .chip-pill.active:hover {
    background: var(--glass-strong) !important;
    box-shadow: none !important;
  }
}

.chip.active:active,
.chip-pill.active:active {
  transform: scale(0.97) !important;
  box-shadow: none !important;
}

.chip.active > *,
.chip-pill.active > * {
  position: relative;
  z-index: 3;
}

.chip.active iconify-icon,
.chip-pill.active iconify-icon {
  color: var(--ink) !important;
  filter: none !important;
}

/* Search input wrapper */
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 0 14px;
  gap: 10px;
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, .7), 0 6px 20px rgba(0, 0, 0, .04);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
html.dark .search-input-wrap {
  background: var(--glass);
  border-color: var(--glass-border);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, .2), 0 6px 20px rgba(0, 0, 0, .3);
}
.search-input-wrap:focus-within {
  border-color: rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .5), inset 0 1px 1px 0 rgba(255, 255, 255, .9);
}
html.dark .search-input-wrap:focus-within {
  border-color: rgba(255, 255, 255, .4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .12), inset 0 1px 1px 0 rgba(255, 255, 255, .3);
}
.search-input-wrap iconify-icon {
  font-size: 1.15rem;
  color: var(--muted);
  flex-shrink: 0;
}
.search-input-wrap input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 13px 0;
  font-size: .82rem;
  color: var(--ink);
  outline: none;
}

/* ==========================================================================
   6. PRODUCT RAIL & CARDS
   ========================================================================== */
.product-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 3px 1px 18px;
}
.product-card {
  scroll-snap-align: start;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 8px 8px 14px;
  box-shadow: var(--glass-rim), 0 12px 38px rgba(32, 40, 54, .07);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s cubic-bezier(.16, 1, .3, 1), border-color .25s ease;
  min-width: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--glass-rim), 0 22px 50px -10px rgba(30, 79, 255, .18);
  border-color: rgba(30, 79, 255, .35);
}
html.dark .product-card {
  background: var(--glass);
  border-color: var(--glass-border);
  box-shadow: var(--glass-rim), 0 12px 38px rgba(0, 0, 0, .4);
}
html.dark .product-card:hover {
  box-shadow: var(--glass-rim), 0 22px 50px -10px rgba(61, 106, 255, .28);
  border-color: rgba(61, 106, 255, .5);
}
.product-card[hidden] { display: none !important; }
.product-visual {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 20px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
}
.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.product-card:hover .product-visual img {
  transform: scale(1.06);
}

.badge {
  position: absolute;
  z-index: 3;
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(12px);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #11120f;
}
html.dark .badge {
  background: rgba(20, 22, 28, .82);
  color: #fff;
}
.badge.sale { background: var(--lime); color: #11120f; }
.badge.soldout { background: #ef4444; color: #ffffff; }

.wish {
  position: absolute;
  z-index: 4;
  right: 10px;
  top: 10px;
  background: rgba(255,255,255,.72);
}
html.dark .wish {
  background: rgba(20, 22, 28, .75);
}
.product-card .wish { width: 36px; height: 36px; border-radius: 13px; }
.wish.active { background: var(--ink); color: white; }
html.dark .wish.active { background: #fff; color: #11120f; }

.case-shape {
  width: 132px;
  height: 207px;
  border-radius: 30px;
  background: linear-gradient(145deg, #315bff, #08248a);
  transform: rotate(9deg);
  box-shadow: -15px 18px 30px rgba(28,52,140,.28), inset 8px 8px 12px rgba(255,255,255,.17);
  position: relative;
  z-index: 2;
}
.case-shape::before {
  content: "";
  position: absolute;
  width: 58px;
  height: 58px;
  left: 12px;
  top: 12px;
  border-radius: 19px;
  background: #0c1e61;
  box-shadow: inset 0 0 0 8px #b7c5ff;
}
.case-shape::after {
  content: "K";
  position: absolute;
  right: 17px;
  bottom: 17px;
  font-family: "Plus Jakarta Sans";
  color: rgba(255,255,255,.76);
  font-size: 1rem;
  font-weight: 700;
}
.buds-shape { position: relative; width: 155px; height: 160px; z-index: 2; }
.bud { position: absolute; width: 52px; height: 103px; border-radius: 28px 28px 22px 22px; background: linear-gradient(145deg,#fafafa,#b8bbb7); box-shadow: 0 12px 22px rgba(42,42,42,.18), inset 4px 5px 8px white; }
.bud::after { content:""; position:absolute; width:23px; height:23px; border-radius:50%; background:#2b2b28; top:15px; left:14px; }
.bud.left { left: 22px; top: 15px; transform: rotate(-19deg); }
.bud.right { right: 22px; top: 7px; transform: rotate(22deg); }
.cable-shape { position: relative; width: 185px; height: 185px; border-radius: 50%; border: 17px solid #d3ed55; box-shadow: inset 8px 8px 12px rgba(68,88,4,.12), 0 18px 25px rgba(76,88,20,.15); z-index: 2; transform: rotate(-12deg); }
.cable-shape::before, .cable-shape::after { content:""; position:absolute; width:30px; height:54px; background:#20211e; border-radius:8px; }
.cable-shape::before { left:-18px; bottom:12px; transform:rotate(18deg); }
.cable-shape::after { right:-18px; top:12px; transform:rotate(18deg); }
.sleeve-shape { width: 190px; height: 138px; border-radius: 18px 18px 23px 23px; transform: rotate(-7deg); background: linear-gradient(150deg,#5a5b56,#181916); box-shadow: 0 22px 32px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.32); position:relative; z-index:2; }
.sleeve-shape::before { content:""; position:absolute; inset:11px; border:1px solid rgba(255,255,255,.22); border-radius:11px; }
.sleeve-shape::after { content:"KEYZ"; position:absolute; right:17px; bottom:14px; color:#d9ff5b; font:700 .7rem "Plus Jakarta Sans"; }
.product-copy { padding: 15px 5px 2px; }
.product-kicker { color: var(--muted); font-size: .65rem; margin-bottom: 5px; }
.product-line { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.product-line h3 { flex: 1; min-width: 0; font-size: .84rem; letter-spacing: -.03em; margin: 0; }
.product-line h3 .direct-link {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.price { font-family: "Manrope", sans-serif; font-size: .82rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.swatches { display: flex; margin-top: 13px; gap: 6px; }
.swatch { width: 15px; height: 15px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.12), inset 0 0 0 2px rgba(255,255,255,.4); }

/* ==========================================================================
   7. CRAFT FEATURE & NEWSLETTER
   ========================================================================== */
.feature {
  background: var(--ink);
  color: white;
  border-radius: 32px;
  overflow: hidden;
  padding: 28px 22px 0;
  position: relative;
  min-height: 510px;
}
.feature h2 { max-width: 350px; font-size: 2.2rem; line-height: 1; }
.feature .eyebrow { color: var(--lime); }
.feature p { color: #afb1aa; line-height: 1.6; max-width: 360px; font-size: .8rem; }
.feature-orb {
  height: 275px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 100%, #315bff 0 16%, transparent 17%), radial-gradient(circle at 50% 100%, #19338c 0 38%, transparent 39%);
}
.feature-orb::before {
  content:"";
  position:absolute;
  width:185px;
  height:185px;
  border-radius:50%;
  left:50%;
  bottom:-17px;
  transform:translateX(-50%);
  background:linear-gradient(145deg,rgba(255,255,255,.78),rgba(255,255,255,.06));
  border:1px solid rgba(255,255,255,.35);
  backdrop-filter:blur(10px);
  box-shadow:0 0 60px rgba(90,120,255,.45), inset 14px 10px 25px rgba(255,255,255,.22);
}
.feature-number { position:absolute; right:20px; top:22px; font:600 3.6rem "Plus Jakarta Sans"; color:rgba(255,255,255,.08); }

.newsletter {
  border-radius: 30px;
  padding: 26px 20px;
  display: grid;
  gap: 20px;
}
.newsletter h2 { font-size: 1.8rem; }
.newsletter p { color: var(--muted); font-size: .76rem; line-height: 1.6; margin-bottom: 0; }
.input-wrap { display: flex; border-bottom: 1px solid rgba(17,18,15,.28); }
html.dark .input-wrap { border-bottom-color: rgba(255,255,255,.28); }
.input-wrap input { flex:1; min-width:0; border:0; background:transparent; padding:14px 2px; outline:none; font-size:.78rem; color: var(--ink); }
.input-wrap button { border:0; background:transparent; cursor:pointer; font-size:1.2rem; color: var(--ink); }

/* Floating Contact Widget & Mini Footer */
.floating-contact-widget {
  position: fixed;
  z-index: 40;
  right: 18px;
  bottom: 24px;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.floating-contact-widget .floating-trigger-btn {
  pointer-events: auto;
}
.floating-contact-widget.open .floating-menu {
  pointer-events: auto;
}
@media (max-width: 899px) {
  .floating-contact-widget {
    position: fixed;
    right: 14px;
    bottom: max(86px, calc(env(safe-area-inset-bottom) + 78px));
    z-index: 40;
    width: auto;
    margin: 0;
  }
}

.floating-trigger-btn {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--glass);
  color: var(--ink);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-rim), 0 16px 40px rgba(28, 38, 56, .16);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 200ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  font-size: 1.35rem;
}
html.dark .floating-trigger-btn {
  background: var(--glass);
  color: var(--ink);
  box-shadow: var(--glass-rim), 0 18px 44px rgba(0, 0, 0, .42);
}
.floating-trigger-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .floating-trigger-btn:hover {
    border-color: rgba(255, 255, 255, .8);
    box-shadow: var(--glass-rim), 0 18px 44px rgba(30, 79, 255, .2);
  }
}
.floating-trigger-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.floating-trigger-btn.active {
  transform: rotate(45deg);
  background: rgba(30, 79, 255, .78);
  border-color: rgba(255, 255, 255, .55);
  color: white;
}
html.dark .floating-trigger-btn.active {
  background: rgba(61, 106, 255, .78);
  color: white;
}

.floating-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.95);
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.8,.2,1);
}
.floating-contact-widget.open .floating-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 700;
  transition: transform 160ms var(--ease-out), border-color 200ms ease, color 200ms ease;
  text-decoration: none;
  white-space: nowrap;
}
html.dark .floating-item {
  background: rgba(26, 29, 36, .92);
  color: #f5f5f1;
}
.floating-item:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .floating-item:hover {
    border-color: var(--blue);
    color: var(--blue);
  }
}
.floating-item iconify-icon {
  font-size: 1.1rem;
  color: var(--blue);
}

.mini-footer {
  padding: 30px 0 max(80px, calc(env(safe-area-inset-bottom) + 70px));
  text-align: center;
  font-size: .65rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 48px;
}
@media (min-width: 900px) {
  .mini-footer {
    padding-bottom: 24px;
  }
}

/* ==========================================================================
   8. MOBILE NAVIGATION & OVERLAYS
   ========================================================================== */
.mobile-nav {
  position: fixed;
  z-index: 25;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 420px;
  border-radius: 26px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: var(--glass-rim), 0 20px 60px rgba(0, 0, 0, .18);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), background .3s;
  pointer-events: none;
}
.mobile-nav.nav-scroll-hidden {
  transform: translate(-50%, calc(100% + 24px));
}
.mobile-nav .nav-item {
  pointer-events: auto;
  border: 0;
  background: transparent;
  padding: 8px 4px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: .56rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.nav-item:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .nav-item:hover { color: var(--ink); }
}
.nav-item iconify-icon {
  font-size: 1.18rem;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), color .2s ease;
}
.nav-item.active {
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  box-shadow: none;
  transform: translateY(-2px);
}
.nav-item.active iconify-icon {
  color: var(--ink);
  transform: scale(1.18);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .12));
}
html.dark .nav-item.active {
  background: transparent;
  color: #ffffff;
  box-shadow: none;
}
html.dark .nav-item.active iconify-icon {
  color: #ffffff;
  filter: drop-shadow(0 2px 10px rgba(255, 255, 255, .5));
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(12,13,11,.28);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 620px;
  margin: auto;
  border-radius: 32px 32px 0 0;
  background: rgba(248,248,244,.93);
  border: 1px solid white;
  box-shadow: 0 -20px 80px rgba(0,0,0,.17);
  padding: 10px 18px max(22px, env(safe-area-inset-bottom));
  transform: translateY(105%);
  transition: transform .38s cubic-bezier(.2,.8,.2,1);
  max-height: 88vh;
  overflow-y: auto;
}
html.dark .sheet {
  background: rgba(18, 20, 26, .94);
  border-color: rgba(255, 255, 255, .15);
  box-shadow: 0 -20px 80px rgba(0,0,0,.6);
}
.overlay.open .sheet { transform: translateY(0); }
.sheet-handle { width: 42px; height: 4px; border-radius: 3px; background: #c9cac4; margin: 0 auto 14px; }
.sheet-image { height: 205px; border-radius: 24px; background:#dce4ff; display:grid; place-items:center; position:relative; overflow:hidden; }
html.dark .sheet-image { background: #16244f; }
.sheet-image img { max-height: 190px; object-fit: contain; }
.sheet-top { display:flex; justify-content:space-between; gap:15px; margin:20px 2px 4px; }
.sheet-top h2 { font-size:1.7rem; letter-spacing:-.05em; margin-bottom:4px; }
.sheet-price { font-family: "Manrope", sans-serif; font-weight:800; font-size: 1.25rem; font-variant-numeric: tabular-nums; color: var(--blue); }
.rating { font-size:.65rem; color:var(--muted); display:flex; align-items:center; gap:5px; }
.rating iconify-icon { color:#e8ac28; }
.option-block { margin-top:22px; }
.option-head { display:flex; justify-content:space-between; font-size:.7rem; font-weight:700; margin-bottom:10px; }
.option-head span:last-child { color:var(--muted); font-weight:500; }
.color-options, .size-options { display:flex; gap:9px; flex-wrap:wrap; }
.color-option { width:34px; height:34px; border-radius:50%; border:3px solid #f8f8f4; box-shadow:0 0 0 1px rgba(0,0,0,.15); cursor:pointer; }
.color-option.active { box-shadow:0 0 0 2px var(--blue); }
.size-option { border:1px solid var(--line); border-radius:12px; padding:10px 14px; background:rgba(255,255,255,.5); font-size:.7rem; font-weight:700; cursor:pointer; }
html.dark .size-option { background: rgba(255,255,255,.06); color: var(--ink); }
.size-option.active { background:var(--ink); color:white; }
html.dark .size-option.active { background: #fff; color: #11120f; }
.add-btn { width:100%; margin-top:24px; }
.search-panel { position:absolute; top:0; left:0; right:0; max-width:720px; margin:auto; padding:16px; transform:translateY(-100%); transition:transform .35s cubic-bezier(.2,.8,.2,1); }
.overlay.open .search-panel { transform:translateY(0); }
.search-box { background:rgba(248,248,244,.95); border:1px solid white; border-radius:23px; padding:12px; box-shadow:var(--shadow); }
html.dark .search-box { background: rgba(20, 22, 28, .96); border-color: rgba(255,255,255,.15); }
.search-input { height:54px; border-radius:16px; background:white; display:flex; align-items:center; padding:0 13px; gap:10px; }
html.dark .search-input { background: rgba(255,255,255,.08); }
.search-input input { flex:1; min-width:0; border:0; outline:0; background:transparent; color: var(--ink); }
.search-close { width:var(--btn-h-sm); height:var(--btn-h-sm); flex-shrink:0; border:0; border-radius:var(--btn-icon-radius); background:none; cursor:pointer; display:grid; place-items:center; font-size:1.1rem; color: var(--muted); transition: transform 160ms var(--ease-out), color 200ms ease; }
.search-close:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .search-close:hover { color: var(--ink); } }
.search-results {
  max-height: min(62vh, 520px);
  overflow-y: auto;
  padding: 14px 8px 4px;
  color: var(--muted);
  font-size: .72rem;
}
.search-results strong { color: var(--ink); display: block; margin-bottom: 8px; }
.search-quick-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; margin-bottom: 12px; }
.search-status { padding: 14px 0; margin: 0; color: var(--muted); font-size: .75rem; }
.search-suggestions { margin-top: 8px; }
.result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  transition: background .15s ease;
}
.result-row:hover,
.result-row:focus-visible { background: var(--blue-subtle); outline: none; }
.result-row img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--paper-2);
}
.result-details { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.result-name { overflow: hidden; color: var(--ink); font-size: .78rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.result-category { color: var(--muted); font-size: .64rem; font-weight: 600; }
.result-price { flex: 0 0 auto; color: var(--blue); font-family: "Plus Jakarta Sans", sans-serif; font-size: .74rem; font-weight: 800; white-space: nowrap; }
/* TOAST. The one notification for the whole storefront (window.KeyzApp.showToast).
   Slides in from the top edge it is pinned to and leaves the same way: a transition,
   not keyframes, so a second toast mid-animation retargets instead of restarting.
   Fast: 180ms in, 120ms out (it is feedback, never something to wait for).
   Swipe it away toward the edge it came from (see the toast gesture in main.html).
   Types: success (default), error, info; optional action. */
.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  top: calc(env(safe-area-inset-top, 0px) + 88px);
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: min(calc(100vw - 32px), 440px);
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  touch-action: none;   /* we handle the drag ourselves */
  user-select: none;
  -webkit-user-select: none;
  transform: translate(-50%, -12px);
  transition: opacity 100ms var(--ease-out), transform 120ms var(--ease-out), visibility 0s linear 120ms;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity 140ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s;
}
/* While a finger holds it, it follows 1:1 with no easing. */
.toast.is-dragging { transition: none; }
.toast-icon { flex-shrink: 0; font-size: 1.2rem; }
/* Icon colors are chosen against the toast's own surface (dark in light mode, light in dark mode). */
.toast[data-type="success"] .toast-icon { color: var(--lime); }
.toast[data-type="error"] .toast-icon { color: #f87171; }
.toast[data-type="info"] .toast-icon { color: #93b4ff; }
html.dark .toast[data-type="success"] .toast-icon { color: #15803d; }
html.dark .toast[data-type="error"] .toast-icon { color: #dc2626; }
html.dark .toast[data-type="info"] .toast-icon { color: #1e4fff; }
.toast-message { min-width: 0; overflow-wrap: anywhere; }
.toast.has-action { padding-right: 6px; }
.toast-action {
  flex-shrink: 0;
  min-height: var(--btn-h-sm);
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.toast-action:active { transform: scale(0.97); }
.toast-action[hidden] { display: none; }

/* BUTTON FOCUS. One ring for every button-like control on the storefront. */
:is(.icon-btn, .primary-btn, .chip, .chip-pill, .text-link, .banner-cta-btn, .search-close, .nav-item,
    .floating-item, .embla__button, .embla__dot, .page-btn, .toast-action):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* PAGINATION. Same recipe as the other square icon buttons. */
.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: var(--btn-icon-radius);
  background: var(--glass);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.page-btn:active { transform: scale(0.97); }
.page-btn.is-current { background: var(--ink); border-color: var(--ink); color: var(--paper); cursor: default; }
.page-btn:disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .page-btn:not(.is-current):hover { background: var(--glass-strong); border-color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  .toast,
  .toast.show { transform: translate(-50%, 0); transition: opacity 150ms ease, visibility 0s; }
  .primary-btn:active, .icon-btn:active, .chip:active, .chip-pill:active, .banner-cta-btn:active,
  .nav-item:active, .page-btn:active, .toast-action:active, .floating-trigger-btn:active,
  .floating-item:active, .embla__button:active { transform: none; }
}

/* ==========================================================================
   9. SHOPPING CART PAGE STYLES
   ========================================================================== */
.cart-page-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 0 max(110px, calc(env(safe-area-inset-bottom) + 90px));
}

.cart-header-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.cart-header-title h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.04em;
  margin: 0 0 4px;
  color: var(--ink);
}
.cart-header-sub {
  font-size: .78rem;
  color: var(--muted);
  margin: 0;
}
.cart-count-pill {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

/* Empty Cart Card */
.empty-cart-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  border-radius: 28px;
  padding: 48px 24px;
  max-width: 480px;
  margin: 32px auto;
  box-shadow: var(--shadow-sm);
}
.empty-cart-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: var(--blue-subtle);
  border: 1px solid rgba(30, 79, 255, .2);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--blue);
  box-shadow: 0 8px 20px rgba(30, 79, 255, .12);
}
.empty-cart-icon-wrap iconify-icon {
  font-size: 2.2rem;
  color: var(--blue);
}
.empty-cart-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 8px;
  color: var(--ink);
}
.empty-cart-desc {
  font-size: .82rem;
  color: var(--muted);
  max-width: 320px;
  margin: 0 0 24px;
  line-height: 1.5;
}
.empty-cart-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper-1);
  padding: 12px 26px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, background .2s, color .2s;
  box-shadow: var(--shadow-sm);
}
html.dark .empty-cart-cta {
  background: #f5f5f1;
  color: #11120f;
}
.empty-cart-cta:hover {
  transform: translateY(-2px);
  background: var(--blue);
  color: white;
}
.empty-cart-cta iconify-icon {
  font-size: 1rem;
}

/* Active Cart Grid */
.cart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 860px) {
  .cart-grid {
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
  }
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 14px;
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s;
}
@media (max-width: 500px) {
  .cart-item-card {
    grid-template-columns: 68px 1fr;
    gap: 12px;
  }
}

.cart-item-image {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  background: var(--paper-2);
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
@media (max-width: 500px) {
  .cart-item-image {
    width: 68px;
    height: 68px;
  }
}
.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  min-width: 0;
}
.cart-item-name {
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink);
  text-decoration: none;
  display: block;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.25;
}
.cart-item-name:hover {
  color: var(--blue);
}
.cart-item-meta {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 3px;
}
.cart-item-price {
  color: var(--blue);
  font-weight: 800;
  font-size: .92rem;
  margin-top: 5px;
  font-family: "Manrope", sans-serif;
  font-variant-numeric: tabular-nums;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 500px) {
  .cart-item-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    margin-top: 2px;
  }
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 3px 6px;
  border-radius: 999px;
}
.qty-btn {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: .9rem;
  transition: background .15s;
}
.qty-btn:hover {
  background: rgba(0,0,0,.08);
}
html.dark .qty-btn:hover {
  background: rgba(255,255,255,.12);
}
.qty-value {
  font-weight: 700;
  font-size: .82rem;
  min-width: 18px;
  text-align: center;
}
.remove-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  transition: color .2s, background .2s;
}
.remove-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, .08);
}

/* Order Summary Box */
.summary-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 96px;
}
.summary-card h3 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 16px;
  color: var(--ink);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: .82rem;
}
.summary-row.total {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 16px;
  margin-bottom: 18px;
}
.summary-row.total span:last-child {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: "Manrope", sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.delivery-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}
.delivery-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  cursor: pointer;
  transition: all .2s cubic-bezier(.16, 1, .3, 1);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, .7);
}
html.dark .delivery-option {
  background: var(--glass);
  border-color: var(--glass-border);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, .18);
}
.delivery-option:hover {
  border-color: rgba(255, 255, 255, .9);
  background: var(--glass-strong);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, .9), 0 4px 12px rgba(0, 0, 0, .04);
}
html.dark .delivery-option:hover {
  border-color: rgba(255, 255, 255, .3);
  background: var(--glass-strong);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, .3), 0 4px 14px rgba(0, 0, 0, .3);
}
.delivery-option.is-selected {
  border-color: rgba(255, 255, 255, .95) !important;
  background: rgba(255, 255, 255, .55) !important;
  box-shadow: inset 0 1.5px 2px 0 rgba(255, 255, 255, .95), inset 0 0 14px 0 rgba(255, 255, 255, .25), 0 6px 20px rgba(0, 0, 0, .06);
}
html.dark .delivery-option.is-selected {
  border-color: rgba(255, 255, 255, .45) !important;
  background: rgba(255, 255, 255, .16) !important;
  box-shadow: inset 0 1.5px 2px 0 rgba(255, 255, 255, .5), inset 0 0 14px 0 rgba(255, 255, 255, .12), 0 6px 20px rgba(0, 0, 0, .4);
}
.delivery-option input[type="radio"] {
  accent-color: var(--ink);
  margin-right: 8px;
}

.checkout-btn {
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
  background: #229ED9;
  color: white;
  border: 0;
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(34, 158, 217, .35);
  transition: transform .2s, filter .2s;
  text-decoration: none;
}
.checkout-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

/* Category & Brand Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 700px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
@media (min-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}
.category-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .25s ease, box-shadow .35s;
  box-shadow: var(--glass-rim), var(--shadow-sm);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  text-decoration: none;
  color: var(--ink);
}
.category-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--blue);
  box-shadow: var(--glass-rim), 0 20px 45px -8px rgba(30, 79, 255, .16);
}
html.dark .category-card:hover {
  box-shadow: var(--glass-rim), 0 20px 45px -8px rgba(61, 106, 255, .25);
}
.category-card-visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  position: relative;
}
.category-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.category-card:hover .category-card-visual img {
  transform: scale(1.06);
}

/* Checkout Details Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(12, 13, 11, .5);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background: var(--paper);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  max-width: 480px;
  width: 100%;
  padding: 24px;
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow-y: auto;
}
html.dark .modal-card {
  background: var(--paper-2);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.form-group {
  margin-bottom: 14px;
}
.form-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--ink);
  outline: none;
}
.form-input:focus {
  border-color: var(--blue);
}

/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 699px) {
  .hero-banner-carousel {
    margin-top: 12px;
  }
  #shop.section { padding-top: 14px; }
  .hero {
    min-height: 225px;
    padding: 12px;
  }
  .hero > .hero-copy,
  .hero > .hero-stage { display: none; }
  .mobile-carousel {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 201px;
    position: relative;
    overflow: hidden;
    border-radius: 26px;
  }
  .carousel-track {
    display: flex;
    height: 100%;
    transition: transform .5s cubic-bezier(.22,.8,.2,1);
  }
  .carousel-slide {
    flex: 0 0 100%;
    min-height: 201px;
    padding: 20px 16px 54px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .carousel-slide.blue { background: linear-gradient(145deg,#cad6ff,#edf1ff); }
  .carousel-slide.peach { background: linear-gradient(145deg,#f0cbb9,#f9e9df); }
  .carousel-slide.lime { background: linear-gradient(145deg,#dce9a4,#f0f5d6); }
  html.dark .carousel-slide.blue { background: linear-gradient(145deg,#16244f,#0d152c); }
  html.dark .carousel-slide.peach { background: linear-gradient(145deg,#38241e,#1c1310); }
  html.dark .carousel-slide.lime { background: linear-gradient(145deg,#263314,#121a08); }
  .carousel-meta { position: relative; z-index: 3; display:flex; justify-content:space-between; align-items:start; gap:14px; }
  .carousel-meta .eyebrow { color: var(--ink); margin-bottom: 6px; font-size:.56rem; letter-spacing: 0.12em; }
  .carousel-meta h2 { margin:0; font-size:1.15rem; letter-spacing:-.04em; }
  .carousel-price { font-family: "Manrope", sans-serif; font-size:.72rem; font-weight:800; font-variant-numeric: tabular-nums; padding:6px 10px; border-radius:10px; background:rgba(255,255,255,.55); backdrop-filter:blur(12px); color: #11120f; }
  .carousel-art { position:absolute; inset:8px 34px 8px 122px; display:grid; place-items:center; }
  .carousel-art .orbit-ring { width:122px; height:122px; bottom:auto; top:20%; }
  .carousel-art .orbit-ring::before { inset:18px; }
  .carousel-art .orbit-ring::after { width:30px; height:30px; top:46px; left:46px; box-shadow:inset 0 0 0 7px #162045,0 5px 12px rgba(0,0,0,.2); }
  .carousel-art .case-shape { transform:rotate(8deg) scale(.55); }
  .carousel-art .buds-shape { transform:scale(.66); }
  .carousel-cta {
    position:absolute;
    z-index:4;
    left:16px;
    bottom:14px;
    border:0;
    border-radius:15px;
    background:var(--ink);
    color:white;
    padding:9px 12px;
    display:flex;
    align-items:center;
    gap:8px;
    font-size:.7rem;
    font-weight:700;
    cursor:pointer;
    text-decoration: none;
  }
  html.dark .carousel-cta { background: #f5f5f1; color: #11120f; }
  .carousel-controls { position:absolute; z-index:5; right:14px; bottom:14px; display:flex; align-items:center; gap:8px; }
  .carousel-dots { display:flex; gap:5px; }
  .carousel-dot { width:6px; height:6px; padding:0; border:0; border-radius:50%; background:rgba(17,18,15,.25); cursor:pointer; transition:.25s ease; }
  html.dark .carousel-dot { background:rgba(255,255,255,.25); }
  .carousel-dot.active { width:18px; border-radius:6px; background:var(--ink); }
  html.dark .carousel-dot.active { background: #fff; }
  .carousel-arrow { width:30px; height:30px; border:0; border-radius:10px; background:rgba(255,255,255,.62); color: var(--ink); display:grid; place-items:center; cursor:pointer; }
  .product-visual > .case-shape { transform: rotate(9deg) scale(.72); }
  .product-visual > .buds-shape { transform: scale(.74); }
  .product-visual > .cable-shape { transform: rotate(-12deg) scale(.7); }
  .product-visual > .sleeve-shape { transform: rotate(-7deg) scale(.72); }
  .product-kicker { font-size: .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .product-line h3 { font-size: .82rem; line-height: 1.22; }
  .price { font-size: .76rem; font-weight: 800; }
  .badge { font-size: .6rem; padding: 5px 8px; border-radius: 8px; }

  /* Main Container on Mobile */
  main {
    padding-top: 72px;
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
    padding-left: 14px;
    padding-right: 14px;
  }
  #filtersContainer {
    margin-top: 12px;
  }
  .site-header {
    top: 10px;
    left: 10px;
    right: 10px;
    width: auto;
    padding: 8px 14px;
    border-radius: 18px;
  }
  .product-rail {
    grid-auto-flow: row !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    overflow-x: visible !important;
  }
  .product-visual {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    border-radius: 14px !important;
  }
  .product-card {
    padding: 8px 8px 12px !important;
    border-radius: 16px !important;
  }
  .product-card .wish {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
  }

  /* Mobile section typography */
  .section-head { margin-bottom: 16px; }
  .section h2,
  .section-head h2,
  .section-head h3 { font-size: 1.15rem; line-height: 1.2; }
  .section-sub { font-size: .74rem; line-height: 1.5; }
  .eyebrow { font-size: .64rem; letter-spacing: .14em; }

  /* Mobile Chips & Filters */
  .chips { gap: 6px; padding: 2px 1px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .chip, .chip-pill { padding: 6px 13px; font-size: .68rem; font-weight: 700; }

  /* Mobile Navigation Bar */
  .mobile-nav {
    position: fixed;
    z-index: 50;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 400px;
    border-radius: 24px;
    padding: 6px 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .nav-item { font-size: .6rem; font-weight: 700; padding: 7px 2px; }
  .nav-item iconify-icon { font-size: 1.25rem; }

  /* Brand Header on Mobile */
  .brand { font-size: 1.15rem; }
  .brand-logo-img, .brand img { width: 30px !important; height: 30px !important; }
  .icon-btn { width: 38px; height: 38px; font-size: 1.05rem; }

  /* Cart on Mobile */
  .cart-header-title h1 { font-size: 1.6rem; }
  .cart-item-name { font-size: .84rem; }
  .cart-item-meta { font-size: .64rem; }
  .cart-item-price { font-size: .86rem; }
  .summary-card { padding: 18px 16px; border-radius: 22px; }
  .summary-card h3 { font-size: .72rem; }
  .summary-row { font-size: .78rem; }
  .summary-row.total span:last-child { font-size: 1.22rem; }
  .checkout-btn { min-height: 46px; font-size: .8rem; }
}

@media (max-width: 360px) {
  main { padding-left: 10px; padding-right: 10px; }
  .product-rail { gap: 8px !important; }
  .product-line h3 { font-size: .76rem; }
  .price { font-size: .72rem; }
}

@media (min-width: 700px) {
  .mobile-carousel { display:none; }
  main { padding-left:24px; padding-right:24px; }
  .hero { min-height: 620px; padding: 58px 48px; justify-content:center; }
  .hero h1 { font-size:5.2rem; }
  .hero-copy { width:48%; }
  .hero-stage { position:absolute; right:2%; width:49%; height:100%; bottom:0; }
  .orbit-ring { width:320px; height:320px; bottom:145px; }
  .orbit-ring::before { inset:48px; }
  .orbit-ring::after { width:70px; height:70px; top:125px; left:125px; }
  .orbit-base { bottom:105px; width:220px; height:66px; left:calc(50% - 80px); }
  .orbit-shadow { bottom:78px; width:330px; }
  .hero-tag { bottom:385px; right:5%; }
  .trust-row { padding-top:25px; }
  .trust-item { flex-direction:row; justify-content:center; font-size:.68rem; }
  .product-rail { grid-auto-flow:unset; grid-template-columns:repeat(2,1fr); overflow:visible; }
  .product-visual { width: 100%; aspect-ratio: 1 / 1; height: auto; }
  .product-card { padding: 10px 10px 16px; }
  .product-card .wish { width: 42px; height: 42px; border-radius: 15px; }
  .product-line h3 { font-size: 1.03rem; }
  .price { font-size: .85rem; }
  .feature { min-height:540px; padding:48px 42px; }
  .feature-orb { left:auto; width:56%; height:100%; }
  .feature-orb::before { width:260px; height:260px; bottom:80px; }
  .newsletter { grid-template-columns:1fr 1fr; align-items:end; padding:34px; }
}

@media (min-width: 900px) {
  .site-header { top:18px; }
  .desktop-nav { display:flex; gap:28px; font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
  .desktop-nav a { position:relative; }
  .desktop-nav a::after { content:""; position:absolute; height:1px; left:0; right:100%; bottom:-5px; background:var(--ink); transition:right .2s; }
  .desktop-nav a:hover::after, .desktop-nav a.active::after { right:0; }
  .mobile-nav { display:none; }
  main { padding-top:104px; padding-bottom:40px; }
  .product-rail { grid-template-columns:repeat(4,1fr); gap: 12px; }
  .product-visual { width: 100%; aspect-ratio: 1 / 1; height: auto; }
  .product-card:hover { transform:translateY(-5px); }
  .section { padding-top:36px; }
  .sheet { border-radius:32px; bottom:24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   PAGE TRANSITIONS
   Same-origin navigations (including Back) crossfade instead of hard-cutting.
   The header and mobile nav keep their own layer so only the page content fades.
   Browsers without cross-document view transitions just navigate as before.
   ========================================================================== */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.mobile-nav { view-transition-name: mobile-nav; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .22s;
  animation-timing-function: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

