/*
Theme Name: ThisIsE
Theme URI: https://thisise.shop
Author: E (Iskren Georgiev)
Author URI: https://thisise.shop
Description: Custom theme for ThisIsE — digital products, portfolio, and creator hub.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: Private
Text Domain: thisise
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Accent — signature brand red. Do not substitute a darker shade for
     contrast; the brand color takes priority over the AA-on-white nitpick. */
  --accent: #E8352A;
  --accent-hover: #c92d22;

  /* Semantic status colors */
  --success: #059669;
  --error: #e4472a;

  /* Light mode (default) */
  --bg: #ffffff;
  --bg-secondary: #f6f6f6;
  --bg-card: #f0f0f0;
  --text: #0a0a0a;
  --text-secondary: #6b6b6b;
  --text-muted: #767676; /* AA 4.54:1 on white (was #999, 2.85:1 — failed) */
  --border: #e4e4e4;
  --border-subtle: #f0f0f0;
  --nav-bg: rgba(255, 255, 255, 0.92);
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.12), 0 12px 32px rgba(0,0,0,0.08);

  /* Spacing */
  --site-max: 1400px;
  --site-gutter: clamp(20px, 4vw, 64px);
  --section-gap: clamp(64px, 8vw, 128px);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;
}

/* Dark mode */
[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --text: #f5f5f5;
  --text-secondary: #aaaaaa;
  --text-muted: #8a8a8a; /* AA on dark bg (was #666, 3.45:1 — failed) */
  --border: #222222;
  --border-subtle: #1a1a1a;
  --nav-bg: rgba(10, 10, 10, 0.92);
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.2);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.4), 0 12px 32px rgba(0,0,0,0.3);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  transition: background-color var(--transition-slow), color var(--transition-slow);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

ul, ol {
  list-style: none;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.site-container {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--site-gutter);
}

/* JS measures .site-header-wrap height and sets this; fallback = 80px (nav only) */
:root { --thisise-header-h: 80px; }

/* Skip-to-content link — hidden off-screen until focused via Tab, then
   slides down into view. First focusable element on the page so keyboard
   users can bypass the nav. */
.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -110%);
  padding: 10px 20px;
  background: var(--text);
  color: var(--bg);
  border-radius: 0 0 8px 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 99999;
  transition: transform 0.18s ease;
}
.skip-link:focus {
  transform: translate(-50%, 0);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* Global keyboard focus ring — every interactive element gets a visible,
   consistent focus indicator for keyboard users. :focus-visible keeps it
   off for mouse clicks, so it doesn't change the look for pointer users. */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 3px;
}

.site-main {
  padding-top: var(--thisise-header-h);
}

/* Homepage hero handles its own nav clearance — no double offset */
.home .site-main { padding-top: 0; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.875rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }

/* ============================================================
   NAVIGATION
   ============================================================ */

/* Wrapper holds announcement bar + nav as one fixed unit */
.site-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

/* WordPress admin bar offset — shift the whole header down */
.admin-bar .site-header-wrap { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header-wrap { top: 46px; }
}

.site-nav {
  position: relative;
  height: 80px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-slow), border-color var(--transition-slow);
}

.nav-inner {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--site-gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: var(--text);
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.nav-logo:hover { opacity: 0.7; }

.nav-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-logo__mark {
  color: #2CCDD4;
  flex-shrink: 0;
  transition: color var(--transition);
}
.nav-logo:hover .nav-logo__mark { color: var(--primary, #2CCDD4); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links ul,
.nav-links li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: -0.01em;
}

.nav-links a:hover,
.nav-links a.current-menu-item {
  color: var(--text);
  background: var(--bg-secondary);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Theme toggle — sliding track */
.theme-toggle {
  position: relative;
  width: 74px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color var(--transition);
}

.theme-toggle:hover {
  border-color: var(--text-muted);
}

.theme-toggle__track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
}

.theme-toggle__indicator {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 32px;
  height: 30px;
  border-radius: calc(var(--radius-sm) - 2px);
  background: var(--bg-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Dark mode — indicator on left (moon) */
[data-theme="dark"] .theme-toggle__indicator {
  transform: translateX(0);
}

/* Light mode — indicator on right (sun) */
[data-theme="light"] .theme-toggle__indicator {
  transform: translateX(36px);
}

.theme-toggle__icon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  transition: color 0.22s ease;
}

/* Active: moon in dark mode */
[data-theme="dark"] .theme-toggle__icon--moon {
  color: var(--text);
}

/* Active: sun in light mode */
[data-theme="light"] .theme-toggle__icon--sun {
  color: var(--text);
}

/* Account */
.nav-account {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  text-decoration: none;
}

.nav-account:hover {
  color: var(--text);
  background: var(--bg-secondary);
}

/* Cart */
.nav-cart {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.nav-cart:hover {
  color: var(--text);
  background: var(--bg-secondary);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Mobile menu toggle */
.nav-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger → X animation */
.nav-menu-toggle.is-active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav — full-screen overlay */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    padding: 120px var(--site-gutter) 40px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.is-open { display: flex; }
  .nav-menu-toggle { display: flex; z-index: 1000; }


  /* WordPress outputs <li><a> — style both */
  .nav-links li {
    list-style: none;
    border-bottom: none;
    opacity: 0;
    transform: translateY(20px);
    animation: mobileNavIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    z-index: 1;
  }

  /* Staggered entrance */
  .nav-links.is-open li:nth-child(1) { animation-delay: 0.1s; }
  .nav-links.is-open li:nth-child(2) { animation-delay: 0.2s; }
  .nav-links.is-open li:nth-child(3) { animation-delay: 0.3s; }
  .nav-links.is-open li:nth-child(4) { animation-delay: 0.4s; }
  .nav-links.is-open li:nth-child(5) { animation-delay: 0.5s; }
  .nav-links.is-open li:nth-child(6) { animation-delay: 0.6s; }
  .nav-links.is-open li:nth-child(7) { animation-delay: 0.7s; }
  .nav-links.is-open li:nth-child(8) { animation-delay: 0.8s; }

  @keyframes mobileNavIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links a,
  .nav-links li a {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: none;
    border-radius: 0;
    color: var(--text);
    transition: color 0.2s ease, transform 0.2s ease;
  }
  .nav-links a:hover,
  .nav-links li a:hover {
    background: none;
    color: var(--accent);
    transform: translateX(6px);
  }
  .nav-links a.current-menu-item,
  .nav-links li a.current-menu-item {
    background: none;
    color: var(--accent);
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--text-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  padding: 12px 16px;
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-secondary);
}

.btn-lg {
  font-size: 1rem;
  padding: 16px 32px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--section-gap) 0;
}

.section-header {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 560px;
}

/* Homepage "Latest drops" — reuses the shop product card + grid so it's
   visually identical to the store. Centered header + CTA to sit it apart. */
.featured-drops__header {
  text-align: center;
}
.featured-drops__grid {
  margin-bottom: 40px;
}
.featured-drops__cta {
  text-align: center;
}

/* ============================================================
   HOMEPAGE — HERO
   ============================================================ */
.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(64px, 8vw, 120px) 0;
}

.hero-content {
  max-width: 580px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--accent);
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-eyebrow { justify-content: center; }
  .hero-description { margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
}

/* ============================================================
   HOMEPAGE — FEATURED PRODUCTS
   ============================================================ */
.featured-products {
  background: var(--bg-secondary);
  padding: var(--section-gap) 0;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

@media (max-width: 600px) {
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   PRODUCT CARDS  — single unified system for homepage + shop loop
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--bg);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  position: relative; /* needed for absolutely-positioned add-to-cart button */
}

.product-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.11);
  transform: translateY(-5px);
  border-color: transparent;
}

