/* =====================================================
   LUXE - Luxury Fashion E-Commerce
   Premium Design System
   ===================================================== */

:root {
  /* Colors */
  --black: #000000;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --dark-gray: #1A1A1A;
  --medium-gray: #2A2A2A;
  --silver: #C0C0C0;
  --soft-silver: #E8E8E8;
  --accent: #B8B8B8;
  --success: #2E7D32;
  --error: #C62828;
  --warning: #F9A825;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.35s;
  --duration-fast: 0.2s;
  --duration-slow: 0.6s;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.16);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Layout */
  --nav-height: 80px;
  --container: 1400px;
  --header-height: 80px;
}

/* Dark mode variables */
[data-theme="dark"] {
  --black: #FFFFFF;
  --white: #0A0A0A;
  --light-gray: #141414;
  --dark-gray: #F0F0F0;
  --medium-gray: #1F1F1F;
  --soft-silver: #333;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background: var(--white);
  color: var(--dark-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}

button { cursor: pointer; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-xl);
}

/* =====================================================
   LOADING SCREEN
   ===================================================== */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader {
  text-align: center;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--white);
  letter-spacing: 0.3em;
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 0.2s forwards;
}

.loader-bar {
  width: 120px;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 40%;
  background: var(--white);
  animation: loaderSlide 1.2s var(--ease) infinite;
}

@keyframes loaderSlide {
  0% { left: -40%; }
  100% { left: 100%; }
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--duration) var(--ease);
  background: transparent;
}

.header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.header.scrolled .nav-link,
.header.scrolled .logo,
.header.scrolled .nav-icon {
  color: var(--black);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--white);
  transition: color var(--duration) var(--ease);
  z-index: 10;
}

.logo span {
  font-weight: 300;
}

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

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding: var(--space-sm) 0;
  transition: color var(--duration) var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--duration) var(--ease);
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-icon {
  width: 24px;
  height: 24px;
  color: var(--white);
  transition: color var(--duration) var(--ease), transform var(--duration-fast) var(--ease);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon:hover {
  transform: scale(1.1);
}

.nav-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--black);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.header.scrolled .nav-badge {
  background: var(--black);
  color: var(--white);
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration) var(--ease);
}

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

.search-form {
  width: 90%;
  max-width: 700px;
  position: relative;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 1.75rem;
  font-family: var(--font-display);
  padding: var(--space-md) 0;
  letter-spacing: 0.02em;
}

.search-input::placeholder {
  color: rgba(255,255,255,0.4);
}

.search-close {
  position: absolute;
  top: -60px;
  right: 0;
  color: var(--white);
  font-size: 1.5rem;
  opacity: 0.7;
  transition: opacity var(--duration-fast);
}

.search-close:hover { opacity: 1; }

.search-suggestions {
  margin-top: var(--space-xl);
  color: rgba(255,255,255,0.6);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 24px;
  z-index: 10;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: all var(--duration) var(--ease);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--white);
  z-index: 1500;
  padding: var(--space-4xl) var(--space-xl);
  transition: right var(--duration-slow) var(--ease-out);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--soft-silver);
  color: var(--black);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s var(--ease);
}

.hero:hover .hero-bg {
  transform: scale(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 900px;
  padding: 0 var(--space-xl);
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 0.4s forwards;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeInUp 0.9s var(--ease) 0.6s forwards;
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2xl);
  opacity: 0;
  animation: fadeInUp 0.9s var(--ease) 0.8s forwards;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.9s var(--ease) 1s forwards;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 1rem 2.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-dark:hover {
  background: transparent;
  color: var(--black);
}

.btn-dark-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn-dark-outline:hover {
  background: var(--black);
  color: var(--white);
}

/* Ripple effect */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

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

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

.section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-link {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  position: relative;
}

.section-link::after {
  content: '→';
  transition: transform var(--duration) var(--ease);
}

.section-link:hover::after {
  transform: translateX(4px);
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.category-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
}

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

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

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-xl);
  transition: background var(--duration) var(--ease);
}

.category-card:hover .category-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%);
}

.category-card h3 {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 400;
  transform: translateY(0);
  transition: transform var(--duration) var(--ease);
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.product-card {
  position: relative;
  group: true;
}

.product-card-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--light-gray);
  margin-bottom: var(--space-md);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.4s;
}

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

