:root {
  /* Wearables Studio — “Warm Future Uniform” design tokens (monochrome + ONE accent). */
  --ink: #1a1916;
  --ink-rgb: 26, 25, 22;
  --muted: rgba(var(--ink-rgb), 0.68);
  --line: rgba(var(--ink-rgb), 0.14);

  /* Primary surfaces. */
  --bg: #fbfaf7; /* page base */
  --bg-2: #f1ece5; /* page band / alt */
  --paper: #fffcf8; /* cards / modals */
  --paper-rgb: 255, 252, 248;
  --soft: #f4efe7; /* soft cards / panels */
  --soft-2: #eee7dd; /* separators / bands */
  --sand-rgb: 238, 231, 221;

  /* Accent (single controlled accent): deep cobalt. Keep usage minimal (<10%). */
  --accent: #1f4cff;
  --accent-rgb: 31, 76, 255;
  --accent-strong: #173fe6;
  --accent-weak: rgba(var(--accent-rgb), 0.12);
  --accent-ring: rgba(var(--accent-rgb), 0.2);

  /* Back-compat alias used across components. */
  --primary: var(--accent);
  --primary-rgb: var(--accent-rgb);

  /* Warm highlight (used for studio selection + subtle emphasis). */
  --warm-1: #f4c59d;
  --warm-2: #f7e4cf;

  /* Semantic accents. */
  --trust: #0f7a5a;
  --coral: #c85a2e;

  /* Overlays / shadows. */
  --overlay: rgba(var(--ink-rgb), 0.42);
  --overlay-strong: rgba(var(--ink-rgb), 0.72);

  --radius: 28px;
  --radius-soft: 22px;
  --radius-pill: 999px;
  --shadow: 0 14px 40px rgba(26, 25, 22, 0.08);
  --shadow-2: 0 22px 70px rgba(26, 25, 22, 0.12);
  --ease-fluid: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Patch 2: Nudges (directive UI) */
  --ws-nudge-backdrop: rgba(26, 25, 22, 0.35);
  --ws-nudge-card-max: 520px;
  --ws-nudge-shadow: 0 18px 55px rgba(26, 25, 22, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
}

body {
  margin: 0;
  max-width: 100%;
  color: var(--ink);
  font-family: Manrope, "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 520px at 18% -10%, rgba(var(--accent-rgb), 0.1), transparent 62%),
    radial-gradient(980px 520px at 92% 12%, rgba(15, 122, 90, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  position: relative;
}

@supports (overflow-x: clip) {
  body {
    overflow-x: clip;
  }
}

body.ui-scroll-lock {
  overflow: hidden;
  overscroll-behavior: none;
}

/* ==========================================
   Directive UI Highlighters (Patch 1)
   - Subtle, short, premium.
   - Respects prefers-reduced-motion.
   ========================================== */

@keyframes wsSoftPulse {
  0% { transform: translateZ(0) scale(1); box-shadow: 0 0 0 rgba(var(--accent-rgb), 0); }
  50% { transform: translateZ(0) scale(1.015); box-shadow: 0 14px 32px rgba(var(--accent-rgb), 0.18); }
  100% { transform: translateZ(0) scale(1); box-shadow: 0 0 0 rgba(var(--accent-rgb), 0); }
}

@keyframes wsSoftGlow {
  0% {
    box-shadow: 0 0 0 rgba(var(--accent-rgb), 0);
    outline-color: rgba(var(--accent-rgb), 0);
  }
  60% {
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.10), 0 16px 40px rgba(var(--accent-rgb), 0.12);
    outline-color: rgba(var(--accent-rgb), 0.22);
  }
  100% {
    box-shadow: 0 0 0 rgba(var(--accent-rgb), 0);
    outline-color: rgba(var(--accent-rgb), 0);
  }
}

@keyframes wsHomeCtaGlow {
  0% {
    filter:
      drop-shadow(0 10px 18px rgba(var(--ink-rgb), 0.14))
      drop-shadow(0 0 0 rgba(222, 196, 150, 0))
      drop-shadow(0 0 0 rgba(222, 196, 150, 0));
  }
  50% {
    filter:
      drop-shadow(0 14px 24px rgba(var(--ink-rgb), 0.18))
      drop-shadow(0 0 18px rgba(222, 196, 150, 0.52))
      drop-shadow(0 0 36px rgba(222, 196, 150, 0.36))
      drop-shadow(0 0 62px rgba(222, 196, 150, 0.22));
  }
  100% {
    filter:
      drop-shadow(0 10px 18px rgba(var(--ink-rgb), 0.14))
      drop-shadow(0 0 0 rgba(222, 196, 150, 0))
      drop-shadow(0 0 0 rgba(222, 196, 150, 0));
  }
}

@keyframes wsHomeCtaHalo {
  0% {
    opacity: 0.22;
    transform: scale(0.985);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.02);
  }
  100% {
    opacity: 0.22;
    transform: scale(0.985);
  }
}

@keyframes wsHomeCtaGuidanceBreath {
  0% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      0 0 0 2px rgba(244, 197, 157, 0.95),
      0 14px 34px rgba(var(--ink-rgb), 0.2),
      0 0 0 8px rgba(244, 197, 157, 0.34),
      0 0 58px rgba(244, 197, 157, 0.74),
      0 0 96px rgba(244, 197, 157, 0.42);
    filter:
      drop-shadow(0 12px 26px rgba(var(--ink-rgb), 0.2))
      drop-shadow(0 0 34px rgba(244, 197, 157, 0.62));
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.56),
      0 0 0 2px rgba(244, 197, 157, 1),
      0 16px 40px rgba(var(--ink-rgb), 0.24),
      0 0 0 10px rgba(244, 197, 157, 0.46),
      0 0 82px rgba(244, 197, 157, 0.92),
      0 0 140px rgba(244, 197, 157, 0.56);
    filter:
      drop-shadow(0 14px 30px rgba(var(--ink-rgb), 0.22))
      drop-shadow(0 0 52px rgba(244, 197, 157, 0.82));
  }
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      0 0 0 2px rgba(244, 197, 157, 0.95),
      0 14px 34px rgba(var(--ink-rgb), 0.2),
      0 0 0 8px rgba(244, 197, 157, 0.34),
      0 0 58px rgba(244, 197, 157, 0.74),
      0 0 96px rgba(244, 197, 157, 0.42);
    filter:
      drop-shadow(0 12px 26px rgba(var(--ink-rgb), 0.2))
      drop-shadow(0 0 34px rgba(244, 197, 157, 0.62));
  }
}

@keyframes wsWarningPulse {
  0% { box-shadow: 0 0 0 rgba(200, 90, 46, 0); }
  55% { box-shadow: 0 0 0 4px rgba(200, 90, 46, 0.18), 0 14px 34px rgba(200, 90, 46, 0.12); }
  100% { box-shadow: 0 0 0 rgba(200, 90, 46, 0); }
}

@keyframes wsCartBounce {
  0% { transform: translateZ(0) scale(1); }
  35% { transform: translateZ(0) scale(1.18); }
  70% { transform: translateZ(0) scale(0.98); }
  100% { transform: translateZ(0) scale(1); }
}

.ws-soft-pulse {
  animation-name: wsSoftPulse;
  animation-duration: var(--ws-hl-dur, 2400ms);
  animation-timing-function: var(--ease-fluid);
  animation-iteration-count: var(--ws-hl-iter, 2);
  transform-origin: center;
}

.ws-soft-glow {
  animation-name: wsSoftGlow;
  animation-duration: var(--ws-hl-dur, 920ms);
  animation-timing-function: var(--ease-fluid);
  animation-iteration-count: var(--ws-hl-iter, 1);
  outline: 2px solid rgba(var(--accent-rgb), 0);
  outline-offset: 2px;
}

.ws-warning-pulse {
  animation-name: wsWarningPulse;
  animation-duration: var(--ws-hl-dur, 920ms);
  animation-timing-function: var(--ease-fluid);
  animation-iteration-count: var(--ws-hl-iter, 1);
}

.ws-success-glow {
  animation-name: wsSoftGlow;
  animation-duration: var(--ws-hl-dur, 920ms);
  animation-timing-function: var(--ease-fluid);
  animation-iteration-count: var(--ws-hl-iter, 1);
  outline: 2px solid rgba(var(--accent-rgb), 0);
  outline-offset: 2px;
}

.ws-cart-bounce {
  animation-name: wsCartBounce;
  animation-duration: var(--ws-hl-dur, 650ms);
  animation-timing-function: var(--ease-fluid);
  animation-iteration-count: var(--ws-hl-iter, 1);
  filter: drop-shadow(0 10px 18px rgba(var(--accent-rgb), 0.18));
}

.ws-card-preview-pulse {
  animation-name: wsSoftGlow;
  animation-duration: var(--ws-hl-dur, 2400ms);
  animation-timing-function: var(--ease-fluid);
  animation-iteration-count: var(--ws-hl-iter, 2);
  border-radius: inherit;
  outline: 2px solid rgba(var(--accent-rgb), 0);
  outline-offset: 2px;
}

.ws-home-cta-glow {
  position: relative;
  z-index: 0;
  will-change: filter;
  text-shadow: none !important;
  animation-name: wsHomeCtaGlow;
  animation-duration: var(--ws-hl-dur, 2000ms);
  animation-timing-function: ease-in-out;
  animation-iteration-count: var(--ws-hl-iter, 3);
}

.ws-home-cta-guidance {
  position: relative;
  z-index: 0;
  overflow: visible;
  border-color: rgba(244, 197, 157, 1) !important;
  outline: 2px solid rgba(244, 197, 157, 0.75);
  outline-offset: 1px;
  animation-name: wsHomeCtaGuidanceBreath;
  animation-duration: 2100ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  animation-iteration-count: infinite;
}

.ws-home-cta-glow::after {
  content: none;
}

/* Ensure hero CTA glow can override existing !important button cosmetics. */
.home-lite-hero-left .toolbar [data-ws-hero-cta].ws-home-cta-glow {
  overflow: visible !important;
  animation-name: wsHomeCtaGlow !important;
  animation-duration: var(--ws-hl-dur, 2000ms) !important;
  animation-timing-function: ease-in-out !important;
  animation-iteration-count: var(--ws-hl-iter, 3) !important;
  filter:
    drop-shadow(0 10px 18px rgba(var(--ink-rgb), 0.14))
    drop-shadow(0 0 0 rgba(222, 196, 150, 0))
    drop-shadow(0 0 0 rgba(222, 196, 150, 0)) !important;
}
.home-lite-hero-left .toolbar [data-ws-home-cta].ws-home-cta-guidance,
.home-lite-hero-left .toolbar [data-ws-hero-cta].ws-home-cta-guidance {
  overflow: visible !important;
  animation-name: wsHomeCtaGuidanceBreath !important;
  animation-duration: 2100ms !important;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
  animation-iteration-count: infinite !important;
}
.ws-warning-static {
  border-color: rgba(200, 90, 46, 0.5) !important;
  box-shadow: 0 0 0 1px rgba(200, 90, 46, 0.34), 0 8px 18px rgba(200, 90, 46, 0.12);
}
.ws-reduced-outline {
  outline: 2px solid rgba(var(--accent-rgb), 0.45);
  outline-offset: 2px;
  border-radius: 14px;
}

.ws-reduced-glow {
  filter:
    drop-shadow(0 14px 30px rgba(var(--sand-rgb), 0.38))
    drop-shadow(0 0 58px rgba(var(--sand-rgb), 0.24));
}

@media (prefers-reduced-motion: reduce) {
  .ws-soft-pulse,
  .ws-soft-glow,
  .ws-warning-pulse,
  .ws-success-glow,
  .ws-cart-bounce,
  .ws-card-preview-pulse,
  .ws-home-cta-glow {
    animation: none !important;
  }
  .ws-home-cta-guidance {
    animation: none !important;
    filter: none !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.36),
      0 0 0 1px rgba(244, 197, 157, 0.82),
      0 8px 20px rgba(var(--ink-rgb), 0.14),
      0 0 0 3px rgba(244, 197, 157, 0.22),
      0 0 30px rgba(244, 197, 157, 0.36);
    outline: 1px solid rgba(244, 197, 157, 0.5);
    outline-offset: 2px;
  }
  .ws-home-cta-glow::after {
    animation: none !important;
  }
}

/* Blur and disable background content when the mobile menu is open. */
body.ui-menu-open .shell > main {
  filter: none;
  opacity: 0.72;
  pointer-events: none;
}

body.ui-menu-open .shell > footer,
body.ui-studio-tools-open .shell > footer,
body.ui-studio-open .shell > footer {
  display: none;
}

body::before,
body::after {
  content: none;
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.shell {
  min-height: 100vh;
  position: relative;
}

.shell::before {
  content: none;
  display: none;
}

.container {
  width: min(1360px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(var(--paper-rgb), 0.86);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
}

.brand {
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
}

.brand-center {
  justify-self: center;
  display: inline-flex;
  align-items: center;
}

.header-lang-toggle {
  position: relative;
  z-index: 6;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(var(--paper-rgb), 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  user-select: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(15, 17, 21, 0.08);
  transition: transform 220ms var(--ease-fluid), box-shadow 220ms var(--ease-fluid), background 220ms var(--ease-fluid);
}

.header-lang-toggle:active {
  transform: scale(0.96);
}

.brand-logo {
  width: clamp(190px, 22vw, 330px);
  max-height: 62px;
  object-fit: contain;
}

.mobile-header-edge,
.mobile-menu-drawer {
  display: none;
}

.mobile-profile-link {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(var(--paper-rgb), 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 17, 21, 0.08);
}

.mobile-cart-link {
  position: relative;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(var(--paper-rgb), 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 17, 21, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 220ms var(--ease-fluid);
}

.mobile-cart-link:active {
  transform: scale(0.96);
}

.mobile-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  border: 2px solid rgba(var(--paper-rgb), 0.96);
}

.mobile-menu-toggle {
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(var(--paper-rgb), 0.92);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.26rem;
  box-shadow: 0 10px 24px rgba(15, 17, 21, 0.08);
  transition: transform 220ms var(--ease-fluid), box-shadow 220ms var(--ease-fluid), background 220ms var(--ease-fluid);
}

.mobile-menu-toggle span {
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 240ms var(--ease-fluid), opacity 240ms var(--ease-fluid);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu-toggle:active {
  transform: scale(0.96);
}

.mobile-menu-toggle.active {
  transform: scale(1.02);
  box-shadow: 0 16px 34px rgba(15, 17, 21, 0.18);
  background: rgba(var(--paper-rgb), 0.96);
}

.mobile-menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 64;
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  transition: opacity 650ms var(--ease-fluid), visibility 0s linear 650ms;
  will-change: opacity;
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 62;
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  /* Mobile-first performance: dim only (no blur/backdrop-filter). */
  background: rgba(12, 14, 18, 0.56);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: opacity 720ms var(--ease-fluid), visibility 0s linear 720ms;
  will-change: opacity;
}

.mobile-menu-drawer.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 650ms var(--ease-fluid), visibility 0s;
}

.mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 720ms var(--ease-fluid), visibility 0s;
}

.mobile-menu-sheet {
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: max(5rem, calc(env(safe-area-inset-top, 0px) + 4.6rem));
  padding-bottom: 1rem;
  position: relative;
  z-index: 63;
  transform: translateY(18px);
  opacity: 0;
  transition: transform 820ms var(--ease-fluid), opacity 680ms var(--ease-fluid);
  will-change: transform, opacity;
  pointer-events: none;
  /* Keep the mobile menu usable even if more links/actions are added. */
  overflow-y: auto;
}

.mobile-menu-links,
.mobile-menu-meta {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 26px 74px rgba(15, 17, 21, 0.18);
  opacity: 0;
  transform: translateY(10px);
  transition: transform 580ms var(--ease-fluid), opacity 460ms var(--ease-fluid);
  will-change: opacity, transform;
}

.mobile-menu-links {
  display: grid;
  gap: 0.35rem;
  padding: 0.65rem;
  pointer-events: none;
}

.mobile-menu-links a {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  color: var(--ink);
  background: var(--soft);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: transform 520ms var(--ease-fluid), opacity 460ms var(--ease-fluid);
  transition-delay: 0s;
}

.mobile-menu-links a.active {
  background: rgba(15, 17, 21, 0.08);
}

.mobile-menu-meta {
  margin-top: 0.7rem;
  padding: 0.7rem;
  pointer-events: none;
  transition-delay: 0s;
}

.mobile-menu-stack {
  width: min(100%, 26rem);
  display: grid;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: transform 680ms var(--ease-fluid), opacity 560ms var(--ease-fluid);
  pointer-events: none;
  max-height: calc(100svh - 6.5rem);
  overflow: auto;
}

.mobile-menu-drawer.open .mobile-menu-stack {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu-drawer.open .mobile-menu-sheet {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-drawer.open .mobile-menu-links,
.mobile-menu-drawer.open .mobile-menu-meta,
.mobile-menu-drawer.open .mobile-menu-links a {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu-drawer.open .mobile-menu-links a:nth-child(1) { transition-delay: 70ms; }
.mobile-menu-drawer.open .mobile-menu-links a:nth-child(2) { transition-delay: 115ms; }
.mobile-menu-drawer.open .mobile-menu-links a:nth-child(3) { transition-delay: 160ms; }
.mobile-menu-drawer.open .mobile-menu-links a:nth-child(4) { transition-delay: 205ms; }
.mobile-menu-drawer.open .mobile-menu-links a:nth-child(5) { transition-delay: 250ms; }
.mobile-menu-drawer.open .mobile-menu-links a:nth-child(6) { transition-delay: 295ms; }
.mobile-menu-drawer.open .mobile-menu-links a:nth-child(7) { transition-delay: 340ms; }
.mobile-menu-drawer.open .mobile-menu-links a:nth-child(8) { transition-delay: 385ms; }
.mobile-menu-drawer.open .mobile-menu-meta { transition-delay: 520ms; }

.mobile-menu-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem;
  box-shadow: 0 18px 44px rgba(15, 17, 21, 0.14);
}

/* Discover filters modal (mobile + desktop) */
.discover-filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 62;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(12, 14, 18, 0.38);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  transition: opacity 720ms var(--ease-fluid), visibility 0s linear 720ms;
  will-change: opacity;
}

.discover-floating-panel {
  display: none !important;
}

.discover-filter-drawer {
  position: fixed;
  inset: 0;
  z-index: 64;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 650ms var(--ease-fluid), visibility 0s linear 650ms;
  will-change: opacity;
}

.discover-filter-backdrop.open,
.discover-filter-drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 650ms var(--ease-fluid), visibility 0s;
}

.discover-filter-sheet {
  width: min(92vw, 560px);
  max-height: min(82svh, 720px);
  overflow: auto;
  padding: 0;
}

.discover-filter-stack {
  width: 100%;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.discover-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.65rem 0.8rem;
  box-shadow: 0 18px 44px rgba(15, 17, 21, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.discover-filter-toolbar {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.4rem;
  box-shadow: 0 18px 44px rgba(15, 17, 21, 0.14);
  backdrop-filter: blur(10px);
}

.discover-filter-body {
  border-radius: 28px;
}

.discover-search-box {
  margin: 0.85rem 0;
  width: 100%;
  max-width: 600px;
}

.discover-trust {
  margin-top: 0.35rem;
}

.discover-header {
  gap: 0.35rem;
}

.discover-header .title-lg {
  margin-bottom: 0.1rem;
}

.discover-header .discover-trust {
  margin-top: 0;
}

.discover-cta-row {
  margin-top: 0.6rem;
  gap: 0.6rem;
}

@media (max-width: 520px) {
  .discover-search-box {
    margin: 0.65rem 0;
  }
  .discover-cta-row .button,
  .discover-cta-row .button-ghost {
    width: 100%;
    justify-content: center;
  }
}

.studio-mobile-dock,
.studio-mobile-sheet,
.studio-mobile-sheet-backdrop {
  display: none;
}

.nav,
.actions,
.toolbar,
.tabs,
.row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

/* Better toolbar spacing on ultra-small phones */
@media (max-width: 390px) {
  .toolbar,
  .tabs,
  .row {
    gap: 0.8rem;
  }
}

.nav-left {
  justify-content: flex-start;
  align-items: center;
  gap: 0.72rem;
}

.actions-right {
  justify-content: flex-end;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(var(--ink-rgb), 0.04);
}

.lang-switch .tab {
  padding: 0.42rem 0.75rem;
  font-size: 0.78rem;
  color: rgba(var(--ink-rgb), 0.62);
}

.lang-switch .tab.active {
  background: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.2);
  color: #fff;
}

.header .actions-right .button,
.header .actions-right .button-ghost {
  padding: 0.55rem 0.85rem;
  font-size: 0.86rem;
}

.header .actions-right .lang-switch .tab {
  padding: 0.38rem 0.65rem;
  font-size: 0.76rem;
}

.profile-tabs {
  gap: 0.5rem;
  margin-top: 0.95rem;
}

.profile-tabs .tab {
  text-decoration: none;
}

.profile-design-thumb {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(var(--paper-rgb), 0.92);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.profile-mini-preview {
  width: 100%;
  max-width: 420px;
}

.profile-mini-preview-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  object-fit: cover;
  background: linear-gradient(155deg, var(--bg), var(--soft));
  border: 1px solid var(--line);
}

.inline-form-2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.lang-ar {
  font-family: Cairo, Tajawal, "Segoe UI", Tahoma, Arial, sans-serif;
}

.lang-option-ar {
  font-family: Cairo, Tajawal, "Segoe UI", Tahoma, Arial, sans-serif;
}

.lang-ar .eyebrow {
  letter-spacing: 0.08em;
}

.nav a {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.42rem 0.32rem;
  border-radius: 999px;
  transition: color 220ms var(--ease-fluid), transform 220ms var(--ease-fluid), background 220ms var(--ease-fluid);
}

.nav a.active,
.nav a:hover {
  color: var(--ink);
  background: rgba(15, 17, 21, 0.08);
  transform: translateY(-1px);
}

.page {
  display: grid;
  gap: 1.4rem;
  padding: 3.25rem 0 5.8rem;
}

.ui-checkout-page .page {
  gap: 1.05rem;
  padding-bottom: 3.2rem;
}

body.allow-entrance .page > .card,
body.allow-entrance .page > .section,
body.allow-entrance .page > .grid-2,
body.allow-entrance .page > .grid-3,
body.allow-entrance .page > .grid-4,
body.allow-entrance .page > .grid-5,
body.allow-entrance .page > .stack,
body.allow-entrance .page > .row {
  animation: riseIn 720ms var(--ease-fluid);
}


body.allow-entrance .card,
body.allow-entrance .section,
body.allow-entrance .grid-2,
body.allow-entrance .grid-3,
body.allow-entrance .grid-4,
body.allow-entrance .grid-5,
body.allow-entrance .stack,
body.allow-entrance .row {
  animation: fadeInSoft 620ms var(--ease-fluid);
}

.is-preloading #app {
  opacity: 0;
}

.is-ready #app {
  opacity: 1;
  transition: opacity 800ms var(--ease-fluid);
}

