/* Ultra-Premium Design System - Complete Redesign */

/* Remove all scroll wheels globally */
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}

/* Ensure proper input styling */
input, textarea, select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Fix any remaining scroll wheel issues */
input[type="number"],
input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

:root {
  /* Custom Color System - PRESERVED */
  --primary-50: #faf8f5;
  --primary-100: #f5f0e8;
  --primary-200: #ebceb2;
  --primary-300: #e1b896;
  --primary-400: #d7a27a;
  --primary-500: #cd8c5e;
  --primary-600: #c37642;
  --primary-700: #b96026;
  --primary-800: #af4a0a;
  --primary-900: #8b3a08;

  --secondary-50: #fdf2f8;
  --secondary-100: #fce7f3;
  --secondary-200: #fbcfe8;
  --secondary-300: #f9a8d4;
  --secondary-400: #f472b6;
  --secondary-500: #ec4899;
  --secondary-600: #e879a7;
  --secondary-700: #be185d;
  --secondary-800: #9d174d;
  --secondary-900: #831843;

  --burgundy-50: #fef2f2;
  --burgundy-100: #fee2e2;
  --burgundy-200: #fecaca;
  --burgundy-300: #fca5a5;
  --burgundy-400: #f87171;
  --burgundy-500: #ef4444;
  --burgundy-600: #391219;
  --burgundy-700: #2d0e14;
  --burgundy-800: #220a0f;
  --burgundy-900: #16060a;

  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #1C1C1C;
  --neutral-900: #171717;

  /* Enhanced Spacing System */
  --space-px: 1px;
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-9: 2.25rem;
  --space-10: 2.5rem;
  --space-11: 2.75rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-28: 7rem;
  --space-32: 8rem;
  --space-36: 9rem;
  --space-40: 10rem;
  --space-44: 11rem;
  --space-48: 12rem;
  --space-52: 13rem;
  --space-56: 14rem;
  --space-60: 15rem;
  --space-64: 16rem;
  --space-72: 18rem;
  --space-80: 20rem;
  --space-96: 24rem;

  /* Typography System */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;

  /* 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;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  --text-8xl: 6rem;
  --text-9xl: 8rem;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Enhanced Shadow System */
  --shadow-xs: 0 1px 2px 0 rgba(57, 18, 25, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(57, 18, 25, 0.1), 0 1px 2px -1px rgba(57, 18, 25, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(57, 18, 25, 0.1), 0 2px 4px -2px rgba(57, 18, 25, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(57, 18, 25, 0.1), 0 4px 6px -4px rgba(57, 18, 25, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(57, 18, 25, 0.1), 0 8px 10px -6px rgba(57, 18, 25, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(57, 18, 25, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(57, 18, 25, 0.05);
  --shadow-glow: 0 0 30px rgba(235, 206, 178, 0.4);
  --shadow-glow-lg: 0 0 60px rgba(235, 206, 178, 0.6);

  /* Enhanced Transitions */
  --transition-none: none;
  --transition-all: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-spring: 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Border Radius System */
  --radius-none: 0;
  --radius-sm: 0.125rem;
  --radius-base: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* Header Heights */
  --header-height-desktop: 80px;
  --header-height-tablet: 90px;
  --header-height-mobile: 100px;
  --header-height-small: 110px;

  /* Z-Index Scale */
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --z-auto: auto;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  line-height: 1.15;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--neutral-800);
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-200) 100%);
  min-height: 100vh;
  transition: var(--transition-all);
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--neutral-900);
  margin-bottom: var(--space-6);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
  line-height: var(--leading-none);
  margin-bottom: var(--space-8);
}

h2 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-5xl));
  margin-bottom: var(--space-6);
}

h3 {
  font-size: clamp(var(--text-xl), 3vw, var(--text-4xl));
  margin-bottom: var(--space-5);
}

h4 {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-3xl));
  margin-bottom: var(--space-4);
}

h5 {
  font-size: clamp(var(--text-base), 2vw, var(--text-2xl));
  margin-bottom: var(--space-4);
}

h6 {
  font-size: clamp(var(--text-sm), 1.5vw, var(--text-xl));
  margin-bottom: var(--space-3);
}