.product-card-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--black);
  color: var(--white);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  z-index: 2;
}

.product-card-badge.sale {
  background: var(--error);
}

.product-card-actions {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  gap: var(--space-sm);
  opacity: 0;
  transition: all var(--duration) var(--ease);
  z-index: 2;
}

.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.product-action-btn {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-fast) var(--ease);
  color: var(--black);
}

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

.product-card-info {
  text-align: center;
}

.product-card-brand {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.product-card-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 6px;
  transition: color var(--duration-fast);
}

.product-card:hover .product-card-name {
  color: var(--accent);
}

.product-card-price {
  font-size: 0.9rem;
  font-weight: 500;
}

.product-card-price .compare {
  text-decoration: line-through;
  color: var(--accent);
  margin-right: 8px;
  font-weight: 400;
}

/* Featured Banner */
.featured-banner {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.featured-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-banner-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 500px;
  padding: var(--space-3xl);
}

/* Story Section */
.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.story-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}

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

.story-content h2 {
  margin-bottom: var(--space-lg);
}

.story-content p {
  color: #666;
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

/* Testimonials */
.testimonials {
  background: var(--light-gray);
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: var(--space-xl);
}

.testimonial-author {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Instagram Grid */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

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

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

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

.instagram-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity var(--duration);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Newsletter */
.newsletter {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
}

.newsletter h2 {
  margin-bottom: var(--space-md);
}

.newsletter p {
  opacity: 0.7;
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  color: var(--white);
  padding: var(--space-md) 0;
  font-size: 1rem;
}

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

.newsletter-form button {
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0 var(--space-md);
  transition: opacity var(--duration-fast);
}

.newsletter-form button:hover {
  opacity: 0.7;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: var(--space-4xl) 0 var(--space-xl);
}

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

.footer-brand .logo {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.footer-brand p {
  opacity: 0.6;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  font-weight: 500;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  opacity: 0.6;
  margin-bottom: var(--space-sm);
  transition: opacity var(--duration-fast);
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.5;
}

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

.social-links a {
  opacity: 0.6;
  transition: opacity var(--duration-fast), transform var(--duration-fast);
}

.social-links a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* =====================================================
   PRODUCT PAGE
   ===================================================== */
.product-page {
  padding-top: calc(var(--nav-height) + var(--space-2xl));
}

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

.product-gallery {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
}

.product-main-image {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--light-gray);
  margin-bottom: var(--space-md);
  cursor: zoom-in;
  position: relative;
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-thumbs {
  display: flex;
  gap: var(--space-sm);
}

.product-thumb {
  width: 80px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--duration-fast);
  border: 1px solid transparent;
}

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

.product-info .product-brand {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.product-info h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--space-md);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.85rem;
}

.stars {
  color: var(--black);
  letter-spacing: 2px;
}

.product-price-block {
  margin-bottom: var(--space-xl);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 500;
}

.product-price .compare {
  font-size: 1.1rem;
  text-decoration: line-through;
  color: var(--accent);
  margin-left: var(--space-sm);
  font-weight: 400;
}

.product-price .discount {
  display: inline-block;
  background: var(--error);
  color: var(--white);
  font-size: 0.7rem;
  padding: 2px 8px;
  margin-left: var(--space-sm);
  vertical-align: middle;
}

.product-options {
  margin-bottom: var(--space-xl);
}

.option-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  display: block;
}

.color-swatches {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-fast);
  position: relative;
}

.color-swatch.active {
  border-color: var(--black);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--black);
}

.size-options {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.size-btn {
  min-width: 48px;
  height: 44px;
  border: 1px solid var(--soft-silver);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all var(--duration-fast);
}

.size-btn:hover,
.size-btn.active {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.size-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
  text-decoration: line-through;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--soft-silver);
  width: fit-content;
  margin-bottom: var(--space-xl);
}

.qty-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background var(--duration-fast);
}

.qty-btn:hover {
  background: var(--light-gray);
}

.qty-value {
  width: 50px;
  text-align: center;
  font-weight: 500;
}

.product-actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.product-actions .btn {
  flex: 1;
}

.stock-status {
  font-size: 0.85rem;
  margin-bottom: var(--space-lg);
}

.stock-status.in-stock { color: var(--success); }
.stock-status.low-stock { color: var(--warning); }
.stock-status.out-of-stock { color: var(--error); }