#boot-loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 700ms var(--ease-fluid);
}

.boot-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 22px 18px;
  text-align: center;
  width: min(520px, calc(100% - 2rem));
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(var(--paper-rgb), 0.92);
  box-shadow: var(--shadow-2);
}

.boot-loader-logo {
  width: min(260px, 62vw);
  height: auto;
  opacity: 0.95;
}

.boot-loader-copy {
  display: grid;
  gap: 6px;
}

.boot-loader-copy::after {
  content: "";
  height: 3px;
  width: min(280px, 64vw);
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(var(--accent-rgb), 0.5) 40%, transparent 80%),
    rgba(var(--ink-rgb), 0.08);
  background-size: 160px 100%, 100% 100%;
  background-position: 0 0, 0 0;
  margin: 10px auto 0;
  animation: warmupBar 1.35s var(--ease-out) infinite;
}

.boot-loader-title {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-size: 16px;
}

.boot-loader-subtitle {
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}

.boot-loader-note {
  display: grid;
  gap: 8px;
  max-width: 48ch;
  margin-top: 6px;
}

@keyframes warmupBar {
  0% { background-position: -160px 0, 0 0; opacity: 0.9; }
  60% { background-position: 280px 0, 0 0; opacity: 1; }
  100% { background-position: 280px 0, 0 0; opacity: 0.9; }
}

body.is-ready #boot-loader {
  opacity: 0;
  pointer-events: none;
}

.page {
  opacity: 1;
  transition: opacity 520ms var(--ease-fluid);
}

body.is-navigating .page {
  opacity: 0;
}


.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1050ms var(--ease-fluid), transform 1050ms var(--ease-fluid);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll[data-reveal-delay="1"] { transition-delay: 140ms; }
.reveal-on-scroll[data-reveal-delay="2"] { transition-delay: 280ms; }
.reveal-on-scroll[data-reveal-delay="3"] { transition-delay: 420ms; }

@media (max-width: 520px) {
  /* Phone fades: keep the same feel, but reduce frame cost and duration. */
  .is-ready #app {
    transition: opacity 520ms var(--ease-fluid);
  }

  #boot-loader {
    transition: opacity 520ms var(--ease-fluid);
  }

  .page {
    transition: opacity 420ms var(--ease-fluid);
  }

  .reveal-on-scroll {
    transform: translateY(16px);
    transition: opacity 650ms var(--ease-fluid), transform 650ms var(--ease-fluid);
  }

  .reveal-on-scroll[data-reveal-delay="1"] { transition-delay: 80ms; }
  .reveal-on-scroll[data-reveal-delay="2"] { transition-delay: 160ms; }
  .reveal-on-scroll[data-reveal-delay="3"] { transition-delay: 240ms; }
}


.icon-bubble {
  width: 1.05rem;
  height: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: currentColor;
  flex: 0 0 auto;
}

.icon-bubble.sm {
  width: 1.15rem;
  height: 1.15rem;
}

.icon-bubble.xs {
  width: 1rem;
  height: 1rem;
}

.icon-bubble svg {
  width: 100%;
  height: 100%;
  display: block;
}

.icon-bubble.icon-fallback {
  font-weight: 700;
  font-size: 0.75rem;
  font-family: Manrope, "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}

/* Responsive card padding for ultra-small phones */
@media (max-width: 390px) {
  .card {
    padding: 1rem;
  }
}

.card.soft {
  background: var(--soft);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.compact-box {
  border-radius: var(--radius-soft);
  padding: 0.85rem 0.95rem;
}

.collapsible.card {
  padding: 0;
  overflow: hidden;
}

.collapsible.card:hover {
  transform: none;
  box-shadow: var(--shadow);
}

.collapsible-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.collapsible-summary::-webkit-details-marker {
  display: none;
}

.collapsible-body {
  padding: 0 0.95rem 0.95rem;
}

.collapsible-chevron {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.02);
  position: relative;
  flex: none;
}

.collapsible-chevron::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid rgba(16, 20, 30, 0.55);
  border-left: 0;
  border-top: 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

details[open].collapsible .collapsible-chevron::before {
  transform: translate(-50%, -40%) rotate(-135deg);
}

.review-form-collapsible {
  margin-top: 2rem;
}

.ws-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.6rem;
  overflow: hidden;
}

.ws-carousel > * {
  min-width: 0;
}

.ws-carousel-viewport {
  min-width: 0;
}

.ws-carousel-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  width: 100%;
  direction: ltr;
}

/* Ensure each slide uses the viewport width (not 100% + gaps). */
.ws-carousel-slide {
  width: 100%;
}

.ws-carousel-track::-webkit-scrollbar {
  display: none;
}

.ws-carousel-track {
  scroll-padding-left: 0;
}

.ws-carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.ws-carousel-slide > * {
  margin-inline: auto;
  max-width: 100%;
}

.ws-carousel-nav {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(16, 20, 30, 0.12);
  background: rgba(var(--paper-rgb), 0.92);
  box-shadow: 0 10px 20px rgba(15, 17, 21, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 1;
}

.ws-carousel.has-dots {
  grid-template-rows: auto auto;
  row-gap: 0.4rem;
}

.ws-carousel.has-dots .ws-carousel-prev,
.ws-carousel.has-dots .ws-carousel-viewport,
.ws-carousel.has-dots .ws-carousel-next {
  grid-row: 1;
}

.ws-carousel-dots {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding-bottom: 0.1rem;
}

.ws-carousel-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.22);
}

.ws-carousel-dot.is-active {
  background: var(--primary);
}

.product-buy-box {
  gap: 0.6rem;
}

.product-buy-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.product-buy-size {
  flex: 1 1 auto;
  min-width: 0;
}

.product-buy-qty {
  flex: 0 0 96px;
  text-align: center;
}

.product-buy-cta {
  width: 100%;
}

.product-buy-help {
  flex: 0 0 auto;
  white-space: nowrap;
}

.product-buy-actions {
  display: flex;
  gap: 0.6rem;
}

.product-buy-actions > * {
  min-width: 0;
  justify-content: center;
}

.product-buy-actions > :first-child {
  flex: 1 1 0%;
}

.product-buy-spec {
  text-align: center;
}

@media (max-width: 520px) {
  .ws-carousel {
    column-gap: 0.4rem;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }
  .ws-carousel-nav {
    width: 34px;
    height: 34px;
  }
}

.ws-carousel-prev {
  left: auto;
}

.ws-carousel-next {
  right: auto;
}

.ws-carousel-nav span {
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid rgba(16, 20, 30, 0.65);
  border-left: 0;
  border-top: 0;
  display: block;
}

.ws-carousel-prev span {
  transform: translateX(1px) rotate(135deg);
}

.ws-carousel-next span {
  transform: translateX(-1px) rotate(-45deg);
}

.lang-ar .ws-carousel-viewport {
  direction: ltr;
}

.lang-ar .ws-carousel-slide {
  direction: rtl;
}

.lang-ar .ws-carousel-prev span {
  transform: translateX(1px) rotate(-45deg);
}

.lang-ar .ws-carousel-next span {
  transform: translateX(-1px) rotate(135deg);
}

@media (max-width: 390px) {
  .ws-carousel-nav {
    width: 34px;
    height: 34px;
  }
}

.ws-carousel-slide,
.ws-carousel-slide .home-hero-trust-item,
.ws-carousel-slide .home-premium-strip-item,
.ws-carousel-slide .home-how-step {
  text-align: center;
}

.lang-ar .ws-carousel-slide,
.lang-ar .ws-carousel-slide .home-hero-trust-item,
.lang-ar .ws-carousel-slide .home-premium-strip-item,
.lang-ar .ws-carousel-slide .home-how-step {
  text-align: center;
}

.stack,
.section,
.hero,
.journey,
.design-grid,
.live-preview-grid,
.grid-2,
.grid-3,
.grid-4,
.grid-5,
.studio-layout,
.checkout-layout {
  display: grid;
  gap: 1.25rem;
}

.checkout-layout {
  padding-bottom: 0;
}

.checkout-guide-bottom {
  padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  gap: 0.75rem;
}

.checkout-guide-bottom p {
  margin: 0;
}

.checkout-guide-bottom .row {
  margin-top: 0.35rem;
}

.checkout-guide-card {
  gap: 0.65rem;
}