p {
  margin-bottom: var(--space-4);
  color: var(--neutral-700);
  line-height: var(--leading-relaxed);
  text-wrap: pretty;
}

a {
  color: var(--secondary-600);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
}

a:hover {
  color: var(--secondary-700);
}

a:focus-visible {
  outline: 2px solid var(--secondary-400);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Enhanced Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-4);
  }
}

/* Modern Header Design */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(250, 248, 245, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(235, 206, 178, 0.2);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  width: 100%;
  box-sizing: border-box;
  height: var(--header-height-desktop);
  contain: layout style; /* Improve performance */
}

.header.scrolled {
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: rgba(235, 206, 178, 0.3);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  width: 100%;
  height: var(--header-height-desktop);
  flex-wrap: nowrap;
}

.logo h1 {
  font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
  background: linear-gradient(135deg, var(--secondary-600), var(--secondary-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  transition: var(--transition-spring);
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo a {
  text-decoration: none;
  display: block;
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  transition: var(--transition-fast);
}

.logo:hover h1 {
  transform: scale(1.05);
}

.logo a:focus-visible {
  outline: 2px solid var(--secondary-400);
  outline-offset: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 0; /* Prevent overflow */
}

.nav-link {
  text-decoration: none;
  color: var(--neutral-700);
  font-weight: 500;
  position: relative;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-xl);
  transition: var(--transition-fast);
  white-space: nowrap;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  border: 1px solid transparent;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--secondary-100), var(--secondary-200));
  opacity: 0;
  transition: var(--transition-fast);
  z-index: -1;
}

.nav-link:hover {
  color: var(--secondary-700);
  transform: translateY(-1px);
  border-color: var(--secondary-200);
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link.active {
  color: var(--secondary-700);
  background: linear-gradient(135deg, var(--secondary-100), var(--secondary-200));
  border-color: var(--secondary-300);
  font-weight: 600;
}

.cart-count {
  background: linear-gradient(135deg, var(--secondary-600), var(--secondary-700));
  color: white;
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  margin-left: var(--space-1);
  min-width: 20px;
  text-align: center;
  animation: bounceIn 0.6s var(--transition-bounce);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  line-height: 1;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--neutral-700);
  font-weight: 500;
  white-space: nowrap;
  font-size: var(--text-sm);
}

.logout-btn {
  background: linear-gradient(135deg, var(--secondary-600), var(--secondary-700));
  color: white;
  border: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.logout-btn:hover {
  background: linear-gradient(135deg, var(--secondary-700), var(--secondary-800));
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.logout-btn:focus-visible {
  outline: 2px solid var(--secondary-400);
  outline-offset: 2px;
}

/* Main Content */
.main {
  margin-top: var(--header-height-desktop);
  min-height: calc(100vh - var(--header-height-desktop) - 120px);
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* Hero Section - Modern Design */
.hero {
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-200) 50%, var(--primary-100) 100%);
  padding: var(--space-24) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(235, 206, 178, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

.hero-title {
  font-size: clamp(var(--text-4xl), 8vw, var(--text-7xl));
  margin-bottom: var(--space-8);
  background: linear-gradient(135deg, var(--secondary-700) 0%, var(--primary-600) 50%, var(--secondary-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: var(--leading-none);
  text-shadow: 0 0 40px rgba(235, 206, 178, 0.3);
}

.hero-subtitle {
  font-size: clamp(var(--text-lg), 3vw, var(--text-2xl));
  color: var(--neutral-600);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  font-weight: 400;
  line-height: var(--leading-relaxed);
}

/* Enhanced Sections */
.products-section,
.custom-order-section {
  padding: var(--space-20) 0;
  margin: 0;
  position: relative;
}

.products-section {
  background: white;
}

.custom-order-section {
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-16);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  background: linear-gradient(135deg, var(--secondary-600), var(--primary-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.03em;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--secondary-600), var(--primary-600));
  border-radius: var(--radius-full);
}

.section-subtitle {
  text-align: center;
  color: var(--neutral-600);
  margin-bottom: var(--space-12);
  font-size: clamp(var(--text-base), 2.5vw, var(--text-xl));
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--leading-relaxed);
}

/* Modern Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-16);
  width: 100%;
  contain: layout; /* Improve CLS */
}

.product-card {
  background: white;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
  border: 1px solid rgba(235, 206, 178, 0.2);
  width: 100%;
  max-width: 100%;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  position: relative;
  group: hover;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-3xl);
  background: linear-gradient(135deg, var(--secondary-100), var(--primary-200));
  opacity: 0;
  transition: var(--transition-base);
  z-index: -1;
}

.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(235, 206, 178, 0.4);
}

