/* ========================================
   TWENZEE - Gen Z Men's Fashion
   Premium Luxury Dark UI Stylesheet
   Fully Responsive & Production Ready
   ======================================== */

/* CSS Variables - Design Tokens */
:root {
  /* Colors */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #111111;
  --accent: #e53935;
  --accent-hover: #ff5252;
  --accent-glow: rgba(229, 57, 53, 0.4);
  --accent-orange: #ff6b35;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #808080;
  --text-dark: #505050;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --glass-bg: rgba(10, 10, 10, 0.9);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #e53935 0%, #ff6b35 100%);
  --gradient-dark: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
  --gradient-card: linear-gradient(145deg, rgba(17, 17, 17, 0.9) 0%, rgba(10, 10, 10, 0.9) 100%);
  --gradient-hero-overlay: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.4) 100%);
  
  /* Typography */
  --font-display: 'Orbitron', 'Montserrat', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-accent: 'Space Grotesk', sans-serif;
  
  /* Fluid Spacing Scale - Mobile First */
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(0.75rem, 2vw, 1rem);
  --space-md: clamp(1rem, 3vw, 1.5rem);
  --space-lg: clamp(1.5rem, 5vw, 2.5rem);
  --space-xl: clamp(2rem, 7vw, 4rem);
  --space-2xl: clamp(3rem, 10vw, 6rem);
  
  /* Fluid Typography Scale - Mobile Optimized */
  --text-xs: clamp(0.75rem, 1.5vw, 0.875rem);
  --text-sm: clamp(0.875rem, 2vw, 1rem);
  --text-base: clamp(0.875rem, 2.5vw, 1.125rem);
  --text-lg: clamp(1rem, 3vw, 1.25rem);
  --text-xl: clamp(1.125rem, 4vw, 1.5rem);
  --text-2xl: clamp(1.25rem, 5vw, 2rem);
  --text-3xl: clamp(1.5rem, 6vw, 2.5rem);
  --text-4xl: clamp(1.875rem, 8vw, 3.5rem);
  --text-5xl: clamp(2.25rem, 10vw, 5rem);
  
  /* Container */
  --container-max: 1400px;
  --container-padding: clamp(1rem, 5vw, 3rem);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-3d: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 30px var(--accent-glow);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.6);
  
  /* Border Radius */
  --radius-sm: clamp(6px, 1vw, 8px);
  --radius-md: clamp(8px, 1.5vw, 12px);
  --radius-lg: clamp(12px, 2vw, 20px);
  --radius-xl: clamp(16px, 2.5vw, 30px);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  opacity: 0;
  animation: fadeInBody 0.8s ease forwards;
  width: 100%;
  max-width: 100vw;
}

@keyframes fadeInBody {
  to { opacity: 1; }
}

/* Custom Scrollbar - Hidden on Mobile */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 0px;
    background: transparent;
  }
}

::selection {
  background: var(--accent);
  color: white;
}

/* ========================================
   TYPOGRAPHY - FLUID & RESPONSIVE
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.7;
  word-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-base);
}

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

/* ========================================
   LAYOUT UTILITIES - CONTAINMENT
   ======================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
}

.section {
  padding: var(--space-2xl) 0;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding: 0 var(--space-sm);
}

.section-title h2 {
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  max-width: min(600px, 90%);
  margin: 0 auto;
  color: var(--text-muted);
  font-size: var(--text-base);
}

/* ========================================
   BUTTONS - TOUCH OPTIMIZED
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: clamp(12px, 3vw, 14px) clamp(16px, 4vw, 32px);
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-3d);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
  min-width: 44px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300%;
  height: 300%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px var(--accent-glow);
}

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

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-hover);
}

/* ========================================
   CARDS - GLASS MORPHISM
   ======================================== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 30px);
  transition: var(--transition-3d);
}

.glass-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-5px);
}

/* ========================================
   LOGO STYLES
   ======================================== */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  height: clamp(35px, 8vw, 45px);
  transition: var(--transition-base);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  flex-shrink: 0;
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  transition: var(--transition-base);
}

.logo:hover {
  filter: drop-shadow(0 0 15px var(--accent-glow));
  color: var(--accent);
  transform: scale(1.05);
}

.logo-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 80vw);
  opacity: 0.06;
  pointer-events: none;
  z-index: 1;
  filter: blur(2px);
}