/* Inner link — covers the card content, excluding the add button */
.product-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}

.product-card-link:hover { color: var(--text); }

/* Dark mode — card needs its own surface so it reads against the page bg */
[data-theme="dark"] .product-card {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .product-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ── Image area ── */
.product-card-image {
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  overflow: hidden;
  position: relative;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Both transform + opacity listed so the hover image can cross-fade and
     both images can share the gentle zoom. Previously only transform was
     in the transition list, so opacity changes were instant. */
  transition: transform 0.55s ease, opacity 0.55s ease;
  display: block;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

/* Hover reveal: second image (last gallery image, usually lifestyle) cross-fades
   in on hover. Only on devices that actually support hover. */
.product-card-image-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

@media (hover: hover) {
  .product-card:hover .product-card-image-hover {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card-image img {
    transition: none;
  }
  /* Kill the hover-scale — it's the one animated transform in this area.
     The hover-image crossfade itself has no transition (instant swap),
     so no extra rule needed there. */
  .product-card:hover .product-card-image img {
    transform: none;
  }
}

/* ── Category badge — red, top-left, overlaid on image ── */
.product-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  /* Symmetric padding with more breathing room on both sides. Whole-
     pixel asymmetric tweaks oscillated between "too low" and "too high"
     because Inter's caps don't sit precisely at the geometric center
     of the line-box at this small size. Bigger pill + symmetric padding
     makes any residual sub-pixel offset proportionally invisible. */
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  line-height: 1;
  z-index: 2;  /* sits above .product-card-image-hover (z:1) */
}

/* ── Card body ── */
.product-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.product-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
  /* Clamp to 2 lines max as a safety net for any unusually long title,
     but don't reserve space for a second line — since we strip category
     words from display, most titles are one word and the reservation
     left a visible empty line under them. The footer's margin-top:auto
     still keeps prices bottom-aligned across varied title heights. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Secondary meta line (e.g. "12 wallpapers") — sits between title
     and pill row. Quiet typography so pills stay the visual anchor. */
.product-card-meta {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: -2px 0 2px;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

/* ── Quality tag pills — unified with product page .prod-badge--*
     Shared visual language: UPPERCASE, 0.12em tracking, weight 700,
     3px radius. Per-tag color mirrors the product page palette. ── */
.product-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.product-card-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 3px;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
  white-space: nowrap;
}

/* Mobile: tighten the tag row so 2 tags + "+N" overflow don't wrap to
   a second line on narrow cards (~170px at <600px, 2-per-row grid). */
@media (max-width: 600px) {
  .product-card-tags { gap: 4px; }
  .product-card-tag {
    padding: 3px 6px;
    letter-spacing: 0.08em;
  }
}

/* Two-tone pill system:
   Black fill = permanent/technical attribute (resolution, platform).
   Gold outline = editorial/craft attribute (handmade, collab). */

/* 8K + iOS & iPadOS — black fill */
.product-card-tag--8k,
.product-card-tag--ios {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  letter-spacing: 0.18em;
}
[data-theme="dark"] .product-card-tag--8k,
[data-theme="dark"] .product-card-tag--ios {
  background: #f0f0f0;
  color: #111111;
  border-color: #f0f0f0;
}

/* 6K — dark grey, subtle step away from 8K's black */
.product-card-tag--6k {
  background: #3A3A3A;
  color: #ffffff;
  border-color: #3A3A3A;
  letter-spacing: 0.18em;
}
[data-theme="dark"] .product-card-tag--6k {
  background: #cfcfcf;
  color: #111111;
  border-color: #cfcfcf;
}

/* 10K — premium tier in the signature accent red */
.product-card-tag--10k {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  letter-spacing: 0.18em;
}

/* Handmade + Collab — warm gold outline */
.product-card-tag--handmade,
.product-card-tag--collab {
  color: #8B6B1F;
  border-color: #C8A246;
}
[data-theme="dark"] .product-card-tag--handmade,
[data-theme="dark"] .product-card-tag--collab {
  color: #D7B456;
  border-color: rgba(215,180,86,0.6);
}

/* Overflow +N — muted utility, matches the .prod-badge--download quietness */
.product-card-tag--more {
  color: var(--text-muted);
  border-color: var(--border);
  letter-spacing: 0.06em;
}

/* ── Footer: price row (add-to-cart button is positioned absolutely) ── */
.product-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  padding-right: 42px; /* clear space for the absolute add button */
}

.product-card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.product-card-price .woocommerce-Price-amount { color: var(--text); }

.product-card-price .original-price,
.product-card-price del {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 4px;
}

.product-card-price ins {
  text-decoration: none;
  color: var(--accent);
}

.product-card-add {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
  z-index: 2;
  padding: 0;
}

.product-card:hover .product-card-add {
  background: var(--accent-hover);
  transform: scale(1.1);
}

/* Loading state — spinner replaces + icon */
.product-card-add.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Added state — brief green confirmation */
.product-card-add.added {
  background: var(--success);
  transform: scale(1.1);
}

/* ============================================================
   HOMEPAGE — ABOUT / BIO
   ============================================================ */
.about-section {
  padding: var(--section-gap) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.about-title {
  margin-bottom: 24px;
}

.about-title em {
  font-style: normal;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

.about-body {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 32px;
}

.about-body p + p {
  margin-top: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.about-stat {
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.about-stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.about-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-image { max-width: 400px; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  background: #111; /* hardcoded — var(--text) inverts to white in dark mode */
  padding: var(--section-gap) 0;
}

.testimonials-section .section-label,
.testimonials-section .section-title {
  color: rgba(255, 255, 255, 0.35); /* always white — var(--bg) inverts in dark mode */
}

/* Force legible text inside the dark testimonials section */
.testimonials-section .testimonial-text {
  color: rgba(255, 255, 255, 0.72);
}
.testimonials-section .testimonial-author {
  color: rgba(255, 255, 255, 0.9);
}
.testimonials-section .testimonial-handle {
  color: rgba(255, 255, 255, 0.32);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 28px;
}

[data-theme="dark"] .testimonial-card {
  background: rgba(255,255,255,0.04);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
}

[data-theme="dark"] .testimonial-text {
  color: rgba(255,255,255,0.65);
}

.testimonial-author {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

/* ============================================================
   BRAND PARTNERS
   ============================================================ */
.partners-section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
}

.partner-logo {
  height: 28px;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: opacity var(--transition), filter var(--transition);
  object-fit: contain;
}

.partner-logo:hover {
  opacity: 0.9;
  filter: grayscale(0%);
}

/* ============================================================
   SHOP PAGE
   ============================================================ */
.shop-header {
  padding: clamp(48px, 6vw, 80px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(32px, 4vw, 56px);
}

.shop-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.shop-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: -0.01em;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ============================================================
   SINGLE PRODUCT
   ============================================================ */
.product-single {
  padding: clamp(48px, 6vw, 80px) 0;
}

.product-single-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.product-gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  aspect-ratio: 4/3;
  margin-bottom: 12px;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-thumbs {
  display: flex;
  gap: 8px;
}

.product-gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover {
  border-color: var(--accent);
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding-top: 8px;
}

.product-category-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.product-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.product-price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 32px;
}

.product-price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.product-price-original {
  font-size: 1.25rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
}

.product-description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.product-meta-list {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.product-meta-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.product-add-to-cart {
  width: 100%;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 700;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  letter-spacing: -0.01em;
}

.product-add-to-cart:hover {
  background: var(--accent-hover);
}

@media (max-width: 800px) {
  .product-single-grid {
    grid-template-columns: 1fr;
  }
  .product-gallery { position: static; }
}

/* ============================================================
   WHYNOTE PAGE
   ============================================================ */

/* ── Hero ── */
.wn-hero {
  padding: clamp(80px, 12vh, 140px) 0 clamp(60px, 8vh, 100px);
}

.wn-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.wn-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.wn-hero__headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}

.wn-hero__headline em {
  font-style: normal;
  color: var(--accent);
}

.wn-hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
}

.wn-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.wn-hero__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.wn-hero__media {
  display: flex;
  justify-content: center;
}

.wn-hero__image {
  width: 100%;
  max-width: 520px;
  height: auto;
}

/* ── Marquee ── */
.wn-marquee {
  overflow: hidden;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(40px, 6vh, 80px);
}

.wn-marquee__track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: wn-scroll 20s linear infinite;
}

.wn-marquee__track span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

@keyframes wn-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .wn-marquee__track { animation: none; }
}

/* ── Feature blocks (alternating text + image) ── */
.wn-features-section {
  padding: clamp(80px, 10vh, 120px) 0;
}

.wn-feature-block {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  margin-bottom: clamp(80px, 10vh, 120px);
}

.wn-feature-block:last-child {
  margin-bottom: 0;
}

.wn-feature-block--reverse {
  grid-template-columns: 7fr 5fr;
}

.wn-feature-block--reverse .wn-feature-block__text {
  order: 2;
}

.wn-feature-block--reverse .wn-feature-block__media {
  order: 1;
}

.wn-feature-block__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}

.wn-feature-block__desc {
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 440px;
}


.wn-feature-block__hint {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}


.wn-feature-block__hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 2px 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .wn-feature-block__hint kbd {
  background: #1a1a1a;
  border-color: #333;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.wn-feature-block__media img {
  width: 100%;
  height: auto;
}

/* ── What Else section ── */
.wn-extras {
  padding: clamp(80px, 10vh, 120px) 0;
}

.wn-extras__inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.wn-extras__inner h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.wn-extras__intro {
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 440px;
}

.wn-extras__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wn-extras__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.wn-extras__list li svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.wn-extras__media {
  position: relative;
}

.wn-extras__img {
  width: 100%;
  height: auto;
}

/* ── "Try it yourself" toggle ── */
.wn-try-toggle {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.wn-try-toggle__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.wn-try-toggle__btn {
  transform: scale(1.15);
}

/* Show light image by default, dark in dark mode */
.wn-extras__img--dark { display: none; }
[data-theme="dark"] .wn-extras__img--light { display: none; }
[data-theme="dark"] .wn-extras__img--dark { display: block; }

/* ── CTA ── */
.wn-cta {
  padding: clamp(80px, 10vh, 120px) 0;
}

.wn-cta__inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(40px, 6vh, 64px) clamp(24px, 4vw, 48px);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

[data-theme="dark"] .wn-cta__inner {
  background: #111;
  border-color: rgba(255, 255, 255, 0.06);
}

.wn-cta__inner h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
}

.wn-cta__inner > p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.wn-cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.wn-cta__note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ── Responsive ── */
@media (max-width: 800px) {
  .wn-hero {
    padding-top: 40px;
  }

  .wn-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .wn-hero__headline {
    font-size: 1.75rem;
  }

  .wn-hero__sub {
    max-width: none;
    font-size: 0.9375rem;
  }

  .wn-hero__actions {
    justify-content: center;
  }

  .wn-hero__image {
    max-width: 340px;
    margin: 0 auto;
  }

  .wn-features-section {
    padding: 48px 0;
  }

  .wn-feature-block {
    margin-bottom: 48px;
  }

  .wn-feature-block,
  .wn-feature-block--reverse {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .wn-feature-block--reverse .wn-feature-block__text,
  .wn-feature-block--reverse .wn-feature-block__media {
    order: unset;
  }

  .wn-feature-block__desc {
    max-width: none;
  }

  .wn-feature-block__hint {
    justify-content: center;
  }

  .wn-feature-block__media img {
    max-width: 480px;
    margin: 0 auto;
  }

  .wn-extras {
    padding: 48px 0;
  }

  .wn-extras__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .wn-extras__intro {
    max-width: none;
  }

  .wn-extras__list {
    align-items: center;
  }

  .wn-try-toggle {
    justify-content: center;
  }

  .wn-extras__img {
    max-width: 480px;
    margin: 0 auto;
  }

  .wn-cta {
    padding: 48px 0;
  }

  .wn-hero {
    padding-bottom: 32px;
  }

  .wn-marquee {
    margin-bottom: 0;
  }
}

/* ============================================================
   DISCOUNTS PAGE
   ============================================================ */
.discounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.discount-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-card);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

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

.discount-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.discount-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.discount-card:hover .discount-card-image img {
  transform: scale(1.04);
}

.discount-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.discount-card-brand {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.discount-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.discount-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.discount-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: monospace;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1.5px dashed rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  color: var(--accent);
  cursor: pointer;
  transition: background var(--transition);
}

.discount-code:hover {
  background: var(--bg);
}

[data-theme="dark"] .discount-code {
  border-color: rgba(255, 255, 255, 0.3);
}

.discount-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  padding: 0;
  margin-bottom: 12px;
}

