/* =====================================================
   DIRTREK ADVENTURE - ALOOMNI-STYLE DESIGN SYSTEM
   Premium adventure clothing - Inspired by aloomni.id
   ===================================================== */

/* =====================================================
   FONTS
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Varela+Round&display=swap');

/* =====================================================
   CSS VARIABLES / DESIGN TOKENS
   ===================================================== */
:root {
  /* =====================================================
     PREMIUM ADVENTURE COLOR PALETTE
     ===================================================== */

  /* Primary - Midnight Navy (45% usage) */
  --primary-navy: #1E2336;
  --primary-navy-light: #2a3147;

  /* Primary Accent - Trail Orange (10% usage) */
  --primary: #E16E07;
  --primary-dark: #C85F06;
  --primary-light: #F18A2B;

  /* Background Light - Sand White (30% usage) */
  --sand-white: #F4F1EC;
  --sand-white-dark: #E8E4DD;

  /* Text Primary - Charcoal Dark (10% usage) */
  --charcoal: #2B2F36;

  /* Text Secondary - Stone Gray (3% usage) */
  --stone-gray: #8E939B;

  /* Nature Accent - Forest Olive (2% usage) */
  --forest-olive: #3F5D3A;
  --forest-olive-light: #4A6B44;

  /* Legacy mappings for compatibility */
  --dark: #1E2336;
  --dark-light: #2a3147;
  --accent: #3F5D3A;
  --accent-dark: #2F4A2B;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #F4F1EC;
  --gray-100: #E8E4DD;
  --gray-200: #D4D0C9;
  --gray-300: #C0BCB5;
  --gray-400: #A8A4A0;
  --gray-500: #8E939B;
  --gray-600: #6B7075;
  --gray-700: #4A4E53;
  --gray-800: #2B2F36;
  --gray-900: #1E2336;
  --black: #1E2336;

  /* Product Colors */
  --color-hitam: #1E2336;
  --color-putih: #ffffff;
  --color-maroon: #800000;
  --color-navy: #1E2336;
  --color-mustard: #E16E07;

  /* Semantic Colors */
  --success: #3F5D3A;
  --warning: #E16E07;
  --error: #DC3545;
  --info: #3b82f6;
  --whatsapp: #25D366;

  /* Typography */
  --font-primary: 'Varela Round', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Montserrat', var(--font-primary);

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Spacing - More generous like Aloomni */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  /* Spacing - Compact Modern */
  --space-8: 1.5rem;
  --space-10: 2rem;
  --space-12: 2.5rem;
  --space-16: 3rem;
  --space-20: 3.5rem;
  --space-24: 4rem;

  /* Border Radius - Softer, more modern */
  --radius-none: 0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows - Softer, more elegant */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Container */
  --container-max: 1200px;
  --container-padding: var(--space-6);

  /* Header */
  --header-height: 80px;

  /* Cart Drawer Width */
  --drawer-width: 420px;
}

/* =====================================================
   RESET & BASE STYLES
   ===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--white);
  min-height: 100vh;
}

body.drawer-open {
  overflow: hidden;
}

/* =====================================================
   PAGE LOADING OPTIMIZATION - Smooth Rendering
   ===================================================== */

/* Initially hide body content to prevent FOUC */
body {
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

body.loading {
  opacity: 0;
}

body.loaded {
  opacity: 1;
}

/* Page Preloader Overlay */
.page-preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-navy);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}

.page-preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Simple elegant loader */
.preloader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Content reveal animation */
.content-reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.content-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for multiple elements */
.content-reveal:nth-child(1) {
  transition-delay: 0.05s;
}

.content-reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.content-reveal:nth-child(3) {
  transition-delay: 0.15s;
}

.content-reveal:nth-child(4) {
  transition-delay: 0.2s;
}

.content-reveal:nth-child(5) {
  transition-delay: 0.25s;
}

.content-reveal:nth-child(6) {
  transition-delay: 0.3s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =====================================================
   OPTIMIZED IMAGE LOADING - Prevent Flash/Broken Images
   Cloudinary-optimized with skeleton and fade-in
   ===================================================== */

/* Base image state: INVISIBLE until loaded */
.lazy-img {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.lazy-img.loaded {
  opacity: 1;
}

/* Image container with skeleton */
.img-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
}

/* Product image wrapper with aspect ratio */
.product-image {
  position: relative;
  aspect-ratio: 1 / 1.2;
  overflow: hidden;
  background: var(--gray-100);
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease-out, transform 0.3s ease;
}

.product-image img.loaded {
  opacity: 1;
}

.product-card:hover .product-image img.loaded {
  transform: scale(1.03);
}

/* Skeleton placeholder - animated shimmer */
.skeleton-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
      var(--gray-100) 0%,
      var(--gray-200) 50%,
      var(--gray-100) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  z-index: 2;
}

.skeleton-placeholder.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Generic skeleton for text/elements */
.skeleton {
  background: linear-gradient(90deg,
      var(--gray-100) 0%,
      var(--gray-200) 50%,
      var(--gray-100) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  border-radius: var(--radius-md);
}

/* Main product detail image */
.main-image {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--sand-white);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 4px 24px rgba(30, 35, 54, 0.08);
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease-out, transform 0.3s ease;
}

.main-image img.loaded {
  opacity: 1;
}

.main-image:hover img.loaded {
  transform: scale(1.02);
}

