/* ==========================================================================
   STYLE.CSS — Premium Digital Products Website
   Brand: #FF4D00 | Minimal & Premium Aesthetic
   ========================================================================== */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
  /* Brand Colors */
  --color-primary: #FF4D00;
  --color-primary-rgb: 255, 77, 0;
  --color-primary-hover: #E64500;
  --color-primary-light: #FF6B2B;
  --color-accent: #FF6B2B;
  --color-accent-rgb: 255, 107, 43;

  /* Neutrals */
  --color-dark: #0A0A0A;
  --color-dark-rgb: 10, 10, 10;
  --color-light: #FAFAFA;
  --color-light-rgb: 250, 250, 250;
  --color-white: #FFFFFF;
  --color-white-rgb: 255, 255, 255;
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-400: #9CA3AF;
  --color-gray-500: #6B7280;
  --color-gray-600: #4B5563;
  --color-gray-700: #374151;
  --color-gray-800: #1F2937;
  --color-gray-900: #111827;

  /* Semantic */
  --color-success: #10B981;
  --color-error: #EF4444;
  --color-warning: #F59E0B;

  /* Surfaces (Light Mode) */
  --surface-primary: var(--color-white);
  --surface-secondary: var(--color-gray-50);
  --surface-tertiary: var(--color-gray-100);
  --surface-card: var(--color-white);
  --surface-card-hover: var(--color-gray-50);
  --surface-navbar: rgba(255, 255, 255, 0.8);

  /* Text */
  --text-primary: var(--color-dark);
  --text-secondary: var(--color-gray-600);
  --text-tertiary: var(--color-gray-400);
  --text-inverse: var(--color-white);
  --text-link: var(--color-primary);

  /* Borders */
  --border-default: var(--color-gray-200);
  --border-hover: var(--color-gray-300);
  --border-focus: var(--color-primary);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-primary: 0 4px 14px rgba(var(--color-primary-rgb), 0.25);
  --shadow-card-hover: 0 20px 40px rgba(var(--color-dark-rgb), 0.08);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font Sizes — Fluid */
  --text-xs: clamp(0.75rem, 0.7rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.17vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  --text-xl: clamp(1.1875rem, 1.1rem + 0.35vw, 1.25rem);
  --text-2xl: clamp(1.375rem, 1.2rem + 0.7vw, 1.5rem);
  --text-3xl: clamp(1.75rem, 1.4rem + 1.3vw, 2rem);
  --text-4xl: clamp(2.25rem, 1.8rem + 1.8vw, 2.5rem);
  --text-5xl: clamp(2.75rem, 2rem + 2.8vw, 3.5rem);
  --text-6xl: clamp(3.5rem, 2.5rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 2rem + 5vw, 6.5rem);

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Letter Spacing */
  --tracking-tighter: -0.04em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* Font Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;

  /* Section Spacing */
  --section-padding: clamp(4rem, 3rem + 4vw, 7rem);

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
  --duration-slower: 0.7s;

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-navbar: 500;
  --z-overlay: 800;
  --z-modal: 900;
  --z-preloader: 1000;
  --z-cursor: 9999;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;
  --container-padding: clamp(1rem, 0.5rem + 2vw, 2rem);
  --navbar-height: 72px;
}

/* ==========================================================================
   2. DARK MODE
   ========================================================================== */

[data-theme="dark"] {
  --surface-primary: #0A0A0A;
  --surface-secondary: #111111;
  --surface-tertiary: #1A1A1A;
  --surface-card: #141414;
  --surface-card-hover: #1C1C1C;
  --surface-navbar: rgba(10, 10, 10, 0.85);

  --text-primary: #F5F5F5;
  --text-secondary: #A0A0A0;
  --text-tertiary: #666666;

  --border-default: #222222;
  --border-hover: #333333;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   3. CSS RESET
   ========================================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  tab-size: 4;
  font-size: 16px;
}

body {
  min-height: 100vh;
  line-height: var(--leading-normal);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--text-primary);
  background-color: var(--surface-primary);
  transition: background-color var(--duration-slow) var(--ease-smooth),
              color var(--duration-slow) var(--ease-smooth);
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

ul,
ol {
  list-style: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--weight-bold);
}

