*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: light dark;
  --bg: #eef0fb;
  --bg-alt: #e4e8f8;
  --surface: #ffffff;
  --fg: #1a1830;
  --muted: #5c5780;
  --border: #c8c4e8;
  --accent: #6b5ce7;
  --accent-glow: #3d8f86;
  --nebula-1: rgba(124, 107, 255, 0.14);
  --nebula-2: rgba(78, 205, 196, 0.12);
  --nebula-3: rgba(168, 85, 247, 0.1);
  --shadow-sm: 0 1px 3px rgba(90, 80, 140, 0.08);
  --shadow-md: 0 8px 24px rgba(90, 80, 140, 0.12);
  --shadow-lg: 0 16px 40px rgba(90, 80, 140, 0.16);
  --glow-sm: 0 0 18px rgba(124, 107, 255, 0.16);
  --glow-md: 0 0 28px rgba(124, 107, 255, 0.22), 0 0 48px rgba(78, 205, 196, 0.08);
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --header-control-height: 2.25rem;
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-ui: "Exo 2", system-ui, -apple-system, sans-serif;
  --max-width: 72rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: light dark;
}

body {
  min-height: 100vh;
  font-family: var(--font-ui);
  font-weight: 300;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -10%, var(--nebula-1), transparent 55%),
    radial-gradient(ellipse 55% 45% at 95% 35%, var(--nebula-3), transparent),
    radial-gradient(ellipse 50% 40% at 5% 75%, var(--nebula-2), transparent),
    radial-gradient(1px 1px at 10% 20%, rgba(107, 92, 200, 0.35), transparent),
    radial-gradient(1px 1px at 25% 65%, rgba(107, 92, 200, 0.22), transparent),
    radial-gradient(1px 1px at 40% 15%, rgba(107, 92, 200, 0.28), transparent),
    radial-gradient(1px 1px at 55% 80%, rgba(107, 92, 200, 0.2), transparent),
    radial-gradient(1px 1px at 70% 35%, rgba(107, 92, 200, 0.32), transparent),
    radial-gradient(1px 1px at 85% 55%, rgba(107, 92, 200, 0.25), transparent),
    radial-gradient(1px 1px at 92% 12%, rgba(107, 92, 200, 0.22), transparent),
    radial-gradient(1.5px 1.5px at 18% 88%, rgba(90, 130, 220, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 62% 48%, rgba(90, 130, 220, 0.32), transparent),
    radial-gradient(2px 2px at 78% 72%, rgba(124, 107, 255, 0.45), transparent);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-glow);
}

img {
  max-width: 100%;
}

.page,
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* Legacy product pages published before the site-header template */
.container > header:not(.site-header) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding: 1rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.container > header:not(.site-header) .brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--fg);
}

.container > header:not(.site-header) nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.875rem;
}

.container > header:not(.site-header) nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.container > header:not(.site-header) nav a:hover {
  color: var(--fg);
  background: rgba(124, 107, 255, 0.08);
}

.container > header:not(.site-header) nav a[aria-current="page"] {
  color: var(--fg);
  background: rgba(124, 107, 255, 0.12);
  box-shadow: var(--shadow-sm);
}

/* Live stream nav pill — pulsing red */
.nav-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: #dc2626 !important;
  letter-spacing: 0.04em;
}
.nav-live:hover {
  color: #b91c1c !important;
}
.nav-live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: nav-live-pulse 1.6s ease-out infinite;
  flex-shrink: 0;
}
@keyframes nav-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.65);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 0.55rem rgba(239, 68, 68, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-live-dot {
    animation: none;
  }
}

.promo-banner {
  margin: 0 -1.5rem;
  background: linear-gradient(90deg, rgba(124, 107, 255, 0.12), rgba(78, 205, 196, 0.12));
  border-bottom: 1px solid rgba(124, 107, 255, 0.18);
  text-align: center;
  padding: 0;
  overflow: hidden;
  height: 2.35rem;
  position: relative;
}

.promo-banner-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.promo-banner-item {
  margin: 0;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg);
  opacity: 0;
  transform: translateY(0.35rem);
  animation: promo-banner-swap 8s ease-in-out infinite;
}

.promo-banner-globe {
  flex-shrink: 0;
  opacity: 0.9;
  vertical-align: middle;
}

.promo-banner-item strong {
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent, #6b5ce7);
}

.promo-banner-item-a {
  animation-delay: 0s;
}

.promo-banner-item-b {
  animation-delay: -4s;
}