/* Thumbnail images */
.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thumbnail img.loaded {
  opacity: 1;
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Staggered fade in for lists */
.stagger-in>* {
  opacity: 0;
  animation: fadeIn 0.4s ease-out forwards;
}

.stagger-in>*:nth-child(1) {
  animation-delay: 0.05s;
}

.stagger-in>*:nth-child(2) {
  animation-delay: 0.1s;
}

.stagger-in>*:nth-child(3) {
  animation-delay: 0.15s;
}

.stagger-in>*:nth-child(4) {
  animation-delay: 0.2s;
}

.stagger-in>*:nth-child(5) {
  animation-delay: 0.25s;
}

.stagger-in>*:nth-child(6) {
  animation-delay: 0.3s;
}

.stagger-in>*:nth-child(7) {
  animation-delay: 0.35s;
}

.stagger-in>*:nth-child(8) {
  animation-delay: 0.4s;
}

/* Page transition */
.page-transition {
  opacity: 0;
  animation: fadeIn 0.3s ease-out forwards;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font: inherit;
  border: 1px solid var(--stone-gray);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  width: 100%;
  background: var(--sand-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}

ul,
ol {
  list-style: none;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.hidden {
  display: none !important;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  line-height: 1.2;
  color: var(--dark);
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

/* =====================================================
   BUTTONS - Premium World-Class Style
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}

.btn-dark:hover:not(:disabled) {
  background: var(--dark-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Teal accent button for Buy Now (like Aloomni) */
.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover:not(:disabled) {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-dark {
  background: var(--gray-600);
  color: var(--white);
  border: 1px solid transparent;
}

.btn-dark:hover:not(:disabled) {
  background: var(--gray-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-dark:disabled {
  background: var(--gray-100);
  color: var(--gray-700);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  border: 1px solid var(--gray-300);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--dark);
  color: var(--dark);
}

.btn-outline:hover:not(:disabled) {
  background: var(--dark);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline-white:hover:not(:disabled) {
  background: var(--white);
  color: var(--dark);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--gray-100);
}

.btn-sm {
  padding: 8px 16px;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 16px 32px;
  font-size: var(--text-base);
}

.btn-xl {
  padding: 20px 40px;
  font-size: var(--text-lg);
}

.btn-icon {
  padding: var(--space-2);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.btn-whatsapp:hover:not(:disabled) {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =====================================================
   HEADER / NAVIGATION - MIDNIGHT NAVY
   ===================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary-navy);
  height: var(--header-height);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-extrabold);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-actions .btn-icon {
  color: var(--white);
}

.header-actions .btn-icon:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: var(--font-bold);
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.mobile-menu-btn {
  display: none;
  color: var(--white);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--dark);
  z-index: 99;
  padding: var(--space-4);
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav-link {
  padding: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--white);
  text-transform: uppercase;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

/* =====================================================
   HERO BANNER - PREMIUM CAMPAIGN STYLE
   ===================================================== */
.banner-slider {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 600px;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  /* Smoother, longer crossfade transition */
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    transform 8s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Start zoomed in slightly */
  transform: scale(1.05);
}

.slider-slide.active {
  opacity: 1;
  visibility: visible;
  /* Ken Burns: slowly zoom out while active */
  transform: scale(1);
}

/* Cleaner Overlay - Less cluttered */
.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(30, 35, 54, 0.4) 0%, rgba(30, 35, 54, 0.7) 100%);
  z-index: 1;
}

.slider-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 32px;
}

/* Minimal Tag - No pill button style */
.slider-tag {
  display: inline-block;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 24px;
  background: none;
  padding: 0;
  border-radius: 0;
}

/* Strong Typography */
.slider-title {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.05;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.slider-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  font-weight: 400;
  letter-spacing: 1px;
}

/* Slider Navigation Arrows */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.slider-nav:hover {
  background: var(--primary);
}

.slider-prev {
  left: var(--space-6);
}

.slider-next {
  right: var(--space-6);
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: var(--space-3);
}

.slider-dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.slider-dot.active,
.slider-dot:hover {
  background: var(--primary);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .banner-slider {
    height: 60vh;
    min-height: 400px;
  }

  .slider-title {
    font-size: 2.5rem;
  }

  .slider-subtitle {
    font-size: var(--text-base);
  }

  .slider-nav {
    width: 44px;
    height: 44px;
  }

  .slider-prev {
    left: var(--space-3);
  }

  .slider-next {
    right: var(--space-3);
  }
}

/* =====================================================
   FEATURES BAR - ICON STRIP
   ===================================================== */
.features-bar {
  background: var(--dark);
  padding: var(--space-8) 0;
  border-bottom: 3px solid var(--primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--primary);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-text strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}

.feature-text span {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-xs);
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* =====================================================
   SECTION HEADERS - Editorial Style
   ===================================================== */
.section-tag {
  display: inline-block;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-header p {
  color: var(--stone-gray);
  font-size: 13px;
  letter-spacing: 0.5px;
}

.categories-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  transition: transform var(--transition-base);
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  font-size: 2.5rem;
  transition: all var(--transition-base);
}

.category-card:hover .category-icon {
  background: var(--primary);
  color: var(--white);
}

.category-name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--charcoal);
}

/* =====================================================
   CATEGORIES SECTION - Curated Exploration
   ===================================================== */
.categories-section {
  padding: 80px 0;
  background: var(--white);
}

.categories-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
}

.category-card {
  position: relative;
  cursor: pointer;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 0.15s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(30, 35, 54, 0.1);
  border: 3px solid var(--white);
  transition: all 0.15s ease;
}

.category-card:hover .category-image {
  box-shadow: 0 0 0 3px var(--primary);
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.15s ease;
}

.category-card:hover .category-image img {
  transform: scale(1.05);
}

.category-name {
  position: static;
  background: none;
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  margin-top: var(--space-2);
}

@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .category-name {
    font-size: var(--text-xs);
  }
}

/* =====================================================
   PRODUCT CARDS - PREMIUM WORLD-CLASS STYLE
   ===================================================== */
.products-section {
  padding: 80px 0;
  background: var(--white);
}

.products-section-alt {
  background: var(--sand-white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* =====================================================
   PRODUCT CARDS - PREMIUM ADVENTURE BRAND
   Clean, minimal, outdoor lifestyle aesthetic
   ===================================================== */

.product-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(30, 35, 54, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(30, 35, 54, 0.12);
}

/* Product Image - Clean and Bold */
.product-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--sand-white);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.03);
}

/* Subtle Category Label (very minimal) */
.product-category-label {
  position: absolute;
  top: 12px;
  left: 12px;
  color: var(--white);
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: rgba(30, 35, 54, 0.6);
  backdrop-filter: blur(4px);
  border-radius: 3px;
  z-index: 2;
}