.product-card:hover::before {
  opacity: 0.1;
}

.product-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  transition: var(--transition-base);
  display: block;
  flex-shrink: 0;
}

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

.product-info {
  padding: var(--space-8);
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  margin-bottom: var(--space-3);
  color: var(--neutral-900);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.product-description {
  color: var(--neutral-600);
  margin-bottom: var(--space-6);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.product-price {
  font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
  font-weight: 800;
  color: var(--secondary-600);
  margin-bottom: var(--space-6);
  font-family: var(--font-display);
  margin-top: auto;
}

/* Enhanced Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  border: none;
  border-radius: var(--radius-2xl);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  font-size: var(--text-base);
  font-family: var(--font-sans);
  min-height: 48px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  gap: var(--space-2);
  line-height: 1;
  letter-spacing: -0.01em;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-600), var(--secondary-700));
  color: white;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--secondary-700);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary-700), var(--secondary-800));
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--neutral-700);
  border: 2px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--neutral-50);
  border-color: var(--secondary-300);
  color: var(--secondary-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-full {
  width: 100%;
}

.add-to-cart-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-300), var(--primary-400));
  color: var(--neutral-900);
  font-weight: 700;
  border: 1px solid var(--primary-400);
}

.add-to-cart-btn:hover {
  background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
  color: var(--neutral-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

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

.btn:focus-visible {
  outline: 2px solid var(--secondary-400);
  outline-offset: 2px;
}

/* Enhanced Forms */
.form-group {
  margin-bottom: var(--space-6);
  position: relative;
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: var(--space-3);
  font-weight: 600;
  color: var(--neutral-800);
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  font-size: var(--text-base);
  transition: var(--transition-fast);
  background: white;
  color: var(--neutral-800);
  font-family: var(--font-sans);
  min-height: 52px;
  box-sizing: border-box;
  box-shadow: var(--shadow-sm);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--neutral-400);
  font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary-400);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1), var(--shadow-md);
  background: white;
}

.form-group input:valid,
.form-group textarea:valid,
.form-group select:valid {
  border-color: var(--secondary-300);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: var(--space-6);
  width: 100%;
}

.help-text {
  color: var(--neutral-500);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
  line-height: var(--leading-normal);
}

/* Remove scroll wheels from number inputs */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

textarea {
    resize: vertical;
    min-height: 120px;
    line-height: var(--leading-relaxed);
}

/* Modern Custom Orders Section */
.custom-order-card {
  background: white;
  padding: var(--space-12);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-2xl);
  border: 1px solid rgba(235, 206, 178, 0.2);
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  position: relative;
}

.custom-order-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-3xl);
  background: linear-gradient(135deg, var(--secondary-50), var(--primary-100));
  opacity: 0.5;
  z-index: -1;
}

.auth-notice {
  text-align: center;
  padding: var(--space-10);
  background: linear-gradient(135deg, var(--secondary-50), var(--secondary-100));
  border-radius: var(--radius-2xl);
  border: 2px solid var(--secondary-200);
  margin-bottom: var(--space-10);
  position: relative;
  overflow: hidden;
}

.auth-notice::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--secondary-600), var(--secondary-700));
}

.auth-notice h3 {
  color: var(--secondary-800);
  margin-bottom: var(--space-4);
  font-size: var(--text-2xl);
}

.auth-notice p {
  color: var(--secondary-700);
  margin-bottom: 0;
  font-size: var(--text-lg);
}

.login-link {
  color: var(--secondary-600);
  text-decoration: none;
  font-weight: 700;
  position: relative;
}