.checkout-sticky-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  width: auto;
  max-width: 560px;
  margin-inline: auto;
  padding: 12px 12px 10px;
  border-radius: 18px;
  background: rgba(var(--paper-rgb), 0.96);
  border: 1px solid rgba(16, 20, 30, 0.1);
  box-shadow: 0 12px 32px rgba(15, 17, 21, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.checkout-sticky-title {
  margin: 0;
  text-align: start;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: normal;
  color: rgba(var(--ink-rgb), 0.74);
}

.checkout-sticky-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-sticky-total {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
  line-height: 1.1;
}

.checkout-sticky-total span {
  font-size: 12px;
  color: var(--muted);
}

.checkout-sticky-total strong {
  font-size: 16px;
  white-space: nowrap;
  overflow: visible;
}

.checkout-sticky-cta {
  margin-left: 0;
  border-radius: 999px;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  min-width: 128px;
  flex-shrink: 0;
  white-space: nowrap;
}

.lang-ar .checkout-sticky-cta {
  margin-right: 0;
}

@media (max-width: 390px) {
  .checkout-sticky-bar {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    padding: 10px 10px 9px;
    border-radius: 16px;
    gap: 7px;
  }
  .checkout-sticky-main {
    gap: 10px;
  }
  .checkout-sticky-cta {
    padding-left: 1rem;
    padding-right: 1rem;
    min-width: 118px;
  }
  .checkout-sticky-total strong {
    font-size: 15px;
  }
}

.footer {
  position: relative;
  z-index: 1;
}

/* Tighter spacing on ultra-small phones */
@media (max-width: 390px) {
  .stack,
  .section,
  .hero,
  .journey,
  .design-grid,
  .live-preview-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .studio-layout,
  .checkout-layout {
    gap: 0.9rem;
  }
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Single column on ultra-small phones */
@media (max-width: 390px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Responsive grid for small phones */
@media (max-width: 480px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.section,
.hero {
  margin-block: 0.2rem;
}

.row {
  justify-content: space-between;
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.34rem 0.7rem;
  border: 1px solid var(--line);
}

.badge {
  background: rgba(var(--paper-rgb), 0.85);
}

.tag {
  background: rgba(var(--paper-rgb), 0.85);
}

.button,
.button-ghost,
.tab {
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  padding: 0.8rem 1.15rem;
  cursor: pointer;
  transition: transform 220ms var(--ease-fluid), box-shadow 220ms var(--ease-fluid), background 220ms var(--ease-fluid), color 220ms var(--ease-fluid), border-color 220ms var(--ease-fluid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.62rem;
}

/* Better button sizing on ultra-small phones */
@media (max-width: 390px) {
  .button,
  .button-ghost,
  .tab {
    padding: 0.65rem 0.95rem;
    font-size: 0.85rem;
    gap: 0.48rem;
  }
}

.button {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.button-ghost,
.tab {
  background: transparent;
  color: var(--ink);
}

.tab.active,
.selected-chip {
  background: var(--ink);
  color: #fff;
}

.card.is-disabled,
.is-disabled.card {
  opacity: 0.6;
}

.button:hover,
.button-ghost:hover,
.tab:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.84rem 0.95rem;
  background: var(--paper);
  transition: border-color 200ms var(--ease-fluid), box-shadow 200ms var(--ease-fluid);
}

/* Arabic typography tuning (bilingual-friendly). */
.lang-ar {
  font-family: Cairo, Tajawal, Manrope, "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
}

.lang-ar .eyebrow {
  letter-spacing: 0.08em;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.eyebrow {
  color: var(--muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin: 0 0 0.3rem;
  line-height: 1.4;
}

/* Better text sizing on ultra-small phones */
@media (max-width: 390px) {
  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    margin: 0 0 0.25rem;
  }
}

.title-xl {
  margin: 0 0 0.52rem;
  line-height: 1.02;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.title-lg {
  margin: 0 0 0.45rem;
  line-height: 1.1;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.card h1,
.card h2,
.card h3,
.card p {
  margin-top: 0;
}

.muted {
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.muted.small {
  font-size: 0.85rem;
}

/* Better text sizing for small descriptions on ultra-small phones */
@media (max-width: 390px) {
  .muted.small {
    font-size: 0.8rem;
  }
}

.journey-step {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 220ms var(--ease-fluid), box-shadow 220ms var(--ease-fluid);
}

.journey-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(11, 25, 45, 0.1);
}

.journey-step span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
}

.journey-step p {
  margin: 0;
}

.design-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-data-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.creator-analytics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-hero .title-xl {
  max-width: 18ch;
}

/* Keep the hero title in the same fade language as the rest of the hero, but remove any extra slide motion. */
.home-hero-copy .title-xl {
  animation: fadeInSoft 620ms var(--ease-fluid);
  transform: none;
}

.home-landing {
  gap: 1.25rem;
}

.home-hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.95rem;
  align-items: stretch;
  overflow: hidden;
  min-height: 78svh;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(14, 16, 20, 0.04), rgba(14, 16, 20, 0.015));
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  align-items: center;
  align-self: end;
  justify-content: center;
  padding: 1rem 0.75rem;
  margin-bottom: clamp(1rem, 4svh, 2.75rem);
  border-radius: 26px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.home-photo-main {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.home-photo-main::after {
  content: "";
  position: relative;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 12, 15, 0.35), rgba(10, 12, 15, 0.05));
}

.home-hero-rail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr;
  align-content: center;
  gap: 0.8rem;
  padding: 0.45rem;
}

.home-hero-rail-left {
  justify-items: end;
}

.home-hero-rail-right {
  justify-items: start;
}

.home-photo-main picture,
.home-photo-main img {
  width: 100%;
  height: 100%;
  display: block;
}

.home-photo-main img {
  object-fit: cover;
  transform: scale(1.01);
}

.home-float-card {
  position: relative;
  margin: 0;
  width: min(100%, 220px);
  justify-self: center;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(250, 252, 255, 0.4);
  box-shadow: 0 20px 44px rgba(10, 14, 22, 0.32);
  transition: transform 360ms var(--ease-fluid), box-shadow 360ms var(--ease-fluid);
  transform:
    translate3d(
      calc(var(--x, 0%) + (var(--home-float-progress, 0) * var(--dx, 0%)) + (var(--home-float-wave, 0px) * var(--wx, 0))),
      calc(var(--y, 0%) + (var(--home-float-progress, 0) * var(--dy, 0%)) + (var(--home-float-wave, 0px) * var(--wy, 0))),
      0
    )
    rotate(calc(var(--r, 0deg) + (var(--home-float-progress, 0) * var(--dr, 0deg))));
  will-change: transform;
}

.home-float-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-float-card-1 { --x: -4%; --y: -3%; --dx: 17%; --dy: 22%; --r: -8deg; --dr: 12deg; --wx: 0.16; --wy: 0.09; }
.home-float-card-2 { --x: 0%; --y: 0%; --dx: 13%; --dy: -16%; --r: 7deg; --dr: -10deg; --wx: 0.1; --wy: -0.06; }
.home-float-card-3 { --x: 4%; --y: 5%; --dx: 9%; --dy: -24%; --r: -9deg; --dr: 14deg; --wx: 0.12; --wy: -0.1; }
.home-float-card-4 { --x: 4%; --y: -2%; --dx: -15%; --dy: 24%; --r: 8deg; --dr: -13deg; --wx: -0.14; --wy: 0.08; }
.home-float-card-5 { --x: 0%; --y: 0%; --dx: -14%; --dy: -14%; --r: -7deg; --dr: 11deg; --wx: -0.1; --wy: -0.08; }
.home-float-card-6 { --x: -4%; --y: 4%; --dx: -10%; --dy: -22%; --r: 9deg; --dr: -14deg; --wx: -0.12; --wy: -0.1; }

.home-gallery-strip {
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}

.home-trending-strip {
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}

.home-trending-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.top-creator-card {
  min-height: 132px;
}

.creator-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
  background: radial-gradient(circle at 30% 30%, rgba(15, 17, 21, 0.88), rgba(15, 17, 21, 0.6));
  box-shadow: 0 16px 34px rgba(9, 19, 38, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.creator-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.creator-avatar-sm {
  width: 26px;
  height: 26px;
  font-size: 0.78rem;
  box-shadow: 0 10px 22px rgba(9, 19, 38, 0.14);
}

.product-brand-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.design-byline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.creator-byline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.creator-byline-link:hover {
  text-decoration: underline;
}

.creator-public-hero {
  background: linear-gradient(155deg, var(--bg), var(--soft));
}

.creator-public-avatar {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(var(--paper-rgb), 0.88);
  flex: 0 0 auto;
}

.creator-public-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.creator-public-avatar.fallback {
  font-weight: 800;
  color: rgba(var(--ink-rgb), 0.84);
}

.inline-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.oauth-divider {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0.85rem 0 0.55rem;
}

.oauth-divider::before {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: rgba(16, 26, 44, 0.12);
}

.oauth-divider span {
  position: relative;
  padding: 0 0.7rem;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #fff;
  color: rgba(16, 26, 44, 0.6);
}

.oauth-stack {
  display: grid;
  place-items: center;
}

.google-auth-slot {
  display: grid;
  place-items: center;
  width: 100%;
}

.oauth-disabled {
  width: min(360px, 100%);
  justify-content: center;
  opacity: 0.9;
}

.oauth-hint {
  margin-top: 0.45rem;
  text-align: center;
  max-width: 360px;
}

.oauth-google-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.studio-mobile-note {
  display: none;
  padding: 0.55rem 0.75rem;
  border-radius: 16px;
  border: 1px solid rgba(16, 26, 44, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(16, 26, 44, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

@media (pointer: coarse) {
  .studio-mobile-note[data-mobile-only] {
    display: block;
  }
}

.verified-badge {
  border-color: rgba(24, 176, 96, 0.55);
  background: rgba(24, 176, 96, 0.12);
  color: rgba(14, 110, 58, 0.98);
  text-align: center;
  line-height: 1;
}

.home-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.home-spotlight-item {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.home-spotlight-item img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.creator-hub-banner {
  background: linear-gradient(155deg, var(--bg), var(--soft));
}

.design-card {
  display: grid;
  gap: 0.62rem;
  padding: 0.9rem;
  min-width: 0;
}

.discover-live-link,
.discover-static-link {
  display: grid;
  place-items: center;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(var(--paper-rgb), 0.9);
  min-height: 0;
  transition: transform 220ms var(--ease-fluid), box-shadow 240ms var(--ease-fluid), border-color 220ms var(--ease-fluid);
  padding: 0.45rem;
  aspect-ratio: 1 / 1;
}

.discover-live-link:hover,
.discover-static-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: rgba(var(--ink-rgb), 0.2);
}

.discover-live-link .three-preview-host {
  width: 100%;
  min-height: 160px;
  pointer-events: none;
}

.discover-static-link .three-preview-host {
  width: 100%;
  min-height: 160px;
  pointer-events: none;
}

.discover-live-link .three-preview-canvas {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
}

.discover-static-link .three-preview-canvas {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
}

.discover-static-link .discover-static-preview {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center center;
  image-rendering: auto;
  display: block;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
}

.recommend-preview .three-preview-host {
  width: 100%;
  min-height: 160px;
  pointer-events: none;
}

.recommend-preview-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.profile-mini-preview .three-preview-host,
.order-item-preview .three-preview-host,
.admin-order-preview .three-preview-host {
  width: 100%;
  min-height: 160px;
  pointer-events: none;
}

.profile-mini-preview .three-preview-canvas,
.order-item-preview .three-preview-canvas,
.admin-order-preview .three-preview-canvas {
  border-radius: 16px;
}

.discover-product-grid .discover-card .discover-static-preview {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center center;
  image-rendering: auto;
  display: block;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
}

.discover-product-grid .design-card.discover-card .discover-card-pricebar {
  display: flex;
  justify-content: flex-start;
  gap: 0.36rem;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
  margin-bottom: 0.07rem;
}

.discover-product-grid .design-card.discover-card .discover-add-row {
  display: grid;
  place-items: center;
  width: 100%;
  justify-content: center !important;
  margin-top: 0.25rem;
  min-width: 0;
}

.discover-product-grid .design-card.discover-card .discover-add-btn {
  display: inline-flex;
  width: 128px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  justify-content: center;
  align-items: center;
  padding: 0 0.72rem;
  min-height: 38px;
  height: 38px;
  line-height: 1;
  font-size: 0.76rem;
  border-radius: 999px;
  text-align: center;
  margin: 0 auto !important;
  flex: 0 0 128px;
}

.discover-product-grid .design-card.discover-card .design-card-main,
.discover-product-grid .design-card.discover-card .design-card-body {
  min-width: 0;
}

.discover-product-grid .design-card.discover-card .design-card-main {
  width: 100%;
  display: block;
}

.discover-product-grid .design-card.discover-card .design-card-body {
  width: 100%;
}

.discover-product-grid .design-card.discover-card .design-card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.16;
  font-size: 0.86rem;
  margin-top: 0.02rem;
  max-width: 100%;
}

.discover-product-grid .design-card.discover-card .design-card-creator {
  max-width: 100%;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-inline-end: 0.08rem;
}

.discover-product-grid .design-card.discover-card .design-card-creator-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.78rem;
}

.discover-product-grid .design-card.discover-card .discover-verified-badge {
  max-width: 100%;
  padding: 0.18rem 0.4rem;
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.05em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.discover-product-grid .design-card.discover-card .design-byline {
  margin-top: 0.13rem;
  gap: 0.37rem;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.discover-product-grid .design-card.discover-card .discover-price-current {
  color: rgba(10, 115, 55, 0.95);
  font-size: 0.93rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.discover-product-grid .design-card.discover-card .discover-price-old {
  color: rgba(183, 72, 72, 0.88);
  font-size: 0.69rem;
  font-weight: 550;
  text-decoration: line-through;
  white-space: nowrap;
  opacity: 0.92;
}

.discover-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.56rem;
  align-items: start;
}

.discover-product-grid .design-card.discover-card {
  gap: 0.44rem;
  padding: 0.71rem;
}

.discover-product-grid .design-card.discover-card .discover-static-link {
  padding: 0.2rem;
  border-radius: 18px;
  overflow: hidden;
}

.discover-product-grid .design-card.discover-card .discover-static-link .three-preview-host {
  min-height: 176px;
}

.discover-feed-section {
  margin-bottom: 1.25rem;
}

.discover-load-more-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
}

.discover-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
}

.discover-load-more-chevron {
  display: inline-block;
  font-size: 0.95em;
  line-height: 1;
  animation: discoverChevronNudge 900ms ease-in-out infinite;
}

.app-popup-backdrop.advanced-popup-backdrop {
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-popup-card.advanced-popup-card {
  width: min(96vw, 560px);
  max-height: calc(100svh - 2rem);
  overflow: hidden;
  margin: auto !important;
  left: auto;
  right: auto;
  transform: none;
}

.advanced-popup-scroll {
  max-height: calc(100svh - 14rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 0.1rem;
}

.advanced-popup-preview {
  width: 100%;
  margin: 0;
  padding: 0.75rem;
}

.advanced-popup-preview .three-preview-host,
.advanced-popup-preview .three-lazy-wrap,
.advanced-popup-preview .three-preview-stage,
.advanced-popup-preview .three-preview-frame,
.advanced-popup-preview .three-preview-canvas {
  width: 100%;
  height: auto;
  margin-inline: auto;
}

.advanced-popup-preview .three-preview-canvas {
  aspect-ratio: 1 / 1;
}

.advanced-popup-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.advanced-popup-price-values {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.advanced-popup-price-row .discover-price-current {
  color: rgba(10, 115, 55, 0.95);
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.advanced-popup-price-row .discover-price-old {
  color: rgba(183, 72, 72, 0.88);
  font-size: 0.74rem;
  text-decoration: line-through;
  white-space: nowrap;
}

.advanced-popup-buybox {
  margin-top: 0.15rem;
}

.advanced-popup-actions {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

.advanced-popup-actions .button {
  min-width: 160px;
}

@keyframes discoverChevronNudge {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.92;
  }
  50% {
    transform: translateY(3px);
    opacity: 1;
  }
}

@media (max-width: 340px) {
  .discover-product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-lite-3d-real,
  .advanced-popup-preview {
    padding: 0.5rem;
  }
  .home-lite-3d-real-panel,
  .advanced-popup-preview {
    margin: 0 auto;
    width: min(100%, 560px);
    padding: 0.55rem;
  }
  .home-lite-3d-real-preview .three-preview-host,
  .home-lite-3d-real-preview .three-lazy-wrap,
  .home-lite-3d-real-preview .three-preview-stage,
  .home-lite-3d-real-preview .three-preview-frame,
  .home-lite-3d-real-preview .three-preview-canvas,
  .advanced-popup-preview .three-preview-host,
  .advanced-popup-preview .three-lazy-wrap,
  .advanced-popup-preview .three-preview-stage,
  .advanced-popup-preview .three-preview-frame,
  .advanced-popup-preview .three-preview-canvas {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .discover-product-grid .design-card.discover-card .discover-verified-badge {
    max-width: 86px;
    font-size: 0.54rem;
    padding-inline: 0.32rem;
  }
}

.price-pill-regular {
  color: rgba(15, 24, 38, 0.92);
}

.price-pill-old {
  color: rgba(14, 16, 20, 0.5);
  border-color: rgba(14, 16, 20, 0.12);
  background: rgba(255, 255, 255, 0.8);
  text-decoration: line-through;
  opacity: 0.75;
}

.price-pill-new {
  color: rgba(14, 16, 20, 0.92);
  border-color: rgba(43, 77, 255, 0.22);
  background: rgba(43, 77, 255, 0.06);
}

.sale-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 90, 48, 0.42);
  background: rgba(216, 90, 48, 0.22);
  color: rgba(255, 255, 255, 0.94);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  min-inline-size: 9.5ch;
  box-sizing: border-box;
  white-space: nowrap;
}

.sale-countdown.ended {
  opacity: 0.65;
}

.return-policy {
  border-color: rgba(14, 16, 20, 0.1);
  background: rgba(255, 255, 255, 0.78);
}

.return-policy-list {
  margin: 0;
  padding-inline-start: 1.25rem;
  display: grid;
  gap: 0.35rem;
  color: rgba(15, 24, 38, 0.82);
  font-size: 0.92rem;
  line-height: 1.45;
}

.return-policy-list li {
  margin: 0;
}

.button-ghost.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.design-card-actions {
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.icon-only-btn {
  padding: 0.5rem 0.65rem;
  border-radius: 999px;
  gap: 0.45rem;
}

/* Better icon button spacing on ultra-small phones */
@media (max-width: 390px) {
  .icon-only-btn {
    padding: 0.42rem 0.55rem;
    gap: 0.3rem;
    font-size: 0.8rem;
  }
}

.icon-count {
  font-weight: 700;
  font-size: 0.88rem;
  color: rgba(15, 24, 38, 0.82);
}

.recommend-static-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.static-preview-fallback {
  width: 100%;
  min-height: 190px;
  border-radius: 16px;
  border: 1px dashed rgba(111, 130, 162, 0.4);
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.85rem;
  color: rgba(23, 32, 49, 0.72);
}

.static-preview-fallback.small {
  min-height: 160px;
}

.discover-preview-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 240px;
}

.discover-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.5rem;
}

.discover-preview-cell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg), var(--soft));
  min-height: 120px;
}

.discover-surface-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.discover-surface-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 0.72rem;
}

.discover-preview-cell em {
  position: absolute;
  right: 0.35rem;
  bottom: 0.32rem;
  font-style: normal;
  font-size: 0.56rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(var(--paper-rgb), 0.9);
  border-radius: 999px;
  padding: 0.12rem 0.34rem;
}

.comment-stack {
  gap: 0.4rem;
}

.comment {
  font-size: 0.92rem;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.9rem;
}

.inline-form .select {
  min-width: 88px;
}

.discover-controls {
  align-items: end;
}

.discover-page-indicator {
  align-self: center;
  text-align: right;
}

.request-form {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.compact-btn {
  padding: 0.56rem 0.94rem;
}

/* Better button sizing on ultra-small phones */
@media (max-width: 390px) {
  .compact-btn {
    padding: 0.48rem 0.8rem;
    font-size: 0.9rem;
  }
}

.live-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.live-preview-grid.compact {
  gap: 0.6rem;
}

.pose-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  min-height: 180px;
  transition: transform 220ms var(--ease-fluid), box-shadow 260ms var(--ease-fluid);
}

.pose-card > img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 420ms var(--ease-fluid);
}

.pose-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(9, 19, 38, 0.14);
}

.pose-card:hover > img {
  transform: scale(1.02);
}

.pose-map {
  position: absolute;
  transform-origin: center;
}

.pose-map-content {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.pose-map-outline {
  outline: 2px dashed rgba(43, 77, 255, 0.55);
  outline-offset: -2px;
}

.pose-label {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(14, 18, 29, 0.85);
  color: #fff;
  font-size: 0.7rem;
}

.preview-layer {
  position: absolute;
}

.preview-layer.stroke-svg {
  inset: 0;
  width: 100%;
  height: 100%;
}

.liquid-card {
  position: relative;
  overflow: hidden;
}

.liquid-card > * {
  position: relative;
  z-index: 1;
}

.liquid-card::after {
  content: "";
  position: absolute;
  inset: -38% 35% auto -22%;
  height: 240px;
  border-radius: 58% 42% 61% 39% / 48% 38% 62% 52%;
  background: radial-gradient(circle at 30% 35%, rgba(var(--accent-rgb), 0.10), rgba(var(--accent-rgb), 0));
  transform: translate3d(0, calc(var(--curve-scroll-shift, 0px) * 0.55), 0);
  animation: none;
  pointer-events: none;
  z-index: 0;
}

.studio-workbench {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) minmax(300px, 365px);
  align-items: start;
}

.studio-panel h2,
.studio-stage h2 {
  margin: 0.2rem 0 0;
  font-size: 1.08rem;
}

.studio-panel-header {
  align-items: flex-start;
}

.studio-module {
  gap: 0.9rem;
}

.studio-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.studio-tool-grid .button,
.studio-tool-grid .button-ghost,
.studio-module .button-ghost {
  justify-content: flex-start;
}

.studio-stage {
  padding: 1rem;
}

.studio-stage-bar {
  gap: 0.85rem;
}

.surface-tabs {
  gap: 0.72rem;
}

.studio-canvas-stage {
  display: grid;
  place-items: center;
  padding: 0.35rem;
}

.studio-canvas-wrap {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(145deg, var(--bg), var(--soft));
  border-radius: var(--radius-soft);
}

.studio-canvas {
  position: relative;
  width: min(100%, 760px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 26px;
  border: 2px solid rgba(var(--ink-rgb), 0.14);
  box-shadow: inset 0 0 0 1px rgba(var(--paper-rgb), 0.55);
  overflow: hidden;
}

.studio-canvas.black {
  background: var(--ink);
}

.studio-canvas.white {
  background: var(--paper);
}

.studio-layer {
  position: absolute;
  cursor: move;
  user-select: none;
}

.studio-layer.selected {
  outline: 1px solid rgba(15, 17, 21, 0.75);
  border-radius: 8px;
}

.studio-layer.image {
  border-radius: 12px;
}

.studio-stroke {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.studio-stroke.selected {
  filter: drop-shadow(0 0 3px rgba(15, 17, 21, 0.72));
}

.studio-live-grid {
  gap: 0.7rem;
}

.studio-order-card {
  gap: 0.95rem;
  border-radius: var(--radius-soft);
}

.recommend-row {
  display: flex;
  gap: 0.58rem;
  align-items: center;
  flex-wrap: wrap;
}

.color-wheel {
  height: 50px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0.24rem;
}

.checkout-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

@media (max-width: 820px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

.checkout-title {
  margin: 0;
}

.checkout-cart-items {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.cart-item-row {
  align-items: center;
  gap: 0.8rem;
}

.cart-item-main {
  display: grid;
  gap: 0.15rem;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.cart-item-main strong {
  font-size: 1rem;
}

.cart-item-total {
  font-weight: 700;
}

.cart-item-meta {
  margin-top: 0.35rem;
}

.cart-item-controls {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.85rem;
  align-items: end;
  flex-wrap: wrap;
}

.cart-field {
  display: grid;
  gap: 0.3rem;
  min-width: 120px;
}

.checkout-summary {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.checkout-summary.boxed {
  border: 1px solid rgba(111, 130, 162, 0.28);
  background: rgba(237, 242, 247, 0.7);
  border-radius: 18px;
  padding: 0.85rem 1rem;
}

.summary-pill {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.35rem 0.45rem;
  border-radius: 14px;
}

.summary-pill.sale-pill strong {
  color: rgba(18, 110, 62, 0.98);
}

.button-ghost.danger {
  border-color: rgba(205, 68, 80, 0.4);
  color: rgba(205, 68, 80, 0.95);
}

.button-ghost.danger:hover {
  box-shadow: 0 12px 32px rgba(205, 68, 80, 0.14);
}

.button.danger {
  background: rgba(205, 68, 80, 0.96);
  border-color: rgba(205, 68, 80, 0.96);
  color: #fff;
}

.button.danger:hover {
  box-shadow: 0 12px 34px rgba(205, 68, 80, 0.22);
}

.studio-guide-help {
  border-color: rgba(43, 77, 255, 0.38);
  background: rgba(43, 77, 255, 0.06);
  font-weight: 700;
}

.studio-guide-help:hover {
  box-shadow: var(--shadow);
}

.studio-top-actions {
  justify-content: space-between;
  align-items: center;
}

.studio-size-chart-row {
  gap: 0.6rem;
  align-items: center;
}

/* Better spacing on ultra-small phones */
@media (max-width: 390px) {
  .studio-size-chart-row {
    gap: 0.5rem;
    flex-wrap: wrap;
  }
}

.studio-size-chart-btn {
  white-space: nowrap;
}

.studio-size-chart-modal .app-popup-card {
  width: min(92vw, 720px);
  max-height: min(86vh, 720px);
  overflow: auto;
}

/* Size chart: keep the selected size label readable on light cards. */
.studio-size-chart-modal .selected-chip strong,
.size-chart-overlay-modal .selected-chip strong {
  color: var(--ink);
}

/* Mobile fit: size chart must stay below the sticky header and scroll internally. */
@media (max-width: 980px) {
  .studio-size-chart-modal.app-popup-backdrop,
  .size-chart-overlay-modal.app-popup-backdrop,
  .address-picker-modal.app-popup-backdrop {
    place-items: start center;
    padding-top: calc(var(--header-height, 64px) + env(safe-area-inset-top) + 8px);
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .studio-size-chart-modal .app-popup-card,
  .size-chart-overlay-modal .app-popup-card,
  .address-picker-modal .app-popup-card {
    max-height: calc(100svh - var(--header-height, 64px) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
}

/* Ultra-small phones (< 390px): ensure content stays readable and scrollable */
@media (max-width: 390px) {
  .studio-size-chart-modal.app-popup-backdrop,
  .size-chart-overlay-modal.app-popup-backdrop,
  .address-picker-modal.app-popup-backdrop {
    padding-top: calc(var(--header-height, 56px) + env(safe-area-inset-top) + 6px);
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .studio-size-chart-modal .app-popup-card,
  .size-chart-overlay-modal .app-popup-card,
  .address-picker-modal .app-popup-card {
    max-height: calc(100svh - var(--header-height, 56px) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
    width: min(100vw - 1rem, 100%);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
}

.studio-help-mobile {
  border-color: rgba(43, 77, 255, 0.38);
  background: rgba(43, 77, 255, 0.06);
  font-weight: 700;
  white-space: nowrap;
}

.studio-help-mobile:hover {
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .studio-react-top .tabs .studio-guide-help {
    display: none;
  }
}

.order-item-preview,
.admin-order-preview {
  border-radius: 18px;
  border: 1px solid rgba(111, 130, 162, 0.22);
  background: rgba(237, 242, 247, 0.55);
  overflow: hidden;
}

.order-item-preview .static-preview-img,
.admin-order-preview .static-preview-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.order-item-preview .static-preview-fallback,
.admin-order-preview .static-preview-fallback {
  min-height: 180px;
}

.creator-analytics-card strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.creator-analytics-card {
  min-width: 0;
}

.creator-analytics-card .inline-label,
.creator-analytics-card .muted {
  overflow-wrap: anywhere;
}

.creator-analytics-preview {
  width: 100%;
}

.creator-analytics-preview-link {
  display: block;
  width: 100%;
}

.creator-analytics-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--bg), var(--soft));
}

.creator-analytics-card .row {
  flex-wrap: wrap;
}

.creator-analytics-card .inline-form-2 {
  justify-content: flex-start;
}

.row.align-start {
  justify-content: flex-start;
  gap: 0.75rem;
}

.checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.logo-preview,
.qr-upload-preview {
  width: min(220px, 100%);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.4rem;
}

.payment-qr-link {
  display: grid;
  justify-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  cursor: pointer;
  text-decoration: none;
}

.payment-qr-preview {
  width: min(160px, 70vw);
  border-radius: 14px;
}

.about-quote p {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.7;
  font-weight: 600;
}

.center-wrap {
  display: grid;
  justify-items: center;
}

.auth-card {
  width: min(520px, 100%);
}

.footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.footer-inner {
  justify-content: center;
}

.footer-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  justify-items: start;
  gap: 2.1rem;
  padding: 2.6rem 0;
}

.footer-social-links {
  display: grid;
  gap: 0.65rem;
}

.footer-col {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.footer-col-title {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(15, 17, 21, 0.62);
  margin-bottom: 0.35rem;
}

.footer-link {
  color: rgba(15, 17, 21, 0.72);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-link:hover {
  color: rgba(15, 17, 21, 0.95);
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.footer-social-link span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-icon-img {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  object-fit: contain;
  border: 1px solid rgba(16, 20, 30, 0.12);
  background: rgba(255, 255, 255, 0.75);
}

.home-layout-image {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}

.tech-map-canvas {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.tech-map-canvas img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.tech-map-outline {
  position: absolute;
  border: 2px dashed rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.06);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: grid;
  place-items: center;
  z-index: 60;
}

.modal {
  width: min(760px, calc(100% - 2rem));
}

.studio-exit-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: var(--overlay);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.studio-exit-modal {
  width: min(520px, 100%);
}

.three-preview-host {
  width: min(100%, 66vw);
  min-height: 250px;
  border-radius: var(--radius-soft);
  overflow: hidden;
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.three-lazy-wrap {
  display: grid;
  gap: 0.5rem;
}

.three-preview-stage {
  position: relative;
}

.studio-live-preview-wrap {
  position: relative;
}

.three-preview-capture-btn {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 6;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(var(--paper-rgb), 0.92);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
  backdrop-filter: none;
}

.three-preview-capture-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.three-preview-remix-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 6;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.7);
  background: rgba(var(--accent-rgb), 0.96);
  box-shadow: 0 10px 22px rgba(var(--accent-rgb), 0.26);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
}

.three-preview-remix-btn:hover,
.three-preview-remix-btn:focus-visible {
  background: rgba(var(--accent-rgb), 1);
  box-shadow: 0 12px 26px rgba(var(--accent-rgb), 0.34);
}

.three-preview-frame {
  opacity: 0.001;
  transform: translateZ(0);
  transition: opacity 420ms ease;
}

.three-preview-frame.is-ready {
  opacity: 1;
}

.three-preview-gate {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.92);
  pointer-events: none;
}

.three-preview-gate-card {
  width: min(520px, 92%);
  border-radius: 18px;
  border: 1px solid rgba(16, 20, 30, 0.1);
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem 1.1rem;
  text-align: center;
  box-shadow: var(--shadow-2);
}

.three-preview-canvas {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  touch-action: none;
  cursor: grab;
}

.three-preview-rotate-hint {
  position: absolute;
  right: 0.8rem;
  bottom: 0.85rem;
  width: min(92px, 24%);
  height: auto;
  z-index: 7;
  pointer-events: none;
  user-select: none;
}

@media (pointer: coarse) {
  .three-preview-canvas {
    cursor: default;
  }
}

@media (max-width: 640px) {
  .three-preview-capture-btn {
    top: 0.55rem;
    left: 0.55rem;
  }

  .three-preview-remix-btn {
    top: 0.55rem;
    right: 0.55rem;
  }
}

.three-preview-canvas canvas {
  display: block;
}

.preview-skeleton {
  min-height: 220px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  border-radius: 18px;
  border: 1px dashed rgba(16, 20, 30, 0.2);
  background: rgba(255, 255, 255, 0.78);
}

.ws-2d-fallback-card {
  width: 100%;
  min-height: 220px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  justify-items: center;
  padding: 0.85rem;
}

.ws-2d-preview {
  width: min(360px, 92%);
  aspect-ratio: 1 / 1.05;
  border-radius: 18px;
  border: 1px solid rgba(16, 20, 30, 0.12);
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ws-inapp-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(16, 20, 30, 0.12);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ws-inapp-banner-text {
  min-width: 0;
}

.ws-inapp-banner-actions {
  flex: 0 0 auto;
}

@media (max-width: 820px) {
  .ws-inapp-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.pose-card.pose-card-3d {
  min-height: 220px;
}

.studio-react-page {
  display: grid;
  gap: 1rem;
}

/* Light Studio: fullscreen-ish mobile layout (keep site header, give studio the rest). */
.studio-react-page.is-light-studio {
  gap: 0.75rem;
}

.light-reco-title {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.studio-light-top {
  position: sticky;
  top: calc(var(--header-height, 0px) + env(safe-area-inset-top, 0px));
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.6rem;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-radius: 16px;
  border: 1px solid rgba(16, 20, 30, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.studio-light-top > :first-child {
  justify-self: start;
}
.studio-light-top > :nth-child(2) {
  justify-self: center;
}
.studio-light-top > :last-child {
  justify-self: end;
}

/* (legacy) studio-light-tabs removed: Light Studio now uses a single toggle button. */

.studio-pro-top {
  position: sticky;
  top: calc(var(--header-height, 0px) + env(safe-area-inset-top, 0px));
  z-index: 20;
  padding: 0.6rem 0.75rem;
  border-radius: 16px;
  border: 1px solid rgba(16, 20, 30, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.studio-pro-top .compact-btn,
.studio-pro-top .button,
.studio-pro-top .button-ghost {
  white-space: nowrap;
}

.studio-pro-top .icon-only-btn {
  width: 2.2rem;
  min-width: 2.2rem;
  height: 2.2rem;
  min-height: 2.2rem;
  padding: 0.35rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.studio-pro-quickbar {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.studio-canvas-toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.4rem;
  border-radius: 16px;
  border: 1px solid rgba(16, 20, 30, 0.1);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-wrap: nowrap;
  overflow-x: hidden;
}

/* Better toolbar spacing on ultra-small phones */
@media (max-width: 390px) {
  .studio-canvas-toolbar {
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
  }
}

.studio-canvas-toolbar .compact-btn {
  white-space: nowrap;
  flex: 0 0 auto;
  font-size: 0.86rem;
  padding: 0.42rem 0.6rem;
}

/* Better button padding on ultra-small phones */
@media (max-width: 390px) {
  .studio-canvas-toolbar .compact-btn {
    font-size: 0.78rem;
    padding: 0.38rem 0.5rem;
  }
}

.studio-canvas-toolbar strong {
  font-weight: 800;
}

.studio-canvas-toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

/* Better group spacing on ultra-small phones */
@media (max-width: 390px) {
  .studio-canvas-toolbar-group {
    gap: 0.4rem;
  }
}

.studio-canvas-toolbar-group.surfaces {
  flex: 1 1 0;
  justify-content: flex-start;
}

.studio-canvas-toolbar-group.size {
  flex: 0 0 auto;
  justify-content: center;
}

.studio-canvas-toolbar-group.colors {
  flex: 1 1 0;
  justify-content: flex-end;
}

.studio-light-top .studio-light-toggle {
  white-space: nowrap;
  flex: 0 0 auto;
  font-size: 0.92rem;
  padding: 0.55rem 0.75rem;
}

.studio-mobile-dock .studio-dock-btn {
  white-space: nowrap;
  font-size: 0.88rem;
  padding: 0.55rem 0.65rem;
  min-height: 2.85rem;
}

.studio-tool-grid.compact.studio-tool-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.light-studio-dock {
  position: sticky;
  bottom: calc(max(0.85rem, env(safe-area-inset-bottom, 0px) + 0.7rem));
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  margin: 0 auto;
  width: min(520px, calc(100% - 1.4rem));
  border-radius: 18px;
  border: 1px solid rgba(16, 20, 30, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.light-studio-dock .button,
.light-studio-dock .button-ghost,
.light-studio-dock .compact-btn {
  white-space: nowrap;
  font-size: 0.88rem;
  padding: 0.55rem 0.65rem;
  min-height: 2.85rem;
}

body.ui-light-studio .page {
  padding-bottom: 1rem;
}

.studio-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.studio-guide-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle var(--guide-r, 170px) at var(--guide-x, 50%) var(--guide-y, 40%),
    rgba(12, 14, 18, 0) 0%,
    rgba(12, 14, 18, 0) 58%,
    rgba(12, 14, 18, 0.72) 66%,
    rgba(12, 14, 18, 0.78) 100%
  );
}

.studio-guide-card {
  position: relative;
  width: min(32rem, calc(100vw - 2rem));
  box-shadow: 0 30px 90px rgba(15, 17, 21, 0.26);
}

.studio-draw-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: calc(var(--header-height, 0px) + env(safe-area-inset-top, 0px));
  height: calc(100svh - var(--header-height, 0px) - env(safe-area-inset-top, 0px));
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.studio-crop-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: calc(var(--header-height, 0px) + env(safe-area-inset-top, 0px));
  height: calc(100svh - var(--header-height, 0px) - env(safe-area-inset-top, 0px));
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.studio-crop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 18, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.studio-crop-card {
  position: relative;
  width: min(54rem, 100vw);
  max-height: calc(100% - 0.5rem);
  height: auto;
  border-radius: 26px;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) 1rem max(0.75rem, env(safe-area-inset-bottom, 0px));
  overflow: auto;
  box-shadow: none;
}

.studio-crop-frame {
  position: relative;
  width: 100%;
  height: clamp(280px, 58svh, 640px);
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(120% 120% at 20% 10%, rgba(var(--accent-rgb), 0.1), rgba(var(--paper-rgb), 0.92));
  border: 1px solid var(--line);
  touch-action: none;
  user-select: none;
}

.studio-crop-aspects .muted {
  opacity: 0.85;
}

.studio-crop-mask {
  position: absolute;
  background: rgba(var(--ink-rgb), 0.55);
  pointer-events: none;
}

.studio-crop-mask.mask-top {
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--crop-y, 0) * 100%);
}

.studio-crop-mask.mask-bottom {
  bottom: 0;
  left: 0;
  right: 0;
  top: calc((var(--crop-y, 0) + var(--crop-h, 1)) * 100%);
}

.studio-crop-mask.mask-left {
  top: calc(var(--crop-y, 0) * 100%);
  bottom: calc((1 - var(--crop-y, 0) - var(--crop-h, 1)) * 100%);
  left: 0;
  width: calc(var(--crop-x, 0) * 100%);
}

.studio-crop-mask.mask-right {
  top: calc(var(--crop-y, 0) * 100%);
  bottom: calc((1 - var(--crop-y, 0) - var(--crop-h, 1)) * 100%);
  left: calc((var(--crop-x, 0) + var(--crop-w, 1)) * 100%);
  right: 0;
}

.studio-crop-box {
  position: absolute;
  left: calc(var(--crop-x, 0) * 100%);
  top: calc(var(--crop-y, 0) * 100%);
  width: calc(var(--crop-w, 1) * 100%);
  height: calc(var(--crop-h, 1) * 100%);
  border: 2px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.18), 0 18px 60px rgba(26, 25, 22, 0.14);
  pointer-events: auto;
  cursor: move;
}

.studio-crop-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(var(--ink-rgb), 0.18) 1px, transparent 1px),
    linear-gradient(to right, rgba(var(--ink-rgb), 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--ink-rgb), 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--ink-rgb), 0.18) 1px, transparent 1px);
  background-size: 33.333% 100%, 66.666% 100%, 100% 33.333%, 100% 66.666%;
  background-position: 33.333% 0, 66.666% 0, 0 33.333%, 0 66.666%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.crop-handle {
  position: absolute;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.72);
  border: 2px solid rgba(var(--accent-rgb), 0.65);
  box-shadow: 0 8px 26px rgba(26, 25, 22, 0.16);
  pointer-events: auto;
  touch-action: none;
}

.crop-handle:hover {
  border-color: rgba(255, 255, 255, 0.9);
}

.crop-handle[data-handle="nw"] { left: 0; top: 0; }
.crop-handle[data-handle="n"] { left: 50%; top: 0; }
.crop-handle[data-handle="ne"] { left: 100%; top: 0; }
.crop-handle[data-handle="e"] { left: 100%; top: 50%; }
.crop-handle[data-handle="se"] { left: 100%; top: 100%; }
.crop-handle[data-handle="s"] { left: 50%; top: 100%; }
.crop-handle[data-handle="sw"] { left: 0; top: 100%; }
.crop-handle[data-handle="w"] { left: 0; top: 50%; }

.studio-crop-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.studio-crop-frame-outline {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(15, 17, 21, 0.08);
  pointer-events: none;
}

.studio-draw-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 18, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.studio-draw-card {
  position: relative;
  width: min(64rem, calc(100vw - 2rem));
  /* Keep the full panel visible inside the overlay viewport (below the sticky header). */
  max-height: calc(100% - 0.5rem);
  height: min(44rem, calc(100% - 0.5rem));
  padding: 1rem;
  overflow: hidden;
  box-shadow: 0 40px 110px rgba(15, 17, 21, 0.32);
  /* Ensure the body area can take the remaining space without pushing under the header. */
  grid-template-rows: auto 1fr;
}

.studio-draw-toolbar {
  display: grid;
  gap: 0.55rem;
}

.studio-draw-body.mobile {
  display: grid;
  gap: 0.75rem;
  min-height: 0;
}

.studio-draw-body.desktop {
  display: flex;
  align-items: stretch;
  gap: 0.9rem;
  flex: 1;
  min-height: 0;
}

/* Desktop: keep tools slim (~20%) so the canvas is the priority. */
.studio-draw-body.desktop .studio-draw-toolbar {
  flex: 0 0 min(20%, 16rem);
  max-width: 20%;
  min-width: 14rem;
  max-height: 100%;
  overflow: auto;
  padding: 0.8rem;
}

.studio-draw-body.desktop .studio-draw-canvas-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 980px) {
  .studio-draw-body.desktop {
    display: grid;
  }

  .studio-draw-body.desktop .studio-draw-toolbar {
    max-width: none;
    min-width: 0;
  }
}

.studio-draw-mobile-dock {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(16, 20, 30, 0.12);
  box-shadow: 0 16px 40px rgba(15, 17, 21, 0.14);
}

.studio-draw-tools-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.7rem;
}

.studio-draw-tools-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.studio-draw-tools-panel {
  position: relative;
  width: min(100%, 32rem);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 20, 30, 0.12);
  box-shadow: 0 26px 60px rgba(15, 17, 21, 0.2);
  max-height: min(70svh, 34rem);
  overflow: auto;
}

.button.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
}

.button-ghost.is-loading .button-spinner {
  border-color: rgba(16, 20, 30, 0.22);
  border-top-color: rgba(16, 20, 30, 0.68);
}

.button-spinner {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  margin-left: 0.6rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: rgba(255, 255, 255, 1);
  animation: buttonSpin 800ms linear infinite;
  vertical-align: -0.15rem;
}

@keyframes buttonSpin {
  to {
    transform: rotate(360deg);
  }
}

.studio-draw-canvas-wrap {
  position: relative;
  flex: 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--bg), var(--soft));
  min-height: 18rem;
}

.studio-draw-bounds {
  position: absolute;
  border: 2px dotted rgba(16, 20, 30, 0.38);
  border-radius: 14px;
  pointer-events: none;
  z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.studio-draw-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: crosshair;
}

.studio-draw-canvas.committed {
  pointer-events: none;
}

.studio-draw-canvas.active {
  pointer-events: auto;
}

.studio-draw-hint {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 20, 30, 0.1);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
}

.studio-react-top h2 {
  margin: 0.35rem 0 0;
}

.studio-react-page [data-guide-target="studio-step2"] .eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
}

@media (min-width: 981px) {
  .studio-react-top.is-collapsed {
    padding: 0.45rem 0.65rem;
  }

  .studio-react-top.is-collapsed > .row > div:first-child {
    display: none;
  }

  .studio-react-top.is-collapsed > .row + .row {
    display: none;
  }

  .studio-react-top .tab.studio-header-toggle {
    font-size: 1.05rem;
    line-height: 1;
    padding: 0.35rem 0.7rem;
  }
}

.studio-react-layout {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1.15fr) minmax(0, 0.95fr);
  align-items: start;
}

.studio-react-panel,
.studio-react-center,
.studio-react-preview,
.studio-react-order {
  min-height: 100%;
}

.studio-react-panel {
  gap: 0.55rem;
  max-height: calc(100vh - 9.5rem);
  overflow: auto;
  padding: 0.82rem;
}

.studio-react-panel .card.soft {
  padding: 0.72rem;
}

.studio-react-panel .button-ghost,
.studio-react-panel .button {
  padding: 0.56rem 0.72rem;
}

.studio-react-panel .tabs {
  flex-wrap: wrap;
  gap: 0.45rem;
}

.studio-add-cart-fab {
  position: fixed;
  right: 1rem;
  bottom: 1.15rem;
  z-index: 1200;
  border-radius: 999px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
}

body.lang-ar .studio-add-cart-fab {
  right: auto;
  left: 1rem;
}

@media (min-width: 981px) {
  .studio-add-cart-fab {
    display: none;
  }
}

.studio-react-order {
  grid-column: 1 / -1;
}

.product-layout {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  align-items: start;
}

.product-preview-panel {
  min-width: 0;
}

.product-details-panel {
  position: sticky;
  top: 5.9rem;
}

.studio-zone-board {
  position: relative;
  width: 100%;
  aspect-ratio: var(--board-ratio, 1 / 1);
  border-radius: 28px;
  border: 1px solid var(--line);
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 22px 52px rgba(15, 23, 42, 0.08);
  touch-action: none;
  overscroll-behavior: contain;
  user-select: none;
  -webkit-user-select: none;
}

.studio-zone-board.full-front {
  background:
    linear-gradient(45deg, rgba(var(--ink-rgb), 0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(var(--ink-rgb), 0.06) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(var(--ink-rgb), 0.06) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(var(--ink-rgb), 0.06) 75%),
    #e2e8f0;
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0px;
}

.studio-zone-board.overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
}

.studio-zone-board.white {
  background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
}

.studio-zone-board.draw-mode {
  cursor: crosshair;
  touch-action: none;
}

.studio-canvas-rig {
  position: relative;
  width: min(100%, var(--board-width, 520px));
  margin: 0 auto;
  --ruler-size: 2.05rem;
  /* Symmetric padding so working area is perfectly centered vertically and horizontally */
  padding: var(--ruler-size);
  box-sizing: border-box;
  isolation: isolate;
}

.studio-cm-ruler {
  position: absolute;
  pointer-events: none;
  z-index: 6;
  font-variant-numeric: tabular-nums;
}

.studio-cm-ruler.ruler-x {
  left: var(--ruler-size);
  top: -0.45rem; /* Push the upper ruler up slightly to create a beautiful gap */
  width: calc(100% - 2 * var(--ruler-size));
  height: var(--ruler-size);
}

.studio-cm-ruler.ruler-y {
  left: -0.2rem; /* Keep balanced spacing from the board edge */
  top: var(--ruler-size);
  height: calc(100% - 2 * var(--ruler-size));
  width: var(--ruler-size);
}

/* Light Studio: always-visible switch button (mobile-only). */
.tab.light-switch-pro {
  background: var(--accent);
  color: #fff;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  box-shadow: 0 10px 26px rgba(26, 25, 22, 0.14), 0 0 0 1px rgba(var(--accent-rgb), 0.12);
}
.tab.light-switch-pro:hover {
  filter: brightness(1.03);
  box-shadow: 0 12px 30px rgba(26, 25, 22, 0.16), 0 0 0 1px rgba(var(--accent-rgb), 0.16);
}
.tab.light-switch-pro:active {
  filter: brightness(0.98);
}

.button.light-switch-pro {
  background: var(--accent);
  color: #fff;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  box-shadow: 0 12px 30px rgba(26, 25, 22, 0.16), 0 0 0 1px rgba(var(--accent-rgb), 0.12);
}

.tab.light-switch-light {
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  color: var(--accent);
  background: var(--accent-weak);
}
.tab.light-switch-light:hover {
  background: rgba(var(--accent-rgb), 0.16);
}

.studio-cm-ruler .cm-tick {
  position: absolute;
  color: rgba(var(--ink-rgb), 0.54);
}

.studio-cm-ruler.ruler-x .cm-tick {
  bottom: 0;
  transform: translateX(-0.5px);
}

.studio-cm-ruler.ruler-y .cm-tick {
  left: 0;
  transform: translateY(-0.5px);
}

.studio-cm-ruler .cm-tick i {
  display: block;
  background: rgba(var(--ink-rgb), 0.18);
}

.studio-cm-ruler.ruler-x .cm-tick i {
  width: 1px;
  height: 12px;
}

.studio-cm-ruler.ruler-y .cm-tick i {
  width: 12px;
  height: 1px;
}

.studio-cm-ruler .cm-tick.major i {
  background: rgba(var(--ink-rgb), 0.34);
}

.studio-cm-ruler .cm-tick em {
  position: absolute;
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
}

.studio-cm-ruler.ruler-x .cm-tick em {
  top: 0.62rem;
  left: 0.18rem;
}

.studio-cm-ruler.ruler-y .cm-tick em {
  top: 0.12rem;
  left: 0.78rem;
}

.studio-shirt-template {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.98;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: inherit;
  filter: saturate(1.02) contrast(1.06);
}

.studio-zone-board.full-front .studio-shirt-template {
  opacity: 0.99;
  filter: saturate(1.02) contrast(1.08);
}

/* Always hide the UV guide silhouette overlay. Keep it in DOM for layout/measurement safety. */
.studio-uv-guide-shell {
  opacity: 0 !important;
  visibility: hidden !important;
}

.studio-snap-line {
  position: absolute;
  pointer-events: none;
  z-index: 4;
  background: rgba(255, 196, 138, 0.95);
  box-shadow: 0 0 0 4px rgba(255, 196, 138, 0.12);
}

.studio-snap-line.vertical {
  width: 2px;
  transform: translateX(-1px);
}

.studio-snap-line.horizontal {
  height: 2px;
  transform: translateY(-1px);
}

.zone-layer {
  position: absolute;
  border: 0;
  background: transparent;
  padding: 0;
  transform: translateZ(0);
  cursor: move;
  z-index: 5;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.zone-layer.text {
  display: inline-block;
  max-width: min(280px, calc(100% - 24px));
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.3;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.studio-layer-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.layer-drag-handle {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(16, 20, 30, 0.1);
  background: rgba(255, 255, 255, 0.55);
  color: rgba(15, 17, 21, 0.8);
  cursor: grab;
  touch-action: none;
  user-select: none;
  padding: 0;
}

.layer-drag-handle:active {
  cursor: grabbing;
}

.layer-drag-handle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.studio-layer-row.reorder-dragging {
  position: relative;
  z-index: 50;
  box-shadow: 0 22px 60px rgba(15, 17, 21, 0.16);
}

.studio-layer-row.reorder-anim {
  transition: transform 180ms var(--ease-fluid);
  will-change: transform;
}

.layer-insert-indicator {
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  height: 2px;
  background: rgba(255, 196, 138, 0.95);
  box-shadow: 0 0 0 4px rgba(255, 196, 138, 0.12);
  border-radius: 999px;
  pointer-events: none;
  z-index: 60;
}

.zone-layer.gizmo {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed rgba(44, 82, 138, 0.45);
  border-radius: 12px;
  background: rgba(var(--paper-rgb), 0.55);
  transition: border-color 180ms var(--ease-fluid), background 180ms var(--ease-fluid);
}

.zone-layer.gizmo:hover {
  border-color: rgba(15, 17, 21, 0.65);
  background: rgba(15, 17, 21, 0.08);
}

.layer-gizmo-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 1rem);
  padding: 0.2rem 0.46rem;
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zone-layer.image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  pointer-events: none;
}

.zone-layer.stroke-svg {
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.zone-layer.stroke-svg path {
  pointer-events: stroke;
}

.zone-layer.stroke-svg.selected path {
  filter: drop-shadow(0 0 3px rgba(15, 17, 21, 0.78));
}

.zone-layer.selected {
  outline: 2px solid rgba(255, 205, 154, 0.96);
  border-radius: 14px;
  box-shadow: 0 0 0 4px rgba(255, 196, 138, 0.18);
}

.zone-layer.gizmo.selected {
  border: 2px solid rgba(15, 17, 21, 0.8);
  background: rgba(15, 17, 21, 0.11);
}

.tech-map-board {
  width: min(100%, 320px);
  margin: 0 auto;
}

.layer-scale-handle {
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--warm-2), var(--warm-1));
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  cursor: nwse-resize;
  touch-action: none;
}

.layer-rotate-handle {
  position: absolute;
  left: 50%;
  top: -22px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.96);
  color: rgba(15, 17, 21, 0.9);
  border: 1px solid rgba(16, 26, 44, 0.18);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  cursor: grab;
  touch-action: none;
}