.discount-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.discount-card-actions .discount-code,
.discount-card-actions .btn {
  font-size: 0.8125rem;
  padding: 0 16px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}

.discounts-disclaimer {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 48px;
  margin-bottom: 48px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.discounts-page .page-header {
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: clamp(32px, 5vw, 56px);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.discounts-page .page-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.discounts-page .page-subtitle {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

/* ============================================================
   PARTICIPATE PAGE
   ============================================================ */
.participate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 96px);
  align-items: start;
}

.participate-video {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
}

.participate-video iframe {
  width: 100%;
  height: 100%;
}

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

/* ============================================================
   LINKS PAGE (LINK IN BIO)
   ============================================================ */
.links-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: calc(var(--thisise-header-h, 80px) + 48px) var(--site-gutter) 60px;
}

.links-container {
  width: 100%;
  max-width: 480px;
}

/* --- Profile (horizontal, compact) --- */
.links-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.links-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.links-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.links-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: #2CCDD4;
  font-size: 1.5rem;
  font-weight: 800;
}

.links-name {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1px;
  line-height: 1.2;
}

.links-bio {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* --- Latest Video — Hero Card --- */
.links-video {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
  color: var(--text);
}

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

.links-video__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--border);
}

.links-video__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.links-video:hover .links-video__thumb img {
  transform: scale(1.03);
}