table {
  border-collapse: collapse;
}

fieldset {
  border: none;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

::selection {
  background-color: rgba(var(--color-primary-rgb), 0.2);
  color: var(--color-dark);
}

/* ==========================================================================
   4. ACCESSIBILITY
   ========================================================================== */

/* Skip to main content */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-preloader);
  padding: var(--space-3) var(--space-6);
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: var(--weight-semibold);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: 0;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .custom-cursor {
    display: none !important;
  }
}

/* ==========================================================================
   5. GOOGLE FONTS
   ==========================================================================
   Fonts are loaded via <link rel="preload"> in parts/header.php for
   non-blocking + faster LCP. No @import here (it's render-blocking). */

/* ==========================================================================
   6. TYPOGRAPHY
   ========================================================================== */

.text-hero {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-bold);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tighter);
}

.text-display {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.text-h1 {
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.text-h2 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.text-h3 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
}

.text-h4 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
}

.text-h5 {
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
}

.text-h6 {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
}

.text-body {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  max-width: 65ch;
}

.text-body-lg {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  max-width: 65ch;
}

.text-small {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.text-xs {
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
}

.text-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-secondary);
}

.text-price {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-2xl);
  color: var(--color-primary);
}

.text-price-original {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: var(--text-lg);
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ==========================================================================
   7. LAYOUT UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.container-wide {
  max-width: var(--container-wide);
}

.section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.section-sm {
  padding-top: clamp(2rem, 1.5rem + 2vw, 4rem);
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 4rem);
}

.py-section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.px-section {
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.bg-white { background-color: var(--color-white); }
.bg-light { background-color: var(--surface-secondary); }
.bg-dark { background-color: var(--color-dark); }
.bg-primary { background-color: var(--color-primary); }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }

/* Grid */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   8. PRELOADER
   ========================================================================== */

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-preloader);
  background-color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-6);
  transition: opacity var(--duration-slow) var(--ease-smooth),
              visibility var(--duration-slow) var(--ease-smooth);
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__logo {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  letter-spacing: var(--tracking-tight);
}

.preloader__bar {
  width: 120px;
  height: 2px;
  background-color: var(--color-gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.preloader__progress {
  width: 0%;
  height: 100%;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  animation: preloaderProgress 2s var(--ease-in-out) forwards;
}

@keyframes preloaderProgress {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

.preloader__text {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

/* ==========================================================================
   9. NAVBAR
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  background-color: transparent;
  transition: background-color var(--duration-normal) var(--ease-smooth),
              backdrop-filter var(--duration-normal) var(--ease-smooth),
              height var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth);
}

.navbar.scrolled {
  height: 60px;
  background-color: var(--surface-navbar);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border-default);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  letter-spacing: var(--tracking-tight);
  z-index: 10;
}

[data-theme="dark"] .navbar__logo {
  color: var(--color-white);
}

.navbar__logo img {
  height: 32px;
  width: auto;
}

/* Navigation Links */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.navbar__link {
  position: relative;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  transition: color var(--duration-normal) var(--ease-smooth);
  padding: var(--space-2) 0;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-primary);
  transition: width var(--duration-normal) var(--ease-out);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--text-primary);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

/* Navbar Actions */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  z-index: 10;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: background-color var(--duration-normal) var(--ease-smooth),
              color var(--duration-normal) var(--ease-smooth);
}

.theme-toggle:hover {
  background-color: var(--surface-tertiary);
  color: var(--text-primary);
}

.theme-toggle__icon--light,
[data-theme="dark"] .theme-toggle__icon--dark {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--light {
  display: block;
}

[data-theme="dark"] .theme-toggle__icon--dark {
  display: none;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  z-index: 10;
}

.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--text-primary);
  transition: transform var(--duration-normal) var(--ease-out),
              opacity var(--duration-normal) var(--ease-smooth);
  transform-origin: center;
}

.navbar__hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Menu */
.navbar__mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--surface-primary);
  z-index: var(--z-overlay);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-smooth),
              visibility var(--duration-normal) var(--ease-smooth);
}