.login-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--secondary-600);
  transform: scaleX(0);
  transition: var(--transition-fast);
}

.login-link:hover::after {
  transform: scaleX(1);
}

.custom-order-form h3 {
  color: var(--neutral-900);
  margin-bottom: var(--space-8);
  text-align: center;
  font-size: var(--text-3xl);
}

.form-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 2px solid var(--neutral-100);
}

/* Enhanced Footer */
.footer {
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-200) 50%, var(--primary-100) 100%);
  color: var(--neutral-700);
  border-top: 1px solid rgba(235, 206, 178, 0.3);
  box-shadow: 0 -4px 6px -1px rgba(57, 18, 25, 0.1), 0 -2px 4px -1px rgba(57, 18, 25, 0.06);
  text-align: center;
  padding: var(--space-12) 0;
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
  font-size: var(--text-sm);
  font-weight: 500;
  position: relative;
  z-index: var(--z-10);
}

/* Modern Toast Notifications */
.toast {
  position: fixed;
  top: calc(var(--header-height-desktop) + var(--space-6));
  right: var(--space-6);
  background: white;
  color: var(--neutral-800);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  border-left: 4px solid var(--secondary-500);
  transform: translateX(400px);
  opacity: 0;
  transition: var(--transition-base);
  z-index: var(--z-toast);
  max-width: 400px;
  font-weight: 500;
  font-size: var(--text-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success {
  border-left-color: var(--secondary-500);
  background: linear-gradient(135deg, var(--secondary-50), white);
  color: var(--secondary-800);
}

.toast.error {
  border-left-color: var(--burgundy-600);
  background: linear-gradient(135deg, var(--burgundy-50), white);
  color: var(--burgundy-800);
}

/* Enhanced About Page Styles */
.about-hero {
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-200) 50%, var(--primary-100) 100%);
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(235, 206, 178, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

.about-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-hero-text {
  max-width: 100%;
}

.about-title {
  font-size: clamp(var(--text-4xl), 8vw, var(--text-7xl));
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--secondary-700) 0%, var(--primary-600) 50%, var(--secondary-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: var(--leading-none);
}

.about-subtitle {
  font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
  color: var(--secondary-600);
  margin-bottom: var(--space-8);
  font-weight: 600;
  font-family: var(--font-display);
}

.about-intro {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  color: var(--neutral-600);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

.about-hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.artist-portrait {
  position: relative;
  width: 350px;
  height: 350px;
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 6px solid rgba(235, 206, 178, 0.3);
  background: linear-gradient(135deg, var(--secondary-100), var(--primary-200));
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition-base);
}

.artist-portrait:hover .portrait-img {
  transform: scale(1.1);
}

.portrait-frame {
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border: 3px solid rgba(235, 206, 178, 0.5);
  border-radius: var(--radius-full);
  pointer-events: none;
  background: linear-gradient(135deg, transparent, rgba(236, 72, 153, 0.1), transparent);
}

.about-story {
  padding: var(--space-24) 0;
  background: white;
}

.story-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.story-paragraphs p {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  line-height: var(--leading-loose);
  margin-bottom: var(--space-8);
  color: var(--neutral-700);
  text-align: left;
}

.specialties-section {
  padding: var(--space-24) 0;
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-200) 50%, var(--primary-100) 100%);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-10);
  margin-top: var(--space-16);
}

.specialty-card {
  background: white;
  padding: var(--space-10);
  border-radius: var(--radius-3xl);
  text-align: center;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(235, 206, 178, 0.2);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.specialty-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-3xl);
  background: linear-gradient(135deg, var(--secondary-50), var(--primary-100));
  opacity: 0;
  transition: var(--transition-base);
  z-index: -1;
}

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

.specialty-card:hover::before {
  opacity: 0.5;
}

.specialty-icon {
  margin-bottom: var(--space-8);
}

.icon-circle {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--secondary-100), var(--secondary-200));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--secondary-600);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.icon-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: var(--transition-fast);
}

.specialty-card:hover .icon-circle::before {
  opacity: 1;
}