.layer-rotate-handle svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.layer-delete-handle {
  position: absolute;
  right: -12px;
  top: -12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(220, 38, 38, 0.95);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  touch-action: none;
}

.layer-delete-handle svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* Mobile interaction: reduce expensive effects while dragging/scaling/rotating. */
body.mobile-gesturing .zone-layer.selected {
  box-shadow: none;
}

body.mobile-gesturing .layer-scale-handle,
body.mobile-gesturing .layer-rotate-handle {
  box-shadow: none;
}

.printable-guide {
  position: absolute;
  inset: auto;
  border: 2px dashed rgba(15, 17, 21, 0.65);
  border-radius: 14px;
  pointer-events: none;
  z-index: 1;
}

.printable-guide span {
  position: absolute;
  top: -0.85rem;
  left: 0.8rem;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  color: var(--ink);
}

.studio-uv-guide-shell {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(var(--ink-rgb), 0.03), rgba(var(--ink-rgb), 0.01));
  box-shadow:
    inset 0 0 0 1px rgba(var(--ink-rgb), 0.06),
    inset 0 22px 48px rgba(183, 201, 236, 0.08);
}

.studio-uv-guide-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(75% 50% at 50% 18%, rgba(156, 176, 214, 0.26), transparent 65%),
    linear-gradient(180deg, rgba(var(--ink-rgb), 0.03), rgba(var(--ink-rgb), 0.012));
}