@keyframes promo-banner-swap {
  0%,
  6% {
    opacity: 0;
    transform: translateY(0.35rem);
  }
  12%,
  44% {
    opacity: 1;
    transform: translateY(0);
  }
  50%,
  100% {
    opacity: 0;
    transform: translateY(-0.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-banner {
    height: auto;
    padding: 0.4rem 1rem;
  }
  .promo-banner-track {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }
  .promo-banner-item {
    position: static;
    opacity: 1;
    transform: none;
    animation: none;
    padding: 0.15rem 0;
  }
}

/* Click-to-copy promo codes */
.copy-code {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent, #6b5ce7);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.18em;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.copy-code:hover {
  color: var(--accent-glow, #3d8f86);
}
.copy-code:focus-visible {
  outline: 2px solid var(--accent, #6b5ce7);
  outline-offset: 3px;
  border-radius: 0.35rem;
}
.copy-code.is-copied {
  color: var(--accent-glow, #3d8f86);
  text-decoration: none;
}
.copy-code-inline {
  padding: 0 0.1rem;
  vertical-align: baseline;
}
/* Hero promo code — match .hero-code chip, but clickable */
button.copy-code.hero-code {
  display: inline-flex;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 0.35rem;
  border: 2px dashed rgba(107, 92, 231, 0.6);
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-glow);
  box-shadow:
    inset 0 0 0 1px rgba(124, 107, 255, 0.1),
    0 2px 10px rgba(90, 80, 140, 0.08);
}
button.copy-code.hero-code:hover {
  border-color: rgba(107, 92, 231, 0.9);
  color: var(--accent, #6b5ce7);
  filter: brightness(1.02);
}
button.copy-code.hero-code.is-copied {
  border-style: solid;
  border-color: rgba(61, 143, 134, 0.65);
  color: var(--accent-glow, #3d8f86);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0 -1.5rem 2.5rem;
  padding: 0 1.5rem;
  background: rgba(238, 240, 251, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-nav-open {
  box-shadow: var(--shadow-sm);
}

body.nav-open {
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 0;
  height: 1px;
  background: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  min-height: 5.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  overflow: visible;
  text-decoration: none;
  color: var(--fg);
  transition: opacity 0.2s ease;
}

.brand-header {
  flex-shrink: 0;
  overflow: visible;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.brand:hover {
  opacity: 0.72;
}

.brand-wordmark {
  display: block;
  width: auto;
  height: auto;
}

.brand-header .brand-wordmark {
  display: block;
  height: 40px;
  width: auto;
  max-width: 190px;
  max-height: 40px;
  overflow: visible;
}



.header-toolbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.2rem;
  border: none;
  background: transparent;
  text-decoration: none;
  color: var(--fg);
  transition: opacity 0.2s ease;
}

.nav-cart-link:hover,
.nav-cart-link[aria-current="page"] {
  opacity: 0.72;
}

.nav-cart-graphic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-cart-icon {
  display: block;
}

.nav-cart-qty {
  position: absolute;
  top: -0.2rem;
  right: -0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--fg);
  box-shadow: var(--shadow-sm);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav-toggle-bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 2.5px 0;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav-links {
  font-size: 0.875rem;
  font-weight: 400;
}

.site-nav-links a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav-links a:hover {
  color: var(--fg);
  background: rgba(124, 107, 255, 0.08);
}

.site-nav-links a[aria-current="page"] {
  color: var(--fg);
  background: rgba(124, 107, 255, 0.12);
  box-shadow: var(--shadow-sm);
}

.site-search {
  margin: 0;
}

.site-search-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.site-search input {
  width: 100%;
  height: var(--header-control-height);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  padding: 0 2.15rem 0 0.85rem;
  box-sizing: border-box;
}

.site-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 107, 255, 0.15);
}

.site-search-icon {
  position: absolute;
  right: 0.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.site-search-icon:hover {
  color: var(--fg);
}

main h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

main p {
  margin-bottom: 1rem;
}

.lede,
.muted,
.product-meta {
  color: var(--muted);
}

.product-meta {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.hero {
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 107, 255, 0.2);
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, var(--nebula-1), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 60%, var(--nebula-3), transparent),
    radial-gradient(ellipse 40% 35% at 15% 70%, var(--nebula-2), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 240, 251, 0.55) 100%);
  box-shadow: var(--shadow-md);
}

/* Ready-made designs promo — warm gold / coral (distinct from purple commission) */
.hero-promo {
  border-color: rgba(245, 158, 11, 0.28);
  background:
    radial-gradient(ellipse 95% 75% at 50% -5%, rgba(251, 191, 36, 0.32), transparent 58%),
    radial-gradient(ellipse 55% 50% at 92% 70%, rgba(251, 113, 133, 0.18), transparent 65%),
    radial-gradient(ellipse 48% 45% at 8% 75%, rgba(45, 212, 191, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(255, 252, 245, 0.98) 0%, rgba(255, 243, 230, 0.72) 55%, rgba(245, 243, 255, 0.5) 100%);
  box-shadow:
    0 10px 32px rgba(180, 120, 40, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Space under Trending (bundle sits flush on the section) before WELCOME10 */
.home-section + .hero-promo,
.home-section-alt + .hero-promo {
  margin-top: 2.5rem;
}
.hero-promo .hero-eyebrow {
  color: #c2410c;
}
.hero-promo h1 {
  color: #9a3412;
}

.hero-eyebrow,
.section-eyebrow,
.page-eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-glow);
}

.hero .lede {
  max-width: 34rem;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.9rem 1.75rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.88;
}

.btn.is-loading .btn-label {
  visibility: hidden;
}

.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #5b4fd4 50%, var(--accent-glow) 100%);
  border-color: rgba(124, 107, 255, 0.6);
  box-shadow: var(--glow-sm);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #8f82ff 0%, var(--accent) 50%, #5ee0d6 100%);
  border-color: var(--accent-glow);
  box-shadow: var(--glow-md);
}

.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
}

.page-header .lede {
  max-width: 36rem;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.page-header-centered {
  margin-bottom: 2rem;
  padding-bottom: 0;
  border-bottom: none;
  text-align: center;
}

.page-header-centered .lede {
  margin-left: auto;
  margin-right: auto;
}

.page-header-bordered-center {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.page-header-bordered-center .lede {
  margin-left: auto;
  margin-right: auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.75rem;
}

.home-section .product-grid {
  margin-top: 0.5rem;
}

.product-carousel {
  margin-top: 0.5rem;
  min-width: 0;
  /* Keep glow within the page: do not use negative horizontal margins here */
  overflow: visible;
  width: 100%;
  max-width: 100%;
}

.product-carousel-viewport {
  /*
   * Glow pad lives on .product-carousel-clip with overflow:hidden:
   * box-shadow paints into the padding (not clipped), while content past the
   * padding edge is clipped. Off-page cards are visibility:hidden when settled
   * so they do not peek into that pad.
   */
  --carousel-glow-pad: 3rem; /* >= --glow-md blur (~48px) + hover lift */
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
  touch-action: pan-y;
  padding: 0;
  margin: 0;
  /* Enable horizontal swipe on the track without blocking vertical page scroll */
  -webkit-user-select: none;
  user-select: none;
}

/* Allow selecting product titles when not mid-swipe (desktop hover) */
@media (hover: hover) and (pointer: fine) {
  .product-carousel-viewport {
    -webkit-user-select: auto;
    user-select: auto;
  }
}

.product-carousel-clip {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  /* Padding = glow gutter; overflow clips only past the padding edge */
  overflow: hidden;
  padding: var(--carousel-glow-pad);
  margin-block: calc(var(--carousel-glow-pad) * -1);
  margin-inline: 0;
  /* Extra room for shadows in browsers that support it */
  overflow-clip-margin: var(--carousel-glow-pad);
}

/* Pass-through wrapper (layout only) */
.product-carousel-mask {
  position: relative;
  min-width: 0;
  width: 100%;
  overflow: visible;
}

.product-carousel-viewport--draggable {
  cursor: grab;
  touch-action: pan-y;
}

.product-carousel-viewport--draggable .product-carousel-clip {
  touch-action: pan-y;
}

/* Cards are <a> wrappers — still need pan-y so vertical scroll works until a horizontal swipe locks */
.product-carousel-viewport--draggable .product-card,
.product-carousel-viewport--draggable .product-card-link {
  touch-action: pan-y;
  -webkit-user-drag: none;
}

@media (max-width: 768px) {
  /*
   * Mobile homepage cards: reclaim the large desktop glow gutter so one card
   * can use nearly the full phone width (desktop stays 4-up as-is).
   */
  .product-carousel-viewport {
    --carousel-glow-pad: 0.65rem;
  }

  .home-section .product-carousel,
  .home-section-alt .product-carousel {
    /* Pull out of section horizontal padding for a wider card */
    margin-inline: -0.35rem;
    width: calc(100% + 0.7rem);
    max-width: none;
  }

  .home-section-alt .product-carousel {
    /* home-section-alt has 1rem side padding — counter most of it */
    margin-inline: -0.85rem;
    width: calc(100% + 1.7rem);
  }

  .product-carousel-track {
    gap: 0.75rem;
  }

  .product-carousel-track .product-card-body {
    padding: 0.85rem 0.95rem 0.5rem;
  }

  .product-carousel-track .product-card h2 {
    font-size: 1.15rem;
  }

  .btn-card-cart {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
  }

  .product-carousel-viewport--draggable.is-dragging {
    touch-action: none;
  }
  .product-carousel-viewport--draggable.is-dragging .product-carousel-clip,
  .product-carousel-viewport--draggable.is-dragging .product-card,
  .product-carousel-viewport--draggable.is-dragging .product-card-link {
    touch-action: none;
  }
}

.product-carousel-viewport--draggable.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.product-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.75rem;
  margin-top: 0;
  transition: transform 0.35s ease;
}

.product-carousel-track .product-card {
  flex: 0 0 auto;
  min-width: 0;
  overflow: visible;
  position: relative;
  z-index: 0;
}

.product-carousel-track .product-card:hover {
  z-index: 3;
}

.product-carousel-viewport--draggable.is-dragging .product-carousel-track {
  transition: none;
}

.product-carousel-nav {
  /* Vertically centred on product image/media (JS sets --product-carousel-nav-top). */
  position: absolute;
  top: var(--product-carousel-nav-top, min(50%, 14rem));
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transform: translateY(-50%);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-carousel-prev {
  /* Slightly outside the card column (viewport overflows visible) */
  left: -0.55rem;
}

.product-carousel-next {
  right: -0.55rem;
}

@media (max-width: 768px) {
  .product-carousel-prev {
    left: -0.25rem;
  }
  .product-carousel-next {
    right: -0.25rem;
  }
}

.product-carousel-nav[hidden] {
  display: none !important;
}

.product-carousel-nav:hover {
  background: var(--surface);
  border-color: rgba(124, 107, 255, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-50%) scale(1.04);
}

.product-carousel-nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.product-carousel-nav-icon {
  font-size: 1.85rem;
  line-height: 1;
  margin-top: -0.15rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid rgba(124, 107, 255, 0.12);
  border-radius: var(--radius-md);
  overflow: visible;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 107, 255, 0.28);
  box-shadow: var(--glow-md);
}

.product-card-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  color: inherit;
  text-decoration: none;
}

.btn-card-cart {
  width: calc(100% - 1.4rem);
  margin: 0.25rem 0.7rem 0.7rem;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
}

.hero-coupon-label {
  margin-bottom: 0.65rem;
}

.hero-coupon {
  margin: 0 auto 2rem;
}

.hero-code {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  padding: 0.7rem 1.4rem;
  border: 2px dashed rgba(107, 92, 231, 0.6);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-glow);
  box-shadow:
    inset 0 0 0 1px rgba(124, 107, 255, 0.1),
    0 2px 10px rgba(90, 80, 140, 0.08);
}

.hero-promo h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e1a;
    --bg-alt: #16152a;
    --surface: #1f1e35;
    --fg: #e0e0ff;
    --muted: #a0a0c0;
    --border: #3a3858;
    --accent-glow: #67e8d4;
  }

  body {
    background-color: var(--bg);
  }

  .hero {
    background:
      radial-gradient(ellipse 90% 70% at 50% 0%, rgba(124, 107, 255, 0.22), transparent 60%),
      radial-gradient(ellipse 50% 40% at 80% 60%, rgba(78, 205, 196, 0.18), transparent),
      radial-gradient(ellipse 40% 35% at 15% 70%, rgba(168, 85, 247, 0.16), transparent),
      linear-gradient(180deg, rgba(20, 18, 40, 0.92) 0%, rgba(15, 14, 26, 0.88) 100%);
    border-color: rgba(124, 107, 255, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }

  .hero .lede {
    color: #c7d2fe;
  }

  .hero-promo {
    border-color: rgba(251, 191, 36, 0.28);
    background:
      radial-gradient(ellipse 95% 75% at 50% -5%, rgba(251, 191, 36, 0.22), transparent 58%),
      radial-gradient(ellipse 55% 50% at 92% 70%, rgba(244, 114, 182, 0.16), transparent 65%),
      radial-gradient(ellipse 48% 45% at 8% 75%, rgba(45, 212, 191, 0.14), transparent 62%),
      linear-gradient(180deg, rgba(32, 24, 18, 0.96) 0%, rgba(18, 16, 28, 0.94) 100%);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
  }

  .hero-promo .hero-eyebrow {
    color: #fbbf24;
  }

  .hero-promo h1 {
    color: #fde68a;
  }

  .hero-promo .lede {
    color: #f5d0a9;
  }

  .hero-code,
  button.copy-code.hero-code {
    background: rgba(30, 27, 55, 0.92);
    border-color: rgba(167, 139, 250, 0.55);
    color: #a5f3e8;
    box-shadow:
      inset 0 0 0 1px rgba(124, 107, 255, 0.18),
      0 4px 16px rgba(0, 0, 0, 0.35);
  }

  button.copy-code.hero-code:hover {
    border-color: rgba(196, 181, 253, 0.75);
    color: #c4b5fd;
    filter: none;
    background: rgba(36, 33, 64, 0.98);
  }

  button.copy-code.hero-code.is-copied {
    border-color: rgba(103, 232, 212, 0.7);
    color: #67e8d4;
    background: rgba(30, 27, 55, 0.95);
  }

  .copy-code-inline {
    color: #c4b5fd;
  }

  .copy-code-inline:hover,
  .copy-code-inline.is-copied {
    color: #67e8d4;
  }

  .product-reviews-empty {
    background: linear-gradient(180deg, rgba(31, 30, 53, 0.72) 0%, rgba(22, 21, 42, 0.6) 100%);
  }

  .product-reviews-empty-title {
    color: var(--fg);
  }
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-status.is-error {
  color: #b42318;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(90, 80, 140, 0.12);
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.cookie-banner-copy {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/assets/fonts/exo-2-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/orbitron-latin.woff2") format("woff2");
}

.product-card-media {
  overflow: hidden;
  background: var(--bg-alt);
}

.product-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover img {
  transform: scale(1.04);
}

.product-carousel-track .product-card-media {
  display: block;
  overflow: visible;
  padding: 0;
  background: var(--surface);
  line-height: 0;
}

.product-carousel-track .product-card img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: unset;
  object-fit: contain;
  object-position: center;
}

.product-carousel-track .product-card:hover img {
  transform: none;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 0.75rem 1rem 0.45rem;
  gap: 0.15rem;
}

.product-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.2em * 2);
  margin: 0;
}

.product-card-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0.1rem 0 0.15rem;
  line-height: 1.25;
  min-height: 1.35rem;
  overflow: visible;
}