.product-meta {
  border-top: 1px solid var(--soft-silver);
  padding-top: var(--space-lg);
  font-size: 0.85rem;
  color: #666;
}

.product-meta p {
  margin-bottom: 6px;
}

/* =====================================================
   CART
   ===================================================== */
.cart-page {
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-4xl);
  min-height: 80vh;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-3xl);
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--soft-silver);
  animation: fadeInUp 0.4s var(--ease);
}

.cart-item-image {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--light-gray);
}

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

.cart-item-details h3 {
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.cart-item-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: var(--space-md);
}

.cart-item-remove {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  transition: color var(--duration-fast);
}

.cart-item-remove:hover {
  color: var(--error);
}

.cart-summary {
  background: var(--light-gray);
  padding: var(--space-2xl);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
}

.cart-summary h3 {
  margin-bottom: var(--space-xl);
  font-size: 1.25rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.summary-row.total {
  font-size: 1.25rem;
  font-weight: 500;
  border-top: 1px solid var(--soft-silver);
  padding-top: var(--space-md);
  margin-top: var(--space-md);
}

.coupon-form {
  display: flex;
  gap: var(--space-sm);
  margin: var(--space-xl) 0;
}

.coupon-form input {
  flex: 1;
  border: 1px solid var(--soft-silver);
  padding: 0.75rem 1rem;
  background: var(--white);
}

/* =====================================================
   AUTH PAGES
   ===================================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  background: var(--light-gray);
}

.auth-card {
  background: var(--white);
  width: 100%;
  max-width: 440px;
  padding: var(--space-3xl);
  box-shadow: var(--shadow-lg);
}

.auth-card h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: var(--space-sm);
}

.auth-card .subtitle {
  text-align: center;
  color: #666;
  margin-bottom: var(--space-2xl);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--soft-silver);
  padding: 0.875rem 1rem;
  transition: border-color var(--duration-fast);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--black);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 4px;
}

.auth-footer {
  text-align: center;
  margin-top: var(--space-xl);
  font-size: 0.9rem;
  color: #666;
}

.auth-footer a {
  color: var(--black);
  text-decoration: underline;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--light-gray) 25%, #eee 50%, var(--light-gray) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration) var(--ease);
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
}

/* Cookie consent */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-gray);
  color: var(--white);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  z-index: 9990;
  transform: translateY(100%);
  transition: transform var(--duration) var(--ease);
}

.cookie-banner.show {
  transform: translateY(0);
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: calc(var(--nav-height) + 20px);
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  background: var(--black);
  color: var(--white);
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.4s var(--ease);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 280px;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--error); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1200px) {
  .products-grid,
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .nav-center { display: none; }
  .menu-toggle { display: flex; color: inherit; }
  .product-layout {
    grid-template-columns: 1fr;
  }
  .product-gallery {
    position: static;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .story-section {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .products-grid,
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }
  .hero { min-height: 600px; }
  .section { padding: var(--space-3xl) 0; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cart-item {
    grid-template-columns: 90px 1fr;
  }
  .cart-item-price {
    grid-column: 2;
  }
  .product-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .products-grid,
  .categories-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-cta {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}

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

.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.hidden { display: none !important; }

/* Admin-managed navigation additions */
.desktop-nav{display:flex;align-items:center;gap:2rem}.desktop-nav a,.mobile-menu a{text-decoration:none;color:inherit}.nav-actions{display:flex;align-items:center;gap:1rem}.nav-action{background:none;border:0;color:inherit;text-decoration:none;cursor:pointer}.mobile-menu{display:none}
@media(max-width:992px){.desktop-nav{display:none}.mobile-menu{display:block;position:fixed;top:var(--nav-height);left:0;right:0;background:var(--white);padding:1.5rem;box-shadow:var(--shadow-md);transform:translateY(-120%);transition:.3s;z-index:999}.mobile-menu.active{transform:translateY(0)}.mobile-menu a{display:block;padding:.8rem 0}.nav-dropdown-menu{position:static;box-shadow:none}.mobile-menu .nav-dropdown-menu{display:block;visibility:visible;opacity:1;transform:none;padding-left:1rem}.nav-actions{gap:.6rem}}
@media(max-width:480px){.nav-actions .nav-action{font-size:.8rem}.site-logo-text{font-size:1.4rem}}