.specialty-card h3 {
  font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
  margin-bottom: var(--space-6);
  color: var(--neutral-900);
  font-weight: 700;
}

.specialty-card p {
  color: var(--neutral-600);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
  font-size: var(--text-base);
}

.gallery-preview {
  padding: var(--space-24) 0;
  background: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: var(--transition-base);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--neutral-100), var(--neutral-200));
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-2xl);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition-base);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.15);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: var(--space-8) var(--space-6) var(--space-6);
  transform: translateY(100%);
  transition: var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-label {
  color: white;
  font-weight: 700;
  font-size: var(--text-lg);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-cta {
  padding: var(--space-24) 0;
  background: linear-gradient(135deg, var(--secondary-600), var(--secondary-700));
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  color: white;
  margin-bottom: var(--space-8);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  margin-bottom: var(--space-10);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--leading-relaxed);
}

.cta-buttons {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  min-width: 200px;
  padding: var(--space-5) var(--space-8);
  font-size: var(--text-lg);
  font-weight: 700;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* Enhanced Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design - Enhanced */
@media (max-width: 1024px) {
  .header {
    height: var(--header-height-tablet);
  }

  .nav {
    height: var(--header-height-tablet);
  }

  .main {
    margin-top: var(--header-height-tablet);
    min-height: calc(100vh - var(--header-height-tablet));
  }

  .toast {
    top: calc(var(--header-height-tablet) + var(--space-6));
  }

  .about-hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    text-align: center;
  }
  
  .about-hero-image {
    order: -1;
  }
  
  .artist-portrait {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 768px) {
  .header {
    height: var(--header-height-mobile);
    padding: 0;
  }

  .nav {
    height: var(--header-height-mobile);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
    flex-wrap: nowrap;
    gap: var(--space-2);
  }

  .logo {
    order: 1;
    flex-shrink: 0;
  }

  .nav-links {
    order: 2;
    width: auto;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: 0;
    border-top: none;
    margin-top: 0;
  }

  .user-menu {
    order: 3;
    flex-shrink: 0;
  }

  .main {
    margin-top: var(--header-height-mobile);
    min-height: calc(100vh - var(--header-height-mobile) - 120px);
  }

  .toast {
    top: calc(var(--header-height-mobile) + var(--space-6));
    right: var(--space-4);
    left: var(--space-4);
    max-width: none;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .nav-links {
    gap: var(--space-1);
    flex-wrap: nowrap;
    justify-content: flex-end;
    width: auto;
    padding: 0;
  }

  .nav-link {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    white-space: nowrap;
    flex: 0 0 auto;
    min-width: 50px;
    text-align: center;
  }

  .hero {
    padding: var(--space-16) 0 var(--space-20) 0;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
    gap: var(--space-4);
  }

  .specialties-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: var(--space-6);
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  .about-hero,
  .about-story,
  .specialties-section,
  .gallery-preview,
  .contact-cta {
    padding: var(--space-20) 0;
  }
}

@media (max-width: 480px) {
  .header {
    height: var(--header-height-small);
    padding: 0;
  }

  .nav {
    height: var(--header-height-small);
    padding: var(--space-3) 0;
    gap: var(--space-2);
    flex-wrap: wrap;
  }

  .logo h1 {
    font-size: var(--text-lg);
  }
  
  .logo {
    order: 1;
    flex: 1;
  }
  
  .user-menu {
    order: 2;
    flex-shrink: 0;
  }
  
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    padding: var(--space-2) 0 0 0;
    border-top: 1px solid rgba(235, 206, 178, 0.3);
    margin-top: var(--space-2);
  }

  .main {
    margin-top: var(--header-height-small);
    min-height: calc(100vh - var(--header-height-small) - 120px);
  }

  .toast {
    top: calc(var(--header-height-small) + var(--space-4));
  }

  .nav-links {
    gap: var(--space-1);
    padding: var(--space-1) 0 0 0;
  }

  .nav-link {
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
    min-width: 45px;
  }

  .hero {
    padding: var(--space-12) 0 var(--space-16) 0;
  }

  .custom-order-card {
    padding: var(--space-8);
  }


  .artist-portrait {
    width: 220px;
    height: 220px;
  }
  
  .specialty-card {
    padding: var(--space-8);
  }
  
  .icon-circle {
    width: 80px;
    height: 80px;
  }

  .about-hero,
  .about-story,
  .specialties-section,
  .gallery-preview,
  .contact-cta {
    padding: var(--space-16) 0;
  }
}

@media (max-width: 320px) {
  .header {
    height: calc(var(--header-height-small) + 10px);
  }

  .nav {
    height: calc(var(--header-height-small) + 10px);
    padding: var(--space-2) 0;
  }

  .main {
    margin-top: calc(var(--header-height-small) + 10px);
    min-height: calc(100vh - var(--header-height-small) - 50px);
  }

  .container {
    padding: 0 var(--space-3);
  }

  .nav-links {
    gap: var(--space-1);
    padding: var(--space-1) 0 0 0;
  }

  .nav-link {
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
    min-width: 45px;
  }

  .logo h1 {
    font-size: var(--text-base);
  }

  .custom-order-card {
    padding: var(--space-6);
    margin: 0 var(--space-2);
  }
}

/* Enhanced touch targets for mobile */
@media (max-width: 768px) {
  .btn,
  .nav-link {
    min-height: 44px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cart-count {
    position: relative;
    margin-left: var(--space-1);
  }

  .user-menu {
    font-size: var(--text-sm);
  }

  .logout-btn {
    min-height: 36px;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
  }
}

/* Mobile-first navigation improvements */
@media (max-width: 480px) {
  .nav-link {
    min-width: 50px;
    padding: var(--space-2);
    border-radius: var(--radius-lg);
  }

  .nav-link.active {
    background: linear-gradient(135deg, var(--secondary-100), var(--secondary-200));
    border-color: var(--secondary-300);
    font-weight: 700;
  }

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

  .logout-btn {
    min-height: 32px;
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
    border-radius: var(--radius-lg);
  }
}

/* Perfect layout stability */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.product-image {
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Prevent cumulative layout shift */
.hero,
.products-section,
.custom-order-section {
  contain: layout style;
}

/* Improve font loading */
@font-face {
  font-family: 'Inter';
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  font-display: swap;
}

/* Smooth font rendering */
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Perfect spacing system */
.hero + .products-section,
.hero + section {
  padding-top: var(--space-20);
}

/* Perfect z-index hierarchy */
.header {
  z-index: var(--z-fixed);
}

.toast {
  z-index: var(--z-toast);
}

/* Flawless overflow handling */
body,
html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container,
.nav,
.products-grid {
  max-width: 100%;
  overflow-x: hidden;
}

/* Enhanced performance */
* {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Perfect button states */
.btn:focus,
.btn:hover,
.btn:active {
  text-decoration: none;
  outline: none;
}

/* Perfect mobile experience */
@media (max-width: 480px) {
  .hero {
    padding: var(--space-12) 0 var(--space-16) 0;
  }

  .products-section,
  .custom-order-section {
    padding: var(--space-16) 0;
  }
}

/* Perfect touch interactions */
@media (hover: none) and (pointer: coarse) {
  .btn:hover {
    transform: none;
  }

  .product-card:hover {
    transform: none;
  }

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

/* Ensure perfect compatibility */
@supports not (backdrop-filter: blur(20px)) {
  .header {
    background: rgba(250, 248, 245, 0.95);
  }

  .header.scrolled {
    background: rgba(250, 248, 245, 0.98);
  }
}

/* Perfect grid fallbacks */
@supports not (display: grid) {
  .products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
  }

  .product-card {
    flex: 1 1 320px;
    max-width: 100%;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .btn:hover,
  .product-card:hover {
    transform: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --neutral-50: #ffffff;
    --neutral-100: #f0f0f0;
    --neutral-900: #000000;
    --secondary-600: #db2777;
    --primary-200: #ebceb2;
  }

  .btn {
    border: 2px solid currentColor;
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .toast {
    display: none;
  }

  .main {
    margin-top: 0;
  }

  body {
    background: white;
  }

  .hero,
  .products-section,
  .custom-order-section {
    background: white;
  }
}