/* Remove flashy badges - hide by default */
.product-badge {
  display: none;
}

/* Remove quick view icon - cleaner look */
.product-quick-view {
  display: none;
}

/* No gradient overlay - clean image */
.product-image::after {
  display: none;
}

/* Product Info - Clean Typography */
.product-info {
  padding: 20px 16px;
  text-align: left;
  background: var(--white);
}

/* Product Name - Uppercase, Strong */
.product-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Product Price - Trail Orange Accent */
.product-price {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  text-align: left;
}

.product-price-from {
  display: none;
}

/* View Details Button - Solid, No Cart Icon */
.product-card .btn {
  width: 100%;
  background: var(--primary-navy);
  color: var(--white);
  border-radius: 6px;
  justify-content: center;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.2s ease;
  border: none;
}

.product-card .btn svg {
  display: none;
}

.product-card .btn:hover {
  background: var(--primary);
  transform: none;
}

/* Category Subtitle - Very Subtle */
.product-category {
  font-size: 10px;
  color: var(--stone-gray);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .products-section {
    padding: var(--space-12) 0;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .product-name {
    font-size: var(--text-base);
  }

  .product-price {
    font-size: var(--text-lg);
  }
}

/* =====================================================
   SIZE CHART
   ===================================================== */
.size-chart-section {
  padding: var(--space-16) 0;
  background: var(--gray-50);
}

.size-chart-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.size-chart-header {
  background: var(--dark);
  color: var(--white);
  padding: var(--space-6);
  text-align: center;
}

.size-chart-header h3 {
  color: var(--white);
  margin-bottom: var(--space-2);
}

.size-chart-header p {
  color: var(--gray-400);
  font-size: var(--text-sm);
}

.size-chart-table {
  width: 100%;
  border-collapse: collapse;
}

.size-chart-table th,
.size-chart-table td {
  padding: var(--space-4);
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
}

.size-chart-table th {
  background: var(--gray-50);
  font-family: var(--font-display);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  font-size: var(--text-sm);
}

.size-chart-table tr:hover {
  background: var(--gray-50);
}

.size-chart-note {
  padding: var(--space-4);
  background: var(--primary);
  color: var(--white);
  text-align: center;
  font-size: var(--text-sm);
}

/* =====================================================
   PROMO BANNERS - Premium Editorial
   ===================================================== */
.promo-banners {
  padding: 80px 0;
  background: var(--sand-white);
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
}

.promo-card {
  position: relative;
  min-height: 350px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.promo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
}

.promo-content {
  position: relative;
  z-index: 2;
  padding: var(--space-8);
  color: var(--white);
}

.promo-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: 2px;
  margin-bottom: var(--space-3);
}

.promo-content h3 {
  color: var(--white);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.promo-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
  .promo-grid {
    grid-template-columns: 1fr;
  }

  .promo-card {
    min-height: 280px;
  }
}

/* =====================================================
   TRUST BADGES - Simplified Professional
   ===================================================== */
.trust-section {
  padding: 64px 0;
  background: var(--primary-navy);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}

.trust-item {
  padding: 24px;
}

.trust-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(225, 110, 7, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.trust-icon svg {
  width: 24px;
  height: 24px;
}

.trust-item h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.trust-item p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* =====================================================
   CUSTOMER PHOTOS - INFINITE SLIDER
   ===================================================== */
.customer-photos-section {
  padding: var(--space-16) 0;
  background: var(--white);
  overflow: hidden;
}

.customer-photos-section .section-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.customer-slider {
  width: 100%;
  overflow: hidden;
}

.customer-track {
  display: flex;
  gap: 0;
  animation: scroll-photos 25s linear infinite;
  width: max-content;
}

.customer-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-photos {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.customer-photo {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  overflow: hidden;
}

.customer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.customer-photo:hover img {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .customer-photo {
    width: 150px;
    height: 150px;
  }
}

/* =====================================================
   CATEGORY FILTER BUTTONS
   ===================================================== */
.category-filter {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  transition: all var(--transition-fast);
}

.filter-btn.active {
  background: var(--dark);
  color: var(--white);
}

/* Products section alt background */
.products-section-alt {
  background: var(--gray-50);
}

/* =====================================================
   PRODUCT DETAIL PAGE - PREMIUM ADVENTURE BRAND
   ===================================================== */
.product-detail {
  padding: 32px 0 80px;
  background: var(--white);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Gallery - Clean Campaign Style */
.product-gallery {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.main-image {
  aspect-ratio: 4/5;
  background: var(--sand-white);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 4px 24px rgba(30, 35, 54, 0.08);
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  opacity: 1 !important;
  /* Always show product detail image */
}

.main-image:hover img {
  transform: scale(1.02);
}

/* Thumbnails - Minimal Strip */
.thumbnail-list {
  display: flex;
  gap: 12px;
  padding-bottom: 4px;
}

.thumbnail {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
  opacity: 0.6;
}

.thumbnail:hover {
  opacity: 1;
}

.thumbnail.active {
  border-color: var(--primary);
  opacity: 1;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info - Editorial Layout */
.product-info-detail h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--charcoal);
  margin-bottom: 8px;
  line-height: 1.2;
}

.product-sold {
  color: var(--stone-gray);
  font-size: 12px;
  margin-bottom: 20px;
}

.product-sold #soldCount {
  color: var(--charcoal);
  font-weight: 500;
}

/* Price - Trail Orange Accent */
.product-price-detail {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 32px;
}

/* Variant Selection - Premium Design */
.variant-section {
  margin-bottom: var(--space-6);
}

.variant-label {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: var(--space-3);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--charcoal);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.variant-label span {
  font-weight: 400;
  color: var(--stone-gray);
  text-transform: none;
  font-size: 13px;
  letter-spacing: 0;
}

/* Color Options - Small Outlined Circles */
.color-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.color-option {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.color-option::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.color-option:hover::after {
  border-color: var(--stone-gray);
}

.color-option.active::after {
  border-color: var(--primary);
}

.color-hitam {
  background-color: #1E2336;
}

.color-putih {
  background-color: #ffffff;
  box-shadow: inset 0 0 0 1px #d4d4d4;
}

.color-maroon {
  background-color: #800000;
}

.color-navy {
  background-color: #1E2336;
}

.color-mustard {
  background-color: #E16E07;
}

/* Size Options - Text Only Buttons */
.size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-option {
  min-width: 44px;
  height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border: 1px solid #d4d4d4;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.15s ease;
  background: transparent;
  color: var(--charcoal);
}

.size-option:hover {
  border-color: var(--charcoal);
}

.size-option.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
  font-weight: 600;
}

.size-option.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Sleeve Options - Icon + Underline */
.sleeve-options {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.sleeve-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--stone-gray);
  position: relative;
}

.sleeve-option::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.15s ease;
}

