/* Cuivre - French Bakery Design System */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* CSS Custom Properties - Brand System */
:root {
  /* Color Palette - Earthy & Natural */
  --olive: #3D5A3B;      /* Deeper forest green */
  --sage: #B8C4B6;       /* Muted sage green */
  --cream: #F6F3ED;      /* Warm off-white */
  --charcoal: #2B2D28;   /* Rich dark green-gray */
  --copper: #8B5A3C;     /* Warm earthy brown (less orange) */
  
  /* Additional earthy tones */
  --clay: #A67C5A;       /* Warm clay brown */
  --moss: #5C6B5A;       /* Muted moss green */
  --stone: #E8E4DC;      /* Light stone beige */

  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;

  /* Shadows - Enhanced for app-like feel */
  --shadow-sm: 0 1px 2px 0 rgba(43, 45, 40, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(43, 45, 40, 0.1), 0 2px 4px -1px rgba(43, 45, 40, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(43, 45, 40, 0.1), 0 4px 6px -2px rgba(43, 45, 40, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(43, 45, 40, 0.1), 0 10px 10px -5px rgba(43, 45, 40, 0.04);
  --shadow-card: 0 8px 30px rgba(43, 45, 40, 0.12), 0 4px 12px rgba(43, 45, 40, 0.08);
  --shadow-floating: 0 16px 40px rgba(43, 45, 40, 0.15), 0 8px 20px rgba(43, 45, 40, 0.1);
  
  /* Gradients for modern look - Earthy tones */
  --gradient-warm: linear-gradient(135deg, var(--cream) 0%, var(--stone) 100%);
  --gradient-sage: linear-gradient(135deg, var(--sage) 0%, #C2CEC0 100%);
  --gradient-copper: linear-gradient(135deg, var(--copper) 0%, var(--clay) 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(43, 45, 40, 0.6) 0%, rgba(43, 45, 40, 0.3) 100%);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  
  /* Mobile App Enhancements */
  --mobile-tap-highlight: rgba(180, 110, 58, 0.1);
  --mobile-safe-area: env(safe-area-inset-bottom);
}

/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--gradient-warm);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--charcoal);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 500;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 500;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
}

h5 {
  font-size: 1.125rem;
  font-weight: 500;
}

h6 {
  font-size: 1rem;
  font-weight: 500;
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--copper);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--olive);
}

a:focus {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

/* Layout Components */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Button System - Modern App Style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-full);
  background: var(--gradient-copper);
  color: white;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn:hover,
.btn:focus {
  background: var(--gradient-copper);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  outline: none;
}

.btn:focus {
  box-shadow: 0 0 0 3px rgba(180, 110, 58, 0.3), var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--gradient-copper);
  color: white;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--gradient-copper);
  filter: brightness(1.1);
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.75rem;
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
}

/* Card System - Modern App Style */
.card {
  background: white;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  overflow: hidden;
  position: relative;
}

.card:hover {
  box-shadow: var(--shadow-floating);
  transform: translateY(-4px);
}

.card-body {
  padding: var(--space-lg);
  background: white;
}

.card-header {
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(200, 208, 198, 0.3);
  background: var(--gradient-warm);
}

.card-footer {
  padding: var(--space-lg);
  border-top: 1px solid rgba(200, 208, 198, 0.3);
  background: var(--gradient-warm);
}

/* Mobile card enhancements */
@media (max-width: 768px) {
  .card {
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
  }
  
  .card:hover {
    transform: translateY(-2px);
  }
  
  .card-body {
    padding: var(--space-md);
  }
}

/* Image Styles */
img {
  max-width: 100%;
  height: auto;
}

.img-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.img-contain {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--sage);
  height: var(--header-height);
}

.header-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-link {
  color: var(--charcoal);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--copper);
}

.cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.cart-btn:hover {
  background: var(--sage);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--copper);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 2px 6px;
  min-width: 18px;
  text-align: center;
}

/* Announcement Bar */
.announcement-bar {
  background: var(--olive);
  color: white;
  text-align: center;
  padding: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Hero Section - Modern App Style */
.hero {
  position: relative;
  min-height: 70vh;
  background: linear-gradient(135deg, rgba(46, 47, 43, 0.4) 0%, rgba(46, 47, 43, 0.6) 100%), 
              url('https://images.unsplash.com/photo-1555507036-ab794f4dde2e?w=1200&h=800&fit=crop&crop=center&q=80') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-bottom: var(--space-lg);
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-weight: 600;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.7;
}

/* Mobile hero adjustments */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    padding: var(--space-xl) var(--space-md);
  }
  
  .hero-subtitle {
    font-size: 1rem;
    padding: 0 var(--space-md);
  }
}

/* Section Styles - Enhanced */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--sage) 50%, transparent 100%);
  opacity: 0.5;
}

.section:first-of-type::before {
  display: none;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  position: relative;
}

.section-title {
  margin-bottom: var(--space-md);
  background: var(--gradient-copper);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--olive);
  max-width: 600px;
  margin: 0 auto;
}

/* Product Grid - Modern App Style */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
  padding: var(--space-md);
}

.product-card {
  background: white;
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow-floating);
  transform: translateY(-6px);
}

.product-image {
  aspect-ratio: 4/3;
  background: var(--gradient-sage);
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-info {
  padding: var(--space-lg);
  background: white;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--charcoal);
  line-height: 1.3;
}