.logo-watermark img {
  width: 100%;
  height: auto;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.logo-animated {
  animation: logoFloat 4s ease-in-out infinite;
}

/* ========================================
   NAVIGATION - MOBILE FIRST
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: var(--transition-base);
  width: 100%;
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: calc(var(--space-sm) * 0.8) 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

/* Mobile Menu Toggle - Touch Optimized */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 12px;
  z-index: 1001;
  background: none;
  border: none;
  color: var(--text-primary);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: var(--transition-base);
  transform-origin: center;
  display: block;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation Links - Mobile Default (Slide-out) */
.nav-links {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(300px, 80vw);
  height: 100vh;
  height: 100dvh;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  padding: 90px var(--space-lg) var(--space-lg);
  transition: right var(--transition-slow);
  border-left: 1px solid var(--glass-border);
  gap: var(--space-md);
  list-style: none;
  display: flex;
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-links.active {
  right: 0;
}

.nav-links a {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
  display: inline-block;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-base);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.nav-icon {
  width: clamp(40px, 8vw, 44px);
  height: clamp(40px, 8vw, 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: var(--text-base);
  cursor: pointer;
  transition: var(--transition-3d);
  position: relative;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}

.nav-icon:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--accent-glow);
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ========================================
   HERO SECTION - FULLY RESPONSIVE
   ======================================== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-primary);
  padding-top: 70px;
  width: 100%;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  animation: kenBurns 8s ease forwards;
}

@keyframes kenBurns {
  0% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero-overlay);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
  text-align: center;
}

.hero-text h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(40px);
  animation: slideUpFade 0.8s ease forwards 0.3s;
}

.hero-text h1 span {
  color: var(--accent);
  display: block;
}

.hero-text p {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  max-width: min(500px, 90%);
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 0.8s ease forwards 0.5s;
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 0.8s ease forwards 0.7s;
}

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

/* Hero Visual - Hidden on mobile by default */
.hero-visual {
  display: none;
  position: relative;
  height: clamp(300px, 40vw, 450px);
  perspective: 1000px;
}

.hero-image-stack {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.stack-image {
  position: absolute;
  width: clamp(180px, 30vw, 240px);
  height: clamp(240px, 40vw, 320px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-3d);
}

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

.stack-image:nth-child(1) {
  top: 0;
  right: clamp(20px, 10vw, 80px);
  transform: rotateY(-15deg) rotateX(5deg) translateZ(50px);
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}

.stack-image:nth-child(2) {
  top: 40px;
  right: clamp(10px, 5vw, 40px);
  transform: rotateY(-10deg) rotateX(3deg) translateZ(25px);
  z-index: 2;
  opacity: 0.7;
  filter: blur(2px);
  animation: float 4s ease-in-out infinite 0.5s;
}

.stack-image:nth-child(3) {
  top: 80px;
  right: 0;
  transform: rotateY(-5deg) rotateX(2deg);
  z-index: 1;
  opacity: 0.4;
  filter: blur(4px);
  animation: float 4s ease-in-out infinite 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotateY(-15deg) rotateX(5deg) translateZ(50px); }
  50% { transform: translateY(-15px) rotateY(-15deg) rotateX(5deg) translateZ(50px); }
}

/* Hero Controls */
.hero-controls {
  position: absolute;
  bottom: clamp(20px, 5vw, 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.hero-arrow {
  width: clamp(40px, 8vw, 45px);
  height: clamp(40px, 8vw, 45px);
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-3d);
  font-size: var(--text-base);
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}

.hero-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--accent-glow);
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: var(--transition-base);
  min-width: 10px;
  min-height: 10px;
}

.hero-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* ========================================
   CATEGORIES SECTION - CSS GRID
   ======================================== */
.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  width: 100%;
}

.category-card {
  position: relative;
  height: clamp(200px, 40vw, 300px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: var(--transition-3d);
}

.category-card:hover {
  transform: translateY(-8px) rotateX(3deg);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(15px, 4vw, 25px);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
}

.category-overlay h3 {
  font-size: var(--text-xl);
  margin-bottom: 5px;
}

.category-overlay span {
  color: var(--accent);
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   PRODUCTS GRID - MODERN CSS GRID
   ======================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--space-md);
  width: 100%;
}

.product-card {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition-3d);
  transform-style: preserve-3d;
  cursor: pointer;
  position: relative;
  width: 100%;
}

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

.product-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
}

.product-badge.new {
  background: var(--accent);
  color: white;
}

.product-badge.discount {
  background: #28a745;
  color: white;
}

.product-actions {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  transition: var(--transition-base);
}

.product-card:hover .product-actions {
  bottom: 0;
}

.product-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-3d);
  font-size: 0.9rem;
  min-width: 40px;
  min-height: 40px;
  touch-action: manipulation;
}

.product-action-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}

.product-info {
  padding: clamp(15px, 3vw, 18px);
}

.product-info h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-body);
  font-weight: 600;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-xs);
  flex-wrap: wrap;
}

.current-price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--accent);
}

.original-price {
  font-size: var(--text-sm);
  color: var(--text-dark);
  text-decoration: line-through;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ffc107;
  font-size: 0.8rem;
}