.product-card-rating--empty {
  min-height: 0;
}

.product-card-rating-main {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  overflow: visible;
  line-height: 1.25;
}

.product-card-rating-score {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--fg);
}

.product-card-rating-count {
  font-size: 0.85rem;
  line-height: 1.25;
  flex: 0 1 auto;
  min-width: 0;
}

.product-card-price {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--accent-glow);
}

.product-specs {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--border);
}

.product-specs li {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.25rem;
}

.product-specs strong {
  color: var(--fg);
  font-weight: 500;
}

.form-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.coming-soon-panel {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px dashed rgba(124, 107, 255, 0.28);
  border-radius: var(--radius-md);
  background: rgba(124, 107, 255, 0.04);
}

.coming-soon-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-glow);
}

@keyframes catalog-item-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.catalog-item-new {
  animation: catalog-item-in 0.5s ease both;
}

.catalog-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 0 1.5rem;
}

.catalog-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.catalog-sort-label {
  font-size: 0.875rem;
  color: var(--muted);
  white-space: nowrap;
}

.catalog-sort-select {
  appearance: none;
  min-width: 9.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)) padding-box,
    var(--surface) padding-box;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  line-height: 1.2;
  padding: 0.55rem 2.25rem 0.55rem 1rem;
  cursor: pointer;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 0.9rem center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-sort-select:hover {
  border-color: rgba(124, 107, 255, 0.45);
}

.catalog-sort-select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 107, 255, 0.18);
}

.catalog-actions {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.catalog-progress {
  width: min(360px, 100%);
  height: 4px;
  margin: 0 auto 1.25rem;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.catalog-progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-glow), #a855f7);
  border-radius: inherit;
  box-shadow: 0 0 8px rgba(124, 107, 255, 0.25);
  transition: width 0.35s ease;
}