.links-video__play-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.links-video__play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform var(--transition), background var(--transition);
}

.links-video:hover .links-video__play {
  transform: scale(1.1);
  background: var(--accent);
}

.links-video__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.links-video__info {
  flex: 1;
  min-width: 0;
}

.links-video__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.links-video__title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.links-video__cta {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

/* --- Social Icons (horizontal row) --- */
.links-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.links-social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: transform var(--transition), box-shadow var(--transition), color var(--transition);
}

.links-social:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--text);
}

.links-social svg {
  width: 18px;
  height: 18px;
}

.links-social--yt:hover { color: #FF0000; }
.links-social--ig:hover { color: #E4405F; }

/* --- Utility links (compact row) --- */
.links-utils {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-util {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  transition: transform var(--transition), box-shadow var(--transition);
}

.link-util:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.link-util svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.link-util--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.link-util--accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.link-util--accent svg {
  color: rgba(255,255,255,0.8);
}

/* --- Footer --- */
.links-copy {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 32px;
}

/* --- Mobile --- */
@media (max-width: 640px) {
  .links-page {
    padding-top: calc(var(--thisise-header-h, 70px) + 32px);
    padding-bottom: 32px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
/* Dark footer — anchors the bottom of the page in BOTH themes. Local token
   overrides invert every child (links, headings, borders, social buttons)
   automatically, the same technique the .about-store section uses. #111 sits
   above the dark-theme page bg (#0a0a0a), and the hairline top border keeps it
   distinct there; against the light page it reads as a strong black footer. */
.site-footer {
  background: #111111;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(48px, 6vw, 80px) 0 clamp(24px, 3vw, 40px);
  --text: #f5f5f5;
  --text-secondary: #c8c8c8;
  --text-muted: #8f8f8f;
  --border: rgba(255, 255, 255, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --bg-secondary: rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
  display: inline-flex;
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.footer-social-link:hover {
  color: var(--text);
  background: var(--bg-secondary);
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
  background: var(--bg-secondary);
  padding: clamp(64px, 8vw, 96px) 0;
  text-align: center;
}

.newsletter-inner {
  max-width: 520px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 32px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color var(--transition);
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--accent);
}

.newsletter-input::placeholder {
  color: var(--text-muted);
}

@media (max-width: 500px) {
  .newsletter-form { flex-direction: column; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(48px, 8vw, 96px);
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-input,
.form-textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: var(--bg);
  /* Border color alone isn't a sufficient focus cue (color-only); add a ring. */
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
}

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

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.woocommerce-notices-wrapper { margin-bottom: 24px; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 16px 20px;
  border: none;
  border-left: 3px solid var(--accent);
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
  font-size: 0.9rem;
  color: var(--text-secondary);
  list-style: none;
  margin: 0 0 16px;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  display: none;
}

/* Checkout */
.woocommerce form .form-row label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 0.9375rem;
  width: 100%;
  transition: border-color var(--transition);
  outline: none;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--accent);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }

/* Respect reduced-motion globally: no smooth-scroll, no scroll-reveal
   animation (content must be visible immediately, not faded-in from a
   transform that never completes for these users). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-in,
  .animate-in-delay-1,
  .animate-in-delay-2,
  .animate-in-delay-3 {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-nav, .site-footer { display: none; }
  .site-content { padding-top: 0; }
}

/* ============================================================
   HOMEPAGE — HERO STORE (centered, dark, full-viewport)
   ============================================================ */
.hero-store {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(80px + var(--section-gap)) var(--site-gutter) var(--section-gap);
  overflow: hidden;
  background: #0a0a0a;
}

.hero-store__bg {
  position: absolute;
  inset: 0;
  background: #0a0a0a;
  z-index: 0;
}

.hero-store__bg.has-image {
  background-size: cover;
  background-position: center;
}

.hero-store__bg.has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero-store__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-store__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 28px;
  animation: fadeInUp 0.5s ease forwards;
}

.hero-store__headline {
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: #ffffff;
  margin-bottom: 28px;
  animation: fadeInUp 0.5s 0.1s ease both;
}

.hero-store__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 44px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.5s 0.2s ease both;
}

.hero-store__cta {
  animation: fadeInUp 0.5s 0.3s ease both;
  font-size: 0.9375rem;
  padding: 16px 36px;
}

/* ============================================================
   HOMEPAGE — CATEGORY TILES
   ============================================================ */
.cat-tiles-section {
  display: block;
}

.cat-tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 1/1;
  overflow: hidden;
  text-decoration: none;
}

@media (max-width: 900px) {
  .cat-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .cat-tiles-grid {
    grid-template-columns: 1fr;
  }
  .cat-tile {
    aspect-ratio: 16/9;
  }
}

.cat-tile__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 0.5s ease;
}

.cat-tile__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cat-tile:hover .cat-tile__bg img,
.cat-tile:hover .cat-tile__bg {
  transform: scale(1.04);
}

.cat-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  z-index: 1;
  transition: background var(--transition-slow);
}