.product-rating span {
  color: var(--text-muted);
  margin-left: 5px;
  font-size: 0.75rem;
}

/* ========================================
   BRAND STORY SECTION
   ======================================== */
.brand-story {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.brand-story::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: min(600px, 80vw);
  height: min(600px, 80vw);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.3;
  animation: pulseGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.5; }
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.story-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  order: 2;
  width: 100%;
}

.story-image img {
  width: 100%;
  height: clamp(250px, 50vw, 450px);
  object-fit: cover;
}

.story-content {
  order: 1;
}

.story-content h2 {
  margin-bottom: var(--space-md);
  font-size: var(--text-3xl);
}

.story-content p {
  margin-bottom: var(--space-md);
  font-size: var(--text-base);
  line-height: 1.8;
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.stat-item h3 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  color: var(--accent);
  margin-bottom: 5px;
}

.stat-item p {
  color: var(--text-muted);
  font-size: var(--text-xs);
  margin: 0;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.newsletter {
  background: var(--gradient-primary);
  padding: clamp(50px, 10vw, 70px) 0;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.newsletter-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: min(550px, 90%);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.newsletter-content h2 {
  color: white;
  margin-bottom: var(--space-sm);
  font-size: var(--text-3xl);
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-lg);
  font-size: var(--text-base);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 450px;
  margin: 0 auto;
  flex-wrap: wrap;
  width: 100%;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: clamp(12px, 3vw, 14px) clamp(15px, 4vw, 20px);
  border: none;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: var(--text-base);
  backdrop-filter: blur(10px);
  outline: none;
  min-height: 44px;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
  padding: clamp(12px, 3vw, 14px) clamp(20px, 4vw, 28px);
  background: white;
  color: var(--accent);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-3d);
  font-size: var(--text-xs);
  white-space: nowrap;
  min-height: 44px;
  touch-action: manipulation;
}

.newsletter-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ========================================
   INSTAGRAM STRIP
   ======================================== */
.instagram-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  width: 100%;
}

.instagram-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.instagram-item:hover img {
  transform: scale(1.1);
}

.instagram-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(229, 57, 53, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
}

.instagram-item:hover .instagram-overlay {
  opacity: 1;
}

.instagram-overlay i {
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  color: white;
}

/* ========================================
   FOOTER - RESPONSIVE GRID
   ======================================== */
.footer {
  background: var(--bg-secondary);
  padding: clamp(40px, 8vw, 60px) 0 clamp(20px, 4vw, 25px);
  border-top: 1px solid var(--border-color);
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand .logo {
  height: clamp(40px, 10vw, 50px);
  margin-bottom: var(--space-md);
}

.footer-brand p {
  margin: 0 0 var(--space-md);
  color: var(--text-muted);
  max-width: 280px;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.social-links a {
  width: clamp(40px, 8vw, 44px);
  height: clamp(40px, 8vw, 44px);
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-3d);
  font-size: var(--text-sm);
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 0 15px var(--accent-glow);
}

.footer-links h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: var(--text-muted);
  font-size: var(--text-sm);
  transition: var(--transition-base);
  display: inline-block;
  padding: 4px 0;
  min-height: 32px;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
}

.footer-bottom p {
  color: var(--text-dark);
  font-size: var(--text-xs);
  margin: 0;
}

.footer-bottom a {
  color: var(--accent);
}

/* Footer Logo Centered */
.footer-logo-centered {
  text-align: center;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-xl);
}

.footer-logo-centered img {
  height: clamp(60px, 15vw, 80px);
  width: auto;
  margin-bottom: var(--space-sm);
}

.footer-logo-centered .tagline {
  color: var(--accent);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: clamp(15px, 4vw, 25px);
  right: clamp(15px, 4vw, 25px);
  width: clamp(44px, 10vw, 50px);
  height: clamp(44px, 10vw, 50px);
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-3d);
  z-index: 999;
  box-shadow: var(--shadow-glow);
  font-size: var(--text-base);
  border: none;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}

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

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px var(--accent-glow);
}

/* ========================================
   UTILITY CLASSES - ANIMATIONS
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-item {
  opacity: 0;
  transform: translateY(30px);
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================
   COMPONENTS - TOAST & NOTIFICATIONS
   ======================================== */
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--accent);
  padding: clamp(12px, 3vw, 14px) clamp(20px, 4vw, 28px);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: 9999;
  opacity: 0;
  transition: var(--transition-3d);
  max-width: min(90vw, 400px);
  width: auto;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast i {
  color: var(--accent);
  font-size: var(--text-base);
  flex-shrink: 0;
}

.toast span {
  color: var(--text-primary);
  font-weight: 500;
  font-size: var(--text-sm);
}