.navbar__mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.navbar__mobile-menu .navbar__link {
  font-size: var(--text-3xl);
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

/* Mobile breakpoint */
@media (max-width: 768px) {
  .navbar__nav {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__mobile-menu {
    display: flex;
  }

  .navbar__cta-desktop {
    display: none;
  }
}

/* ==========================================================================
   10. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  min-width: 44px;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  letter-spacing: var(--tracking-wide);
  text-align: center;
  border: 1.5px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: all var(--duration-normal) var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

/* Primary */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}

/* Outline */
.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}

/* Ghost */
.btn-ghost {
  background-color: transparent;
  color: var(--text-primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--surface-tertiary);
}

/* White (for dark backgrounds) */
.btn-white {
  background-color: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}

.btn-white:hover {
  background-color: var(--color-gray-100);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Sizes */
.btn-sm {
  min-height: 36px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  border-radius: var(--radius-md);
}

.btn-lg {
  min-height: 52px;
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

.btn-icon {
  padding: var(--space-3);
}

/* Full width */
.btn-block {
  width: 100%;
}

/* Disabled */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   11. HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background-color: var(--surface-primary);
}

.hero__canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__canvas-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--container-padding);
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background-color: rgba(var(--color-primary-rgb), 0.08);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
  border: 1px solid rgba(var(--color-primary-rgb), 0.15);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-bold);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tighter);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.hero__title span {
  color: var(--color-primary);
}

.hero__subtitle {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-10);
  max-width: 65ch;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  animation: scrollPulse 2s var(--ease-in-out) infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.5; transform: scaleY(0.6); }
}

/* ==========================================================================
   12. PRODUCT CARDS
   ========================================================================== */

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.product-card {
  position: relative;
  background-color: var(--surface-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-default);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-smooth);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
}

.product-card__image-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--surface-secondary);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

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

.product-card__badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-md);
  z-index: 2;
}

.product-card__badge--sale {
  background-color: var(--color-error);
}

.product-card__badge--new {
  background-color: var(--color-success);
}

.product-card__wishlist {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-white);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  z-index: 2;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out),
              color var(--duration-normal) var(--ease-smooth),
              background-color var(--duration-normal) var(--ease-smooth);
}

.product-card:hover .product-card__wishlist {
  opacity: 1;
  transform: translateY(0);
}

.product-card__wishlist:hover {
  color: var(--color-error);
  background-color: var(--color-gray-100);
}

.product-card__wishlist.active {
  color: var(--color-error);
  opacity: 1;
  transform: translateY(0);
}

.product-card__body {
  padding: var(--space-5);
}

.product-card__category {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-2);
}

.product-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
  transition: color var(--duration-normal) var(--ease-smooth);
}

.product-card:hover .product-card__name {
  color: var(--color-primary);
}

.product-card__description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card__pricing {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.product-card__price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.product-card__price--original {
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: var(--text-tertiary);
  text-decoration: line-through;
}

/* Rating */
.product-card__rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.product-card__stars {
  display: flex;
  gap: 1px;
}

.product-card__star {
  color: var(--color-warning);
  font-size: 12px;
}

.product-card__star--empty {
  color: var(--color-gray-300);
}

.product-card__rating-count {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-left: var(--space-1);
}

/* Responsive */
@media (min-width: 769px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   13. CUSTOM CURSOR
   ========================================================================== */

.custom-cursor {
  pointer-events: none;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  z-index: var(--z-cursor);
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width var(--duration-normal) var(--ease-out),
              height var(--duration-normal) var(--ease-out),
              background-color var(--duration-normal) var(--ease-smooth);
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-full);
  z-index: calc(var(--z-cursor) - 1);
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width var(--duration-normal) var(--ease-out),
              height var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-smooth),
              background-color var(--duration-normal) var(--ease-smooth);
}

.cursor-label {
  position: fixed;
  top: 0;
  left: 0;
  z-index: calc(var(--z-cursor) - 2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.cursor-label.visible {
  opacity: 1;
}

/* Cursor States */
.cursor-hover .cursor-dot {
  width: 10px;
  height: 10px;
}

.cursor-hover .cursor-ring {
  width: 56px;
  height: 56px;
  background-color: rgba(var(--color-primary-rgb), 0.08);
}

.cursor-click .cursor-dot {
  width: 4px;
  height: 4px;
}

.cursor-click .cursor-ring {
  width: 28px;
  height: 28px;
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
  .cursor-dot,
  .cursor-ring,
  .cursor-label {
    display: none !important;
  }

  * {
    cursor: auto !important;
  }
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */

.footer {
  background-color: var(--color-dark);
  color: var(--color-gray-400);
  padding-top: var(--section-padding);
}

.footer__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-16);
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-tight);
}