.cat-tile:hover .cat-tile__overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.1) 100%);
}

.cat-tile__body {
  position: relative;
  z-index: 2;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat-tile__label {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1;
  transition: transform var(--transition);
  display: block;
}

.cat-tile:hover .cat-tile__label {
  transform: translateY(-3px);
}

.cat-tile__sub {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
  display: block;
  transition: transform var(--transition);
}

.cat-tile:hover .cat-tile__sub {
  transform: translateY(-3px);
}

/* ============================================================
   HOMEPAGE — PRODUCT CARD NO-THUMB PLACEHOLDER
   ============================================================ */
.product-card__no-thumb {
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  background-image: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  min-height: 200px;
}

/* ============================================================
   HOMEPAGE — ABOUT (WHY NOT?)
   ============================================================ */
.about-store {
  background: #111111;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  /* Force dark-mode CSS variables regardless of page theme,
     so all child elements (text, borders, btn) automatically invert */
  --text: #f5f5f5;
  --text-secondary: #aaaaaa;
  --text-muted: #8a8a8a;
  --border: #222222;
  --border-subtle: #1a1a1a;
  --bg: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
}

.about-store__inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

@media (max-width: 860px) {
  .about-store__inner {
    grid-template-columns: 1fr;
  }
  .about-store__media {
    aspect-ratio: 3/2;
    max-height: 380px;
  }
}

.about-store__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  align-self: start;
}

.about-store__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-store__media--placeholder {
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-store__headline {
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 28px;
  color: var(--text);
}

.about-store__headline em {
  font-style: normal;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}

.about-store__body {
  margin-bottom: 40px;
}

.about-store__body p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.about-store__body p + p {
  margin-top: 16px;
}

.about-store__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.about-store__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-store__stat-value {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.about-store__stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.about-store__yt-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   HOMEPAGE — TESTIMONIALS (updated)
   ============================================================ */
.testimonials-header-row {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.testimonials-label {
  color: rgba(255,255,255,0.35) !important;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 20px;
}

.testimonial-handle {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  font-weight: 400;
}

/* ============================================================
   HOMEPAGE — NEWSLETTER (updated)
   ============================================================ */
.newsletter-title {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.newsletter-sub {
  margin-bottom: 32px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-cta {
  display: inline-flex;
}

/* ============================================================
   SECTION HEADER ROW (for featured products)
   ============================================================ */
.section-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition);
  white-space: nowrap;
}

.section-link:hover {
  color: var(--text);
}

/* ============================================================
   SINGLE PRODUCT PAGE — WooCommerce override wrapper
   ============================================================ */
.single-product-page {
  padding-top: var(--thisise-header-h); /* matches actual header height incl. any bar */
  padding-bottom: 0; /* product grid + footer padding provide sufficient spacing */
}


/* ═══════════════════════════════════════════════
   BRAND PARTNERS
═══════════════════════════════════════════════ */
/* Dark in both themes — unifies with the adjacent creator + brand-quote
   sections so the social-proof stretch reads as one continuous dark zone
   instead of a choppy dark-light-dark band sequence. */
.brand-partners-section {
    background: #0d0d0d;
    padding: 72px 0;
}
.brand-partners-header {
    text-align: center;
    margin-bottom: 40px;
}
.brand-partners-header .section-label {
    color: rgba(255, 255, 255, 0.4);
}
.brand-partners-header .section-title {
    color: #ffffff;
}
.brand-logos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}
/* Logo chips are dark in both themes now that the section is always dark. */
.brand-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    background: #1a1a1a;
    min-width: 110px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.brand-logo-item:hover {
    border-color: #444;
}
.brand-logo-item span {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ccc;
}

/* ═══════════════════════════════════════════════
   BRAND TESTIMONIALS
═══════════════════════════════════════════════ */
.brand-testimonials-section {
    background: #0d0d0d;
    padding: 72px 0;
}
.brand-testimonials-label {
    display: block;
    text-align: center;
    margin-bottom: 40px;
}
.brand-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.brand-testimonial-card {
    background: #161616;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.2s;
}
.brand-testimonial-card:hover {
    border-color: #333;
}
.brand-testimonial-name {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent); /* brand red #E8352A — was an off-brand #e63946 */
}
.brand-testimonial-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #bbb;
    flex: 1;
    margin: 0;
}
.brand-testimonial-attr {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
}
@media (max-width: 900px) {
    .brand-testimonials-grid {
        grid-template-columns: 1fr;
    }
}



/* ============================================================
   PAGE TEMPLATE — generic content pages (ToS, Privacy, etc.)
   ============================================================ */

.page-content {
    padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 120px);
}

/* Cart & Checkout — block layout owns all spacing; strip page wrapper chrome */
.woocommerce-cart .page-header,
.woocommerce-checkout .page-header {
    display: none;
}

.woocommerce-cart .page-content,
.woocommerce-checkout .page-content {
    padding: 0;
}

.woocommerce-cart .page-body,
.woocommerce-checkout .page-body {
    max-width: none;
}

.page-header {
    margin-bottom: clamp(32px, 4vw, 48px);
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
}

/* Prose body — constrained width, comfortable reading */
.page-body {
    max-width: 720px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.75;
}

.page-body > * + * {
    margin-top: 1.25em;
}

/* Scaled-down headings for document/legal content */
.page-body h2 {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 2.5em;
    margin-bottom: 0.5em;
}

.page-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 1.75em;
    margin-bottom: 0.35em;
}

.page-body p {
    margin: 0 0 0.9em;
}

.page-body strong {
    color: var(--text);
    font-weight: 600;
}

.page-body a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--border);
    transition: text-decoration-color var(--transition);
}

.page-body a:hover {
    text-decoration-color: var(--text);
}

.page-body ul,
.page-body ol {
    padding-left: 1.25em;
    margin: 0.75em 0 1em;
}

.page-body li {
    margin-bottom: 0.35em;
}

/* Last-updated / meta line */
.page-body p:first-child strong {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ── 404 page ─────────────────────────────────────────── */
.error-404 {
    text-align: center;
    padding: 80px 0 60px;
}

.error-404__code {
    font-size: 7rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--border);
    margin: 0 0 16px;
}

.error-404__title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
}

.error-404__sub {
    color: var(--text-muted);
    margin: 0 0 32px;
}

.error-404__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-404-products {
    padding-bottom: 80px;
}