.brand-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  margin-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.brand-signature img {
  height: clamp(25px, 6vw, 30px);
  width: auto;
}

.brand-signature span {
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.search-bar {
  position: relative;
  width: 100%;
  max-width: min(500px, 90vw);
}

.search-bar input {
  width: 100%;
  padding: clamp(12px, 3vw, 14px) 50px clamp(12px, 3vw, 14px) clamp(15px, 4vw, 20px);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  outline: none;
  transition: var(--transition-base);
  min-height: 44px;
}

.search-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.search-bar i {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: var(--text-base);
}

.notification {
  position: fixed;
  top: 90px;
  right: 20px;
  padding: clamp(12px, 3vw, 14px) clamp(18px, 4vw, 24px);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: 9999;
  transform: translateX(150%);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  font-size: var(--text-sm);
  max-width: min(400px, 90vw);
  width: auto;
}

.notification.success { background: #28a745; color: white; }
.notification.error { background: #dc3545; color: white; }
.notification.info { background: #17a2b8; color: white; }

.notification i {
  font-size: var(--text-base);
  flex-shrink: 0;
}

/* ========================================
   MEDIA QUERIES - MOBILE FIRST APPROACH
   ======================================== */

/* Small phones: 320px – 480px */
/* Base styles already optimized for mobile */

/* Large phones: 481px – 600px */
@media (min-width: 481px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .instagram-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-text h1 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
  }
}

/* Tablets: 601px – 768px */
@media (min-width: 601px) {
  :root {
    --container-padding: clamp(1.5rem, 5vw, 2rem);
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
  
  .story-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
  
  .hero-grid {
    gap: var(--space-xl);
  }
  
  .newsletter-form {
    flex-wrap: nowrap;
  }
}

/* Small laptops: 769px – 1024px */
@media (min-width: 769px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(35px, 5vw, 60px);
  }
  
  .story-image {
    order: 1;
  }
  
  .story-content {
    order: 2;
  }
  
  .hero-visual {
    display: block;
  }
  
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: clamp(40px, 5vw, 60px);
  }
  
  .hero-text p {
    margin-left: 0;
    margin-right: 0;
  }
  
  .hero-buttons {
    justify-content: flex-start;
  }
  
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Laptops: 1025px – 1366px */
@media (min-width: 1025px) {
  .menu-toggle {
    display: none;
  }
  
  .nav-links {
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border: none;
    gap: clamp(25px, 3vw, 40px);
    right: auto;
    overflow: visible;
  }
  
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .instagram-strip {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(35px, 4vw, 50px);
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .nav-actions {
    gap: var(--space-sm);
  }
}

/* Desktops: 1367px – 1920px+ */
@media (min-width: 1200px) {
  :root {
    --container-padding: clamp(2rem, 5vw, 3rem);
  }
  
  .hero-text h1 {
    font-size: clamp(3rem, 5vw, 5rem);
  }
  
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
  
  .products-grid {
    grid-template-columns: repeat(4, minmax(300px, 1fr));
  }
  
  .hero-grid {
    gap: 80px;
  }
}

/* ========================================
   ACCESSIBILITY & PERFORMANCE
   ======================================== */
@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;
  }
  
  .hero-slide img {
    animation: none;
    transform: scale(1);
  }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .product-actions {
    bottom: 0 !important;
    opacity: 1 !important;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  }
  
  .category-card:hover,
  .product-card:hover {
    transform: translateY(-4px);
  }
  
  .glass-card:hover {
    transform: translateY(-3px);
  }
  
  .btn:hover {
    transform: none;
  }
  
  .btn:active {
    transform: scale(0.98);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-color: rgba(255, 255, 255, 0.3);
    --text-secondary: #d0d0d0;
  }
}

/* Print styles */
@media print {
  .navbar,
  .hero-controls,
  .back-to-top,
  .product-actions,
  .newsletter {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .product-card,
  .category-card {
    break-inside: avoid;
    border: 1px solid #ccc;
  }
}

/* ========================================
   SAFARI & IOS SPECIFIC FIXES
   ======================================== */
@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: -webkit-fill-available;
  }
  
  .nav-links {
    height: -webkit-fill-available;
  }
}

/* Fix for iOS momentum scrolling */
.nav-links {
  -webkit-overflow-scrolling: touch;
}

/* Fix for backdrop-filter in Safari */
@supports (-webkit-backdrop-filter: blur(20px)) {
  .glass-card,
  .navbar.scrolled,
  .nav-links,
  .hero-arrow,
  .toast {
    -webkit-backdrop-filter: blur(20px);
  }
}

/* ========================================
   CHROME/EDGE SCROLLBAR STYLING
   ======================================== */
@supports (scrollbar-width: thin) {
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-secondary);
  }
}