.footer__description {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-400);
  margin-bottom: var(--space-6);
}

.footer__social {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-gray-400);
  border: 1px solid var(--color-gray-800);
  transition: all var(--duration-normal) var(--ease-out);
}

.footer__social-link:hover {
  color: var(--color-white);
  border-color: var(--color-primary);
  background-color: rgba(var(--color-primary-rgb), 0.1);
}

.footer__column-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  margin-bottom: var(--space-6);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  transition: color var(--duration-normal) var(--ease-smooth);
}

.footer__link:hover {
  color: var(--color-primary-light);
}

/* Newsletter */
.footer__newsletter {
  max-width: 360px;
}

.footer__newsletter-text {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

.footer__newsletter-form {
  display: flex;
  gap: var(--space-2);
}

.footer__newsletter-input {
  flex: 1;
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-gray-900);
  border: 1px solid var(--color-gray-800);
  border-radius: var(--radius-lg);
  color: var(--color-white);
  font-size: var(--text-sm);
  transition: border-color var(--duration-normal) var(--ease-smooth);
}

.footer__newsletter-input::placeholder {
  color: var(--color-gray-600);
}

.footer__newsletter-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.footer__newsletter-btn {
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--duration-normal) var(--ease-out);
}

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

/* Bottom bar */
.footer__bottom {
  border-top: 1px solid var(--color-gray-800);
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-gray-600);
}

.footer__bottom-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.footer__bottom-link {
  font-size: var(--text-xs);
  color: var(--color-gray-600);
  transition: color var(--duration-normal) var(--ease-smooth);
}

.footer__bottom-link:hover {
  color: var(--color-gray-400);
}

@media (min-width: 769px) {
  .footer__main {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }
}

/* ==========================================================================
   15. SECTIONS
   ========================================================================== */

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-tight);
}

.section-header__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
  max-width: 65ch;
}

.section-divider {
  width: 48px;
  height: 2px;
  background-color: var(--color-primary);
  margin: var(--space-6) auto;
  border-radius: var(--radius-full);
}

.section--alt {
  background-color: var(--surface-secondary);
}

/* ==========================================================================
   16. TESTIMONIALS
   ========================================================================== */

.testimonials-scroll {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--space-4);
  margin: 0 calc(var(--container-padding) * -1);
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.testimonials-scroll::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background-color: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: border-color var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth);
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.testimonial-card__quote {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-card__quote::before {
  content: '\201C';
  color: var(--color-primary);
  font-size: var(--text-4xl);
  font-family: Georgia, serif;
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: var(--space-1);
}

.testimonial-card__rating {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-6);
}

.testimonial-card__star {
  color: var(--color-warning);
  font-size: 14px;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background-color: var(--surface-tertiary);
}

.testimonial-card__name {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 2px;
}

@media (min-width: 769px) {
  .testimonial-card {
    flex: 0 0 calc(50% - var(--space-3));
  }
}

@media (min-width: 1025px) {
  .testimonial-card {
    flex: 0 0 calc(33.333% - var(--space-4));
  }
}

/* ==========================================================================
   17. FAQ ACCORDION
   ========================================================================== */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-default);
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  transition: color var(--duration-normal) var(--ease-smooth);
}

.faq-item__trigger:hover {
  color: var(--color-primary);
}

.faq-item__icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-left: var(--space-4);
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  border-radius: var(--radius-full);
  transition: transform var(--duration-normal) var(--ease-out);
}

.faq-item__icon::before {
  top: 50%;
  left: 4px;
  right: 4px;
  height: 1.5px;
  transform: translateY(-50%);
}

.faq-item__icon::after {
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 1.5px;
  transform: translateX(-50%);
}

.faq-item.active .faq-item__icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-item__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out),
              padding var(--duration-slow) var(--ease-out);
}

.faq-item.active .faq-item__content {
  max-height: 500px;
}