.catalog-status,
.catalog-complete {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.show-more[hidden] {
  display: none !important;
}

.show-more {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: min(320px, 100%);
  border: 1px solid rgba(124, 107, 255, 0.6);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #5b4fd4 50%, var(--accent-glow) 100%);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.75rem;
  cursor: pointer;
  box-shadow: var(--glow-sm);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.show-more:hover {
  background: linear-gradient(135deg, #8f82ff 0%, var(--accent) 50%, #5ee0d6 100%);
  border-color: var(--accent-glow);
  transform: translateY(-1px);
  box-shadow: var(--glow-md);
}

.show-more:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.show-more.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.show-more-icon {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.show-more:hover .show-more-icon {
  transform: rotate(45deg) translate(1px, 2px);
}

.product-list {
  list-style: none;
  margin-top: 1.5rem;
}

.product-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.product-detail .breadcrumb {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.product-detail .breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.product-detail .breadcrumb a:hover {
  color: var(--fg);
}

.product-detail h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 42rem;
}

.product-reviews-summary {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  margin: -0.15rem 0 0;
  padding: 0;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.product-reviews-summary:hover {
  opacity: 0.82;
}

.product-reviews-summary-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  font-size: 0.95rem;
  line-height: 1;
}

.product-reviews-summary-star {
  display: inline-flex;
  align-items: center;
  color: #d4a830;
  font-size: 1em;
  line-height: 1;
  text-shadow: 0 0 10px rgba(212, 168, 48, 0.22);
}

.product-reviews-summary-score strong {
  font-family: var(--font-display);
  font-size: 1em;
  font-weight: 500;
  line-height: 1;
  color: var(--fg);
}

.product-reviews-summary-count {
  font-size: 0.8rem;
  line-height: 1;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
  line-height: 1.2;
  overflow: visible;
}

.star-rating--sm .star {
  font-size: 0.95rem;
}

.star-rating--card {
  gap: 0.06rem;
}

.star-rating--card .star {
  font-size: 1.05rem;
  line-height: 1.2;
  display: inline-block;
}

.star {
  font-size: 1.05rem;
  line-height: 1.2;
}

.star--full {
  color: #d4a830;
  text-shadow: 0 0 10px rgba(212, 168, 48, 0.22);
}

.star--empty {
  color: rgba(92, 87, 128, 0.28);
}

.product-reviews {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 5rem;
}

.product-reviews-header {
  margin-bottom: 1.75rem;
}

.product-reviews-header h2 {
  margin-bottom: 0;
}

.product-reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
  gap: 1.5rem;
  align-items: start;
}

.product-reviews-main {
  min-width: 0;
}

.product-reviews-list {
  display: grid;
  gap: 1rem;
}

.product-reviews-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 12rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px dashed rgba(124, 107, 255, 0.24);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(238, 240, 251, 0.42) 100%);
}

.product-reviews-empty-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--fg);
}

.product-reviews-empty-copy {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.product-review-card {
  padding: 0;
  background: var(--surface);
  border: 1px solid rgba(124, 107, 255, 0.14);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.product-review-card-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.2rem 1.25rem;
}

.product-review-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  width: 2.75rem;
}

.product-review-avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-glow) 100%);
  box-shadow: 0 6px 16px rgba(124, 107, 255, 0.22);
}

.product-review-content {
  min-width: 0;
}

.product-review-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.7rem;
}

.product-review-card-meta {
  min-width: 0;
}

.product-review-author {
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
}

.product-review-verified {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  color: var(--accent-glow);
}