.studio-uv-guide-shape,
.studio-uv-guide-loading {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.studio-uv-guide-shape {
  object-fit: fill;
  opacity: 0.88;
  filter:
    drop-shadow(0 18px 34px rgba(88, 106, 146, 0.24))
    drop-shadow(0 0 0 rgba(255,255,255,0.3))
    contrast(1.05)
    saturate(0.82);
}

.studio-uv-guide-loading {
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(204, 217, 244, 0.24));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.studio-uv-guide-label {
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: rgba(11, 14, 20, 0.66);
  color: rgba(255, 245, 234, 0.96);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(5, 7, 12, 0.24);
}

.studio-uv-guide-shell.errored .studio-uv-guide-backdrop {
  background: linear-gradient(180deg, rgba(185, 92, 92, 0.18), rgba(255, 255, 255, 0.02));
}

.tech-map-board .tech-map-rect {
  pointer-events: auto;
  cursor: move;
}

.tech-map-resize-handle {
  position: absolute;
  top: auto;
  left: auto;
  right: -10px;
  bottom: -10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--paper);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  cursor: nwse-resize;
}

.is-hidden {
  display: none !important;
}

.chart-track {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 17, 21, 0.14);
  overflow: hidden;
}

.chart-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.92), rgba(var(--accent-rgb), 0.55));
}

.scroll-word {
  transform: translate3d(calc(var(--scroll-word-shift, 0px) * var(--scroll-word-factor, 0.24)), 0, 0);
  transition: transform 520ms var(--ease-fluid);
  will-change: transform;
}

.studio-3d-editor-shell {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto;
}

.layout-builder-shell {
  padding: 1rem;
}

.layout-builder-new-page {
  display: grid;
  gap: 0.35rem;
  min-width: 220px;
  flex: 1 1 240px;
}

.layout-builder-main {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  align-items: start;
}

.layout-builder-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  align-items: start;
}

.layout-builder-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  padding: 0.85rem;
  display: grid;
  gap: 0.75rem;
}

.layout-builder-properties {
  max-height: calc(100vh - 10rem);
  overflow: auto;
}

.layout-builder-palette {
  display: grid;
  gap: 0.55rem;
}

.layout-builder-palette-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 0.65rem 0.75rem;
  text-align: left;
  font-size: 0.86rem;
  cursor: grab;
}

.layout-builder-canvas-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--bg), var(--soft));
  padding: 0.85rem;
}

.layout-builder-canvas {
  position: relative;
  border: 1px dashed rgba(16, 20, 30, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(28, 44, 73, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(28, 44, 73, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px, 24px 24px, auto;
}

.layout-builder-canvas.over {
  border-color: rgba(var(--ink-rgb), 0.55);
}

.layout-builder-node {
  border: 1px solid transparent;
  border-radius: 12px;
  overflow: hidden;
}

.layout-builder-node.selected {
  border-color: rgba(var(--ink-rgb), 0.7);
  box-shadow: 0 0 0 3px rgba(var(--ink-rgb), 0.14);
}

.layout-builder-render {
  width: 100%;
  height: 100%;
}

.layout-builder-render-heading {
  display: flex;
  align-items: center;
}

.layout-builder-render-text {
  line-height: 1.5;
}

.layout-builder-render-image {
  background: var(--soft);
}

.layout-builder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layout-builder-image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.layout-builder-render-hero {
  position: relative;
  overflow: hidden;
}

.layout-builder-hero-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layout-builder-hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 0.45rem;
  padding: 1rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.56));
}

.layout-builder-hero-overlay h3,
.layout-builder-hero-overlay p {
  margin: 0;
}

.layout-builder-hero-overlay button {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  padding: 0.36rem 0.7rem;
  font-weight: 700;
}

.builder-runtime-inline {
  margin-top: 0.75rem;
}

.footer-runtime-inline {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.builder-runtime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.builder-runtime-card {
  min-height: 110px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.builder-runtime-card h3,
.builder-runtime-card p {
  margin: 0;
}

.builder-runtime-image,
.builder-runtime-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.builder-runtime-hero {
  min-height: 220px;
}

.builder-runtime-overlay {
  position: absolute;
  inset: 0;
  padding: 1rem;
  display: grid;
  align-content: end;
  gap: 0.4rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
}

.builder-runtime-overlay button {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  padding: 0.3rem 0.7rem;
  font-weight: 700;
}

.builder-super-page {
  padding: 0.9rem;
}

.builder-footer-surface {
  padding-top: 0.8rem;
}

.builder-footer-surface .builder-super-page {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.builder-super-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: var(--builder-canvas-ratio, 16 / 10);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(28, 44, 73, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(28, 44, 73, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg), var(--soft));
  background-size: 24px 24px, 24px 24px, auto;
}

.builder-super-node {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.builder-super-node h3,
.builder-super-node p {
  margin: 0;
}

.builder-super-image,
.builder-super-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.builder-super-hero {
  padding: 0 !important;
}

.builder-super-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 0.3rem;
  padding: 0.9rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
}

.builder-super-overlay button {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  padding: 0.28rem 0.62rem;
}

.studio-tool-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.38rem;
}

.studio-tool-icon {
  display: flex;
  align-items: center;
  justify-content: center !important;
  gap: 0.4rem;
  line-height: 1;
  min-height: 2.45rem;
  position: relative;
  padding: 0.36rem;
  overflow: visible;
}

.studio-tool-icon .icon-bubble {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 520px) {
  .studio-tool-icon {
    padding-inline: 0.55rem;
  }
  .studio-tool-icon span:last-child {
    display: block;
    max-width: 100%;
    line-height: 1.15;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    text-align: center;
  }
}

.studio-tool-icon::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  transform: translate(-50%, 6px);
  opacity: 0;
  pointer-events: none;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  color: #fff;
  background: rgba(15, 20, 34, 0.92);
  transition: opacity 170ms var(--ease-fluid), transform 170ms var(--ease-fluid);
}

.studio-tool-icon.selected-chip::after {
  display: none;
}

.studio-tool-icon:not([data-tip])::after,
.studio-tool-icon[data-tip='']::after {
  display: none;
}

.studio-tool-icon:hover::after,
.studio-tool-icon:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (pointer: coarse) {
  .studio-tool-icon::after {
    display: none;
  }
}

/* Touch devices: avoid hover transforms (prevents “sticky hover” + jitter). */
@media (pointer: coarse) {
  .card:hover,
  .discover-live-link:hover,
  .discover-static-link:hover,
  .button:hover,
  .button-ghost:hover,
  .tab:hover {
    transform: none;
    box-shadow: none;
  }
}

.studio-entry-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(10, 14, 25, 0.45);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.studio-entry-card {
  width: min(92vw, 520px);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 80px rgba(7, 12, 22, 0.25);
  animation: popup-in 240ms cubic-bezier(0.18, 0.89, 0.32, 1.2);
}

.studio-entry-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInSoft {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes liquidFloat {
  from {
    transform: translate3d(0, -12px, 0) rotate(-6deg);
  }
  to {
    transform: translate3d(-16px, 18px, 0) rotate(8deg);
  }
}

@keyframes liquidDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(20px, -10px, 0) scale(1.08);
  }
}

.app-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: var(--overlay);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.app-popup-card {
  width: min(92vw, 440px);
  border-radius: var(--radius);
  box-shadow: 0 24px 52px rgba(12, 17, 32, 0.24);
  animation: popup-in 220ms cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.size-advisor-overlay {
  position: fixed;
  inset: 0;
  z-index: 1210;
  display: grid;
  place-items: center;
  padding: 1rem;
  padding-top: calc(1rem + env(safe-area-inset-top));
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

.size-advisor-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(10, 14, 25, 0.42);
  backdrop-filter: blur(6px);
}

.size-advisor-card {
  width: min(92vw, 520px);
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  box-shadow: 0 24px 52px rgba(12, 17, 32, 0.24);
  max-height: calc(100svh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.size-reco-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 20, 30, 0.14);
  background: rgba(255, 255, 255, 0.9);
}

.app-toast-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 1150;
  display: grid;
  place-items: center;
  padding: 0 1rem;
  pointer-events: none;
}

.app-toast {
  width: min(92vw, 520px);
  border-radius: var(--radius);
  box-shadow: 0 20px 46px rgba(12, 17, 32, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 0.9rem;
  pointer-events: auto;
}

.app-toast-message {
  font-weight: 600;
}

.app-toast-info {
  border: 1px solid rgba(111, 130, 162, 0.24);
  background: rgba(255, 255, 255, 0.92);
}

.app-toast-success {
  border: 1px solid rgba(40, 160, 92, 0.28);
  background: rgba(235, 252, 242, 0.92);
}

.app-toast-error {
  border: 1px solid rgba(205, 68, 80, 0.28);
  background: rgba(255, 244, 245, 0.92);
}

.list-controls {
  gap: 0.55rem;
  flex-wrap: wrap;
}

@keyframes popup-in {
  from {
    transform: translateY(10px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (max-width: 1200px) {
  .home-hero-shell {
    grid-template-columns: minmax(0, 1fr);
    min-height: 66svh;
  }

  .home-spotlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-trending-grid {
    grid-template-columns: 1fr;
  }

  .studio-workbench {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  }

  .studio-react-layout {
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr) minmax(0, 1fr);
  }

  .studio-panel-right {
    grid-column: 1 / -1;
  }

  .studio-react-order {
    grid-column: 1 / -1;
  }

  .layout-builder-main {
    grid-template-columns: 1fr;
  }

  .dashboard-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .shell::before {
    animation: none;
    transform: none;
    opacity: 0.35;
  }

  .home-hero-shell {
    grid-template-columns: 1fr;
    padding: 1rem 0.85rem;
    border-radius: 20px;
    min-height: 76svh;
  }

  .home-hero-copy {
    order: 1;
    background: rgba(255, 255, 255, 0.64);
    gap: 0.85rem;
  }

  .home-photo-main img {
    object-position: center 18%;
  }

  .home-hero-copy .toolbar {
    flex-wrap: wrap;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .home-hero-copy .button,
  .home-hero-copy .button-ghost {
    width: 100%;
    padding: 0.95rem 1.25rem;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .home-hero-rail {
    order: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 0.55rem;
    padding: 0.15rem;
  }

  .home-float-card {
    width: min(100%, 120px);
    border-radius: 14px;
  }

  .home-spotlight-grid {
    grid-template-columns: 1fr;
  }

  .home-trending-grid {
    grid-template-columns: 1fr;
  }

  .scroll-word {
    transform: none;
    will-change: auto;
  }

  .studio-workbench,
  .studio-react-layout,
  .checkout-layout,
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .page {
    padding: 1.15rem 0 4rem;
    gap: 1rem;
  }

  .dashboard-data-grid {
    grid-template-columns: 1fr;
  }

  .studio-tool-grid {
    grid-template-columns: none;
  }

  .studio-panel-right {
    grid-column: auto;
  }

  .studio-canvas {
    width: min(100%, 520px);
  }

  .three-preview-canvas {
    aspect-ratio: 1 / 1;
  }

  .studio-zone-board {
    width: 100%;
  }

  .studio-canvas-rig {
    width: min(100%, var(--board-width, 520px));
    /* Keep rulers out of the canvas area even on mobile. */
    --ruler-size: 1.65rem;
    padding: var(--ruler-size);
  }

  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.7rem 0;
    direction: ltr;
  }

  .brand-center {
    justify-self: center;
    order: 0;
  }

  .brand-logo {
    width: min(210px, 58vw);
    max-height: 54px;
    max-width: 100%;
  }

  .nav-left,
  .actions-right {
    display: none;
  }

  .mobile-header-edge,
  .mobile-menu-drawer {
    display: block;
  }

  .mobile-header-profile {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 0.55rem;
  }

  .mobile-header-menu {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.55rem;
  }

  .mobile-menu-sheet .row {
    flex-wrap: nowrap;
  }

  :root {
    /* Keep header crisp on iOS: overlay starts below sticky header height. */
    --mobile-menu-top: calc(env(safe-area-inset-top, 0px) + 70px);
  }

  .mobile-menu-backdrop,
  .mobile-menu-drawer {
    inset: auto;
    left: 0;
    right: 0;
    bottom: 0;
    top: var(--mobile-menu-top);
    height: calc(100svh - var(--mobile-menu-top));
  }

  .mobile-menu-sheet {
    min-height: calc(100svh - var(--mobile-menu-top));
    padding-top: 1rem;
  }

  .mobile-menu-backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(12, 14, 18, 0.58);
  }

  .mobile-menu-links,
  .mobile-menu-meta {
    box-shadow: 0 22px 60px rgba(15, 17, 21, 0.16);
  }

  .studio-mobile-dock {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.96);
  }

  .studio-mobile-sheet-backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .studio-guide-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
  }

  .studio-draw-overlay {
    align-items: flex-end;
    padding: 0.85rem;
    top: var(--mobile-menu-top);
    height: calc(100svh - var(--mobile-menu-top));
  }

  .studio-draw-card {
    width: min(calc(100vw - 1rem), 42rem);
    height: min(calc(100% - 0.4rem), 44rem);
    padding: 0.85rem;
  }

  .studio-draw-hint {
    left: 0.6rem;
    bottom: 0.6rem;
    max-width: calc(100% - 1.2rem);
  }

  .studio-guide-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(
      circle var(--guide-r, 170px) at var(--guide-x, 50%) var(--guide-y, 40%),
      rgba(12, 14, 18, 0) 0%,
      rgba(12, 14, 18, 0) 58%,
      rgba(12, 14, 18, 0.72) 66%,
      rgba(12, 14, 18, 0.78) 100%
    );
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .studio-guide-card {
    position: relative;
    width: min(32rem, calc(100vw - 2rem));
    box-shadow: 0 30px 90px rgba(15, 17, 21, 0.26);
  }

  .studio-guide-copy {
    display: grid;
    gap: 0.35rem;
  }

  .studio-guide-action {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
  }

  .studio-guide-actions {
    justify-content: space-between;
    align-items: center;
  }

  .studio-react-top .tab.studio-guide-help {
    width: 2.2rem;
    min-width: 2.2rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
  }

  .studio-draw-toast {
    position: fixed;
    left: 50%;
    bottom: calc(max(1rem, env(safe-area-inset-bottom, 0px) + 0.85rem) + 4.1rem + var(--footer-avoid-offset, 0px));
    transform: translateX(-50%);
    z-index: 70;
    width: min(calc(100vw - 1rem), 34rem);
    padding: 0 0.5rem;
  }

  .studio-draw-toast-card {
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    box-shadow: 0 22px 70px rgba(15, 17, 21, 0.22);
    background: rgba(255, 255, 255, 0.98);
  }

  .studio-react-top .row {
    gap: 0.7rem;
    justify-content: space-between;
  }

  .studio-react-top .tabs {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scroll-snap-type: x proximity;
  }

  .studio-react-top .tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .studio-react-layout {
    gap: 0.7rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .studio-react-center {
    order: 1;
    grid-column: 1 / -1;
  }

  .studio-react-panel {
    display: none;
  }

  .studio-react-preview {
    order: 2;
    grid-column: 1 / -1;
  }

  .studio-react-order {
    order: 3;
    grid-column: 1 / -1;
  }

  .studio-zone-board {
    border-radius: 20px;
  }

  .printable-guide {
    border-width: 2.5px;
  }

  .printable-guide span {
    font-size: 0.58rem;
  }

  .zone-layer.selected {
    outline-width: 2.5px;
    box-shadow: 0 0 0 5px rgba(15, 17, 21, 0.16);
  }

  .layer-scale-handle {
    right: -16px;
    bottom: -16px;
    width: 34px;
    height: 34px;
  }

  .layer-rotate-handle {
    top: -28px;
    width: 28px;
    height: 28px;
  }

  .zone-layer.text,
  .zone-layer.image {
    min-height: 24px;
  }

  .mobile-menu-sheet {
    width: min(100%, calc(100vw - 1.4rem));
  }

  .mobile-menu-stack {
    width: 100%;
  }

  .mobile-menu-links a,
  .mobile-menu-meta .button,
  .mobile-menu-meta .button-ghost {
    min-height: 3.4rem;
  }

  .studio-mobile-dock,
  .studio-mobile-sheet,
  .studio-mobile-sheet-backdrop {
    display: block;
  }

  .studio-mobile-dock {
    position: fixed;
    left: 50%;
    bottom: calc(max(0.85rem, env(safe-area-inset-bottom, 0px) + 0.7rem) + var(--footer-avoid-offset, 0px));
    transform: translateX(-50%) translateY(18px);
    width: min(calc(100vw - 1rem), 30rem);
    padding: 0.42rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid rgba(16, 20, 30, 0.1);
    box-shadow: 0 24px 70px rgba(15, 17, 21, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    z-index: 28;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms var(--ease-fluid), transform 260ms var(--ease-fluid);
  }

  .studio-mobile-dock.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .studio-mobile-dock .button-ghost {
    min-width: 0;
    min-height: 3.1rem;
    padding: 0.6rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    border-color: rgba(16, 20, 30, 0.08);
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .studio-mobile-dock .button-ghost.active {
    background: var(--ink);
    color: #fff;
  }

.studio-mobile-dock .icon-bubble {
  flex-shrink: 0;
}

.studio-mobile-dock .icon-bubble {
  margin-inline-end: 0.35rem;
}

  .studio-mobile-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 27;
    background: rgba(10, 14, 20, 0.3);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms var(--ease-fluid);
  }

  .studio-mobile-sheet-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .studio-mobile-sheet {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 29;
    padding: 0 0.7rem max(1rem, calc(env(safe-area-inset-bottom, 0px) + 0.8rem));
    opacity: 0;
    pointer-events: none;
    transform: translateY(28px);
    transition: opacity 240ms var(--ease-fluid), transform 280ms var(--ease-fluid);
  }

  .studio-mobile-sheet.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .studio-mobile-sheet-panel {
    width: min(100%, 32rem);
    margin: 0 auto;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 20, 30, 0.1);
    box-shadow: 0 30px 70px rgba(15, 17, 21, 0.2);
    backdrop-filter: blur(20px);
    max-height: min(70svh, 38rem);
    overflow: hidden;
  }

  .studio-mobile-sheet-panel .row {
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
  }

  .studio-mobile-sheet-body {
    overflow: auto;
    max-height: calc(min(70svh, 38rem) - 4.6rem);
    padding-right: 0.15rem;
  }

  .mobile-sheet-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .mobile-sheet-tabs .tab {
    flex: 0 0 auto;
  }

  .studio-mobile-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .studio-mobile-tools .studio-tool-icon {
    min-height: 4rem;
    border-radius: 22px;
    justify-content: flex-start;
    padding-inline: 0.95rem;
  }

  .studio-mobile-tools .studio-tool-icon span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .studio-react-center,
  .studio-react-preview,
  .studio-react-order {
    scroll-margin-top: 5.75rem;
  }

  .studio-react-page {
    padding-bottom: 8rem;
  }

  .studio-zone-board,
  .zone-layer,
  .layer-scale-handle,
  .layer-rotate-handle {
    touch-action: none;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-details-panel {
    position: static;
  }

  .three-preview-host {
    width: 100%;
  }

  .design-grid {
    grid-template-columns: 1fr;
  }

  .design-grid.discover-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .layout-builder-grid {
    grid-template-columns: 1fr;
  }

  .layout-builder-canvas-wrap {
    overflow: auto;
  }

  .layout-builder-properties {
    max-height: none;
  }
}

@media (max-width: 1024px) {
  .footer-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  :root {
    --radius: 20px;
    --radius-soft: 16px;
    --shadow: 0 14px 34px rgba(9, 19, 38, 0.07);
  }

  .container {
    width: min(1360px, calc(100% - 2.6rem));
  }

  .card {
    padding: 1.1rem;
  }

  .compact-box {
    padding: 0.85rem 0.9rem;
  }

  .stack,
  .section,
  .hero,
  .journey,
  .design-grid,
  .live-preview-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .studio-layout,
  .checkout-layout {
    gap: 1rem;
  }

  .eyebrow {
    font-size: 0.66rem;
  }

  .title-xl {
    font-size: clamp(1.85rem, 8.4vw, 2.4rem);
  }

  .title-lg {
    font-size: clamp(1.3rem, 6.4vw, 1.85rem);
  }

  .home-hero-copy .button .icon-bubble,
  .home-hero-copy .button-ghost .icon-bubble {
    display: none;
  }

  .button,
  .button-ghost,
  .tab {
    padding: 0.68rem 0.95rem;
    font-size: 0.92rem;
  }

  .compact-btn {
    padding: 0.52rem 0.82rem;
  }

  .input,
  .select,
  .textarea {
    border-radius: 16px;
    padding: 0.74rem 0.84rem;
  }

  .footer-layout {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
    padding: 1.2rem 0;
  }

  .footer-layout > .footer-brand,
  .footer-layout > .footer-newsletter {
    grid-column: 1 / -1;
  }

  .footer {
    margin-top: 1rem;
  }

  .footer-social-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.65rem;
  }

  .footer-col {
    gap: 0.22rem;
  }

  .footer-col-title {
    font-size: 0.64rem;
    margin-bottom: 0.16rem;
  }

  .footer-link {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .footer-social-links {
    gap: 0.42rem;
  }

  .social-icon-img {
    width: 18px;
    height: 18px;
    border-radius: 6px;
  }
}

.guide-search-row {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
  max-width: 760px;
}

.guide-search {
  flex: 1;
  min-width: 240px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.guide-card {
  overflow: hidden;
}

.guide-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.guide-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 70px rgba(10, 12, 16, 0.08);
}

.guide-card-title {
  margin: 0;
  font-size: 1.05rem;
}

.guide-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1;
}

.guide-breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.guide-article {
  max-width: 980px;
  margin-inline: auto;
}

.guide-list {
  margin: 0;
  padding-left: 1.2rem;
}

.guide-article a,
.guide-list a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.guide-article a:hover,
.guide-list a:hover {
  text-decoration: underline;
}

.guide-article .button,
.guide-article .button-ghost,
.guide-grid .button,
.guide-grid .button-ghost {
  color: #fff !important;
  opacity: 1 !important;
}

.guide-breadcrumb .button-ghost {
  color: #111 !important;
}

.guide-shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.guide-shot {
  margin: 0;
}

.guide-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
}

@media (max-width: 720px) {
  .guide-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .guide-tags {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shell::before,
  .liquid-card::after,
  .page > * {
    animation: none;
  }

  .card,
  .button,
  .button-ghost,
  .tab,
  .nav a,
  .journey-step,
  .pose-card,
  .pose-card > img,
  .scroll-word,
  .home-float-card {
    transition: none;
  }

  .mobile-menu-backdrop,
  .mobile-menu-drawer,
  .mobile-menu-sheet,
  .mobile-menu-stack,
  .mobile-menu-links a,
  .mobile-menu-meta {
    transition: none;
  }

  .home-float-card {
    transform: none;
  }

  .scroll-word {
    transform: none;
  }
}

/* ------------------------------ */
/* Lightweight Home (text-first)  */
/* ------------------------------ */

.home-lite {
  gap: 1rem;
}

.home-lite-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.25rem;
  align-items: center;
  overflow: hidden;
  background: transparent;
  padding: 0.85rem;
}

.home-lite-hero-right {
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 3;
}

.home-lite-hero-left {
  position: relative;
  z-index: 3;
  background: rgba(var(--paper-rgb), 0.82);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.05rem 1.1rem;
}

.home-lite-hero-media {
  width: 100%;
  max-width: 480px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(var(--paper-rgb), 0.7);
  box-shadow: 0 22px 55px rgba(26, 25, 22, 0.14);
}

.home-lite-hero-media img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.home-lite-trending {
  padding: 1.05rem 1.15rem;
}

.home-lite-3d-real {
  padding: 1.05rem 1.15rem;
  display: grid;
  gap: 0.9rem;
}

.home-lite-3d-real-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.home-lite-3d-real-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
}