.faq-item__answer {
  padding-bottom: var(--space-6);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 65ch;
}

/* ==========================================================================
   18. FORMS
   ========================================================================== */

.form-group {
  position: relative;
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  background-color: var(--surface-primary);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: border-color var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth),
              background-color var(--duration-normal) var(--ease-smooth);
}

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

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-tertiary);
}

/* Floating label */
.form-group--floating {
  position: relative;
}

.form-group--floating .form-input,
.form-group--floating .form-textarea {
  padding-top: var(--space-6);
  padding-bottom: var(--space-2);
}

.form-group--floating .form-label {
  position: absolute;
  top: 50%;
  left: var(--space-4);
  transform: translateY(-50%);
  margin-bottom: 0;
  pointer-events: none;
  color: var(--text-tertiary);
  font-size: var(--text-base);
  transition: all var(--duration-normal) var(--ease-out);
}

.form-group--floating .form-textarea ~ .form-label {
  top: var(--space-5);
  transform: none;
}

.form-group--floating .form-input:focus ~ .form-label,
.form-group--floating .form-input:not(:placeholder-shown) ~ .form-label,
.form-group--floating .form-textarea:focus ~ .form-label,
.form-group--floating .form-textarea:not(:placeholder-shown) ~ .form-label {
  top: var(--space-3);
  transform: none;
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* Error state */
.form-group--error .form-input,
.form-group--error .form-textarea {
  border-color: var(--color-error);
}

.form-group--error .form-input:focus,
.form-group--error .form-textarea:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-error);
}

/* Success state */
.form-group--success .form-input,
.form-group--success .form-textarea {
  border-color: var(--color-success);
}

.form-success {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-success);
}

/* Checkbox & Radio */
.form-checkbox,
.form-radio {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.form-checkbox__input,
.form-radio__input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-checkbox__label,
.form-radio__label {
  font-size: var(--text-sm);
  color: var(--text-primary);
  cursor: pointer;
}

/* ==========================================================================
   19. PRODUCT DETAIL PAGE
   ========================================================================== */

.product-detail {
  padding-top: calc(var(--navbar-height) + var(--space-12));
}

.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 1025px) {
  .product-detail__grid {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-16);
  }
}

/* Gallery */
.product-gallery {
  position: relative;
}

.product-gallery__main {
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--surface-secondary);
  margin-bottom: var(--space-4);
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

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

.product-gallery__thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.product-gallery__thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all var(--duration-normal) var(--ease-out);
}

.product-gallery__thumb:hover,
.product-gallery__thumb.active {
  opacity: 1;
  border-color: var(--color-primary);
}

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

/* Product Info */
.product-info {
  position: relative;
}

@media (min-width: 1025px) {
  .product-info__sticky {
    position: sticky;
    top: calc(var(--navbar-height) + var(--space-8));
  }
}

.product-info__breadcrumb {
  margin-bottom: var(--space-4);
}

.product-info__category {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.product-info__name {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-tight);
}

.product-info__rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.product-info__stars {
  display: flex;
  gap: 2px;
  color: var(--color-warning);
}

.product-info__rating-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.product-info__pricing {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.product-info__price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.product-info__price--original {
  font-size: var(--text-xl);
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.product-info__price--discount {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-success);
  background-color: rgba(16, 185, 129, 0.1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

.product-info__description {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 65ch;
}

/* Buy Box */
.product-buy-box {
  padding: var(--space-6);
  background-color: var(--surface-secondary);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-8);
}

.product-buy-box__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.product-buy-box__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.product-buy-box__value {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.product-buy-box__actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* Tabs */
.product-tabs {
  margin-top: var(--space-12);
}

.product-tabs__nav {
  display: flex;
  border-bottom: 1px solid var(--border-default);
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.product-tabs__tab {
  position: relative;
  padding: var(--space-4) 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--duration-normal) var(--ease-smooth);
}

.product-tabs__tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--duration-normal) var(--ease-out);
}

.product-tabs__tab:hover {
  color: var(--text-primary);
}

.product-tabs__tab.active {
  color: var(--text-primary);
}

.product-tabs__tab.active::after {
  transform: scaleX(1);
}

.product-tabs__panel {
  display: none;
}

.product-tabs__panel.active {
  display: block;
}

/* ==========================================================================
   20. SHOP PAGE
   ========================================================================== */

.shop-header {
  padding-top: calc(var(--navbar-height) + var(--space-12));
  padding-bottom: var(--space-8);
}

.shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 1025px) {
  .shop-layout {
    grid-template-columns: 240px 1fr;
    gap: var(--space-10);
  }
}

