/* Canberrg - Modern Glassmorphic Design */
/* Font with display=swap parameter for optimal loading */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Dophari-Inspired Warm Theme Colors */
  --primary: #2d2520;
  --primary-dark: #1a1512;
  --secondary: #8b7355;
  --accent: #d4a574;
  --success: #7c9473;
  --warning: #d4a574;
  --danger: #c15b4d;
  
  /* Light Mode - Warm Beige/Cream Style */
  --bg-primary: #f5f1e8;
  --bg-secondary: #faf8f3;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-hover: rgba(255, 255, 255, 0.95);
  --text-primary: #2d2520;
  --text-secondary: #6b5d52;
  --text-light: #8b7355;
  --border-color: rgba(45, 37, 32, 0.1);
  --shadow-sm: 0 2px 8px rgba(45, 37, 32, 0.06);
  --shadow-md: 0 4px 16px rgba(45, 37, 32, 0.1);
  --shadow-lg: 0 10px 40px rgba(45, 37, 32, 0.15);
  --shadow-glass: 0 8px 32px 0 rgba(45, 37, 32, 0.1);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

[data-theme="dark"] {
  --bg-primary: #000000;
  --bg-secondary: #1d1d1f;
  --bg-glass: rgba(29, 29, 31, 0.72);
  --bg-glass-hover: rgba(29, 29, 31, 0.88);
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.8);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.47059;
  padding-top: 0;
  min-height: 100vh;
  transition: background var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Glassmorphism Effect - Apple Style */
.glass {
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid var(--border-color);
  box-shadow: var(--shadow-glass);
}

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: 18px;
  border: 0.5px solid var(--border-color);
  padding: var(--spacing-md);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-md);
}

.glass-card:hover {
  background: var(--bg-glass-hover);
  transform: translateY(-2px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

/* Container */
.container {
  max-width: 1200px;
  width: 95%;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

/* Navigation - Desktop - Apple Style */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--border-color);
  padding: 0;
  box-shadow: none;
  margin: 0;
  max-width: 100%;
  border-radius: 0;
  transition: all var(--transition-fast);
}

.navbar:hover {
  box-shadow: none;
  transform: none;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 0 22px;
  height: 44px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 21px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity var(--transition-fast);
  letter-spacing: -0.01em;
}

.navbar-logo:hover {
  opacity: 0.8;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.navbar-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 400;
  font-size: 12px;
  padding: 0;
  border-radius: 0;
  transition: opacity var(--transition-fast);
  position: relative;
  display: flex;
  align-items: center;
  letter-spacing: -0.01em;
}

.navbar-menu a:hover {
  opacity: 0.8;
  background: none;
}

.navbar-menu a.active {
  color: var(--text-primary);
  background: none;
  font-weight: 400;
}

.navbar-actions {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.cart-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-badge .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  padding: 2px 5px;
  border-radius: 10px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
}

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-xs) 0;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

.bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--spacing-xs);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.75rem;
  transition: all var(--transition-fast);
  position: relative;
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item i {
  font-size: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 980px;
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
}

/* Prevent icon size changes in buttons */
.btn i,
.btn svg {
  display: inline-block;
  font-size: inherit !important;
  width: 1em;
  height: 1em;
  line-height: 1;
  flex-shrink: 0;
  transition: none !important;
  transform: none !important;
}

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

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--primary);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.2);
  border-radius: 980px;
  border: none;
}

.btn-primary:hover {
  transform: scale(1.05);
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
  color: white;
}

.btn-secondary {
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: var(--text-primary);
  border: 0.5px solid var(--border-color);
  border-radius: 980px;
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

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

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 12px;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 15px;
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-primary);
  border: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-icon:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: scale(1.1);
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 0.5px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
  backdrop-filter: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.form-control::placeholder {
  color: var(--text-secondary);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Cards */
.card {
  background: var(--bg-secondary);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-sm);
  border: 0.5px solid var(--border-color);
}

.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md);
}

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

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

.card-img-wrapper {
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

.card-body {
  padding: var(--spacing-sm) var(--spacing-md);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.card-text {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.47059;
  font-size: 0.875rem;
}

.card-footer {
  padding: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Special grid for categories - 3 on top, 2 centered bottom */
.grid-3.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--spacing-md);
}

.grid-3.category-grid .category-card:nth-child(1),
.grid-3.category-grid .category-card:nth-child(2),
.grid-3.category-grid .category-card:nth-child(3) {
  grid-column: span 2;
}

.grid-3.category-grid .category-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.grid-3.category-grid .category-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-lg) 0;
  position: relative;
  overflow: hidden;
}

/* Background Image (placeholder until video loads) */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: opacity 0.8s ease-in-out;
}