.home-lite-3d-real-panel {
  min-width: 0;
  padding: 0.8rem;
}

.home-lite-3d-real-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10, 115, 55, 0.95);
  margin-bottom: 0.55rem;
}

.home-lite-3d-real-preview {
  width: 100%;
}

.home-lite-3d-real-preview .three-preview-host,
.home-lite-3d-real-preview .three-lazy-wrap,
.home-lite-3d-real-preview .three-preview-stage,
.home-lite-3d-real-preview .three-preview-frame,
.home-lite-3d-real-preview .three-preview-canvas {
  width: 100%;
}

.home-lite-3d-real-preview .three-preview-canvas {
  aspect-ratio: 1 / 1;
}

.home-lite-3d-real-chevron {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: rgba(26, 25, 22, 0.72);
  background: rgba(var(--paper-rgb), 0.95);
  border: 1px solid var(--line);
  box-shadow: 0 10px 20px rgba(26, 25, 22, 0.08);
}

.home-lite-3d-real-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(var(--paper-rgb), 0.96), rgba(var(--paper-rgb), 0.72));
}

.home-lite-3d-real-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.home-lite-trending-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.home-trend-card {
  min-width: 0;
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.5rem;
}

.home-trend-card .home-trend-thumb {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(var(--paper-rgb), 0.7);
}

.home-trend-card .home-trend-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-trend-meta {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.home-trend-title {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-trend-sub {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-trend-bottom {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.home-trend-price {
  font-weight: 800;
  font-size: 13px;
}

.home-price-regular {
  font-weight: 800;
}

.home-price-old {
  font-weight: 800;
  color: rgba(140, 20, 20, 0.75);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  margin-inline-end: 0.45rem;
}

.home-price-new {
  font-weight: 900;
  color: rgba(10, 115, 55, 0.95);
}

.home-lite-fabric {
  padding: 1.05rem 1.15rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
}

.home-lite-fabric-points {
  display: grid;
  gap: 0.45rem;
}

.home-lite-how {
  padding: 1.05rem 1.15rem;
}

.home-lite-how-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.7rem;
}

.home-lite-how-step {
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(16, 20, 30, 0.1);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
}

.home-lite-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-lite-creators {
  padding: 1.05rem 1.15rem;
}

.home-lite-creators-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.home-lite-creator {
  min-width: 0;
}

.home-lite-card {
  min-width: 0;
}

.home-lite-trust {
  padding: 0.9rem 1.05rem;
}

.home-lite-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  align-items: center;
}

.home-lite-trust-row .tag {
  justify-content: center;
}

.home-lite-quality {
  padding: 0.85rem;
}

.quality-grid-img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: block;
}

.quality-grid-zoom-btn {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 18px;
}

.quality-grid-zoom-btn:focus-visible {
  outline: 3px solid rgba(80, 120, 255, 0.35);
  outline-offset: 3px;
}

.home-specs {
  margin-top: 0.25rem;
}

.quality-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 12, 16, 0.82);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.quality-zoom-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-out;
}

.quality-zoom-panel {
  width: min(980px, 100%);
  max-height: min(88vh, 980px);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.quality-zoom-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(16, 20, 30, 0.08);
  background: rgba(255, 255, 255, 0.75);
}

.quality-zoom-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.quality-zoom-viewport {
  position: relative;
  background: var(--ink);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pinch-zoom;
}

.quality-zoom-stage {
  width: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.quality-zoom-image {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--ink);
  transform-origin: center;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 980px) {
  .home-lite-hero {
    grid-template-columns: 1fr;
    padding: 0.8rem;
  }
  .home-lite-hero-right {
    display: flex;
    justify-content: center;
    order: -1;
  }
  .home-lite-hero-media {
    max-width: 520px;
  }
  .home-lite-hero-media img {
    max-height: 360px;
  }
  .home-lite-how-row {
    grid-template-columns: 1fr;
  }
  .home-lite-3d-real-grid {
    grid-template-columns: 1fr;
  }
  .home-lite-3d-real-chevron {
    transform: rotate(90deg);
    margin: 0 auto;
  }
  .home-lite-split {
    grid-template-columns: 1fr;
  }
  .home-lite-trending-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-lite-creators-grid {
    grid-template-columns: 1fr;
  }
  .home-lite-trust-row {
    grid-template-columns: 1fr;
  }
  .home-lite-fabric {
    grid-template-columns: 1fr;
  }
  .home-premium-strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-how-band-inner {
    grid-template-columns: 1fr;
  }
  .home-how-steps {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* Premium dark‑purple brand overrides (visual only, no layout changes).        */
/* -------------------------------------------------------------------------- */

body {
  background:
    radial-gradient(1200px 520px at 18% -10%, rgba(var(--accent-rgb), 0.1), transparent 62%),
    radial-gradient(980px 520px at 92% 12%, rgba(15, 122, 90, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

#boot-loader {
  background:
    radial-gradient(1200px 520px at 18% -10%, rgba(var(--accent-rgb), 0.1), transparent 62%),
    radial-gradient(980px 520px at 92% 12%, rgba(15, 122, 90, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.boot-loader-inner {
  background: rgba(var(--paper-rgb), 0.92);
  border-color: var(--line);
  box-shadow: 0 22px 70px rgba(26, 25, 22, 0.16), 0 0 0 1px rgba(var(--accent-rgb), 0.08);
}

.boot-loader-title,
.boot-loader-subtitle {
  color: var(--ink);
}

.boot-loader-note .muted {
  color: var(--muted);
}

.boot-loader-copy::after {
  background:
    linear-gradient(90deg, transparent 0%, rgba(var(--accent-rgb), 0.5) 40%, transparent 80%),
    rgba(var(--paper-rgb), 0.7);
}

.home-premium-strip {
  padding: 1.1rem 1.15rem;
}

/* -------------------------------------------------------------------------- */
/* Global theme enforcement (ensure shared surfaces inherit the light system).  */
/* -------------------------------------------------------------------------- */

/* Mobile menu: remove white sheets and chips. */
.mobile-menu-links,
.mobile-menu-meta {
  background: rgba(var(--paper-rgb), 0.96) !important;
  border-color: var(--line) !important;
  box-shadow: 0 26px 74px rgba(26, 25, 22, 0.16);
}

.mobile-menu-links a {
  background: var(--soft) !important;
  color: var(--ink) !important;
}

.mobile-menu-links a.active,
.mobile-menu-links a:hover {
  background: var(--accent-weak) !important;
  color: var(--ink) !important;
}

.mobile-profile-link,
.mobile-menu-toggle {
  background: rgba(var(--paper-rgb), 0.92) !important;
  border-color: var(--line) !important;
  box-shadow: 0 12px 34px rgba(26, 25, 22, 0.12);
}

.mobile-menu-toggle.active {
  background: rgba(var(--paper-rgb), 0.96) !important;
  box-shadow: 0 16px 40px rgba(26, 25, 22, 0.16);
}

/* Studio top bars: remove light strips (Light + Pro). */
.studio-light-top,
.studio-pro-top {
  background: rgba(var(--paper-rgb), 0.86) !important;
  border-color: var(--line) !important;
  color: var(--ink);
}

/* Studio hints/toasts: remove white pills and cards. */
.studio-draw-hint,
.studio-draw-toast-card {
  background: rgba(var(--paper-rgb), 0.96) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}

.studio-draw-hint .muted,
.studio-draw-toast-card .muted {
  color: var(--muted) !important;
}

/* Preview skeletons: no white placeholders. */
.preview-skeleton {
  border-color: var(--line) !important;
  background: rgba(var(--paper-rgb), 0.7) !important;
  color: rgba(var(--ink-rgb), 0.62) !important;
}

/* Generic preview hosts: remove light gray stage containers. */
.three-preview-host {
  background: rgba(var(--paper-rgb), 0.7) !important;
  border-color: var(--line) !important;
}

/* Popups + pills + toasts: remove light “modal card” look. */
.app-popup-card.card,
.studio-exit-modal.card,
.modal .card {
  background: rgba(var(--paper-rgb), 0.96);
  border-color: var(--line);
  color: var(--ink);
}

.size-reco-pill {
  border-color: var(--line) !important;
  background: rgba(var(--paper-rgb), 0.82) !important;
  color: var(--ink) !important;
}

.app-toast-info,
.app-toast-success,
.app-toast-error {
  background: rgba(var(--paper-rgb), 0.96) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}

.app-toast-success {
  border-color: rgba(15, 122, 90, 0.26) !important;
}

.app-toast-error {
  border-color: rgba(200, 90, 46, 0.32) !important;
}

/* Size chart: prevent forced black text on dark surfaces. */
.studio-size-chart-modal .selected-chip strong,
.size-chart-overlay-modal .selected-chip strong {
  color: inherit !important;
}

/* Studio mobile dock (bottom pills) should not be white. */
.studio-mobile-dock {
  background: rgba(var(--paper-rgb), 0.92) !important;
  border-color: var(--line) !important;
  box-shadow: 0 24px 70px rgba(26, 25, 22, 0.16) !important;
}

/* Orders/admin preview wrappers: remove light containers. */
.order-item-preview,
.admin-order-preview {
  background: rgba(var(--paper-rgb), 0.7) !important;
  border-color: var(--line) !important;
}

.home-premium-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.home-premium-strip-item {
  padding: 0.9rem 0.95rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(var(--paper-rgb), 0.82);
}

.home-how-band {
  padding: 1.1rem 1.15rem;
  background:
    radial-gradient(620px 260px at 10% 20%, rgba(var(--accent-rgb), 0.08), transparent 60%),
    radial-gradient(520px 240px at 88% 30%, rgba(15, 122, 90, 0.06), transparent 62%),
    linear-gradient(135deg, rgba(var(--paper-rgb), 0.78), rgba(var(--paper-rgb), 0.92));
  border-color: var(--line);
}

.home-how-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem;
  align-items: center;
}

.home-how-band-title {
  margin: 0.25rem 0 0;
  white-space: pre-line;
}

.home-how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.home-how-step {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(var(--paper-rgb), 0.82);
  padding: 0.85rem 0.9rem;
}

.home-how-step-title {
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.header {
  background: rgba(var(--paper-rgb), 0.86);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px) saturate(1.05);
}

.header .brand-logo {
  filter: none;
}

.nav a.active,
.nav a:hover {
  background: var(--accent-weak);
  color: var(--ink);
}

.mobile-profile-link,
.mobile-menu-toggle {
  background: rgba(var(--paper-rgb), 0.92);
  box-shadow: 0 12px 34px rgba(26, 25, 22, 0.12);
}

.mobile-menu-toggle span {
  background: var(--ink);
}

.mobile-menu-links,
.mobile-menu-meta {
  background: rgba(var(--paper-rgb), 0.96);
  border-color: var(--line);
}

.mobile-menu-links a {
  background: var(--soft);
  color: var(--ink);
}

.mobile-menu-links a.active {
  background: var(--accent-weak);
}

.button {
  background: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.24);
  color: #fff;
  box-shadow: 0 16px 46px rgba(26, 25, 22, 0.16), 0 0 0 1px rgba(var(--accent-rgb), 0.16);
}

.button:hover {
  background: var(--accent-strong);
  border-color: rgba(var(--accent-rgb), 0.32);
}

.button-ghost,
.tab {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button-ghost:hover,
.tab:hover {
  background: var(--accent-weak);
  border-color: rgba(var(--accent-rgb), 0.25);
}

.tab.active,
.selected-chip {
  background: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.24);
  color: #fff;
}

.badge,
.tag {
  background: rgba(var(--paper-rgb), 0.85);
  border-color: var(--line);
  color: var(--ink);
}

.verified-badge {
  border-color: rgba(15, 122, 90, 0.26);
  background: rgba(15, 122, 90, 0.1);
  color: var(--trust);
}

.input,
.select,
.textarea {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(var(--ink-rgb), 0.52);
}

.price-pill-old {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(var(--paper-rgb), 0.7);
}

.price-pill-new {
  color: #fff;
  border-color: rgba(200, 90, 46, 0.34);
  background: rgba(200, 90, 46, 0.14);
}

.sale-countdown {
  color: var(--coral);
  font-weight: 500;
  border-color: rgba(216, 90, 48, 0.34);
  background: rgba(216, 90, 48, 0.12);
  font-variant-numeric: tabular-nums;
  min-inline-size: 9.5ch;
  box-sizing: border-box;
}

.footer,
.footer a {
  color: rgba(var(--ink-rgb), 0.82);
}

.footer .muted,
.footer .footer-link {
  color: rgba(var(--ink-rgb), 0.62);
}

.footer {
  background:
    radial-gradient(900px 460px at 18% 0%, rgba(var(--accent-rgb), 0.08), transparent 62%),
    linear-gradient(180deg, rgba(var(--paper-rgb), 0.7), rgba(var(--paper-rgb), 0.92));
  border-top-color: var(--line);
}

.footer-layout {
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)) 1.2fr;
  gap: 2rem;
}

.footer-col-title {
  color: rgba(var(--ink-rgb), 0.72);
}

.footer-link {
  color: rgba(var(--ink-rgb), 0.7);
}

.footer-link:hover {
  color: rgba(var(--ink-rgb), 0.9);
}

.footer-brand-title {
  font-family: "Archivo Black", Manrope, "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.footer-muted {
  opacity: 0.7;
}

.footer-newsletter-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.55rem;
  width: 100%;
  flex-wrap: nowrap;
}

.footer-input {
  width: auto;
  flex: 1 1 0%;
  min-width: 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 0.72rem 0.9rem;
}

.footer-input::placeholder {
  color: rgba(var(--ink-rgb), 0.52);
}

.footer-newsletter-submit {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(var(--paper-rgb), 0.92);
  color: rgba(16, 20, 30, 0.75);
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 180ms var(--ease-fluid), border-color 180ms var(--ease-fluid), color 180ms var(--ease-fluid), transform 180ms var(--ease-fluid);
  opacity: 1;
  visibility: visible;
  flex-shrink: 0;
}

.footer-newsletter-submit:disabled {
  opacity: 1;
  visibility: visible;
}

.footer-newsletter-submit:hover {
  transform: translateY(-1px);
}

.footer-newsletter-submit.is-active {
  background: var(--primary);
  border-color: transparent;
  color: var(--paper);
}

.footer-submit-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid currentColor;
  border-left: 0;
  border-top: 0;
  transform: rotate(-45deg);
}

.footer-newsletter-submit.is-loading .footer-submit-chevron {
  display: none;
}

.footer-newsletter-submit .button-spinner {
  margin: 0;
}

.footer-bottom {
  padding: 0 0 1.35rem;
  color: rgba(var(--ink-rgb), 0.55);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .footer-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .footer-layout {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding: 1.9rem 0 2.1rem;
  }

  .footer-layout > .footer-brand,
  .footer-layout > .footer-newsletter {
    grid-column: 1 / -1;
  }
}

/* Home bands that were previously light gradients. */
.home-gallery-strip,
.home-trending-strip {
  background: transparent;
}

.home-spotlight-item {
  background: var(--paper);
  border-color: var(--line);
}

.creator-hub-banner {
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(var(--accent-rgb), 0.08), transparent 55%),
    linear-gradient(180deg, rgba(var(--paper-rgb), 0.7), rgba(var(--paper-rgb), 0.92));
}

.discover-live-link,
.discover-static-link {
  background: rgba(var(--paper-rgb), 0.9);
}

.journey-step {
  background: var(--paper);
}

.oauth-divider span {
  background: transparent;
  color: var(--muted);
}

.home-trend-card .home-trend-thumb,
.quality-grid-img {
  background: rgba(var(--paper-rgb), 0.7);
  border-color: var(--line);
}