.error-404-products__heading {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    text-align: center;
    margin: 0 0 28px;
}

/* ── Search results ──────────────────────────────────── */
.search-header {
    padding: 48px 0 32px;
}
.search-header__title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
}
.search-header__query {
    color: var(--accent);
}
.search-header__count {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}
.search-header__count strong {
    color: var(--text);
    font-weight: 700;
}

.search-empty {
    text-align: center;
    padding: 80px 0 60px;
}
.search-empty svg {
    margin-bottom: 20px;
    color: var(--text-muted);
    opacity: 0.4;
}
.search-empty h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}
.search-empty p {
    color: var(--text-muted);
    margin: 0 auto 32px;
    max-width: 420px;
    line-height: 1.6;
}
.search-empty__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.search-suggestions {
    padding-bottom: 80px;
}
.search-suggestions__heading {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    text-align: center;
    margin: 0 0 28px;
}

/* ── Legal page ───────────────────────────────────────── */
.legal-hero {
    padding: clamp(48px, 6vw, 80px) 0 clamp(32px, 4vw, 48px);
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.legal-hero__eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 12px;
}

.legal-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 14px;
}

.legal-hero__meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

/* Two-column layout */
.legal-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 64px;
    align-items: start;
    padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 8vw, 120px);
}

/* Sticky TOC */
.legal-toc {
    position: sticky;
    top: 80px;
}

.legal-toc__label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 14px;
}

.legal-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legal-toc__list a {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all var(--transition);
    line-height: 1.4;
}

.legal-toc__list a:hover {
    color: var(--text);
    background: var(--bg-secondary);
}

.legal-toc__list .legal-toc__highlight {
    color: var(--accent);
    font-weight: 600;
}

.legal-toc__list .legal-toc__highlight:hover {
    background: rgba(44, 205, 212, 0.08);
}

/* TOC group labels (Terms / License / Privacy) */
.legal-toc__group {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 20px 0 6px;
}
.legal-toc__group:first-of-type { margin-top: 0; }
.legal-toc__group a {
    color: var(--text);
    text-decoration: none;
}
.legal-toc__group a:hover { color: var(--accent); }

/* Part dividers between the three documents */
.legal-part-divider {
    margin: 0 0 40px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--text);
    scroll-margin-top: 96px;
}
.legal-part-divider:not(:first-child) { margin-top: 72px; }
.legal-part-divider__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}
.legal-part-divider__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin: 0;
}
.legal-section { scroll-margin-top: 96px; }
.legal-section__crossref {
    font-size: 0.875rem !important;
    color: var(--text-muted) !important;
    font-style: italic;
}

/* Cookie consent banner */
/* Quiet toast: small card bottom-left, fades in late, never dominates.
   (Old version had flex-basis 280px on the text which, in the mobile column
   layout, became a 280px-tall block — the half-screen banner bug.) */
.cc-banner {
    position: fixed;
    left: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 9999;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    background: #16161a;
    color: #f5f5f5;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    font-size: 0.75rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.cc-banner--in {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.cc-banner__text {
    margin: 0;
    color: #c2c2c6;
}
.cc-banner__text a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cc-banner__actions {
    display: flex;
    gap: 8px;
}
.cc-btn {
    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 7px;
    border: 1px solid transparent;
    flex: 1;
    transition: all var(--transition, 0.2s ease);
}
.cc-btn--ghost {
    background: transparent;
    color: #d6d6da;
    border-color: rgba(255, 255, 255, 0.22);
}
.cc-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}
.cc-btn--solid {
    background: #ffffff;
    color: #111111;
}
.cc-btn--solid:hover {
    background: #e6e6e6;
}
@media (max-width: 480px) {
    .cc-banner {
        left: 12px;
        right: 12px;
        max-width: none;
    }
}

/* Content */
.legal-intro {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.legal-section {
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 36px;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-section__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 16px;
}

.legal-section__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 0.6875rem;
    font-weight: 700;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    flex-shrink: 0;
    line-height: 1;
}

.legal-section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin: 20px 0 6px;
}

.legal-section p,
.legal-section ul,
.legal-section ol {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0 0 12px;
}

.legal-section ul,
.legal-section ol {
    padding-left: 1.25em;
}

.legal-section li {
    margin-bottom: 6px;
}

.legal-section a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--border);
    transition: text-decoration-color var(--transition);
}

.legal-section a:hover {
    text-decoration-color: var(--text);
}

/* Digital refund callout */
.legal-callout {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    margin: 20px 0 4px;
}

.legal-callout--refund {
    border-left: 3px solid var(--accent);
    border-left-color: var(--accent);
}

.legal-callout__icon {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.legal-callout__body p {
    font-size: 0.9rem;
    margin: 0 0 10px;
    color: var(--text-secondary);
}

.legal-callout__body p:last-child {
    margin-bottom: 0;
}

.legal-callout__heading {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: var(--text) !important;
}

.legal-callout__exception {
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: 12px !important;
}

.legal-callout__exception strong {
    color: var(--text);
}

/* Responsive */
@media (max-width: 860px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .legal-toc {
        position: static;
        padding: 20px;
        background: var(--bg-secondary);
        border-radius: var(--radius-md);
        border: 1px solid var(--border);
    }
}


/* ── Contact page ─────────────────────────────────────── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 120px);
}

.contact-info__eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 12px;
}

.contact-info__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 20px;
}

.contact-info__lead {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 14px;
}

.contact-info__note {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 32px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-left: 3px solid var(--border);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.contact-info__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-info__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.contact-info__link:hover {
    color: var(--text);
}

/* Form */
.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
}

.contact-form__row {
    margin-bottom: 20px;
}

.contact-form__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 7px;
    letter-spacing: -0.01em;
}

.contact-form__input {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition);
    box-sizing: border-box;
    -webkit-appearance: none;
}

.contact-form__input:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.contact-form__submit {
    width: 100%;
    margin-top: 4px;
    justify-content: center;
}

.contact-success {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: rgba(44, 205, 212, 0.08);
    border: 1px solid rgba(44, 205, 212, 0.3);
    border-radius: var(--radius-md);
    color: var(--accent);
}

.contact-success__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
}

.contact-success__sub {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.contact-error {
    padding: 12px 16px;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: #dc2626;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Contact photo */
.contact-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

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

/* File input */
.contact-form__optional {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 4px;
}

.contact-form__file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: border-color var(--transition), color var(--transition);
}

.contact-form__file-label:hover {
    border-color: var(--accent);
    color: var(--text);
}

.contact-form__file-input {
    display: none;
}

.contact-form__file-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 6px 0 0;
}