.sleeve-option svg,
.sleeve-option img {
  width: 32px;
  height: 32px;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.sleeve-option:hover {
  color: var(--charcoal);
}

.sleeve-option:hover svg,
.sleeve-option:hover img {
  opacity: 0.8;
}

.sleeve-option.active {
  color: var(--charcoal);
}

.sleeve-option.active::after {
  background: var(--primary);
}

.sleeve-option.active svg,
.sleeve-option.active img {
  opacity: 1;
}

/* Quantity - Apple Style */
.quantity-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d4d4d4;
  border-radius: 0;
  overflow: hidden;
  height: 40px;
}

.quantity-btn {
  width: 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 400;
  color: var(--charcoal);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease;
  border: none;
}

.quantity-btn:hover {
  background: var(--sand-white);
}

.quantity-input {
  width: 48px;
  height: 100%;
  border: none;
  border-left: 1px solid #d4d4d4;
  border-right: 1px solid #d4d4d4;
  text-align: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  padding: 0;
  color: var(--charcoal);
  appearance: textfield;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-input:focus {
  outline: none;
}

/* Action Buttons - Premium */
.add-to-cart-section {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.add-to-cart-section .btn {
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all 0.15s ease;
}

/* Primary: ADD TO CART - Solid Orange */
.add-to-cart-section .btn-dark {
  background: var(--primary);
  color: var(--white);
  border: none;
}

.add-to-cart-section .btn-dark:hover {
  background: var(--primary-dark);
}

.add-to-cart-section .btn-dark svg {
  display: none;
}

/* Secondary: BUY NOW - Outline Only */
.add-to-cart-section .btn-ghost-accent {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}

.add-to-cart-section .btn-ghost-accent:hover {
  background: var(--charcoal);
  color: var(--white);
}

.add-to-cart-section .btn-ghost-accent svg {
  display: none;
}

/* Description */
.product-description {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--gray-200);
}

.product-description h4 {
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

.product-description p {
  color: var(--gray-600);
  margin-bottom: var(--space-4);
  line-height: 1.8;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.product-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--gray-700);
}

.product-feature svg {
  color: var(--success);
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .product-gallery {
    position: static;
  }
}

/* =====================================================
   CART DRAWER - PREMIUM ADVENTURE BRAND
   Clean, minimal, editorial checkout
   ===================================================== */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 35, 54, 0.6);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s ease;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--drawer-width);
  max-width: 100%;
  height: 100vh;
  background: var(--white);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(30, 35, 54, 0.15);
}

.cart-drawer.active {
  transform: translateX(0);
}

/* Cart Header - Minimal Dark */
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--primary-navy);
  color: var(--white);
}

.cart-drawer-header h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0;
}

.cart-drawer-close {
  color: var(--white);
  padding: 4px;
  cursor: pointer;
  transition: opacity 0.15s ease;
  opacity: 0.7;
  background: none;
  border: none;
}

.cart-drawer-close:hover {
  opacity: 1;
}

/* Cart Content */
.cart-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: var(--white);
}

.cart-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--stone-gray);
}

.cart-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Cart Items - Clean Minimal */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eeeeee;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--sand-white);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--charcoal);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cart-item-variant {
  font-size: 11px;
  color: var(--stone-gray);
  margin-bottom: 8px;
}

.cart-item-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

/* Quantity Control - Thin Minimal */
.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid #d4d4d4;
  border-radius: 0;
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 400;
  color: var(--charcoal);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cart-item-qty button:hover {
  background: var(--sand-white);
}

.cart-item-qty span {
  width: 28px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--charcoal);
  border-left: 1px solid #d4d4d4;
  border-right: 1px solid #d4d4d4;
  line-height: 28px;
}

/* Remove - Subtle Text Link */
.cart-item-remove {
  color: var(--stone-gray);
  font-size: 11px;
  font-weight: 400;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
  text-decoration: underline;
}

.cart-item-remove:hover {
  color: var(--charcoal);
}

/* Checkout Form - Calm Professional */
.cart-checkout-form {
  padding: 24px 20px;
  background: var(--sand-white);
  border-top: 1px solid #eeeeee;
}

.cart-checkout-form h4 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  color: var(--charcoal);
}

.form-group label .required {
  color: var(--primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 13px;
  font-family: var(--font-primary);
  border: 1px solid #d4d4d4;
  border-radius: 0;
  background: var(--white);
  color: var(--charcoal);
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--charcoal);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--stone-gray);
}

.form-group textarea {
  resize: vertical;
  min-height: 72px;
}

/* Total Section - Clean */
.cart-summary {
  padding: 20px;
  background: var(--white);
  border-top: 1px solid #eeeeee;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-total-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--charcoal);
}