#boot-loader {
  background:
    radial-gradient(1200px 520px at 18% -10%, rgba(var(--accent-rgb), 0.1), transparent 62%),
    radial-gradient(980px 520px at 92% 12%, rgba(15, 122, 90, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.boot-loader-inner {
  background: rgba(var(--paper-rgb), 0.92);
  border-color: var(--line);
}

.boot-loader-logo {
  filter: none;
}

.boot-loader-title,
.boot-loader-subtitle {
  color: var(--ink);
}

.layout-builder-hero-overlay button,
.builder-runtime-overlay button,
.builder-super-overlay button {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--ink);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
}

.layout-builder-panel,
.layout-builder-palette-item,
.layout-builder-canvas-wrap {
  background: var(--paper);
  border-color: var(--line);
}

.pose-card {
  background: var(--paper);
}

.studio-canvas-wrap {
  background: linear-gradient(145deg, var(--bg), var(--soft));
}

.logo-preview,
.qr-upload-preview {
  background: rgba(var(--paper-rgb), 0.7);
}

/* Design Studio: keep behavior, retheme surfaces and fix centering. */
.studio-zone-board {
  border-color: var(--line);
  background:
    radial-gradient(110% 86% at 50% 0%, rgba(var(--accent-rgb), 0.08), transparent 58%),
    linear-gradient(180deg, var(--paper) 0%, var(--soft) 100%);
  box-shadow: inset 0 1px 0 rgba(var(--paper-rgb), 0.7), 0 26px 70px rgba(26, 25, 22, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100%;
  min-height: 100%;
}

.studio-canvas-rig {
  margin: 0;
}

/* Remove the “card wrapper” look for the center canvas panel only. */
.studio-react-center.card,
.studio-react-center.card.soft {
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Live Preview: remove outer framing, make the render breathe. */
.studio-react-preview.card,
.studio-react-preview.card.soft {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.three-preview-host {
  background: rgba(var(--paper-rgb), 0.7);
  border-color: var(--line);
}

.three-preview-canvas {
  border-radius: 12px;
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.06), rgba(var(--paper-rgb), 0.82));
}

.three-preview-capture-btn {
  top: 12px;
  left: 12px;
  background: rgba(var(--paper-rgb), 0.92);
  border: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(26, 25, 22, 0.16);
}

.three-preview-gate {
  background: var(--overlay);
}

.three-preview-gate-card {
  background: rgba(var(--paper-rgb), 0.96);
  border-color: var(--line);
  box-shadow: 0 22px 70px rgba(26, 25, 22, 0.16);
}

.preview-skeleton {
  border-color: var(--line);
  background: rgba(var(--paper-rgb), 0.7);
  color: rgba(var(--ink-rgb), 0.62);
}

/* -------------------------------------------------------------------------- */
/* Homepage premium content blocks (index.html injected home).                  */
/* -------------------------------------------------------------------------- */

.home-lite-hero {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(var(--accent-rgb), 0.08), transparent 62%),
    radial-gradient(120% 120% at 92% 0%, rgba(15, 122, 90, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(var(--paper-rgb), 0.78), rgba(var(--paper-rgb), 0.92));
  border-color: var(--line);
}

.home-hero-title,
.home-lite-hero-left .title-xl {
  white-space: pre-line;
}

.home-hero-eyebrow {
  color: var(--muted);
  letter-spacing: 0.12em;
}

.home-hero-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.3rem;
}

.home-hero-trust-row > .ws-carousel {
  grid-column: 1 / -1;
}

.home-hero-trust-item {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(var(--paper-rgb), 0.82);
  padding: 0.62rem 0.72rem;
  display: grid;
  gap: 0.18rem;
}

.home-hero-trust-item strong {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-premium-strip {
  border-color: var(--line);
  background:
    linear-gradient(180deg, rgba(var(--paper-rgb), 0.75), rgba(var(--paper-rgb), 0.92));
}

.home-premium-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.home-premium-item {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(var(--paper-rgb), 0.82);
  padding: 0.9rem 0.95rem;
  display: grid;
  gap: 0.35rem;
}

.home-premium-title {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(var(--ink-rgb), 0.78);
}

.home-how-band {
  border-color: var(--line);
  background:
    radial-gradient(120% 120% at 18% 0%, rgba(var(--accent-rgb), 0.08), transparent 60%),
    linear-gradient(180deg, var(--soft) 0%, var(--soft-2) 100%);
}

.home-how-headline {
  white-space: pre-line;
}

.home-how-steps {
  margin-top: 0.9rem;
}

.home-how-step {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(var(--paper-rgb), 0.82);
  padding: 1rem 1rem;
  display: grid;
  gap: 0.35rem;
}

.home-how-step-title {
  font-weight: 800;
  letter-spacing: 0.02em;
}

@media (max-width: 980px) {
  .home-hero-trust-row {
    grid-template-columns: 1fr;
  }

  .home-premium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .home-how-band-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .home-how-steps {
    grid-template-columns: 1fr;
  }

  .home-premium-strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .home-premium-strip-grid,
  .home-premium-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* Final theme enforcement (light surfaces + blue accent). */
/* -------------------------------------------------------------------------- */

/* Popups/modals: light surfaces with readable black text. */
.app-popup-backdrop .card,
.studio-exit-modal-backdrop .card,
.studio-entry-backdrop .card,
.modal-backdrop .card,
.app-popup-backdrop .app-popup-card,
.app-popup-backdrop .app-popup-card.card,
.studio-entry-backdrop .studio-entry-card,
.studio-exit-modal-backdrop .studio-exit-modal.card {
  background: var(--paper) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}

.app-popup-backdrop .muted,
.studio-exit-modal-backdrop .muted,
.studio-entry-backdrop .muted,
.modal-backdrop .muted {
  color: var(--muted) !important;
}

.app-popup-backdrop strong,
.studio-exit-modal-backdrop strong,
.studio-entry-backdrop strong,
.modal-backdrop strong,
.app-popup-backdrop .eyebrow,
.studio-exit-modal-backdrop .eyebrow,
.studio-entry-backdrop .eyebrow,
.modal-backdrop .eyebrow {
  color: var(--ink) !important;
}

/* Popup buttons: ensure secondary actions are readable on light surfaces. */
.app-popup-backdrop .button-ghost,
.studio-exit-modal-backdrop .button-ghost,
.studio-entry-backdrop .button-ghost,
.modal-backdrop .button-ghost {
  color: var(--ink) !important;
  border-color: var(--accent-ring) !important;
  background: rgba(var(--paper-rgb), 0.4) !important;
}

.app-popup-backdrop .button-ghost:hover,
.studio-exit-modal-backdrop .button-ghost:hover,
.studio-entry-backdrop .button-ghost:hover,
.modal-backdrop .button-ghost:hover {
  background: var(--accent-weak) !important;
}

.checkout-confirm-summary {
  display: grid;
  gap: 0.9rem;
}

.checkout-confirm-items {
  display: grid;
  gap: 0.7rem;
}

.checkout-confirm-item {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.checkout-confirm-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.checkout-confirm-title {
  font-weight: 700;
  line-height: 1.35;
}

.checkout-confirm-meta {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.checkout-confirm-more {
  color: var(--muted);
  font-size: 0.9rem;
}

.checkout-confirm-block {
  line-height: 1.45;
}

/* Return policy: light card + dark text + green accent (always readable). */
.return-policy {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(14, 16, 20, 0.12) !important;
}

.return-policy .eyebrow {
  color: var(--trust) !important;
}

.return-policy-list {
  color: rgba(14, 16, 20, 0.82) !important;
}

.return-policy-list li,
.return-policy p,
.return-policy .muted,
.return-policy small {
  color: rgba(14, 16, 20, 0.78) !important;
}

.return-policy-list li::marker {
  color: var(--trust) !important;
}

/* Mobile menu: make Close button purple + remove remaining light toolbar surface. */
.mobile-menu-toolbar {
  background: var(--paper) !important;
  border-color: var(--line) !important;
  box-shadow: var(--shadow) !important;
}

.mobile-menu-toolbar .button {
  background: var(--accent) !important;
  border-color: rgba(var(--accent-rgb), 0.22) !important;
  color: #fff !important;
}

.mobile-menu-toolbar .button-ghost {
  color: var(--ink) !important;
  border-color: var(--accent-ring) !important;
}

/* Studio mobile sheet: force dark-glass panel (layers/tools sheet). */
.studio-mobile-sheet-panel {
  background: var(--paper) !important;
  border-color: var(--line) !important;
  box-shadow: var(--shadow-2) !important;
}

.studio-mobile-sheet-panel .input,
.studio-mobile-sheet-panel .select,
.studio-mobile-sheet-panel .textarea {
  background: rgba(var(--paper-rgb), 0.8) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}

.studio-mobile-sheet-panel strong,
.studio-mobile-sheet-panel label {
  color: var(--ink) !important;
}

.studio-mobile-sheet-panel .muted {
  color: var(--muted) !important;
}

/* Likes count: avoid black numbers on dark cards. */
.icon-count {
  color: var(--ink) !important;
}

/* Freehand drawing: retheme mobile dock + tools panel (remove white surfaces). */
.studio-draw-mobile-dock {
  background: var(--paper) !important;
  border-color: var(--line) !important;
  box-shadow: var(--shadow-2) !important;
}

.studio-draw-mobile-dock .button-ghost {
  color: var(--ink) !important;
  border-color: var(--accent-ring) !important;
  background: rgba(var(--paper-rgb), 0.5) !important;
}

.studio-draw-mobile-dock .button-ghost.danger {
  border-color: rgba(216, 90, 48, 0.4) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  background: rgba(216, 90, 48, 0.18) !important;
}

.studio-draw-tools-panel {
  background: var(--paper) !important;
  border-color: var(--line) !important;
  box-shadow: var(--shadow-2) !important;
}

.studio-draw-tools-panel strong,
.studio-draw-tools-panel label,
.studio-draw-tools-panel .tab,
.studio-draw-tools-panel .button-ghost {
  color: var(--ink) !important;
}

.studio-draw-tools-panel .muted,
.studio-draw-tools-panel .small {
  color: var(--muted) !important;
}

.studio-draw-tools-panel .input,
.studio-draw-tools-panel .select,
.studio-draw-tools-panel .textarea {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

.studio-draw-canvas-wrap {
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

/* Price pills: avoid black text on light pills across the dark site. */
.price-pill {
  background: rgba(var(--paper-rgb), 0.92) !important;
  border-color: var(--line) !important;
  color: rgba(var(--ink-rgb), 0.92) !important;
}

.price-pill-old {
  background: rgba(216, 90, 48, 0.14) !important;
  border-color: rgba(216, 90, 48, 0.24) !important;
  color: rgba(var(--ink-rgb), 0.7) !important;
}

.price-pill-new {
  background: rgba(var(--accent-rgb), 0.06) !important;
  border-color: rgba(var(--accent-rgb), 0.18) !important;
  color: rgba(var(--ink-rgb), 0.92) !important;
}

.btn-lg { padding: 0.85rem 1.75rem !important; font-size: 1.05rem !important; }



/* ==========================================================================
   CONVERSION OPTIMIZATIONS & PREMIUM UX STYLES
   ========================================================================== */

/* Search Wrapper & Containers */
.site-search-wrapper {
  position: relative;
  width: 280px;
  max-width: 100%;
}

.site-search-input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.site-search-input {
  width: 100%;
  padding: 0.55rem 2.4rem 0.55rem 0.85rem !important;
  font-size: 0.92rem;
  border-radius: 99px !important;
  border: 1px solid var(--line) !important;
  background: var(--paper-soft) !important;
  transition: all 0.25s ease;
}

.site-search-input:focus {
  border-color: var(--primary) !important;
  background: var(--paper) !important;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12) !important;
}

.site-search-icon {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.site-search-clear {
  position: absolute;
  left: 0.72rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}

/* Suggestions Dropdown Card */
.site-search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 320px;
  max-height: 440px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 100;
  overflow-y: auto;
  display: none;
  padding: 0.85rem;
}

.suggestion-group {
  margin-bottom: 0.85rem;
}

.suggestion-group:last-child {
  margin-bottom: 0;
}

.suggestion-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--line);
}

.suggestion-group-items {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Individual Suggestion Items */
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  color: var(--text) !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  transition: background 0.15s ease;
  background: none;
  border: none;
  text-align: right;
  width: 100%;
  cursor: pointer;
}

.suggestion-item:hover {
  background: var(--paper-soft);
}

.suggestion-item svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Product Suggestion Row */
.suggestion-item.product-item {
  justify-content: space-between;
}

.product-item-img-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--paper-soft);
  overflow: hidden;
  flex-shrink: 0;
}

.product-item-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: right;
  margin-right: 0.5rem;
}

.product-item-title {
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.2;
}

.product-item-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.product-item-price {
  font-weight: 700;
  font-size: 0.85rem;
}

.search-suggestion-no-results {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 1rem 0.5rem;
  text-align: center;
}

/* Mobile Search Overlay */
.mobile-search-dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--paper);
  z-index: 200;
  padding: 1rem 0;
  animation: slideSearchIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  overflow-y: auto;
}

@keyframes slideSearchIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.mobile-search-input-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mobile-search-close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

.mobile-suggestions-dropdown {
  position: static;
  width: 100%;
  border: none;
  box-shadow: none;
  display: block;
  max-height: none;
  background: transparent;
  padding: 0;
}

.search-suggestion-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 2.5rem 1rem;
}

/* Desktop Hide rules */
@media (max-width: 950px) {
  .desktop-search-only {
    display: none !important;
  }
}

/* ==========================================
   REVIEWS & RATINGS DESIGN SYSTEM
   ========================================== */
.product-reviews-section {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}

.reviews-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.25fr;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.product-reviews-section .checkout-trust-row {
  margin: 0.9rem 0;
}

.product-reviews-section .review-form-collapsible {
  margin-top: 0.9rem;
}

@media (max-width: 768px) {
  .reviews-summary-grid {
    grid-template-columns: 1fr;
  }
}

.summary-stats-card {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.rating-huge-number {
  font-size: 3.2rem;
  font-weight: 850;
  line-height: 1;
  color: var(--text);
}

/* Rating distribution bars */
.distribution-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.distribution-row span {
  width: 48px;
  flex-shrink: 0;
}

.distribution-row span:last-child {
  width: 32px;
  text-align: left;
}

.bar-container {
  flex: 1;
  height: 8px;
  background: var(--paper-soft);
  border-radius: 99px;
  overflow: hidden;
}

.bar-container .bar {
  height: 100%;
  background: #FFB800;
  border-radius: 99px;
  transition: width 0.5s ease;
}

/* Size fit interactive meter */
.size-fit-card {
  padding: 1.2rem;
  justify-content: center;
}

.fit-meter-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.fit-label-group {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.fit-bar-container {
  position: relative;
  height: 8px;
  background: var(--paper-soft);
  border-radius: 99px;
  margin: 0.2rem 0;
}

.fit-bar {
  position: absolute;
  height: 100%;
  background: var(--primary);
  opacity: 0.25;
  border-radius: 99px;
}

.fit-pointer {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Checkout Trust Badges row */
.checkout-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}

@media (max-width: 768px) {
  .checkout-trust-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trust-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.trust-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.trust-text strong {
  font-size: 0.9rem;
}

/* Review Cards styles */
.review-card {
  padding: 1.2rem;
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.review-author-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.verified-buyer-badge {
  background: rgba(10, 115, 55, 0.1);
  color: rgba(10, 115, 55, 0.95);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 99px;
  line-height: 1;
}

.review-photo-wrapper {
  margin-top: 0.5rem;
  width: 110px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.review-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.review-photo:hover {
  transform: scale(1.05);
}

/* Frictionless Auth Overlay custom styling */
.frictionless-login-modal {
  text-align: center;
}

.google-login-btn-container {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Hero Toolbar Button Enhancements */
.home-lite-hero-left .toolbar {
  margin: 1rem 0 1.25rem 0 !important;
  gap: 0.75rem;
}

.home-lite-hero-left .toolbar .button,
.home-lite-hero-left .toolbar .button-ghost {
  padding: 0.85rem 1.75rem !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  border-radius: 99px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 15px rgba(10, 80, 255, 0.15) !important;
}

.home-lite-hero-left .toolbar .button {
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
}

.home-lite-hero-left .toolbar .button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(10, 80, 255, 0.25) !important;
  filter: brightness(1.1) !important;
}

.home-lite-hero-left .toolbar .button-ghost {
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1.5px solid var(--line) !important;
  color: var(--text) !important;
  backdrop-filter: blur(8px) !important;
}

.home-lite-hero-left .toolbar .button-ghost:hover {
  background: var(--paper-soft) !important;
  transform: translateY(-2px) !important;
  border-color: var(--text) !important;
}

@media (max-width: 520px) {
  .home-lite-hero-left .toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0.6rem !important;
  }
  .home-lite-hero-left .toolbar .button,
  .home-lite-hero-left .toolbar .button-ghost {
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    font-size: 1.1rem !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 520px) {
  .home-premium-cta-toolbar {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.6rem;
  }
  .home-premium-cta-toolbar .button,
  .home-premium-cta-toolbar .button-ghost {
    width: 100%;
    box-sizing: border-box;
  }
}

.home-campaign-banner {
  position: sticky;
  top: var(--ws-sticky-offset, 0px);
  z-index: 50;
  width: 100%;
  min-height: 4.5rem;
  box-sizing: border-box;
}

#home-campaign-banner-host {
  min-height: 4.5rem;
}


/* Premium Sticky Checkout Button on Mobile */
@media screen and (max-width: 768px) {
  .checkout-submit-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.85rem 1.25rem;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    border-top: 1px solid var(--border);
    box-sizing: border-box;
  }
  .checkout-submit-container .checkout-submit-btn {
    width: 100% !important;
    max-width: 100% !important;
    height: 48px;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(103, 61, 230, 0.3) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary) !important;
    color: var(--paper) !important;
    border: none !important;
  }
  .checkout-submit-container .checkout-submit-btn:disabled {
    background: var(--line) !important;
    color: var(--text-muted) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
  }
  .checkout-layout {
    padding-bottom: 0 !important;
  }
}


/* ==========================================================================
   CONVERSION OPTIMIZATIONS & PREMIUM UX STYLES
   ========================================================================== */

/* Search Wrapper & Containers */
.site-search-wrapper {
  position: relative;
  width: 280px;
  max-width: 100%;
}

.site-search-input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.site-search-input {
  width: 100%;
  padding: 0.55rem 2.4rem 0.55rem 0.85rem !important;
  font-size: 0.92rem;
  border-radius: 99px !important;
  border: 1px solid var(--line) !important;
  background: var(--paper-soft) !important;
  transition: all 0.25s ease;
}

.site-search-input:focus {
  border-color: var(--primary) !important;
  background: var(--paper) !important;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12) !important;
}

.site-search-icon {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.site-search-clear {
  position: absolute;
  left: 0.72rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}

/* Suggestions Dropdown Card */
.site-search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 320px;
  max-height: 440px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 100;
  overflow-y: auto;
  display: none;
  padding: 0.85rem;
}

.suggestion-group {
  margin-bottom: 0.85rem;
}

.suggestion-group:last-child {
  margin-bottom: 0;
}

.suggestion-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--line);
}

.suggestion-group-items {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Individual Suggestion Items */
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  color: var(--text) !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  transition: background 0.15s ease;
  background: none;
  border: none;
  text-align: right;
  width: 100%;
  cursor: pointer;
}

.suggestion-item:hover {
  background: var(--paper-soft);
}

.suggestion-item svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Product Suggestion Row */
.suggestion-item.product-item {
  justify-content: space-between;
}

.product-item-img-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--paper-soft);
  overflow: hidden;
  flex-shrink: 0;
}

.product-item-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: right;
  margin-right: 0.5rem;
}

.product-item-title {
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.2;
}

.product-item-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.product-item-price {
  font-weight: 700;
  font-size: 0.85rem;
}

.search-suggestion-no-results {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 1rem 0.5rem;
  text-align: center;
}

/* Mobile Search Overlay */
.mobile-search-dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--paper);
  z-index: 200;
  padding: 1rem 0;
  animation: slideSearchIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  overflow-y: auto;
}

@keyframes slideSearchIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.mobile-search-input-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mobile-search-close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

.mobile-suggestions-dropdown {
  position: static;
  width: 100%;
  border: none;
  box-shadow: none;
  display: block;
  max-height: none;
  background: transparent;
  padding: 0;
}

.search-suggestion-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 2.5rem 1rem;
}

/* Desktop Hide rules */
@media (max-width: 950px) {
  .desktop-search-only {
    display: none !important;
  }
}

/* ==========================================
   REVIEWS & RATINGS DESIGN SYSTEM
   ========================================== */
.product-reviews-section {
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
  margin-top: 2.5rem;
}

.reviews-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.25fr;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .reviews-summary-grid {
    grid-template-columns: 1fr;
  }
}

.summary-stats-card {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.rating-huge-number {
  font-size: 3.2rem;
  font-weight: 850;
  line-height: 1;
  color: var(--text);
}

/* Rating distribution bars */
.distribution-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.distribution-row span {
  width: 48px;
  flex-shrink: 0;
}

.distribution-row span:last-child {
  width: 32px;
  text-align: left;
}

.bar-container {
  flex: 1;
  height: 8px;
  background: var(--paper-soft);
  border-radius: 99px;
  overflow: hidden;
}

.bar-container .bar {
  height: 100%;
  background: #FFB800;
  border-radius: 99px;
  transition: width 0.5s ease;
}

/* Size fit interactive meter */
.size-fit-card {
  padding: 1.2rem;
  justify-content: center;
}

.fit-meter-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.fit-label-group {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.fit-bar-container {
  position: relative;
  height: 8px;
  background: var(--paper-soft);
  border-radius: 99px;
  margin: 0.2rem 0;
}

.fit-bar {
  position: absolute;
  height: 100%;
  background: var(--primary);
  opacity: 0.25;
  border-radius: 99px;
}

.fit-pointer {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Checkout Trust Badges row */
.checkout-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}

@media (max-width: 768px) {
  .checkout-trust-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trust-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.trust-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.trust-text strong {
  font-size: 0.9rem;
}

/* Review Cards styles */
.review-card {
  padding: 1.2rem;
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.review-author-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.verified-buyer-badge {
  background: rgba(10, 115, 55, 0.1);
  color: rgba(10, 115, 55, 0.95);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 99px;
  line-height: 1;
}

.review-photo-wrapper {
  margin-top: 0.5rem;
  width: 110px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.review-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.review-photo:hover {
  transform: scale(1.05);
}

/* Frictionless Auth Overlay custom styling */
.frictionless-login-modal {
  text-align: center;
}

.google-login-btn-container {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ==========================================================================
   CONVERSION OPTIMIZATIONS & PREMIUM UX STYLES
   ========================================================================== */

/* Search Wrapper & Containers */
.site-search-wrapper {
  position: relative;
  width: 280px;
  max-width: 100%;
}

.site-search-input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.site-search-input {
  width: 100%;
  padding: 0.55rem 2.4rem 0.55rem 0.85rem !important;
  font-size: 0.92rem;
  border-radius: 99px !important;
  border: 1px solid var(--line) !important;
  background: var(--paper-soft) !important;
  transition: all 0.25s ease;
}

.site-search-input:focus {
  border-color: var(--primary) !important;
  background: var(--paper) !important;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12) !important;
}

.site-search-icon {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.site-search-clear {
  position: absolute;
  left: 0.72rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}

/* Suggestions Dropdown Card */
.site-search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 320px;
  max-height: 440px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 100;
  overflow-y: auto;
  display: none;
  padding: 0.85rem;
}

.suggestion-group {
  margin-bottom: 0.85rem;
}

.suggestion-group:last-child {
  margin-bottom: 0;
}

.suggestion-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--line);
}

.suggestion-group-items {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Individual Suggestion Items */
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  color: var(--text) !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  transition: background 0.15s ease;
  background: none;
  border: none;
  text-align: right;
  width: 100%;
  cursor: pointer;
}

.suggestion-item:hover {
  background: var(--paper-soft);
}

.suggestion-item svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Product Suggestion Row */
.suggestion-item.product-item {
  justify-content: space-between;
}

.product-item-img-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--paper-soft);
  overflow: hidden;
  flex-shrink: 0;
}

.product-item-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: right;
  margin-right: 0.5rem;
}