/* ── Participate page ─────────────────────────────────── */
.participate-hero {
    padding: clamp(48px, 6vw, 80px) 0 clamp(32px, 4vw, 48px);
    border-bottom: 1px solid var(--border);
}

.participate-hero__eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 12px;
}

.participate-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 12px;
}

.participate-hero__sub {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

/* Three cards */
.participate-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

.participate-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.participate-card__icon {
    width: 36px;
    height: 36px;
    color: var(--accent);
    margin-bottom: 4px;
}

.participate-card__icon svg {
    width: 100%;
    height: 100%;
}

.participate-card__title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
}

.participate-card__body {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
}

.participate-card__link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    margin-top: 4px;
    transition: opacity var(--transition);
}

.participate-card__link:hover {
    opacity: 0.75;
}

/* Video + form two-col */
.participate-video-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 8vw, 120px);
}

.participate-video__eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 10px;
}

.participate-video__title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 16px;
}

.participate-video__body {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 12px;
}

.participate-video__embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-top: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.participate-video__embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
}

.participate-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
}

.participate-form__heading {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

@media (max-width: 900px) {
    .participate-cards {
        grid-template-columns: 1fr;
    }
    .participate-video-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .participate-form-wrap {
        position: static;
    }
}

/* ============================================================
   PARTICIPATE — dual video stack
   ============================================================ */
.participate-video__embeds {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

/* override the existing margin-top since .embeds handles spacing */
.participate-video__embeds .participate-video__embed {
    margin-top: 0;
}

/* ============================================================
   STEP WIZARD — Multi-step participate form
   ============================================================ */
.step-wizard {
    position: relative;
}

.step-wizard__step {
    display: flex;
    flex-direction: column;
    min-height: 420px;
    padding: 32px 32px 0;
}

/* Intro card */
.step-wizard__intro {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 32px 0;
}

.step-wizard__intro-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.step-wizard__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid var(--border);
}

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

.step-wizard__intro-title {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 8px;
}

.step-wizard__intro-count {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.step-wizard__start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 16px;
    margin: 24px -32px 0;
    width: calc(100% + 64px);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: opacity var(--transition);
}

.step-wizard__start-btn:hover {
    opacity: 0.88;
}

/* Question label */
.step-wizard__question {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    margin: 0 0 20px;
}

.step-wizard__question--sub {
    margin-top: 20px;
}

.step-wizard__req {
    color: #E8352A;
    margin-left: 2px;
}

.step-wizard__optional {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 4px;
}

.step-wizard__hint {
    font-size: 0.8125rem;
    line-height: 1.65;
    color: var(--text-secondary);
    text-align: center;
    margin: -8px 0 20px;
}

/* Inputs */
.step-wizard__input,
.step-wizard__select,
.step-wizard__textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition);
    box-sizing: border-box;
    -webkit-appearance: none;
}

.step-wizard__input:focus,
.step-wizard__select:focus,
.step-wizard__textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.step-wizard__input--error {
    border-color: #E8352A !important;
}

.step-wizard__select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.step-wizard__textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Name row — side by side */
.step-wizard__name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Dropzone (file upload) */
.step-wizard__dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px 20px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    text-align: center;
}

.step-wizard__dropzone:hover,
.step-wizard__dropzone--active {
    border-color: var(--accent);
    background: rgba(44, 205, 212, 0.04);
}

.step-wizard__dropzone-icon {
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 4px;
}

.step-wizard__dropzone-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.step-wizard__dropzone-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.step-wizard__browse-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 24px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    border-radius: var(--radius-sm);
    transition: opacity var(--transition);
}

.step-wizard__dropzone:hover .step-wizard__browse-btn {
    opacity: 0.88;
}

.step-wizard__file-input {
    display: none;
}

.step-wizard__file-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.step-wizard__file-item {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
}

/* Navigation bar */
.step-wizard__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 -32px;
    width: calc(100% + 64px);
    background: var(--accent);
}

.step-wizard__nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity var(--transition);
    font-family: inherit;
}

.step-wizard__nav-btn:hover {
    opacity: 0.75;
}

.step-wizard__nav-btn--next {
    margin-left: auto;
}

.step-wizard__nav-btn--submit {
    margin-left: auto;
}

.step-wizard__arrow {
    font-size: 1rem;
}

/* Step dots */
.step-wizard__dots {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    margin-top: auto;
}

.step-wizard__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.3s ease, transform 0.3s ease;
}

.step-wizard__dot--active {
    background: var(--accent);
    transform: scale(1.25);
}

.step-wizard__dot--done {
    background: var(--accent);
    opacity: 0.4;
}

/* Mobile */
@media (max-width: 900px) {
    .step-wizard__step {
        padding: 24px 24px 0;
        min-height: 320px;
    }
    .step-wizard__start-btn {
        margin-left: -24px;
        margin-right: -24px;
        width: calc(100% + 48px);
    }
    .step-wizard__nav {
        margin-left: -24px;
        margin-right: -24px;
        width: calc(100% + 48px);
    }
    .step-wizard__name-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .step-wizard__name-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
    width: 100%;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    position: relative; /* for close button absolute positioning */
}

/* Teal / promo style (default) */
.announcement-bar--teal {
    background: var(--accent);
    color: #fff;
}
.announcement-bar--teal a {
    color: #fff;
    text-decoration: none;
}
.announcement-bar--teal a:hover {
    opacity: 0.85;
}

/* Warning / urgent style */
.announcement-bar--warning {
    background: #f59e0b;
    color: #1a1a1a;
}
.announcement-bar--warning a {
    color: #1a1a1a;
    text-decoration: none;
}
.announcement-bar--warning a:hover {
    opacity: 0.8;
}

/* Dark / neutral style — solid near-black in both themes.
   (Was background: var(--bg-nav) — an undefined variable, the real one is
   --nav-bg — which rendered the bar fully transparent over the hero.) */
.announcement-bar--dark {
    background: #101012;
    color: #f5f5f7;
}
.announcement-bar--dark a {
    color: var(--accent);
    text-decoration: none;
}
.announcement-bar--dark a:hover {
    opacity: 0.85;
}

.announcement-bar__text {
    flex: 1;
    text-align: center;
}

.announcement-bar__link {
    font-weight: 600;
    white-space: nowrap;
    margin-left: 6px;
}

.announcement-bar__close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.15s ease;
    color: inherit;
    display: flex;
    align-items: center;
}
.announcement-bar__close:hover {
    opacity: 1;
}

@media (max-width: 600px) {
    .announcement-bar {
        padding: 10px 40px 10px 16px;
        font-size: 0.75rem;
    }
    .announcement-bar__close {
        right: 10px;
    }
}