/* Filter Bar */
.shop-filters {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.shop-filters__search {
  position: relative;
}

.shop-filters__search-input {
  width: 100%;
  min-height: 44px;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-10);
  background-color: var(--surface-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: border-color var(--duration-normal) var(--ease-smooth);
}

.shop-filters__search-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.shop-filters__search-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

.shop-filters__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.shop-filters__group-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-1);
}

.shop-filters__option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--duration-normal) var(--ease-smooth);
}

.shop-filters__option:hover,
.shop-filters__option.active {
  color: var(--text-primary);
}

.shop-filters__option.active {
  font-weight: var(--weight-medium);
  color: var(--color-primary);
}

/* Active Filter Pills */
.shop-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.shop-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background-color: rgba(var(--color-primary-rgb), 0.08);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-full);
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
  transition: all var(--duration-normal) var(--ease-out);
}

.shop-filter-pill__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  font-size: 10px;
  cursor: pointer;
  transition: background-color var(--duration-normal) var(--ease-smooth);
}

.shop-filter-pill__remove:hover {
  background-color: rgba(var(--color-primary-rgb), 0.15);
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.shop-toolbar__count {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.shop-toolbar__sort {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.shop-toolbar__sort select {
  min-height: 36px;
  padding: var(--space-2) var(--space-4);
  background-color: var(--surface-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-primary);
  cursor: pointer;
}

/* ==========================================================================
   21. BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.breadcrumbs__link {
  color: var(--text-tertiary);
  transition: color var(--duration-normal) var(--ease-smooth);
}

.breadcrumbs__link:hover {
  color: var(--color-primary);
}

.breadcrumbs__separator {
  color: var(--color-gray-300);
  font-size: 10px;
}

.breadcrumbs__current {
  color: var(--text-secondary);
  font-weight: var(--weight-medium);
}

/* ==========================================================================
   22. ANIMATIONS & REVEALS
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slower) var(--ease-out),
              transform var(--duration-slower) var(--ease-out);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity var(--duration-slower) var(--ease-out),
              transform var(--duration-slower) var(--ease-out);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--duration-slower) var(--ease-out),
              transform var(--duration-slower) var(--ease-out);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--duration-slower) var(--ease-out),
              transform var(--duration-slower) var(--ease-out);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.stagger.active > *:nth-child(1) { transition-delay: 0ms; }
.stagger.active > *:nth-child(2) { transition-delay: 80ms; }
.stagger.active > *:nth-child(3) { transition-delay: 160ms; }
.stagger.active > *:nth-child(4) { transition-delay: 240ms; }
.stagger.active > *:nth-child(5) { transition-delay: 320ms; }
.stagger.active > *:nth-child(6) { transition-delay: 400ms; }
.stagger.active > *:nth-child(7) { transition-delay: 480ms; }
.stagger.active > *:nth-child(8) { transition-delay: 560ms; }
.stagger.active > *:nth-child(9) { transition-delay: 640ms; }

.stagger.active > * {
  opacity: 1;
  transform: translateY(0);
}

/* Hover transitions utility */
.hover-lift {
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Page transition */
.page-transition {
  animation: pageIn var(--duration-slow) var(--ease-out) forwards;
}

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

/* ==========================================================================
   23. SKELETON LOADING
   ========================================================================== */

.skeleton {
  position: relative;
  overflow: hidden;
  background-color: var(--surface-tertiary);
  border-radius: var(--radius-md);
  color: transparent !important;
}

.skeleton * {
  visibility: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--color-white-rgb), 0.4) 50%,
    transparent 100%
  );
  animation: skeletonShimmer 1.5s infinite;
}

[data-theme="dark"] .skeleton::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 100%
  );
}

@keyframes skeletonShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skeleton--text {
  height: 1em;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-sm);
}

.skeleton--text:last-child {
  width: 70%;
}