/* YouTube Background Video Wrapper */
.hero-youtube-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9 aspect ratio */
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none; /* Prevent interaction with video */
}

.hero-youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none; /* Prevent interaction with video */
}

/* Dark overlay for better text readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-title {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: #ffffff;
  line-height: 1.0834933333;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(0.9375rem, 1.25vw, 1.125rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-md);
  font-weight: 400;
  line-height: 1.47059;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Section */
.section {
  padding: var(--spacing-lg) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.section-subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.47059;
}

/* Category Cards */
.category-card {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-sm);
  border: 0.5px solid var(--border-color);
  height: 260px;
}

.category-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.category-card-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  text-align: center;
  transition: all var(--transition-normal);
}

.category-card:hover .category-card-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

.category-card-title {
  font-size: 2.5rem; /* slightly larger for more impact */
  font-weight: 900;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: center;

  /* Stretch effect */
  transform: scaleX(1.1);
  display: inline-block;

  /* Strong glow & readability */

}


/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing-md);
}

/* Simple Product Cards (Homepage & Products Page) */
.simple-product-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.simple-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.simple-card-image {
  position: relative;
  width: 100%;
  padding-top: 133%; /* 3:4 portrait */
  overflow: hidden;
  background: #f0f0f0;
}

.simple-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.simple-card-info {
  padding: 1.25rem;
  text-align: center;
}

.simple-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.simple-card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 1rem 0;
}

.simple-card-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.simple-card-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.product-card {
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-4px);
  /*box-shadow: var(--shadow-lg);*/
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
}

.product-hover-actions {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.card-img-wrapper:hover .product-hover-actions {
  opacity: 1;
}

.product-hover-actions .btn {
  width: 100%;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-size: 0.875rem;
}

.product-hover-actions .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Product Slideshow */
.product-slideshow {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.product-slideshow .slide {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.product-slideshow .slide.active {
  display: block;
}

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

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.slide-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.slide-prev {
  left: 1rem;
}

.slide-next {
  right: 1rem;
}

.slide-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slide-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-indicators .indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.slide-indicators .indicator.active {
  background: white;
  width: 30px;
  border-radius: 6px;
}

/* Wave Dividers */
.wave-foreground {
  fill: rgba(255, 255, 255, 0.95);
  transition: fill 0.3s ease;
}

[data-theme="dark"] .wave-foreground {
  fill: rgba(30, 30, 40, 0.95);
}

/* Review Cards */
.review-card {
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.review-card:hover .fa-quote-right {
  color: rgba(251, 191, 36, 0.4) !important;
  transform: scale(1.2);
  transition: all 0.3s ease;
}

.product-badge {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
  border: 0.5px solid var(--border-color);
}

.product-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Alert */
.alert {
  padding: var(--spacing-md);
  border-radius: 12px;
  margin-bottom: var(--spacing-md);
  border-left: 4px solid;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid var(--border-color);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success);
  color: var(--success);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--warning);
  color: var(--warning);
}

.alert-info {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: 18px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 0.5px solid var(--border-color);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: var(--spacing-md);
}

/* Theme Toggle */
.theme-toggle {
  background: transparent;
  border: none;
  border-radius: 50%;
  padding: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: none;
}

[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Responsive */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .simple-card-image {
    padding-top: 125%; /* Slightly less tall on mobile */
  }
  
  .navbar {
    border-bottom: 0.5px solid var(--border-color);
  }
  
  .navbar-container {
    padding: 0 16px;
    height: 44px;
  }
  
  .navbar-logo {
    font-size: 17px;
  }
  
  .navbar-menu {
    display: none;
  }
  
  .mobile-nav {
    display: block;
  }
  
  .bottom-nav {
    display: block;
    background: var(--bg-glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 0.5px solid var(--border-color);
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  /* Reset category grid on mobile */
  .grid-3.category-grid {
    grid-template-columns: 1fr;
  }
  
  .grid-3.category-grid .category-card:nth-child(1),
  .grid-3.category-grid .category-card:nth-child(2),
  .grid-3.category-grid .category-card:nth-child(3),
  .grid-3.category-grid .category-card:nth-child(4),
  .grid-3.category-grid .category-card:nth-child(5) {
    grid-column: auto;
  }
  

  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .hero {
    min-height: 100vh;
    padding: var(--spacing-md) 0;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .card-img {
    height: 200px;
  }
  
  body {
    padding-bottom: 70px;
  }
  
  /* Mobile Account Button */
  .navbar-actions .btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 11px;
    height: 32px;
  }
  
  /* Mobile Order Card Layout */
  .order-item-mobile {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  .order-item-mobile > div:first-of-type {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .order-item-mobile form {
    width: 100%;
  }
  
  .order-item-mobile .btn {
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