.cart-total-amount {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

/* CTA Button - Premium Dark/Orange (NOT Green) */
.cart-checkout-btn {
  width: 100%;
  background: var(--primary-navy);
  color: var(--white);
  padding: 16px 24px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cart-checkout-btn:hover {
  background: var(--charcoal);
}

.cart-checkout-btn svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

@media (max-width: 480px) {
  .cart-drawer {
    width: 100%;
  }
}

/* =====================================================
   PRODUCT TABS - FIXED HEIGHT TO PREVENT LAYOUT JUMPS
   ===================================================== */
.product-tabs-section {
  padding: 48px 0;
  background: var(--white);
  border-top: 1px solid #eeeeee;
}

.product-tabs-header {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 0;
}

.tab-btn {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--stone-gray);
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 0;
  position: relative;
  transition: color 0.15s ease;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.15s ease;
}

.tab-btn:hover {
  color: var(--charcoal);
}

.tab-btn.active {
  color: var(--charcoal);
  font-weight: 600;
}

.tab-btn.active::after {
  background: var(--primary);
}

/* Tab Content - FIXED HEIGHT CONTAINER */
.tab-content-wrapper {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.tab-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.tab-content.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.info-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}

.info-content h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 16px;
}

/* Size Chart Table */
.size-chart-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.size-chart-mini-table th,
.size-chart-mini-table td {
  padding: 10px 16px;
  text-align: center;
  border-bottom: 1px solid #eeeeee;
}

.size-chart-mini-table th {
  font-weight: 600;
  color: var(--charcoal);
  background: var(--sand-white);
}

.size-chart-mini-table td {
  color: var(--charcoal);
}

/* =====================================================
   RELATED PRODUCTS - SEPARATE STATIC SECTION
   ===================================================== */
.related-products {
  padding: 64px 0;
  background: var(--sand-white);
  border-top: 1px solid #eeeeee;
}

/* =====================================================
   FOOTER - MIDNIGHT NAVY
   ===================================================== */
.footer {
  background: var(--primary-navy);
  color: var(--white);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 20px;
}

.footer-brand p {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--white);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-links p {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 8px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: #6b7280;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */
.toast-container {
  position: fixed;
  top: calc(var(--header-height) + var(--space-4));
  right: var(--space-4);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  animation: toast-in 0.3s ease;
  min-width: 280px;
}

.toast.success {
  background: var(--success);
}

.toast.warning {
  background: var(--warning);
}

.toast.error {
  background: var(--error);
}

@keyframes toast-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* =====================================================
   ADMIN STYLES (Preserved)
   ===================================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--dark);
  color: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}

.admin-sidebar-header {
  padding: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-header img {
  height: 50px;
}

.admin-sidebar-header h2 {
  color: var(--white);
  font-size: var(--text-lg);
  margin-top: var(--space-2);
}

.admin-nav {
  padding: var(--space-4);
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: var(--gray-400);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  margin-bottom: var(--space-1);
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.admin-nav-link.active {
  background: var(--primary);
  color: var(--white);
}

.admin-nav-link svg {
  width: 20px;
  height: 20px;
}

.admin-content {
  flex: 1;
  margin-left: 260px;
  background: var(--gray-50);
  min-height: 100vh;
}

.admin-header {
  background: var(--white);
  padding: var(--space-6);
  border-bottom: 1px solid var(--gray-200);
}

.admin-header h1 {
  font-size: var(--text-2xl);
}

.admin-main {
  padding: var(--space-6);
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.admin-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--gray-200);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.admin-table th {
  font-weight: var(--font-semibold);
  color: var(--gray-600);
  font-size: var(--text-sm);
  text-transform: uppercase;
}

.admin-table tr:hover {
  background: var(--gray-50);
}

.admin-stat-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.admin-stat-card h4 {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-bottom: var(--space-2);
}

.admin-stat-card .stat-value {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--dark);
}

@media (max-width: 1024px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-content {
    margin-left: 0;
  }
}

/* =====================================================
   LOADING SPINNER
   ===================================================== */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-8);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =====================================================
   BUY NOW POPUP MODAL
   ===================================================== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--radius-xl);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.popup-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: var(--dark);
  color: var(--white);
}

.popup-header h3 {
  color: var(--white);
  font-size: var(--text-lg);
  margin: 0;
}

.popup-close {
  color: var(--white);
  padding: var(--space-2);
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
  border: none;
}

.popup-close:hover {
  color: var(--primary);
}

.popup-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
}

.popup-product-summary {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

.popup-product-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-200);
}

.popup-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-product-info {
  flex: 1;
  min-width: 0;
}

.popup-product-info h4 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
  color: var(--dark);
}

.popup-product-variant {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-bottom: var(--space-2);
}

.popup-product-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--primary);
}

.popup-form h4 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
  color: var(--dark);
}

.popup-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

@media (max-width: 480px) {
  .popup-modal {
    width: 95%;
    max-height: 95vh;
  }

  .popup-content {
    padding: var(--space-4);
  }
}

/* =====================================================
   FOOTER - MODERN STYLE
   ===================================================== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: var(--space-16) 0 var(--space-8);
  font-size: var(--text-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--primary);
  margin-bottom: var(--space-4);
  letter-spacing: 2px;
}

.footer-brand p {
  color: var(--gray-400);
  line-height: 1.8;
  max-width: 300px;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-6);
  color: var(--white);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
  /* subtle interaction */
}

.footer-contact p {
  color: var(--gray-400);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-contact .btn {
  margin-top: var(--space-4);
  width: auto;
  min-width: 180px;
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--gray-500);
  font-size: var(--text-xs);
}

@media (max-width: 1024px) {
  .footer-grid {
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

/* =====================================================
   PRODUCT TABS LAYOUT
   ===================================================== */
.product-tabs-section {
  padding: var(--space-8) 0;
  margin-top: var(--space-8);
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.product-tabs-header {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  border-bottom: 2px solid var(--gray-100);
  margin-bottom: var(--space-8);
}

.tab-btn {
  padding: var(--space-4) 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--gray-500);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--dark);
}

.tab-btn.active {
  color: var(--dark);
  border-bottom-color: var(--dark);
}

.tab-content {
  display: none;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .product-tabs-header {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
    border-bottom: none;
  }

  .tab-btn {
    border-bottom: 1px solid var(--gray-200);
    width: 100%;
    padding: var(--space-3);
  }

  .tab-btn.active {
    border-bottom-color: var(--dark);
    background: var(--gray-50);
  }
}

/* Table Styles */
.size-chart-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  text-align: center;
}