.skeleton--heading {
  height: 2em;
  margin-bottom: var(--space-4);
  width: 50%;
}

.skeleton--avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
}

.skeleton--image {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.skeleton--button {
  height: 44px;
  width: 120px;
  border-radius: var(--radius-lg);
}

/* Skeleton card */
.skeleton-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-default);
}

.skeleton-card__image {
  aspect-ratio: 4 / 3;
  background-color: var(--surface-tertiary);
}

.skeleton-card__body {
  padding: var(--space-5);
}

.skeleton-card__body .skeleton--text {
  background-color: var(--surface-tertiary);
}

/* ==========================================================================
   24. PRINT STYLES
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }

  .navbar,
  .footer,
  .preloader,
  .custom-cursor,
  .hero__scroll-indicator,
  .hero__canvas-container,
  .btn,
  .shop-filters,
  .product-tabs__nav {
    display: none !important;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  img {
    max-width: 100% !important;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  p {
    orphans: 3;
    widows: 3;
  }
}

/* ==========================================================================
   25. RESPONSIVE UTILITIES
   ========================================================================== */

/* Mobile only */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Tablet and up */
@media (max-width: 1024px) {
  .hide-tablet {
    display: none !important;
  }
}

/* Desktop only */
@media (min-width: 1025px) {
  .hide-desktop {
    display: none !important;
  }
}

/* Large screens */
@media (min-width: 1440px) {
  :root {
    --container-padding: 3rem;
  }
}

/* ==========================================================================
   26. SPACING UTILITIES
   ========================================================================== */

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.pt-0 { padding-top: 0; }
.pt-4 { padding-top: var(--space-4); }
.pt-8 { padding-top: var(--space-8); }

.pb-0 { padding-bottom: 0; }
.pb-4 { padding-bottom: var(--space-4); }
.pb-8 { padding-bottom: var(--space-8); }

/* ==========================================================================
   27. MISCELLANEOUS COMPONENTS
   ========================================================================== */

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  line-height: 1.4;
}

.badge--primary {
  background-color: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
}

.badge--success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

.badge--error {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
}

/* Tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background-color: var(--surface-secondary);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.tag:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-default);
  border: none;
}

/* Avatar */
.avatar {
  border-radius: var(--radius-full);
  object-fit: cover;
  background-color: var(--surface-tertiary);
}

.avatar--sm { width: 32px; height: 32px; }
.avatar--md { width: 48px; height: 48px; }
.avatar--lg { width: 64px; height: 64px; }
.avatar--xl { width: 80px; height: 80px; }

/* Toast/Notification */
.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background-color: var(--color-dark);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  font-size: var(--text-sm);
  transform: translateY(120%);
  opacity: 0;
  transition: transform var(--duration-normal) var(--ease-spring),
              opacity var(--duration-normal) var(--ease-smooth);
}

.toast.active {
  transform: translateY(0);
  opacity: 1;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: var(--space-6);
  opacity: 0.3;
}

.empty-state__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.empty-state__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  z-index: var(--z-sticky);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-primary);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
}

/* Image Lightbox Overlay */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background-color: rgba(var(--color-dark-rgb), 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-smooth),
              visibility var(--duration-normal) var(--ease-smooth);
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.lightbox-overlay__close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: var(--text-xl);
  border-radius: var(--radius-full);
  transition: background-color var(--duration-normal) var(--ease-smooth);
}

.lightbox-overlay__close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   END OF STYLESHEET
   ========================================================================== */

/* ==========================================================================
   JS-REFERENCED HELPERS
   ========================================================================== */

/* Hide the 3D canvas container when WebGL/three.js is unavailable */
.canvas-fallback {
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 77, 0, 0.10), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(255, 107, 43, 0.08), transparent 55%);
}

/* Cross-fade used by the product image gallery */
.fade-in {
  animation: galleryFade 0.5s var(--ease-out) both;
}

@keyframes galleryFade {
  from { opacity: 0.4; transform: scale(0.99); }
  to   { opacity: 1; transform: scale(1); }
}

/* Form status message inside AJAX forms */
.form-status {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--text-secondary);
  min-height: 1em;
}

.form-status.success { color: var(--color-success); }
.form-status.error   { color: var(--color-error); }