/* ============================================================
   MY ACCOUNT — DOWNLOADS
   ============================================================ */
.downloads-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 20px 24px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.download-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.download-card__thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.download-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-card__body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-width: 0;
}

.download-card__info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.download-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.download-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.download-card__version {
    display: inline-flex;
    align-items: center;
    background: var(--text);
    color: var(--bg);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.3;
}

.download-card__file {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.download-card__remaining,
.download-card__expires {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.download-card__btn,
.download-card__btn:link,
.download-card__btn:visited,
.download-card__btn:hover,
.download-card__btn:active {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: opacity 0.15s ease;
    white-space: nowrap;
}
.download-card__btn:hover {
    opacity: 0.88;
}
.download-card__btn svg {
    flex-shrink: 0;
}

/* Empty state */
.downloads-empty {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-muted);
}
.downloads-empty svg {
    margin-bottom: 16px;
    opacity: 0.4;
}
.downloads-empty h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px;
}
.downloads-empty p {
    font-size: 0.9rem;
    margin: 0 0 24px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}
.downloads-empty__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent) !important;
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 10px 22px;
    border: 1px solid var(--accent) !important;
    border-radius: var(--radius-sm);
    text-decoration: none !important;
    transition: opacity 0.15s ease;
}
.downloads-empty__btn:hover {
    opacity: 0.88;
    color: #fff !important;
    text-decoration: none !important;
}

/* Mobile */
@media (max-width: 600px) {
    .download-card {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
    }
    .download-card__thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        border-radius: 10px;
    }
    .download-card__thumb img {
        image-rendering: auto;
    }
    .download-card__body {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .download-card__name {
        white-space: normal;
    }
    .download-card__btn {
        justify-content: center;
        padding: 12px;
    }
    .download-card__file {
        max-width: none;
    }
}


/* ══════════════════════════════════════════════════════════════
   CROSS-SELL & UPSELL
   ══════════════════════════════════════════════════════════════ */

/* ── Recommendations grid (shared by cart, product, thank-you) ── */

.thisise-recs {
    margin-top: 48px;
}

.thisise-recs__heading {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 20px;
}

.thisise-recs__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ── "Pairs well with" — compact inline bar in summary column ── */

.thisise-pairs {
    margin-top: 16px;
    max-width: 100%;
    overflow: hidden;
}

.thisise-pairs__heading {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 8px;
}

.thisise-pairs__list {
    display: flex;
    gap: 8px;
}

.thisise-pairs__item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.thisise-pairs__item:hover {
    border-color: rgba(0,0,0,0.12);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

[data-theme="dark"] .thisise-pairs__item:hover {
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.thisise-pairs__link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: var(--text);
}

.thisise-pairs__link:hover {
    color: var(--text);
    text-decoration: none;
}

.thisise-pairs__thumb {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg);
}

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

.thisise-pairs__info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.thisise-pairs__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thisise-pairs__price {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.thisise-pairs__price .woocommerce-Price-amount {
    color: var(--text-muted);
}

.thisise-pairs__add {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.thisise-pairs__add:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Mobile: stack pairs vertically, keep compact */
@media (max-width: 600px) {
    .thisise-pairs__list {
        flex-direction: column;
    }
    .thisise-pairs__item {
        width: 100%;
        box-sizing: border-box;
    }
    .thisise-pairs__name {
        white-space: normal;
        overflow: visible;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }
}

/* Cart recs: below the cart layout, full bleed */
.thisise-recs--cart {
    margin-top: 48px;
    margin-bottom: 20px;
}

/* Thank-you page recs — break out of narrow .thisise-thankyou wrapper.
   Keeps side gutters when the viewport is narrower than the 960px cap
   (without them the grid touched the screen edges on phones). */
.thisise-recs--thankyou {
    margin-top: 40px;
    padding: 32px var(--site-gutter, 16px) 0;
    border-top: 1px solid var(--border);
    width: 100vw;
    max-width: 960px;
    margin-left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .thisise-recs__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .thisise-recs__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .thisise-recs {
        margin-top: 32px;
    }
}


/* ── Cart upsell banner ── */

.thisise-cart-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

[data-theme="dark"] .thisise-cart-banner {
    background: var(--bg-secondary);
}

/* Ensure recommendation card links never show underlines */
.thisise-recs .product-card-link,
.thisise-recs .product-card-link:hover,
.thisise-recs .product-card-title {
    text-decoration: none;
}

.thisise-cart-banner__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.thisise-cart-banner__text strong {
    color: var(--text);
    font-weight: 600;
}


/* ── Welcome popup ── */

.thisise-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thisise-popup--visible {
    pointer-events: auto;
    opacity: 1;
}

.thisise-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.thisise-popup__card {
    position: relative;
    background: var(--bg);
    border-radius: 16px;
    padding: 40px 36px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.thisise-popup--visible .thisise-popup__card {
    transform: translateY(0);
}

[data-theme="dark"] .thisise-popup__card {
    border: 1px solid rgba(255,255,255,0.08);
}

.thisise-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color var(--transition), background var(--transition);
}

.thisise-popup__close:hover {
    color: var(--text);
    background: var(--surface-alt, rgba(0,0,0,0.05));
}

.thisise-popup__badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.thisise-popup__title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 8px;
    color: var(--text);
}

.thisise-popup__sub {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 16px;
}

.thisise-popup__code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--surface-alt, #f5f5f5);
    border: 1px dashed var(--border);
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text);
    margin-bottom: 20px;
}

[data-theme="dark"] .thisise-popup__code {
    background: rgba(255,255,255,0.06);
}

.thisise-popup__copy {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    display: flex;
    transition: color var(--transition);
}

.thisise-popup__copy:hover {
    color: var(--text);
}

.thisise-popup__cta {
    display: block;
    padding: 14px 24px;
    background: var(--accent);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    transition: background var(--transition);
}

.thisise-popup__cta:hover {
    background: var(--accent-hover, #c0392b);
    color: #fff;
}

/* ============================================================
   STORE GATE — branded coming-soon (launch window)
   ============================================================ */
.thisise-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - var(--thisise-header-h, 80px));
  padding: 60px var(--site-gutter);
}
.thisise-gate__inner { max-width: 560px; }
.thisise-gate__badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.thisise-gate__title {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 16px;
}
.thisise-gate__sub {
  color: var(--text-secondary, #777);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 auto 32px;
  max-width: 460px;
}
.thisise-gate__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.thisise-gate__btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.thisise-gate__btn:hover { transform: translateY(-1px); opacity: 0.92; color: #fff; }
.thisise-gate__btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.thisise-gate__btn--ghost:hover { color: var(--text); border-color: var(--text-muted, #999); }