.product-description {
  font-size: 0.875rem;
  color: var(--olive);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.product-price {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--copper);
  background: var(--gradient-copper);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Mobile product grid adjustments */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-sm);
  }
  
  .product-card:hover {
    transform: translateY(-4px);
  }
  
  .product-info {
    padding: var(--space-md);
  }
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--sage);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.filter-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--charcoal);
}

.filter-select {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--sage);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
}

.filter-select:focus {
  outline: 2px solid var(--copper);
  outline-offset: 1px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(46, 47, 43, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-lg);
}

.modal {
  background: var(--cream);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--sage);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--charcoal);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.modal-close:hover {
  background: var(--sage);
}

.modal-body {
  padding: var(--space-lg);
}

.modal-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--sage);
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: var(--cream);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  transition: right var(--transition-base);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(46, 47, 43, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--sage);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: 0;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
}

.cart-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--sage);
}

.cart-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--sage);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--sage);
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.cart-item-variant {
  font-size: 0.875rem;
  color: var(--olive);
  margin-bottom: var(--space-xs);
}

.cart-item-price {
  font-weight: 600;
  color: var(--copper);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.qty-btn {
  background: var(--sage);
  border: none;
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.qty-btn:hover {
  background: var(--olive);
  color: white;
}

.qty-input {
  width: 50px;
  text-align: center;
  border: 1px solid var(--sage);
  border-radius: var(--radius-sm);
  padding: var(--space-xs);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  font-size: 1.125rem;
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--charcoal);
  color: var(--sage);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-3xl);
}

.footer-content {
  text-align: center;
}

.footer-text {
  margin-bottom: var(--space-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .cart-drawer {
    width: 100%;
    right: -100%;
  }
  
  .modal {
    margin: var(--space-md);
  }
  
  .filters {
    flex-direction: column;
  }
  
  .filter-group {
    flex-direction: row;
    align-items: center;
    gap: var(--space-md);
  }
  
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.hidden { display: none; }
.visible { display: block; }

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.skeleton {
  background: linear-gradient(90deg, var(--sage) 25%, var(--cream) 50%, var(--sage) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Focus Styles for Accessibility */
.btn:focus,
.nav-link:focus,
.filter-select:focus,
.qty-input:focus,
.cart-btn:focus {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --olive: #2A4228;      /* Darker forest green for contrast */
    --sage: #909890;       /* Muted gray-green */
    --cream: #ffffff;      /* Pure white for contrast */
    --charcoal: #000000;   /* Pure black for contrast */
    --copper: #6B4226;     /* Darker earthy brown */
  }
}

/* Reduced Motion Support */
@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;
  }
}

/* Mobile App Enhancements */
/* Touch feedback and app-like interactions */
@media (max-width: 768px) {
  /* Remove default touch highlights and add custom ones */
  * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
  
  /* Allow text selection for content */
  p, h1, h2, h3, h4, h5, h6, span, div:not(.btn) {
    -webkit-user-select: text;
    user-select: text;
  }
  
  /* Custom touch feedback for interactive elements */
  .btn, .product-card, .card, .nav-link, .cart-btn {
    -webkit-tap-highlight-color: var(--mobile-tap-highlight);
    position: relative;
  }
  
  /* Active states for touch */
  .btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  .product-card:active, .card:active {
    transform: scale(0.99);
    transition: transform 0.1s ease;
  }
  
  /* Mobile-specific spacing improvements */
  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  
  /* App-like navigation */
  .header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(200, 208, 198, 0.3);
  }
  
  /* Smooth scrolling areas */
  .product-grid, .collections-grid {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Safe area support for modern phones */
  .header {
    padding-top: max(var(--space-md), env(safe-area-inset-top));
  }
  
  /* Loading states for images */
  img {
    transition: opacity var(--transition-base);
  }
  
  img[loading="lazy"] {
    opacity: 0;
    animation: fadeInImage 0.3s ease-in-out forwards;
  }
}

/* Subtle pulse animation for loading states */
@keyframes fadeInImage {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Micro-interaction for buttons */
@keyframes buttonPress {
  0% { transform: scale(1); }
  50% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

/* Enhanced focus states for mobile */
@media (max-width: 768px) {
  .btn:focus-visible {
    animation: buttonPress 0.2s ease-in-out;
  }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(200, 208, 198, 0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: var(--space-sm) 0;
  padding-bottom: max(var(--space-sm), env(safe-area-inset-bottom));
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(46, 47, 43, 0.1);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs) var(--space-sm);
  border: none;
  background: none;
  color: var(--olive);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  cursor: pointer;
  min-width: 60px;
  border-radius: var(--radius-md);
}

.mobile-nav-item:hover,
.mobile-nav-item:focus {
  background: rgba(180, 110, 58, 0.1);
  color: var(--copper);
  outline: none;
}

.mobile-nav-item.active {
  color: var(--copper);
  background: rgba(180, 110, 58, 0.1);
}

.mobile-nav-item svg {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
  stroke-width: 2;
}

.mobile-nav-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  line-height: 1;
}

.mobile-cart-count {
  position: absolute;
  top: -2px;
  right: 8px;
  background: var(--copper);
  color: white;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Hide mobile nav on desktop */
@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none;
  }
}

/* Hide desktop nav on mobile and adjust layout */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .header-content {
    justify-content: center;
  }
  
  /* Add bottom padding to main content to account for bottom nav */
  main {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
  
  /* Ensure footer doesn't overlap bottom nav */
  .footer {
    margin-bottom: calc(80px + env(safe-area-inset-bottom));
  }
}