.product-item-title {
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.2;
}

.product-item-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.product-item-price {
  font-weight: 700;
  font-size: 0.85rem;
}

.search-suggestion-no-results {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 1rem 0.5rem;
  text-align: center;
}

/* Mobile Search Overlay */
.mobile-search-dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--paper);
  z-index: 200;
  padding: 1rem 0;
  animation: slideSearchIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  overflow-y: auto;
}

@keyframes slideSearchIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.mobile-search-input-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mobile-search-close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

.mobile-suggestions-dropdown {
  position: static;
  width: 100%;
  border: none;
  box-shadow: none;
  display: block;
  max-height: none;
  background: transparent;
  padding: 0;
}

.search-suggestion-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 2.5rem 1rem;
}

/* Desktop Hide rules */
@media (max-width: 950px) {
  .desktop-search-only {
    display: none !important;
  }
}

/* ==========================================
   REVIEWS & RATINGS DESIGN SYSTEM
   ========================================== */
.product-reviews-section {
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
  margin-top: 2.5rem;
}

.reviews-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.25fr;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .reviews-summary-grid {
    grid-template-columns: 1fr;
  }
}

.summary-stats-card {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.rating-huge-number {
  font-size: 3.2rem;
  font-weight: 850;
  line-height: 1;
  color: var(--text);
}

/* Rating distribution bars */
.distribution-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.distribution-row span {
  width: 48px;
  flex-shrink: 0;
}

.distribution-row span:last-child {
  width: 32px;
  text-align: left;
}

.bar-container {
  flex: 1;
  height: 8px;
  background: var(--paper-soft);
  border-radius: 99px;
  overflow: hidden;
}

.bar-container .bar {
  height: 100%;
  background: #FFB800;
  border-radius: 99px;
  transition: width 0.5s ease;
}

/* Size fit interactive meter */
.size-fit-card {
  padding: 1.2rem;
  justify-content: center;
}

.fit-meter-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.fit-label-group {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.fit-bar-container {
  position: relative;
  height: 8px;
  background: var(--paper-soft);
  border-radius: 99px;
  margin: 0.2rem 0;
}

.fit-bar {
  position: absolute;
  height: 100%;
  background: var(--primary);
  opacity: 0.25;
  border-radius: 99px;
}

.fit-pointer {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Checkout Trust Badges row */
.checkout-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}

@media (max-width: 768px) {
  .checkout-trust-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trust-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.trust-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.trust-text strong {
  font-size: 0.9rem;
}

/* Review Cards styles */
.review-card {
  padding: 1.2rem;
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.review-author-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.verified-buyer-badge {
  background: rgba(10, 115, 55, 0.1);
  color: rgba(10, 115, 55, 0.95);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 99px;
  line-height: 1;
}

.review-photo-wrapper {
  margin-top: 0.5rem;
  width: 110px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.review-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.review-photo:hover {
  transform: scale(1.05);
}

/* Frictionless Auth Overlay custom styling */
.frictionless-login-modal {
  text-align: center;
}

.google-login-btn-container {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ==========================================================================
   CONVERSION OPTIMIZATIONS & PREMIUM UX STYLES
   ========================================================================== */

/* Search Wrapper & Containers */
.site-search-wrapper {
  position: relative;
  width: 280px;
  max-width: 100%;
}

.site-search-input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.site-search-input {
  width: 100%;
  padding: 0.55rem 2.4rem 0.55rem 0.85rem !important;
  font-size: 0.92rem;
  border-radius: 99px !important;
  border: 1px solid var(--line) !important;
  background: var(--paper-soft) !important;
  transition: all 0.25s ease;
}

.site-search-input:focus {
  border-color: var(--primary) !important;
  background: var(--paper) !important;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12) !important;
}

.site-search-icon {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.site-search-clear {
  position: absolute;
  left: 0.72rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}

/* Suggestions Dropdown Card */
.site-search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 320px;
  max-height: 440px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 100;
  overflow-y: auto;
  display: none;
  padding: 0.85rem;
}

.suggestion-group {
  margin-bottom: 0.85rem;
}

.suggestion-group:last-child {
  margin-bottom: 0;
}

.suggestion-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--line);
}

.suggestion-group-items {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Individual Suggestion Items */
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  color: var(--text) !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  transition: background 0.15s ease;
  background: none;
  border: none;
  text-align: right;
  width: 100%;
  cursor: pointer;
}

.suggestion-item:hover {
  background: var(--paper-soft);
}

.suggestion-item svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Product Suggestion Row */
.suggestion-item.product-item {
  justify-content: space-between;
}

.product-item-img-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--paper-soft);
  overflow: hidden;
  flex-shrink: 0;
}

.product-item-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: right;
  margin-right: 0.5rem;
}

.product-item-title {
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.2;
}

.product-item-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.product-item-price {
  font-weight: 700;
  font-size: 0.85rem;
}

.search-suggestion-no-results {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 1rem 0.5rem;
  text-align: center;
}

/* Mobile Search Overlay */
.mobile-search-dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--paper);
  z-index: 200;
  padding: 1rem 0;
  animation: slideSearchIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  overflow-y: auto;
}

@keyframes slideSearchIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.mobile-search-input-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mobile-search-close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

.mobile-suggestions-dropdown {
  position: static;
  width: 100%;
  border: none;
  box-shadow: none;
  display: block;
  max-height: none;
  background: transparent;
  padding: 0;
}

.search-suggestion-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 2.5rem 1rem;
}

/* Desktop Hide rules */
@media (max-width: 950px) {
  .desktop-search-only {
    display: none !important;
  }
}

/* ==========================================
   REVIEWS & RATINGS DESIGN SYSTEM
   ========================================== */
.product-reviews-section {
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
  margin-top: 2.5rem;
}

.reviews-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.25fr;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .reviews-summary-grid {
    grid-template-columns: 1fr;
  }
}

.summary-stats-card {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.rating-huge-number {
  font-size: 3.2rem;
  font-weight: 850;
  line-height: 1;
  color: var(--text);
}

/* Rating distribution bars */
.distribution-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.distribution-row span {
  width: 48px;
  flex-shrink: 0;
}

.distribution-row span:last-child {
  width: 32px;
  text-align: left;
}

.bar-container {
  flex: 1;
  height: 8px;
  background: var(--paper-soft);
  border-radius: 99px;
  overflow: hidden;
}

.bar-container .bar {
  height: 100%;
  background: #FFB800;
  border-radius: 99px;
  transition: width 0.5s ease;
}

/* Size fit interactive meter */
.size-fit-card {
  padding: 1.2rem;
  justify-content: center;
}

.fit-meter-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.fit-label-group {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.fit-bar-container {
  position: relative;
  height: 8px;
  background: var(--paper-soft);
  border-radius: 99px;
  margin: 0.2rem 0;
}

.fit-bar {
  position: absolute;
  height: 100%;
  background: var(--primary);
  opacity: 0.25;
  border-radius: 99px;
}

.fit-pointer {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Checkout Trust Badges row */
.checkout-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}

@media (max-width: 768px) {
  .checkout-trust-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trust-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.trust-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.trust-text strong {
  font-size: 0.9rem;
}

/* Review Cards styles */
.review-card {
  padding: 1.2rem;
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.review-author-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.verified-buyer-badge {
  background: rgba(10, 115, 55, 0.1);
  color: rgba(10, 115, 55, 0.95);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 99px;
  line-height: 1;
}

.review-photo-wrapper {
  margin-top: 0.5rem;
  width: 110px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.review-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.review-photo:hover {
  transform: scale(1.05);
}

/* Frictionless Auth Overlay custom styling */
.frictionless-login-modal {
  text-align: center;
}

.google-login-btn-container {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Studio surface tones */
.studio-zone-board.black {
  background: radial-gradient(1200px 520px at 16% 8%, rgba(var(--accent-rgb), 0.14), transparent 58%),
    linear-gradient(145deg, #0b0f15, #06070a);
}
.studio-zone-board.white {
  background: #ffffff;
}

.studio-draw-canvas-wrap.black {
  background: linear-gradient(145deg, #0b0f15, #06070a);
  border-color: rgba(255, 255, 255, 0.14);
}
.studio-draw-canvas-wrap.white {
  background: #ffffff;
  border-color: rgba(16, 20, 30, 0.14);
}

.studio-draw-canvas-wrap.black .studio-draw-bounds {
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
}
.studio-draw-canvas-wrap.white .studio-draw-bounds {
  border-color: rgba(16, 20, 30, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}
/* === SPECIFICATIONS PAGE (Premium Label) === */
.specs-page-wrapper {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(1200px 520px at 18% -10%, rgba(var(--accent-rgb), 0.1), transparent 62%),
              radial-gradient(980px 520px at 92% 12%, rgba(15, 122, 90, 0.08), transparent 60%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--ink);
  overflow-y: auto;
  overflow-x: hidden;
  font-family: 'Manrope', 'Plus Jakarta Sans', sans-serif;
  display: flex;
  flex-direction: column;
}

.specs-bg-glass {
  display: none;
}

.specs-container {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  padding: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.specs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.specs-brand {
  font-family: 'Archivo Black', 'Manrope', sans-serif;
  font-size: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.specs-close-btn {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.2s ease;
}

.specs-close-btn:hover {
  background: var(--soft);
  transform: scale(1.05);
}

.specs-hero {
  text-align: center;
  padding: 20px 0;
}

.specs-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--ink);
}

.specs-subtitle {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.specs-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
}

.specs-card:hover {
  transform: translateY(-4px);
  background: var(--soft);
}

.specs-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.specs-card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.specs-size-chart {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.specs-section-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.specs-table-wrapper {
  overflow-x: auto;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--ink);
}

.specs-table th, .specs-table td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.specs-page-wrapper[dir="rtl"] .specs-table th, 
.specs-page-wrapper[dir="rtl"] .specs-table td {
  text-align: right;
}

.specs-table th {
  font-weight: 700;
  color: var(--ink);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  font-style: italic;
}

/* Active size highlighting in specifications guide */
.specs-active-row {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.08) 0%, transparent 100%) !important;
  border-left: 3px solid var(--accent) !important;
}
.specs-page-wrapper[dir="rtl"] .specs-active-row {
  border-left: none !important;
  border-right: 3px solid var(--accent) !important;
}
.specs-active-row td {
  color: var(--accent) !important;
  font-weight: 700;
}
.specs-active-label {
  display: inline-block;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 800;
  vertical-align: middle;
}

.launch-offer-page {
  gap: 1rem;
}
.launch-offer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 1rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(15, 17, 21, 0.96), rgba(26, 25, 22, 0.92));
}
.launch-offer-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(var(--accent-rgb), 0.2), transparent 62%);
  pointer-events: none;
}
.launch-offer-hero-copy { position: relative; z-index: 1; }
.launch-offer-kicker { font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sand); }
.launch-offer-price-row { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; }
.launch-offer-price-now { font-size: clamp(2rem, 4.8vw, 3.1rem); color: var(--sand); text-shadow: 0 0 24px rgba(var(--accent-rgb), 0.4); }
.launch-offer-price-old { text-decoration: line-through; opacity: 0.8; font-weight: 700; }
.launch-offer-discount { padding: 0.3rem 0.6rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.22); font-weight: 800; font-size: 0.82rem; }
.launch-offer-main-cta { animation: launchOfferCtaGlow 3.2s ease-in-out 2s infinite; }
.launch-offer-hero-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.launch-offer-preview { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: 1rem; align-items: center; }
.launch-offer-preview-rail { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.7rem; align-items: center; }
.launch-proof-tile { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card-2); }
.launch-proof-tile img { width: 100%; height: auto; display: block; aspect-ratio: 1/1; object-fit: cover; }
.launch-proof-tile figcaption { padding: 0.45rem 0.65rem; font-weight: 700; font-size: 0.83rem; }
.launch-proof-arrow { font-size: 1.5rem; opacity: 0.82; animation: launchOfferArrowMove 2.2s ease-in-out infinite; }
.launch-proof-real { box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.24), 0 0 26px rgba(var(--accent-rgb), 0.14); }
.launch-offer-quality-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; }
.launch-quality-card { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--card-2); }
.launch-quality-card img { width: 100%; height: 100%; min-height: 170px; object-fit: cover; display: block; }
.launch-rack-frame { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 0.9fr); gap: 0.65rem; align-items: center; }
.launch-rack-card { min-height: 150px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card-2); }
.launch-rack-card-dim { opacity: 0.33; filter: blur(1.5px); }
.launch-rack-card-focus { padding: 0.7rem; display: grid; gap: 0.5rem; box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.22), 0 0 24px rgba(var(--accent-rgb), 0.1); }
.launch-rack-card-focus img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); }
.launch-rack-price { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.launch-rack-price span { text-decoration: line-through; opacity: 0.78; }
.launch-rack-price em { font-style: normal; font-weight: 800; color: var(--sand); }
.launch-rack-meta { display: grid; gap: 0.2rem; }
.launch-rack-meta span { font-size: 0.85rem; color: var(--text-muted); }
.launch-offer-path { display: flex; gap: 0.45rem; flex-wrap: wrap; align-items: center; font-size: 0.85rem; }
.launch-offer-path span { padding: 0.32rem 0.58rem; border-radius: 999px; border: 1px solid var(--line); }
.launch-offer-path i { font-style: normal; opacity: 0.6; }
.launch-offer-teasers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.launch-offer-teasers img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.launch-offer-final-stamp { width: fit-content; padding: 0.4rem 0.7rem; border-radius: 999px; border: 1px solid rgba(var(--accent-rgb), 0.38); color: var(--sand); box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.15); font-weight: 800; }
@keyframes launchOfferArrowMove {
  0%, 100% { transform: translateX(0); opacity: 0.74; }
  50% { transform: translateX(5px); opacity: 1; }
}
@keyframes launchOfferCtaGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(var(--accent-rgb), 0); }
  50% { box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.36); }
}
@media (max-width: 980px) {
  .launch-offer-hero,
  .launch-offer-preview { grid-template-columns: 1fr; }
  .launch-rack-frame { grid-template-columns: 1fr; }
  .launch-rack-card-dim { display: none; }
}
@media (max-width: 720px) {
  .launch-offer-quality-grid,
  .launch-offer-teasers { grid-template-columns: 1fr; }
}
.specs-page-wrapper[dir="rtl"] .specs-active-label {
  margin-left: 0;
  margin-right: 8px;
}
.specs-lang-toggle {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.2s ease;
  font-family: inherit;
}
.specs-lang-toggle:hover {
  background: var(--soft);
  transform: translateY(-1px);
}

/* ==========================================
   Directive UI Nudges (Patch 2)
   - Rare, contextual, dismissible.
   - Stronger than highlighters.
   ========================================== */

.ws-nudge-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 10px calc(env(safe-area-inset-bottom, 0px) + 8px);
  background: linear-gradient(to top, rgba(var(--ink-rgb), 0.1), rgba(var(--ink-rgb), 0.04) 24%, transparent 56%);
  pointer-events: auto;
  z-index: 10050;
}

.ws-nudge-card {
  width: min(var(--ws-nudge-card-max), 100%);
  max-width: 560px;
  max-height: min(46svh, calc(100svh - env(safe-area-inset-top, 0px) - 16px));
  border-radius: 18px 18px 12px 12px;
  background: rgba(var(--paper-rgb), 0.985);
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  box-shadow: var(--ws-nudge-shadow);
  overflow: hidden;
  pointer-events: auto;
  transform: translateY(18px);
  opacity: 0;
  animation: wsNudgeSheetIn 220ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity;
}

.ws-nudge-card-inner {
  padding: 8px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: auto;
  overscroll-behavior: contain;
}

.ws-nudge-handle {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.22);
  margin: 0 auto 2px auto;
}

.ws-nudge-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 0.95rem;
  margin: 0;
}

.ws-nudge-body {
  margin: 0;
  color: rgba(var(--ink-rgb), 0.72);
  font-size: 0.85rem;
  line-height: 1.32;
}

.ws-nudge-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 0;
}

@keyframes wsNudgeSheetIn {
  from {
    transform: translateY(18px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.ws-nudge-inline {
  margin-top: 12px;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  background: rgba(var(--paper-rgb), 0.92);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(var(--ink-rgb), 0.08);
}

.ws-nudge-inline .ws-nudge-actions {
  justify-content: flex-start;
}

.ws-nudge-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px) + var(--footer-avoid-offset, 0px));
  z-index: 10040;
  border-radius: 18px;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  background: rgba(var(--paper-rgb), 0.96);
  box-shadow: 0 16px 44px rgba(var(--ink-rgb), 0.16);
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.ws-nudge-bar .ws-nudge-bar-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ws-nudge-bar .ws-nudge-title {
  font-size: 0.98rem;
}

.ws-nudge-bar .ws-nudge-body {
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-nudge-bar .ws-nudge-actions {
  padding-top: 0;
  flex-wrap: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .ws-nudge-backdrop {
    background: transparent;
  }
  .ws-nudge-card {
    transform: none;
    opacity: 1;
    animation: none;
  }
}

@media (max-width: 640px) {
  .ws-nudge-backdrop {
    padding: 0 8px calc(env(safe-area-inset-bottom, 0px) + 6px);
  }
  .ws-nudge-card {
    max-width: none;
  }
}


/* Advanced route: deck look as dedicated element (matches requested card style) */
body.ui-advanced-product .product-details-panel {
  gap: 0.9rem;
}

body.ui-advanced-product .product-buy-box {
  background: rgba(249, 249, 252, 0.96);
  border: 1px solid rgba(20, 26, 42, 0.11);
  border-radius: 22px;
  padding: 0.85rem;
  box-shadow: 0 10px 22px rgba(24, 28, 40, 0.08);
}

body.ui-advanced-product .product-buy-row {
  gap: 0.55rem;
}

body.ui-advanced-product .product-buy-size,
body.ui-advanced-product .product-buy-qty,
body.ui-advanced-product .product-buy-help {
  min-height: 48px;
  border-radius: 18px;
  border-color: rgba(20, 26, 42, 0.14);
  background: #f7f6f4;
}

body.ui-advanced-product .product-buy-cta {
  min-height: 52px;
  border-radius: 999px;
  font-size: 1.03rem;
}

body.ui-advanced-product .product-buy-spec {
  text-align: center;
  letter-spacing: 0.02em;
}

body.ui-advanced-product .sale-countdown {
  border: 1px solid rgba(10, 115, 55, 0.24);
  border-radius: 9px;
}

/* Advanced route: minimal page (title + 3d preview + single deck only) */
body.ui-advanced-product .shell > footer {
  display: none;
}

body.ui-advanced-product .page {
  padding-bottom: 1rem;
}

body.ui-advanced-product .advanced-minimal-head {
  padding-bottom: 0.55rem;
}

body.ui-advanced-product .advanced-minimal-stage {
  padding: 0 1rem;
}

body.ui-advanced-product .advanced-minimal-stage .advanced-popup-preview {
  margin: 0 auto;
  width: min(100%, 560px);
  padding: 0.75rem;
}

body.ui-advanced-product .advanced-minimal-stage .advanced-popup-preview .three-preview-host,
body.ui-advanced-product .advanced-minimal-stage .advanced-popup-preview .three-lazy-wrap,
body.ui-advanced-product .advanced-minimal-stage .advanced-popup-preview .three-preview-stage,
body.ui-advanced-product .advanced-minimal-stage .advanced-popup-preview .three-preview-frame,
body.ui-advanced-product .advanced-minimal-stage .advanced-popup-preview .three-preview-canvas {
  width: 100%;
}

body.ui-advanced-product .advanced-minimal-deck-wrap {
  padding-top: 0.85rem;
}

body.ui-advanced-product .advanced-minimal-deck {
  margin: 0 auto;
  max-width: 980px;
}

body.ui-advanced-product .advanced-minimal-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  body.ui-advanced-product .advanced-minimal-stage {
    padding: 0 0.75rem;
  }
  body.ui-advanced-product .advanced-minimal-stage .advanced-popup-preview {
    width: 100%;
    padding: 0.55rem;
  }
  .advanced-popup-preview .three-preview-host,
  .advanced-popup-preview .three-lazy-wrap,
  .advanced-popup-preview .three-preview-stage,
  .advanced-popup-preview .three-preview-frame,
  .advanced-popup-preview .three-preview-canvas {
    width: 100%;
  }
}