.size-chart-mini-table th {
  background: var(--gray-50);
  padding: var(--space-2);
  font-weight: var(--font-bold);
  border: 1px solid var(--gray-300);
}

.size-chart-mini-table td {
  padding: var(--space-2);
  border: 1px solid var(--gray-300);
}

.size-chart-mini-table tr:nth-child(even) {
  background: var(--gray-50);
}

/* Validation Error Animation */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.validation-error {
  animation: shake 0.3s ease-in-out;
  border: 1px solid var(--error);
  border-radius: var(--radius-md);
  padding: var(--space-2);
}

.validation-error .variant-label {
  color: var(--error) !important;
}

/* Ghost Button Style */
.btn-ghost-accent {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: all 0.2s ease;
  font-weight: 600;
}

.btn-ghost-accent:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* =====================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   Zero clipped elements, native mobile feel
   ===================================================== */

/* Prevent horizontal scroll globally */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* =====================================================
   TABLET BREAKPOINT (max-width: 768px)
   ===================================================== */
@media (max-width: 768px) {

  /* Header */
  :root {
    --header-height: 64px;
  }

  .logo img {
    height: 40px;
  }

  /* Hero Section */
  .banner-slider {
    height: 65vh;
    min-height: 450px;
  }

  .slider-title {
    font-size: 36px;
    letter-spacing: 1px;
  }

  .slider-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .slider-content {
    padding: 0 20px;
    max-width: 100%;
  }

  .slider-nav {
    width: 44px;
    height: 44px;
  }

  .slider-prev {
    left: 12px;
  }

  .slider-next {
    right: 12px;
  }

  /* Container */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Section Headers */
  .section-header {
    margin-bottom: 32px;
  }

  .section-header h2 {
    font-size: 20px;
  }

  .section-header p {
    font-size: 12px;
  }

  /* Product Detail Page */
  .product-detail {
    padding: 20px 0 48px;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-gallery {
    position: static;
  }

  .product-info-detail h1 {
    font-size: 22px;
  }

  .product-price-detail {
    font-size: 24px;
  }

  /* Variant Sections */
  .variant-section {
    margin-bottom: 20px;
  }

  .size-options {
    gap: 8px;
  }

  .size-option {
    min-width: 40px;
    height: 36px;
    padding: 0 12px;
    font-size: 11px;
  }

  /* Add to Cart Section */
  .add-to-cart-section {
    flex-direction: column;
    gap: 12px;
  }

  .add-to-cart-section .btn {
    width: 100%;
    padding: 16px;
  }

  /* Cart Drawer */
  .cart-drawer {
    width: 100%;
    max-width: 100%;
  }

  /* Tabs */
  .product-tabs-header {
    gap: 0;
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .tab-btn {
    flex: 1;
    font-size: 12px;
    padding: 10px 8px;
    min-width: 0;
  }

  /* Categories */
  .categories-section {
    padding: 48px 0;
  }

  .categories-grid {
    gap: 24px;
  }

  .category-image {
    width: 80px;
    height: 80px;
  }

  /* Promo Section */
  .promo-section {
    padding: 48px 0;
  }

  .promo-card {
    min-height: 240px;
    padding: 32px 24px;
  }

  .promo-card h3 {
    font-size: 20px;
  }

  /* Testimonials */
  .testimonials-section {
    padding: 48px 0;
  }

  .testimonial-card {
    padding: 24px;
  }

  /* Footer */
  .footer {
    padding: 48px 0 24px;
  }

  .footer-brand h3 {
    font-size: 16px;
  }

  .footer-brand p {
    font-size: 13px;
  }
}

/* =====================================================
   MOBILE BREAKPOINT (max-width: 480px)
   ===================================================== */
@media (max-width: 480px) {

  /* Header */
  :root {
    --header-height: 56px;
    --container-padding: 12px;
  }

  .logo img {
    height: 36px;
  }

  .header-actions {
    gap: 8px;
  }

  .btn-icon {
    width: 40px;
    height: 40px;
  }

  /* Hero Section - Compact */
  .banner-slider {
    height: 55vh;
    min-height: 380px;
  }

  .slider-title {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .slider-subtitle {
    font-size: 13px;
    margin-bottom: 20px;
    padding: 0 8px;
  }

  .slider-content .btn {
    width: 100%;
    max-width: 280px;
    padding: 14px 24px;
    font-size: 12px;
  }

  .slider-nav {
    width: 36px;
    height: 36px;
  }

  .slider-nav svg {
    width: 18px;
    height: 18px;
  }

  .slider-prev {
    left: 8px;
  }

  .slider-next {
    right: 8px;
  }

  .slider-dots {
    bottom: 16px;
  }

  .slider-dot {
    width: 8px;
    height: 8px;
  }

  /* Container */
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Section Headers */
  .section-header {
    margin-bottom: 24px;
  }

  .section-header h2 {
    font-size: 18px;
    letter-spacing: 0.5px;
  }

  .section-header p {
    font-size: 11px;
  }

  /* Products Section */
  .products-section {
    padding: 40px 0;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    border-radius: 8px;
  }

  .product-info {
    padding: 12px 10px;
  }

  .product-name {
    font-size: 11px;
    margin-bottom: 6px;
    line-height: 1.3;
  }

  .product-price {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .product-card .btn {
    padding: 10px 12px;
    font-size: 10px;
    letter-spacing: 0.5px;
  }

  /* Product Detail Page */
  .product-detail {
    padding: 16px 0 40px;
  }

  .product-detail-grid {
    gap: 24px;
  }

  .main-image {
    border-radius: 6px;
    margin-bottom: 12px;
  }

  .thumbnail-list {
    gap: 8px;
  }

  .thumbnail {
    width: 56px;
    height: 56px;
  }

  .product-info-detail h1 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .product-sold {
    font-size: 11px;
  }

  .product-price-detail {
    font-size: 20px;
  }

  /* Variant Sections */
  .variant-section {
    margin-bottom: 16px;
  }

  .variant-label {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .color-options {
    gap: 8px;
  }

  .color-option {
    width: 32px;
    height: 32px;
  }

  .size-options {
    gap: 6px;
  }

  .size-option {
    min-width: 36px;
    height: 32px;
    padding: 0 10px;
    font-size: 10px;
  }

  .sleeve-options {
    gap: 16px;
  }

  .sleeve-option svg,
  .sleeve-option img {
    width: 24px;
    height: 24px;
  }

  /* Quantity */
  .quantity-section {
    flex-wrap: wrap;
  }

  .quantity-selector {
    height: 36px;
  }

  .quantity-btn {
    width: 36px;
    font-size: 14px;
  }

  .quantity-input {
    width: 40px;
    font-size: 13px;
  }

  /* Add to Cart */
  .add-to-cart-section {
    gap: 10px;
    margin-top: 20px;
  }

  .add-to-cart-section .btn {
    padding: 14px;
    font-size: 12px;
  }

  /* Tabs */
  .product-tabs-section {
    padding: 32px 0;
  }

  .tab-content-wrapper {
    min-height: 400px;
  }

  .tab-btn {
    font-size: 11px;
    padding: 8px 6px;
  }

  .info-content {
    padding: 0 8px;
  }

  .info-content h4 {
    font-size: 14px;
  }

  .size-chart-mini-table {
    font-size: 11px;
  }

  .size-chart-mini-table th,
  .size-chart-mini-table td {
    padding: 6px 8px;
  }

  /* Related Products */
  .related-products {
    padding: 40px 0;
  }

  /* Categories */
  .categories-section {
    padding: 40px 0;
  }

  .categories-grid {
    gap: 16px;
  }

  .category-image {
    width: 64px;
    height: 64px;
  }

  .category-name {
    font-size: 10px;
  }

  /* Promo Section */
  .promo-section {
    padding: 40px 0;
  }

  .promo-card {
    min-height: 200px;
    padding: 24px 20px;
    border-radius: 12px;
  }

  .promo-card h3 {
    font-size: 18px;
  }

  .promo-card p {
    font-size: 12px;
  }

  /* Trust Section */
  .trust-section {
    padding: 40px 0;
  }

  .trust-item {
    padding: 16px;
  }

  .trust-icon {
    width: 48px;
    height: 48px;
  }

  .trust-item h4 {
    font-size: 12px;
  }

  .trust-item p {
    font-size: 11px;
  }

  /* Cart Drawer */
  .cart-drawer-header {
    padding: 16px;
  }

  .cart-drawer-header h3 {
    font-size: 12px;
  }

  .cart-drawer-content {
    padding: 16px;
  }

  .cart-item {
    gap: 12px;
  }

  .cart-item-image {
    width: 56px;
    height: 56px;
  }

  .cart-item-name {
    font-size: 12px;
  }

  .cart-item-variant {
    font-size: 10px;
  }

  .cart-item-price {
    font-size: 13px;
  }

  .cart-item-qty button {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .cart-item-qty span {
    width: 24px;
    font-size: 11px;
    line-height: 24px;
  }

  /* Checkout Form */
  .cart-checkout-form {
    padding: 20px 16px;
  }

  .cart-checkout-form h4 {
    font-size: 10px;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-group label {
    font-size: 10px;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 14px;
  }

  /* Cart Summary */
  .cart-summary {
    padding: 16px;
  }

  .cart-total-label {
    font-size: 11px;
  }

  .cart-total-amount {
    font-size: 18px;
  }

  .cart-checkout-btn {
    padding: 14px 20px;
    font-size: 11px;
  }

  .cart-checkout-btn svg {
    width: 16px;
    height: 16px;
  }

  /* Popup Modal */
  .popup-modal {
    width: 95%;
    max-width: none;
    margin: 16px;
    max-height: 90vh;
  }

  .popup-header {
    padding: 16px;
  }

  .popup-header h3 {
    font-size: 14px;
  }

  .popup-content {
    padding: 16px;
  }

  .popup-product-summary {
    gap: 12px;
  }

  .popup-product-image {
    width: 64px;
    height: 64px;
  }

  .popup-product-info h4 {
    font-size: 13px;
  }

  .popup-product-variant {
    font-size: 11px;
  }

  .popup-product-price {
    font-size: 16px;
  }

  .popup-footer {
    padding: 16px;
  }

  /* Footer */
  .footer {
    padding: 40px 0 20px;
  }

  .footer-grid {
    gap: 32px;
  }

  .footer-brand img {
    height: 48px;
  }

  .footer-brand h3 {
    font-size: 14px;
  }

  .footer-brand p {
    font-size: 12px;
  }

  .footer-links h4,
  .footer-contact h4 {
    font-size: 11px;
    margin-bottom: 16px;
  }

  .footer-links a {
    font-size: 12px;
  }

  .footer-contact p {
    font-size: 12px;
  }

  .footer-bottom {
    padding-top: 20px;
  }

  .footer-bottom p {
    font-size: 10px;
  }

  /* Toast Notifications */
  .toast-container {
    right: 12px;
    left: 12px;
    top: calc(var(--header-height) + 12px);
  }

  .toast {
    min-width: auto;
    width: 100%;
  }
}

/* =====================================================
   SMALL PHONES (max-width: 375px)
   ===================================================== */
@media (max-width: 375px) {

  /* Hero */
  .slider-title {
    font-size: 22px;
  }

  .slider-subtitle {
    font-size: 12px;
  }

  /* Products - Keep 2 columns but tighter */
  .products-grid {
    gap: 8px;
  }

  .product-info {
    padding: 10px 8px;
  }

  .product-name {
    font-size: 10px;
  }

  .product-price {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .product-card .btn {
    padding: 8px 10px;
    font-size: 9px;
  }

  /* Product Detail */
  .product-info-detail h1 {
    font-size: 16px;
  }

  .product-price-detail {
    font-size: 18px;
  }

  /* Tabs - Stack vertically */
  .product-tabs-header {
    flex-direction: column;
    gap: 0;
    border-bottom: none;
  }

  .tab-btn {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding: 12px;
    font-size: 12px;
  }

  .tab-btn::after {
    display: none;
  }

  .tab-btn.active {
    background: var(--sand-white);
    border-bottom-color: var(--primary);
  }

  /* Categories - 3 per row */
  .categories-grid {
    gap: 12px;
  }

  .category-image {
    width: 56px;
    height: 56px;
  }

  .category-name {
    font-size: 9px;
  }

  /* Cart Item */
  .cart-item-image {
    width: 48px;
    height: 48px;
  }

  .cart-item-name {
    font-size: 11px;
  }

  /* Popup */
  .popup-modal {
    margin: 8px;
    width: calc(100% - 16px);
  }
}

/* =====================================================
   VERY SMALL PHONES (max-width: 320px)
   ===================================================== */
@media (max-width: 320px) {
  .slider-title {
    font-size: 20px;
  }

  .slider-content .btn {
    padding: 12px 20px;
    font-size: 11px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-info {
    padding: 12px;
  }

  .product-name {
    font-size: 12px;
  }

  .product-price {
    font-size: 14px;
  }

  .product-card .btn {
    padding: 12px;
    font-size: 11px;
  }

  .size-options {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .size-option {
    flex-shrink: 0;
  }
}

/* =====================================================
   TOUCH DEVICE OPTIMIZATIONS
   ===================================================== */
@media (hover: none) and (pointer: coarse) {

  /* Remove hover transforms on touch devices */
  .product-card:hover {
    transform: none;
  }

  .product-card:hover .product-image img {
    transform: none;
  }

  .category-card:hover {
    transform: none;
  }

  .category-card:hover .category-image img {
    transform: none;
  }

  /* Increase tap targets */
  .btn {
    min-height: 44px;
  }

  .nav-link {
    padding: 12px 8px;
  }

  .filter-btn {
    min-height: 40px;
    padding: 8px 16px;
  }
}

/* =====================================================
   BUY NOW POPUP MODAL - BASE STYLES
   ===================================================== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 35, 54, 0.6);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 420px;
  max-height: 90vh;
  background: var(--white);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(30, 35, 54, 0.3);
}

.popup-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--primary-navy);
  color: var(--white);
  flex-shrink: 0;
}

.popup-header h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0;
}

.popup-close {
  color: var(--white);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.popup-close:hover {
  opacity: 1;
}

.popup-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
}

.popup-product-summary {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--sand-white);
  border-radius: 8px;
  margin-bottom: 20px;
}

.popup-product-image {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.popup-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-product-info {
  flex: 1;
  min-width: 0;
}

.popup-product-info h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 4px 0;
}

.popup-product-variant {
  font-size: 12px;
  color: var(--stone-gray);
  margin-bottom: 6px;
}

.popup-product-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
}

.popup-form h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.popup-footer {
  padding: 16px 20px;
  background: var(--white);
  border-top: 1px solid #eeeeee;
  flex-shrink: 0;
}

/* =====================================================
   MOBILE RESPONSIVE - POPUP & CART DRAWER
   Complete Overhaul for proper mobile display
   ===================================================== */
@media (max-width: 768px) {

  /* ====== CART DRAWER ====== */
  .cart-drawer {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    height: 100svh !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .cart-drawer-header {
    flex-shrink: 0 !important;
  }

  /* Main scrollable area */
  .cart-drawer-content {
    flex: 1 1 auto !important;
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 16px !important;
    min-height: 0 !important;
    /* Important for flex scroll */
  }

  .cart-checkout-form {
    background: var(--sand-white) !important;
    margin: 16px -16px 0 -16px !important;
    padding: 20px 16px !important;
  }

  .cart-summary {
    background: var(--white) !important;
    margin: 0 -16px !important;
    padding: 20px 16px !important;
    padding-bottom: 120px !important;
    /* Extra space for browser UI */
    border-top: 1px solid #eeeeee !important;
  }

  .cart-checkout-btn {
    padding: 16px 24px !important;
    font-size: 14px !important;
  }

  /* ====== QUICK CHECKOUT POPUP ====== */
  .popup-overlay {
    background: rgba(30, 35, 54, 0.8) !important;
  }

  .popup-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    height: 100svh !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    transform: translateY(100%) !important;
  }

  .popup-modal.active {
    transform: translateY(0) !important;
  }

  .popup-header {
    flex-shrink: 0 !important;
    padding: 16px 20px !important;
  }

  .popup-content {
    flex: 1 1 auto !important;
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 20px !important;
    padding-bottom: 100px !important;
    /* Space for fixed footer */
    min-height: 0 !important;
  }

  .popup-product-summary {
    margin-bottom: 24px !important;
  }

  .popup-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 16px 20px !important;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 20px)) !important;
    background: var(--white) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
    z-index: 1001 !important;
  }

  .popup-form .form-group {
    margin-bottom: 16px !important;
  }

  .popup-form .form-group input,
  .popup-form .form-group textarea {
    padding: 14px 12px !important;
    font-size: 16px !important;
    /* Prevent iOS zoom */
    border-radius: 8px !important;
  }

  .popup-form .form-group textarea {
    min-height: 80px !important;
  }

  .popup-close {
    padding: 8px !important;
  }

  .popup-close svg {
    width: 24px !important;
    height: 24px !important;
  }
}

/* Smaller phones */
@media (max-width: 480px) {
  .popup-header {
    padding: 14px 16px !important;
  }

  .popup-product-summary {
    padding: 12px !important;
  }

  .popup-product-image {
    width: 56px !important;
    height: 56px !important;
  }

  .cart-drawer-header {
    padding: 16px !important;
  }

  .cart-drawer-header h3 {
    font-size: 13px !important;
  }

  .cart-item-image {
    width: 56px !important;
    height: 56px !important;
  }

  .cart-item-name {
    font-size: 12px !important;
  }

  .cart-total-amount {
    font-size: 18px !important;
  }
}