.product-review-date {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.product-review-body {
  margin: 0;
  line-height: 1.65;
  color: var(--fg);
}

.review-panel {
  position: sticky;
  top: 5.5rem;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid rgba(124, 107, 255, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.review-panel-header {
  margin-bottom: 1.35rem;
}

.review-panel-header .section-eyebrow {
  margin-bottom: 0.55rem;
}

.review-panel h3 {
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
}

.review-panel-note {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

.review-form {
  margin-top: 0;
}

.review-rating-row {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.review-rating-input {
  display: inline-flex;
  gap: 0.15rem;
}

.review-star-choice {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  color: rgba(92, 87, 128, 0.28);
  line-height: 1;
  transition: color 0.15s ease;
}

.review-star-glyph {
  display: block;
  font-size: 1.85rem;
  transition: transform 0.15s ease;
}

.review-star-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.review-rating-input:has(.review-star-choice:nth-child(1):hover) .review-star-choice:nth-child(-n+1),
.review-rating-input:has(.review-star-choice:nth-child(2):hover) .review-star-choice:nth-child(-n+2),
.review-rating-input:has(.review-star-choice:nth-child(3):hover) .review-star-choice:nth-child(-n+3),
.review-rating-input:has(.review-star-choice:nth-child(4):hover) .review-star-choice:nth-child(-n+4),
.review-rating-input:has(.review-star-choice:nth-child(5):hover) .review-star-choice:nth-child(-n+5),
.review-rating-input:has(#review-rating-1:checked) .review-star-choice:nth-child(-n+1),
.review-rating-input:has(#review-rating-2:checked) .review-star-choice:nth-child(-n+2),
.review-rating-input:has(#review-rating-3:checked) .review-star-choice:nth-child(-n+3),
.review-rating-input:has(#review-rating-4:checked) .review-star-choice:nth-child(-n+4),
.review-rating-input:has(#review-rating-5:checked) .review-star-choice:nth-child(-n+5) {
  color: #d4a830;
}

.review-star-choice:hover .review-star-glyph {
  transform: scale(1.06);
}

.review-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.review-status {
  margin-top: 0.85rem;
  min-height: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.review-status.is-error {
  color: #b42318;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 34rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin: 2rem 0 2.5rem;
}

.product-layout-media .product-gallery {
  margin: 0;
  max-width: none;
}

.product-layout-buy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid rgba(124, 107, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.product-layout-buy h1 {
  max-width: none;
  margin-bottom: 0;
}

.product-layout-buy .product-meta {
  margin-bottom: 0;
}

.product-purchase {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.25rem;
}

.product-price {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg);
}

.product-price-unlisted {
  font-size: 1.25rem;
}

.product-buy-link {
  align-self: flex-start;
  min-width: min(100%, 16rem);
}

.product-purchase-note {
  font-size: 0.8125rem;
  margin-bottom: 0;
}

.product-gallery {
  margin: 2.5rem auto;
  width: 100%;
  max-width: 34rem;
}

.gallery-frame {
  display: flex;
  flex-direction: column;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(124, 107, 255, 0.12);
  box-shadow: var(--shadow-sm);
}

.gallery-viewport {
  position: relative;
  /* White stage so main/tilt mockups with different shapes don’t show dark letterboxing */
  background: #ffffff;
}

.gallery-slides {
  width: 100%;
}

.gallery-slide[hidden] {
  display: none;
}

.product-gallery .gallery-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  /* Pure white behind product photos — hides irregular mockup silhouettes */
  background: #ffffff;
}

.product-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--fg);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transform: translateY(-50%);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gallery-nav:hover {
  background: var(--surface);
  border-color: rgba(124, 107, 255, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-50%) scale(1.04);
}

.gallery-nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.gallery-prev {
  left: 1rem;
}

.gallery-next {
  right: 1rem;
}

.gallery-nav-icon {
  font-size: 1.85rem;
  line-height: 1;
  margin-top: -0.15rem;
}

.gallery-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid rgba(124, 107, 255, 0.08);
}

.gallery-counter {
  font-variant-numeric: tabular-nums;
}

.product-copy {
  margin-top: 2.5rem;
  padding: 2rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(124, 107, 255, 0.15);
  box-shadow: var(--shadow-sm);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 1rem;
  color: var(--fg);
}

.prose p,
.prose li {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
}

.prose ul {
  margin: 0 0 1rem 1.25rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.home-section {
  /* Same content width as .hero / New customers (inside .page, no full-bleed) */
  margin-top: 2.25rem;
  margin-left: 0;
  margin-right: 0;
  padding-top: 1.75rem;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.home-section-alt {
  margin-left: 0;
  margin-right: 0;
  padding: 1.75rem 1rem 1.75rem;
  overflow: visible;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, var(--nebula-1), transparent 70%),
    var(--bg-alt);
  border: 1px solid rgba(124, 107, 255, 0.1);
  border-radius: var(--radius-lg);
  box-sizing: border-box;
}

/* Bottom of Trending section — flush with panel, curved bottom corners */
.home-section .home-bundle-promo {
  margin: 2.25rem -1rem 0;
  position: relative;
  z-index: 1;
}

.home-section-alt .home-bundle-promo {
  margin-bottom: -1.75rem; /* sit flush with section bottom edge */
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.section-header {
  margin-bottom: 1.15rem;
  text-align: center;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.section-lede {
  max-width: 32rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-cta {
  margin-top: 2.5rem;
  text-align: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--accent-glow);
  border-bottom: 1px solid rgba(78, 205, 196, 0.35);
  padding-bottom: 0.15rem;
  transition: border-color 0.2s ease, gap 0.2s ease, color 0.2s ease;
}

.text-link:hover {
  color: var(--fg);
  border-color: var(--accent-glow);
  gap: 0.55rem;
}

.text-link::after {
  content: "→";
}

.bundle-promo {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1rem;
  background: linear-gradient(90deg, rgba(124, 107, 255, 0.08), rgba(78, 205, 196, 0.08));
  border-top: 1px solid rgba(124, 107, 255, 0.12);
  border-bottom: 1px solid rgba(124, 107, 255, 0.12);
  border-radius: 0;
  text-align: center;
  box-sizing: border-box;
}

.bundle-promo-headline {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
}

.bundle-promo-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-section {
  scroll-margin-top: 5rem;
}

.contact-panel {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(124, 107, 255, 0.15);
  box-shadow: var(--shadow-md);
}

.contact-form {
  margin-top: 2rem;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(124, 107, 255, 0.15);
}

.form-row textarea {
  resize: vertical;
  min-height: 9rem;
}

.contact-submit {
  width: 100%;
  margin-top: 0.75rem;
}

.portal-verify-form {
  display: grid;
  gap: 0.75rem;
  max-width: 28rem;
  margin-top: 1.25rem;
}

.portal-verify-form label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.portal-verify-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
}

.portal-verify-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(124, 107, 255, 0.15);
}

.order-summary-details {
  margin-top: 1.5rem;
}



.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  gap: 0.5rem;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  text-decoration: none;
  color: var(--fg);
  transition: opacity 0.2s ease;
}

.footer-brand:hover {
  opacity: 0.72;
}

.footer-brand .brand-icon {
  display: block;
  height: 2.5rem;
  width: auto;
  fill: currentColor;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0.35rem 0 0.5rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-social a:hover {
  opacity: 0.65;
}

.footer-social svg {
  width: 1.45rem;
  height: 1.45rem;
  display: block;
  overflow: visible;
}

.footer-social .social-icon-tiktok {
  width: 1.7rem;
  height: 1.7rem;
}

.footer-newsletter {
  max-width: 24rem;
  margin: 0.75rem auto 0.5rem;
}

.footer-newsletter .section-header {
  margin-bottom: 0.85rem;
}

.footer-newsletter .section-header h2 {
  white-space: nowrap;
  text-decoration: none;
}

.footer-newsletter-form {
  display: grid;
  gap: 0.45rem;
}

.footer-newsletter-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: stretch;
}

.footer-newsletter-field input,
.footer-newsletter-submit {
  box-sizing: border-box;
  min-height: 2.75rem;
  line-height: 1.25;
}

.footer-newsletter-field input {
  width: 100%;
  min-width: 0;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font: inherit;
}

.footer-newsletter-field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

.footer-newsletter-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0 1rem;
  border-radius: 999px;
}

.footer-newsletter-status {
  margin: 0;
  font-size: 0.8125rem;
  text-align: left;
}

.footer-newsletter-status.is-error {
  color: #b42318;
}

.grecaptcha-badge {
  visibility: hidden !important;
}

.recaptcha-notice {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

.recaptcha-notice a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(92, 87, 128, 0.35);
  text-underline-offset: 0.12em;
}

.recaptcha-notice a:hover {
  color: var(--fg);
  text-decoration-color: currentColor;
}

.review-form .recaptcha-notice,
.contact-form .recaptcha-notice {
  margin-top: 0.75rem;
}

.footer-newsletter-form .recaptcha-notice {
  margin-top: 0.55rem;
}

.footer-copy,
.footer-links {
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover {
  color: var(--fg);
  border-color: var(--border);
}

@media (max-width: 960px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-layout-media,
  .product-layout-media .product-gallery {
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

@media (min-width: 641px) {
  .promo-banner,
  .site-header {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(1.5rem, calc((100vw - var(--max-width)) / 2 + 1.5rem));
    padding-right: max(1.5rem, calc((100vw - var(--max-width)) / 2 + 1.5rem));
  }

  .promo-banner {
    margin-top: 0;
    margin-bottom: 0;
  }

  .site-header {
    margin-top: 0;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
  }

  .site-header::after {
    display: none;
  }

  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand nav cart"
      "search search search";
    align-items: end;
    row-gap: 0.65rem;
    column-gap: 1rem;
    min-height: 6.25rem;
    padding-top: 0.8rem;
    padding-bottom: 0.15rem;
  }

  .nav-toggle {
    display: none;
  }

  .brand-header {
    grid-area: brand;
    align-self: end;
    margin-left: 0.4rem;
    min-width: 0;
    flex: none;
    max-width: none;
  }

  .header-actions {
    display: contents;
  }

  .header-cart {
    grid-area: cart;
    align-self: center;
    margin-left: 0;
    margin-bottom: 0.15rem;
  }

  .header-toolbar {
    display: contents;
  }

  .site-nav-links {
    grid-area: nav;
    justify-self: end;
    align-self: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.15rem;
    min-width: 0;
    max-width: 100%;
    margin-right: 0.4rem;
    margin-bottom: 0.15rem;
    overflow: hidden;
  }

  .site-nav-links a {
    padding: 0.38rem 0.62rem;
    font-size: 0.8125rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .site-search {
    grid-area: search;
    width: 100%;
    margin-bottom: 0.4rem;
  }

  .site-header--nav-collapsed .header-inner {
    display: flex;
    position: relative;
    flex-wrap: nowrap;
    min-height: 3.5rem;
    padding: 0.5rem 0;
    gap: 0.5rem 0.65rem;
    align-items: center;
  }

  .site-header--nav-collapsed .brand-header {
    flex: 1 1 auto;
    max-width: calc(100% - 6.25rem);
    padding-left: 0.15rem;
    margin-left: 0;
    align-self: center;
  }

  .site-header--nav-collapsed .header-actions {
    display: inline-flex;
    margin-left: auto;
    gap: 0.7rem;
  }

  .site-header--nav-collapsed .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    width: 2.5rem;
    height: 2.5rem;
  }

  .site-header--nav-collapsed .header-cart {
    padding: 0.15rem;
  }

  .site-header--nav-collapsed .header-cart .nav-cart-icon {
    width: 24px;
    height: 24px;
  }

  .site-header--nav-collapsed .header-toolbar {
    display: flex;
    position: absolute;
    top: 100%;
    left: -1.5rem;
    right: -1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin-left: 0;
    padding: 0.85rem 1.5rem 1.15rem;
    background: rgba(238, 240, 251, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.35rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
  }

  .site-header--nav-collapsed.is-nav-open .header-toolbar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-header--nav-collapsed .site-nav-links {
    flex-direction: column;
    width: 100%;
    overflow: visible;
    margin-right: 0;
    margin-bottom: 0;
  }

  .site-header--nav-collapsed .site-nav-links a {
    display: block;
    text-align: center;
    padding: 0.8rem 1rem;
  }

  .site-header--nav-collapsed .site-search {
    width: 100%;
    padding-top: 0.35rem;
    margin-bottom: 0;
  }

  .site-header--nav-collapsed .site-search-field,
  .site-header--nav-collapsed .site-search input {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .header-inner {
    position: relative;
    flex-wrap: nowrap;
    min-height: 3.5rem;
    padding: 0.5rem 0;
    gap: 0.5rem 0.65rem;
  }

  .brand-header {
    min-width: 0;
    flex: 1 1 auto;
    max-width: calc(100% - 6.25rem);
    padding-left: 0.15rem;
    overflow: visible;
  }

  .header-actions {
    margin-left: auto;
    gap: 0.7rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    width: 2.5rem;
    height: 2.5rem;
  }

  .header-cart {
    width: auto;
    height: auto;
    padding: 0.15rem;
  }

  .header-cart .nav-cart-icon {
    width: 24px;
    height: 24px;
  }

  .header-toolbar {
    position: absolute;
    top: 100%;
    left: -1.5rem;
    right: -1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin-left: 0;
    padding: 0.85rem 1.5rem 1.15rem;
    background: rgba(238, 240, 251, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.35rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
  }

  .site-header.is-nav-open .header-toolbar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav-links {
    flex-direction: column;
    width: 100%;
  }

  .site-nav-links a {
    display: block;
    text-align: center;
    padding: 0.8rem 1rem;
  }

  .site-search {
    width: 100%;
    padding-top: 0.35rem;
  }

  .site-search-field {
    width: 100%;
  }

  .site-search input {
    width: 100%;
  }

  .site-header {
    margin-bottom: 1.5rem;
  }

  .hero {
    padding: 1.5rem 1rem 2rem;
  }

  .home-section-alt {
    border-radius: var(--radius-md);
  }

  .contact-panel {
    padding: 1.75rem 1.25rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
  }

  .product-carousel-nav {
    width: 2.5rem;
    height: 2.5rem;
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-layout-buy {
    padding: 1.5rem 1.25rem;
  }

  .product-reviews-layout {
    grid-template-columns: 1fr;
  }

  .review-panel {
    position: static;
    top: auto;
    padding: 1.5rem 1.2rem;
  }

  .product-review-card-inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
  }

  .product-review-aside {
    width: 2.35rem;
  }

  .product-review-avatar {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 0.85rem;
  }

  .product-review-verified {
    font-size: 0.58rem;
  }

  .product-reviews-empty {
    min-height: 10rem;
    padding: 1.5rem 1.1rem;
  }

  .product-buy-link {
    align-self: stretch;
  }

  .gallery-nav {
    width: 2.5rem;
    height: 2.5rem;
  }

  .gallery-prev {
    left: 0.65rem;
  }

  .gallery-next {
    right: 0.65rem;
  }

}

.cart-root {
  max-width: 100%;
}

.cart-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.cart-items-panel {
  min-width: 0;
}

.cart-bundle-note {
  position: relative;
  overflow: hidden;
  margin: 0 0 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(124, 107, 255, 0.42);
  border-radius: var(--radius-md);
  box-shadow: var(--glow-sm);
  transition: background 0.65s ease, border-color 0.65s ease, box-shadow 0.65s ease;
}

.cart-bundle-note-headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.02em;
  transition: color 0.65s ease;
}

.cart-bundle-note-hint,
.cart-bundle-note-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.125rem;
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.cart-bundle-note-hint {
  font-weight: 400;
  color: #1a1830;
}

.cart-bundle-note-detail {
  font-weight: 600;
  color: #000;
}

.cart-bundle-note-check {
  display: inline-flex;
  flex-shrink: 0;
  color: #2f7a72;
}

.cart-bundle-note--pending {
  background: linear-gradient(135deg, rgba(124, 107, 255, 0.32) 0%, rgba(107, 92, 231, 0.20) 100%);
}

.cart-bundle-note--pending .cart-bundle-note-headline {
  color: var(--accent);
}

.cart-bundle-note--active {
  border-color: rgba(212, 162, 48, 0.58);
  background: linear-gradient(135deg, rgba(255, 215, 102, 0.45) 0%, rgba(244, 185, 66, 0.28) 100%);
  box-shadow: none;
}

.cart-bundle-note--active .cart-bundle-note-headline,
.cart-bundle-note--active .cart-bundle-note-detail {
  position: relative;
  z-index: 1;
}

.cart-bundle-note--active .cart-bundle-note-headline {
  color: #4d2e00;
}

.cart-bundle-note--active .cart-bundle-note-detail {
  color: #0f6e3d;
}

.cart-bundle-note--celebrate {
  animation: cart-bundle-flash 1.7s ease;
}

@keyframes cart-bundle-flash {
  0% {
    box-shadow: 0 0 0 rgba(255, 215, 102, 0);
  }

  20% {
    box-shadow: 0 0 16px rgba(255, 215, 102, 0.38);
  }

  40% {
    box-shadow: 0 0 6px rgba(255, 215, 102, 0.12);
  }

  100% {
    box-shadow: none;
  }
}

.cart-bundle-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.cart-bundle-confetti-piece {
  position: absolute;
  top: -10px;
  left: var(--x);
  width: 7px;
  height: 7px;
  background: var(--color);
  border-radius: 1px;
  opacity: 0;
  transform: rotate(var(--rotation));
  animation: cart-bundle-confetti-fall var(--duration) ease-out var(--delay) forwards;
}

@keyframes cart-bundle-confetti-fall {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(var(--rotation));
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--drift), 130px, 0) rotate(calc(var(--rotation) + 220deg));
  }
}

.cart-summary-panel {
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.cart-summary-heading {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

.cart-table th,
.cart-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.cart-item-cell {
  min-width: 7rem;
}

.cart-item-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.cart-item-link:hover .cart-item-title {
  color: var(--accent);
}

.cart-item-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
}

.cart-item-thumb {
  width: 5rem;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}

.cart-item-title {
  font-size: 0.9rem;
  line-height: 1.35;
  max-width: none;
  flex: 1;
  min-width: 0;
}

/* Commission prompt / image detail on its own row under the line item */
.cart-line-main + .cart-line-detail td {
  border-top: none;
  padding-top: 0;
}

.cart-line-main:has(+ .cart-line-detail) td {
  border-bottom: none;
  padding-bottom: 0.35rem;
}

.cart-detail-cell {
  vertical-align: top;
}

.cart-detail-label {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-prompt-block {
  max-width: 40rem;
}

.cart-prompt-view {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.cart-prompt-view .cart-prompt-text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}

.cart-prompt-text--empty {
  color: var(--muted);
  font-style: italic;
}

.cart-prompt-edit-btn {
  appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: -0.2rem 0 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted, #5c5780);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.cart-prompt-edit-btn:hover {
  color: var(--accent, #6b5ce7);
  background: rgba(124, 107, 255, 0.1);
  border-color: rgba(124, 107, 255, 0.22);
}

.cart-prompt-edit-btn:focus-visible {
  outline: 2px solid rgba(107, 92, 231, 0.5);
  outline-offset: 2px;
}

.cart-prompt-input {
  display: block;
  width: 100%;
  min-height: 5.25rem;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(124, 107, 255, 0.28);
  border-radius: var(--radius-sm, 8px);
  background: rgba(255, 255, 255, 0.88);
  color: var(--fg, #1a1830);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
  resize: vertical;
  box-sizing: border-box;
}

.cart-prompt-input:focus {
  outline: 2px solid rgba(107, 92, 231, 0.45);
  outline-offset: 1px;
  border-color: rgba(107, 92, 231, 0.55);
}

.cart-commission-note {
  margin-top: 0;
}

.cart-bundle-note + .cart-commission-note {
  margin-top: -0.35rem;
}

.cart-detail-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--fg);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 40rem;
}

.cart-qty {
  width: 4rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.cart-qty::-webkit-inner-spin-button,
.cart-qty::-webkit-outer-spin-button {
  background-color: #f5f5f5;
  color: #333;
  width: 1.1em;
  height: 100%;
}

.cart-summary {
  display: grid;
  gap: 0.65rem;
  width: 100%;
}

.cart-summary-line {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.cart-summary-total {
  padding-top: 0.35rem;
  margin-top: 0.15rem;
  border-top: 1px solid var(--border);
  font-size: 1.05rem;
}

.cart-summary-discount strong {
  color: #0f6e3d;
}

.cart-summary-before-discount {
  color: var(--muted);
  font-size: 0.875rem;
}

.cart-promo-field {
  display: grid;
  gap: 0.35rem;
}

.cart-promo-label {
  display: block;
  margin: 0;
  font-size: 0.95rem;
}

.cart-promo-input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

.cart-qty,
.cart-promo-input {
  background: var(--surface);
  color: var(--fg);
}

.cart-remove-cell {
  width: 2.5rem;
  text-align: center;
}

.cart-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.cart-remove-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.875rem;
  height: 0.875rem;
  line-height: 0;
}

.cart-remove-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.cart-remove:hover {
  color: var(--fg);
  background: rgba(124, 107, 255, 0.1);
}

.cart-summary .btn-primary {
  width: 100%;
  margin-top: 0.35rem;
}

@media (min-width: 900px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
    gap: 2.5rem;
  }

  .cart-summary-panel {
    position: sticky;
    top: calc(var(--header-control-height) + 5.5rem);
  }
}

.checkout-order-summary {
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.checkout-order-summary h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.order-ref {
  margin-bottom: 0.35rem;
}

.order-email,
.order-ship {
  margin-bottom: 0.75rem;
}

.order-summary-table {
  margin-top: 1rem;
}

.order-summary-totals {
  margin-top: 0.5rem;
}

.checkout-error {
  color: #b42318;
}

.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 0.25rem 0.5rem;
}

.cart-summary .cart-legal {
  margin: 0.75rem 0 0;
  width: 100%;
  text-align: center;
  font-size: 0.8125rem;
}

@media (max-width: 640px) {
  .cart-root {
    overflow-x: hidden;
  }

  .cart-layout {
    gap: 1.25rem;
  }

  .cart-summary-panel {
    padding: 1.15rem 1rem;
  }

  .footer-newsletter-field {
    grid-template-columns: 1fr;
  }

  .footer-newsletter-submit {
    width: 100%;
  }

  .cart-table {
    display: block;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table tbody {
    display: block;
  }

  .cart-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "item item remove"
      "price qty total";
    gap: 0.5rem 0.65rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
  }

  .cart-table tr.cart-line-main:has(+ .cart-line-detail) {
    border-bottom: none;
    padding-bottom: 0.35rem;
  }

  .cart-table tr.cart-line-detail {
    display: block;
    grid-template-columns: none;
    grid-template-areas: none;
    padding: 0 0 1rem;
    border-bottom: 1px solid var(--border);
  }

  .cart-table tr.cart-line-detail .cart-detail-cell {
    display: block;
    width: 100%;
  }

  .cart-table td {
    display: block;
    padding: 0;
    border: none;
    min-width: 0;
  }

  .cart-item-cell {
    grid-area: item;
  }

  .cart-price-cell {
    grid-area: price;
    font-size: 0.85rem;
    color: var(--muted);
  }

  .cart-qty-cell {
    grid-area: qty;
    justify-self: center;
  }

  .cart-total-cell {
    grid-area: total;
    justify-self: end;
    font-weight: 600;
    white-space: nowrap;
  }

  .cart-remove-cell {
    grid-area: remove;
    width: auto;
    align-self: start;
    justify-self: end;
  }

  .cart-item-info {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
  }

  .cart-item-thumb {
    width: 3.75rem;
    flex-shrink: 0;
  }

  .cart-item-title {
    max-width: none;
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    overflow-wrap: anywhere;
  }

  .cart-qty {
    width: 3.25rem;
  }

  .cart-price-cell::before,
  .cart-qty-cell::before,
  .cart-total-cell::before {
    font-weight: 500;
    color: var(--muted);
    margin-right: 0.25rem;
  }

  .cart-price-cell::before {
    content: attr(data-label) ': ';
  }

  .cart-qty-cell::before {
    content: attr(data-label) ': ';
  }

  .cart-total-cell::before {
    content: attr(data-label) ': ';
    font-weight: 500;
  }

  .cart-promo-input {
    max-width: none;
  }
}

/* Dark mode overrides (header, product buy, bundle notes) */
@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(15, 14, 26, 0.95);
  }

  .site-header--nav-collapsed .header-toolbar,
  .site-header .header-toolbar {
    background: rgba(15, 14, 26, 0.98);
  }

  /* Product detail buy box - use deeper surface for dark mode */
  .product-layout-buy {
    background: #16152a;
    border-color: rgba(124, 107, 255, 0.18);
  }

  /* Pending bundle note ("Bundle saving will be applied automatically") - better contrast */
  .cart-bundle-note--pending {
    background: linear-gradient(135deg, rgba(124, 107, 255, 0.10) 0%, rgba(107, 92, 231, 0.06) 100%);
  }

  .cart-bundle-note--pending .cart-bundle-note-hint {
    color: #c5c5e0;
  }

  .cart-prompt-input {
    background: rgba(22, 21, 42, 0.92);
    border-color: rgba(124, 107, 255, 0.32);
    color: var(--fg, #e8e6ff);
  }

  .cart-prompt-edit-btn {
    color: #a8a4c8;
  }

  .cart-prompt-edit-btn:hover {
    color: #c4b5fd;
    background: rgba(124, 107, 255, 0.16);
    border-color: rgba(124, 107, 255, 0.35);
  }

  /* Gold "applied" bundle note (cart-bundle-note--active) - better contrast for dark mode */
  .cart-bundle-note--active {
    background: linear-gradient(135deg, rgba(255, 215, 102, 0.28) 0%, rgba(244, 185, 66, 0.16) 100%);
    border-color: rgba(212, 162, 48, 0.7);
  }

  .cart-bundle-note--active .cart-bundle-note-headline {
    color: #f4c95f;
  }

  .cart-bundle-note--active .cart-bundle-note-detail {
    color: #f8e9b8;
  }

  /* Footer icons (logo + social) white in dark mode */
  .footer-brand,
  .footer-social a {
    color: #fff;
  }

  .footer-brand .brand-icon {
    fill: #fff;
  }

  .cookie-banner {
    background: rgba(31, 30, 53, 0.98);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  }

  .cart-qty::-webkit-inner-spin-button,
  .cart-qty::-webkit-outer-spin-button {
    background-color: #2a2a3a;
    color: #aaa;
  }

  .bundle-promo {
    background: linear-gradient(90deg, rgba(124, 107, 255, 0.06), rgba(78, 205, 196, 0.06));
    border-color: rgba(124, 107, 255, 0.15);
  }

  .bundle-promo-headline {
    color: var(--accent-glow);
  }

  .bundle-promo-sub {
    color: var(--muted);
  }
}

/* Optional: if data-theme="dark" is manually set on <html> (e.g. for future toggle),
   these provide the dark values. Automatic mode is driven by the @media query above. */
[data-theme="dark"] {
  --bg: #0f0e1a;
  --bg-alt: #16152a;
  --surface: #1f1e35;
  --fg: #e0e0ff;
  --muted: #a0a0c0;
  --border: #3a3858;
  --accent-glow: #67e8d4;
}

/* Product labels on cards */
.product-card-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0.25rem;
}
.product-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: #f3f0ea;
  color: #3d3a35;
  text-decoration: none;
  border: 1px solid #e2ddd4;
}
.product-label:hover {
  background: #e9e3d8;
  color: #1a1a1a;
}

/* Specification bullets on product pages */
.product-spec-section {
  margin-top: 1.5rem;
}
.product-spec-bullets {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
}
.product-spec-bullets li {
  margin: 0.4rem 0;
}

/* Collections grid (base; collections-page block below refines card media) */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0 2rem;
}

/* Cart qty: number field with up/down stacked on the right */
.cart-qty-stepper {
  display: inline-grid;
  grid-template-columns: 2.75rem 1.55rem;
  grid-template-rows: 1.15rem 1.15rem;
  align-items: stretch;
  border: 1px solid var(--border, rgba(124, 107, 255, 0.22));
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface, #fff);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.04));
}
.cart-qty-stepper .cart-qty {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 100%;
  height: 100%;
  min-height: 2.3rem;
  margin: 0;
  border: 0;
  border-radius: 0;
  text-align: center;
  font: inherit;
  font-weight: 600;
  background: transparent;
  color: var(--fg, #1a1a1a);
  -moz-appearance: textfield;
}
.cart-qty-stepper .cart-qty::-webkit-outer-spin-button,
.cart-qty-stepper .cart-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cart-qty-btn {
  grid-column: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--border, rgba(124, 107, 255, 0.18));
  border-radius: 0;
  background: rgba(124, 107, 255, 0.06);
  color: var(--fg, #1a1a1a);
  font-size: 0.55rem;
  line-height: 1;
  cursor: pointer;
}
.cart-qty-up {
  grid-row: 1;
  border-bottom: 1px solid var(--border, rgba(124, 107, 255, 0.18));
}
.cart-qty-down {
  grid-row: 2;
}
.cart-qty-btn:hover {
  background: rgba(124, 107, 255, 0.14);
}
.cart-qty-btn:focus-visible {
  outline: 2px solid var(--accent, #7c6bff);
  outline-offset: -2px;
  z-index: 1;
}

.product-spec-line {
  margin: 0 0 0.45rem;
  padding: 0;
  line-height: 1.45;
}
.product-spec-section .product-spec-line {
  margin-bottom: 0.55rem;
}
.product-specs {
  list-style: none;
}
.product-specs .product-spec-line {
  margin: 0 0 0.4rem;
}

.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}
.home-blog-card {
  background: var(--surface);
  border: 1px solid rgba(124, 107, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.15rem 1rem;
  box-shadow: var(--shadow-sm);
}
.home-blog-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.3;
}
.home-blog-card h3 a {
  color: inherit;
  text-decoration: none;
}
.home-blog-card h3 a:hover {
  color: var(--accent);
}
.home-blog-card p {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted, #6b6578);
}
.blog-hero,
.blog-inline-figure {
  margin: 1rem 0 1.35rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(124, 107, 255, 0.12);
}
.blog-hero img,
.blog-inline-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.blog-article .prose h2 {
  margin-top: 1.75rem;
}

@media (max-width: 768px) {
  .star-rating--card .star {
    font-size: 0.95rem;
  }
  .product-card-rating {
    gap: 0.25rem 0.35rem;
  }
  .product-card-body {
    overflow: visible;
  }
  .home-section {
    margin-top: 1.75rem;
    padding-top: 1.35rem;
  }
}

/* Collections — match homepage section title size (Trending, Art, …) */
.collections-page .catalog-header h1,
.catalog-page.collection-page .catalog-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

/* Collections — readable light + dark */
.collections-page .catalog-header h1,
.catalog-page.collection-page .catalog-header h1,
.collections-page .collections-section-title {
  color: var(--text, #1a1a1a);
}
.collections-section {
  margin: 1.75rem 0 2.25rem;
}
.collections-section-title {
  font-size: 1.15rem;
  margin: 0 0 0.9rem;
  font-weight: 700;
}
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 1.25rem;
  /* Room for hover lift + glow outside the card box */
  padding: 0.35rem 0.15rem 0.75rem;
  margin: 1.25rem -0.15rem 2rem;
}
.collection-card {
  border: 1px solid var(--border, #e2ddd4);
  border-radius: 14px;
  background: var(--surface, #fff);
  overflow: visible;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.collection-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 107, 255, 0.28);
  box-shadow: var(--glow-md);
}
.collection-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: inherit;
  overflow: hidden;
  background: transparent;
}
.collection-card-media {
  aspect-ratio: 3 / 4;
  background: var(--surface-2, #f3f0ea);
  overflow: hidden;
}
.collection-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.collection-card:hover .collection-card-media img {
  transform: scale(1.04);
}
.collection-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--muted, #6b6560);
  background: linear-gradient(145deg, #f0ebe3, #e4ddd2);
}
.collection-card-body {
  padding: 0.85rem 0.9rem 1rem;
}
.collection-card-body h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--text, #1a1a1a);
}
.collection-card-count {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted, #5c5751);
}

@media (prefers-color-scheme: dark) {
  .collections-page .catalog-header h1,
  .catalog-page.collection-page .catalog-header h1,
  .collections-page .collections-section-title,
  .collection-card-body h2 {
    color: #f2efe8 !important;
  }
  .collection-card {
    background: #1a1824 !important;
    border-color: #2f2c3d !important;
  }
  .collection-card-media {
    background: #12101a !important;
  }
  .collection-card-placeholder {
    background: linear-gradient(145deg, #242033, #1a1826) !important;
    color: #c9c2b5 !important;
  }
  .collection-card-count,
  .collections-page .lede,
  .collections-page .muted {
    color: #b8b1a4 !important;
  }
  .product-label {
    background: #2a2638 !important;
    color: #f0ebe3 !important;
    border-color: #3d3850 !important;
  }
  .product-label:hover {
    background: #35304a !important;
    color: #fff !important;
  }
}

/* Blog */
.blog-index-list {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}
.blog-card {
  border: 1px solid var(--border, #e2ddd4);
  border-radius: 12px;
  background: var(--surface, #fff);
  padding: 1.1rem 1.15rem;
}
.blog-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}
.blog-card h2 a {
  color: inherit;
  text-decoration: none;
}
.blog-card h2 a:hover {
  text-decoration: underline;
}
.blog-card p {
  margin: 0;
  color: var(--muted, #5c5751);
  line-height: 1.5;
}
.blog-article {
  max-width: 42rem;
  margin: 0 auto;
}
.blog-article h1 {
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
.blog-article .blog-meta {
  color: var(--muted, #5c5751);
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}
.blog-article .prose p {
  margin: 0 0 1rem;
  line-height: 1.65;
}
.blog-article .prose h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.25rem;
}
.blog-cta {
  margin-top: 2rem;
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  background: var(--surface-2, #f3f0ea);
  border: 1px solid var(--border, #e2ddd4);
}
@media (prefers-color-scheme: dark) {
  .blog-card {
    background: #1a1824 !important;
    border-color: #2f2c3d !important;
  }
  .blog-card h2,
  .blog-article h1,
  .blog-article .prose h2 {
    color: #f2efe8 !important;
  }
  .blog-card p,
  .blog-article .blog-meta,
  .blog-article .prose p {
    color: #c9c2b5 !important;
  }
  .blog-cta {
    background: #221f30 !important;
    border-color: #3d3850 !important;
    color: #f0ebe3 !important;
  }
}
