:root {
  /* Dark Mode (default) */
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --accent: #c9a95e; /* Gold steel */
  --accent-hover: #d4b373;
  --border: #333333;
  --shadow: 0 10px 30px rgba(0,0,0,0.5);
  --gradient: linear-gradient(135deg, var(--accent), #a68a3f);
}

[data-theme="light"] {
  /* Light Mode */
  --bg-primary: #faf7f2;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0ede7;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --accent: #d4a500;
  --accent-hover: #b88900;
  --border: #e8dfd5;
  --shadow: 0 10px 30px rgba(0,0,0,0.12);
  --gradient: linear-gradient(135deg, #d4a500, #e6c800);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: transparent !important; /* Forces the video wrapper below to show */
  overflow-x: hidden;
  max-width: 100vw;
  scroll-behavior: smooth;
}

/* =========================================
   IMMERSIVE VIDEO BACKGROUND LOGIC
   ========================================= */
.video-bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10; /* Locked securely behind the whole site */
  overflow: hidden;
  background-color: #050505; /* Black fallback behind video */
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Forces responsive coverage without stretching */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; /* Stops it from catching clicks */
  filter: brightness(60%); /* Reduces video brightness for high contrast readability */
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Readability shadow shield */
  pointer-events: none;
}

/* Prevent auto-zooming on iOS inputs when focused */
input, textarea, select {
  font-size: 16px !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent !important;
  z-index: 1000;
  transition: all 0.3s ease;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-cart-btn {
  background: transparent;
  border: none;
  font-size: 1.3rem;
  color: var(--accent) !important;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
}

.nav-cart-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(201, 169, 94, 0.3);
  border-color: var(--accent);
}

.nav-cart-btn .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-secondary);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}


.nav-brand {
  display: flex;
  align-items: center;
  background: transparent !important;
}

.header-logo {
  max-height: 40px;
  width: auto;
  vertical-align: middle;
  object-fit: contain;
  background-color: transparent !important;
}

.nav-brand h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.nav-brand span {
  font-weight: 300;
  color: var(--text-secondary);
}

.nav-brand img {
  transition: all 0.3s ease;
  background-color: transparent !important;
}

[data-theme="light"] .nav-brand img {
  background-color: transparent !important;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--accent) !important;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.nav-menu a:hover {
  color: var(--accent);
  transform: scale(1.1);
  font-weight: 600;
}

/* Orders Counter Badge */
#orders-count {
  background: var(--accent);
  color: var(--bg-primary);
  border-radius: 50%;
  padding: 0.2rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 0.5rem;
  min-width: 1.5rem;
  text-align: center;
  display: inline-block;
}

[data-theme="light"] #orders-count {
  background: var(--accent);
  color: var(--bg-primary);
}

/* Admin Orders - Elegant Cards */
.order-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.order-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-color: var(--accent);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.order-id {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.order-status-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-new { background: rgba(59,130,246,0.2); color: #3b82f6; border: 1px solid #3b82f6; }
.status-preparation { background: rgba(30,58,138,0.2); color: #1e3a8a; border: 1px solid #1e3a8a; }
.status-delivery { background: rgba(13,148,136,0.2); color: #0d9488; border: 1px solid #0d9488; }
.status-completed { background: rgba(22,163,74,0.2); color: #16a34a; border: 1px solid #16a34a; }
.status-cancelled { background: rgba(231,76,60,0.2); color: #e74c3c; border: 1px solid #e74c3c; }

.order-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.order-details strong { color: var(--text-primary); }

.order-items {
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.order-items ul {
  margin: 0;
  padding-left: 1.2rem;
}

.order-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Enhanced Order Status Styling */
.order-status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  border: 2px solid;
  transition: all 0.2s ease;
}

.status-new { 
  background: rgba(59, 130, 246, 0.15); 
  color: #3b82f6; 
  border-color: #3b82f6;
}

.status-preparation { 
  background: rgba(30, 58, 138, 0.15); 
  color: #1e3a8a; 
  border-color: #1e3a8a;
}

.status-delivery { 
  background: rgba(13, 148, 136, 0.15); 
  color: #0d9488; 
  border-color: #0d9488;
}

.status-completed { 
  background: rgba(22, 163, 74, 0.15); 
  color: #16a34a; 
  border-color: #16a34a;
}

.status-cancelled { 
  background: rgba(231, 76, 60, 0.15); 
  color: #e74c3c; 
  border-color: #e74c3c;
}

/* Order Card Status Dropdown Styling */
select[style*="border-radius: 6px"] {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.6rem 0.8rem;
  min-width: 140px;
  transition: all 0.2s ease;
}

select[style*="border-radius: 6px"]:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 0 8px rgba(201, 169, 94, 0.2);
}

select[style*="border-radius: 6px"]:focus {
  outline: none;
  border-color: var(--accent) !important;
  box-shadow: 0 0 12px rgba(201, 169, 94, 0.3);
}

select[style*="border-radius: 6px"] option {
  padding: 0.5rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .order-details {
    grid-template-columns: 1fr;
  }
  .order-card {
    padding: 1rem;
  }
}

.nav-menu a:active {
  transform: scale(0.95);
}

.theme-toggle {
  background: transparent;
  border: 2px solid var(--accent); /* Match gold */
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  width: 50px;
  height: 50px;
}

.theme-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(201, 169, 94, 0.3);
  transform: scale(1.1) rotate(10deg);
}

.theme-toggle:active {
  transform: scale(0.95) rotate(-5deg);
  box-shadow: 0 4px 12px rgba(201, 169, 94, 0.2);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--accent) !important;
}

/* Catch-all rule to ensure any nested unstyled elements in header turn gold */
.header p, .header li, .header span:not(.badge):not(.sun):not(.moon) {
  color: var(--accent);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center; /* Changed from space-between to center for gap to work nicely */
  padding: 120px 2rem 4rem;
  background: var(--gradient), var(--bg-primary);
  background-blend-mode: overlay;
  gap: 6rem; /* Substantial gap for a premium feel */
}


.hero-content {
  flex: 1;
  max-width: 500px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-desc {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 50px rgba(201, 169, 94, 0.6);
  background: var(--accent-hover);
}

.cta-btn:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 0 10px 25px rgba(201, 169, 94, 0.5);
}

.hero-image {
  flex: 1.2; /* Slightly larger image area */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-image:hover .hero-img {
  transform: scale(1.05);
}



/* Sections */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 3rem;
  font-weight: 700;
}

.about {
  background: var(--bg-secondary);
  text-align: center;
}

.about p {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Features & Collections */
.collections-grid, .contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.products-grid {
  display: grid;
  /* Very responsive compact sizes: ~160px min means 2 per row on mobile, 4+ on desktop */
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}

.category-tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.category-tab {
  background: var(--bg-tertiary);
  border: 2px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-primary);
  font-weight: 500;
}

.category-tab:hover {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(201, 169, 94, 0.3);
}

.category-tab.active {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(201, 169, 94, 0.4);
}

.product-card {
  background: var(--bg-secondary);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.2s ease;
  border: 2px solid var(--border);
}

.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(201, 169, 94, 0.25);
  border-color: var(--accent);
}

.product-card:active {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 15px 35px rgba(201, 169, 94, 0.2);
}

.product-image {
  height: 180px; /* Reduced from 250px for compact design */
  background-size: contain; /* Changed from cover */
  background-position: center;
  background-repeat: no-repeat;
  
  /* FORCE NO ANIMATION OR ZOOM */
  display: block !important;
  max-width: 100% !important;
  object-fit: contain !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

.product-info {
  padding: 1rem; /* Reduced from 1.5rem */
}

/* Home Page & Global Multi-slider Images */
.slider-img,
.gallery-image,
.swiper-slide img,
.swiper-slide-active img {
  width: 100% !important;
  height: 100% !important; /* Force exact bounds to break height recalculation loops */
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: block !important;
  object-fit: contain !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
  filter: none !important; /* Destroys any lingering SVG/CSS filter zoom */
}

.product-info h3 {
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.buy-btn {
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  transition: all 0.2s ease;
  position: relative;
}

.buy-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 40px rgba(201, 169, 94, 0.6);
  background: var(--accent-hover);
}

.buy-btn:active {
  transform: translateY(-1px) scale(0.97);
  box-shadow: 0 8px 20px rgba(201, 169, 94, 0.4);
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  visibility: hidden;
  transition: all 0.4s ease;
}

.cart-sidebar.active {
  visibility: visible;
}

.cart-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cart-sidebar.active::before {
  opacity: 1;
}

.cart-sidebar-content {
  position: absolute;
  right: -100%;
  top: 0;
  width: 100%;
  max-width: 500px;
  height: 100%;
  background: var(--bg-secondary);
  box-shadow: -15px 0 50px rgba(0,0,0,0.6);
  padding: 3rem 2rem 9rem 2rem; /* Increased bottom padding to prevent overlap with fixed footer */
  overflow-y: auto;
  transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active .cart-sidebar-content {
  right: 0;
}

.cart-close {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 2.2rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  line-height: 1;
}

.cart-close:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.cart-sidebar-content h2 {
  margin-bottom: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1rem;
}

.cart-total {
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
}

.cart-total div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

#checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Animations */
@keyframes shake-cart {
  0% { transform: scale(1.1) rotate(0); }
  25% { transform: scale(1.1) rotate(15deg); }
  50% { transform: scale(1.1) rotate(-15deg); }
  75% { transform: scale(1.1) rotate(10deg); }
  100% { transform: scale(1.1) rotate(0); }
}

.shake {
  animation: shake-cart 0.5s ease-in-out;
}

/* Fly to Cart Animation */
.flying-product {
  position: fixed;
  z-index: 9999;
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 15px var(--accent);
  transition: all 0.8s cubic-bezier(0.42, 0, 0.58, 1);
}

/* Quantity Controls - Product Card */
.qty-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-tertiary);
  border: 2px solid var(--accent);
  border-radius: 50px;
  padding: 0.2rem;
  width: 100%;
}

.qty-btn {
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
}

.qty-btn:active {
  transform: scale(0.9);
}

.qty-value {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.1rem;
}

/* Sidebar Quantity Controls */
.sidebar-qty {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 5px;
}

.sidebar-qty-btn {
  background: var(--bg-primary);
  color: var(--accent);
  border: 1px solid var(--border);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}

.sidebar-qty-btn:hover {
  border-color: var(--accent);
  background: var(--bg-tertiary);
}



@media (max-width: 768px) {
  .category-tabs {
    flex-direction: column;
    align-items: center;
  }

  .cart-content {
    width: 95%;
    max-width: 100%;
    margin: 20% auto;
    padding: 1.5rem 1rem;
    max-height: 85vh;
    border-radius: 15px;
  }

  .cart-content h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  .close {
    font-size: 1.5rem;
    right: 0.75rem;
    top: 0.75rem;
  }

  .cart-total {
    margin: 1rem 0;
    padding-top: 0.75rem;
    font-size: 1rem;
  }

  #cart-items {
    max-height: none;
    overflow-y: visible;
    margin-bottom: 1rem;
    order: 0;
  }

  .cart-modal label {
    display: block;
    font-weight: 600;
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
  }

  .cart-modal input,
  .cart-modal select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
  }

  .cart-modal button {
    width: 100%;
    padding: 0.875rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
  }
}

.feature-card, .collection-card {
  background: var(--bg-tertiary);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.2s ease;
  border: 2px solid var(--border);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.feature-card:hover, .collection-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 50px rgba(201, 169, 94, 0.25);
  border-color: var(--accent);
}

.feature-card:active, .collection-card:active {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 30px rgba(201, 169, 94, 0.15);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3, .collection-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card-image {
  height: 200px;
  border-radius: 15px;
  margin-bottom: 1.5rem;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  border-radius: 15px;
}

[data-theme="light"] .card-image::before {
  background: rgba(0,0,0,0.15);
}

.necklace { background: linear-gradient(45deg, #333, #555); }
.rings { background: linear-gradient(45deg, #444, #666); }
.bracelets { background: linear-gradient(45deg, #222, #444); }
.watches { background: linear-gradient(45deg, #111, #333); }

[data-theme="light"] .necklace { background: linear-gradient(45deg, #e8dfd5, #d4a500); }
[data-theme="light"] .rings { background: linear-gradient(45deg, #f0ede7, #d4a500); }
[data-theme="light"] .bracelets { background: linear-gradient(45deg, #e8dfd5, #c9a05e); }
[data-theme="light"] .watches { background: linear-gradient(45deg, #faf7f2, #d4a500); }

/* Contact */
.contact {
  background: var(--bg-secondary);
}

.contact h3 {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

/* Footer */
.footer {
  background: var(--bg-primary);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  color: var(--text-secondary);
}

/* Animations */
.animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.animate.animate-active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  /* No horizontal scroll */
  body {
    overflow-x: hidden;
  }
  
  * {
    max-width: 100%;
  }

  /* Responsive Navbar */
  .nav {
    padding: 1rem 1.5rem;
    gap: 0.5rem;
    justify-content: space-between;
  }

  .nav-brand img {
    height: 40px; /* Smaller logo for mobile */
  }

  .nav-actions {
    gap: 1rem;
  }

  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 2.5rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    border-top: 1px solid var(--border);
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle {
    display: block;
    font-size: 1.6rem;
    padding: 5px;
  }

  /* Responsive Hero */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 120px 1rem 3rem;
    gap: 3rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-image {
    margin: 0;
    width: 100%;
    height: 400px;
    border-radius: 12px;
  }

  /* 2-Column Product Grid */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0 0.5rem;
  }

  .product-info {
    padding: 1rem;
  }

  .product-info h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .product-price {
    font-size: 1.1rem;
  }

  .product-info p {
    font-size: 0.8rem;
    -webkit-line-clamp: 1;
  line-clamp: 1;
  }

  .buy-btn {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
  }

  .category-tabs {
    flex-direction: row;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 10px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 0.5rem;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .category-tab {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  /* Cart Sidebar on mobile */
  .cart-sidebar-content {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    padding: 4.5rem 1.5rem 10rem 1.5rem; /* Further increased bottom padding for mobile devices */
    overflow-y: auto;
  }

  /* Footer Adjustment */
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }
}


@media (max-width: 480px) {
  .section {
    padding: 3rem 0;
  }

  .hero {
    padding: 80px 1rem 3rem;
  }

  .cart-content {
    width: 98%;
    max-width: 100%;
    margin: 25% auto;
    padding: 1rem 0.75rem;
    max-height: 90vh;
    border-radius: 12px;
  }

  .cart-modal label {
    display: block;
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
  }

  .cart-modal input,
  .cart-modal select {
    width: 100%;
    padding: 0.65rem;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
  }

  .cart-modal button {
    width: 100%;
    padding: 0.7rem;
    margin-top: 0.3rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .cart-modal .close-icon {
    font-size: 1.5rem;
    top: 0.75rem;
    right: 0.75rem;
  }

  .cart-items, #cart-items {
    max-height: none;
    overflow-y: visible;
    margin: 0.5rem 0 1rem 0;
  }

  .cart-item {
    padding: 0.5rem;
    margin: 0.3rem 0;
    font-size: 0.85rem;
  }

  .cart-totals {
    margin-top: 0.75rem;
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .cart-totals div {
    margin: 0.3rem 0;
  }
}

/* --- Checkout Form Enhancements --- */
.checkout-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem; /* Added margin to push content above fixed footer */
  text-align: left;
}

.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.checkout-grid label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0 !important;
}

.checkout-grid input,
.checkout-grid select {
  padding: 0.85rem 1rem !important;
  border-radius: 8px !important;
  border: 1px solid #555 !important;
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  font-size: 1rem !important;
  transition: all 0.3s ease;
  width: 100%;
  flex-shrink: 0; /* Prevent squashing on small screens */
}

#payment-info-box {
  margin-top: 1rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  width: 100%;
}

#payment-proof-group {
  margin-top: 1rem;
  margin-bottom: 3rem; /* Generous bottom margin to clear the 'Place Order' footer */
  display: none;
  flex-direction: column;
}

.checkout-grid input:focus,
.checkout-grid select:focus {
  outline: none;
  border-color: var(--accent) !important;
  box-shadow: 0 0 8px rgba(201, 169, 94, 0.3);
}

/* Redesigned Voucher Section */
.voucher-section {
  display: flex !important;
  flex-direction: row !important;
  gap: 0.5rem !important;
  width: 100% !important;
  margin-bottom: 0.5rem;
}

#voucher-input {
  flex-grow: 1 !important;
  margin-bottom: 0 !important;
  background: var(--bg-tertiary) !important;
  border: 1px solid #555 !important;
  color: #fff !important;
  padding: 0.85rem !important;
  border-radius: 8px !important;
}

#apply-voucher-btn {
  flex-shrink: 0 !important;
  width: 90px !important;
  background: var(--accent) !important;
  color: var(--bg-primary) !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase;
  font-size: 0.85rem;
}

#apply-voucher-btn:hover {
  background: var(--accent-hover) !important;
  transform: scale(1.02);
}

#apply-voucher-btn:active {
  transform: scale(0.98);
}

#invalid-code-msg {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  min-height: 1.25rem;
}

/* Premium Place Order Button Style & Footer Wrapper */
.cart-sidebar-footer {
  position: absolute;
  bottom: 0;
  right: -100%; /* Match sidebar transition */
  width: 100%;
  max-width: 500px;
  background: #000; /* Sidebar bottom footer bg */
  padding: 1.5rem 2rem;
  border-top: 2px solid var(--accent); /* Gold separator */
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.cart-sidebar.active .cart-sidebar-footer {
  right: 0;
}

#place-order-btn {
  background: #000 !important; /* Premium Black */
  color: #fff !important; /* White Text */
  border: 1px solid var(--accent) !important; /* Gold Border */
  font-weight: 700 !important; /* Bold */
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  width: 100% !important;
  padding: 1.25rem 2rem !important;
  border-radius: 50px !important; /* Full rounded as requested? 'rounded corners' usually means some radius, but pill-shape is very premium. */
  cursor: pointer !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#place-order-btn:hover {
  background: var(--accent) !important; /* Changes to Gold */
  color: #000 !important; /* Text to Black */
  box-shadow: 0 0 25px rgba(201, 169, 94, 0.6) !important;
  transform: translateY(-2px) scale(1.02) !important;
}

#place-order-btn:active {
  transform: translateY(0) scale(0.98) !important;
}

#place-order-btn:disabled {
  background: #333 !important;
  border-color: #555 !important;
  color: #888 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .cart-sidebar-footer {
    max-width: 100%; /* Full width on mobile */
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 650px) {
  .checkout-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .voucher-section {
    flex-direction: row !important;
  }
}

/* --- Order Tracking Section --- */
.track-order {
  background: var(--bg-secondary);
}

.track-form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--bg-tertiary);
  border-radius: 24px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}

.track-input-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.track-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.track-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(201, 169, 94, 0.2);
}

.track-btn {
  white-space: nowrap;
}

.track-result {
  min-height: 50px;
  margin-top: 1rem;
}

.no-order-msg {
  color: #ef4444;
  font-weight: 500;
  text-align: center;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 12px;
}

/* Stepper UI */
.stepper {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 2.5rem;
  position: relative;
  padding: 0 5px;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border);
  z-index: 1;
}

.step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 25%;
}

.step-circle {
  width: 36px;
  height: 36px;
  background: var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  transition: all 0.4s ease;
  border: 4px solid var(--bg-tertiary);
  font-size: 0.9rem;
}

.step.active .step-circle {
  background: #3b82f6; /* Blue for current */
  color: white;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
  transform: scale(1.15);
  border-color: var(--bg-tertiary);
}

.step.completed .step-circle {
  background: var(--text-secondary);
  color: var(--bg-primary);
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  transition: all 0.4s ease;
  line-height: 1.2;
}

.step.active .step-label {
  color: #3b82f6;
  font-weight: 700;
}

.step.completed .step-label {
  color: var(--text-primary);
}

@media (max-width: 650px) {
  .track-input-group {
    flex-direction: column;
  }
  
  .track-btn {
    width: 100%;
  }
  
  .stepper {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    padding-left: 20px;
  }
  
  .stepper::before {
    width: 4px;
    height: 100%;
    left: 36px;
    top: 0;
  }
  
  .step {
    flex-direction: row;
    width: 100%;
    gap: 1rem;
    align-items: center;
  }
  
  .step-circle {
    margin-bottom: 0;
  }
  
  .step-label {
    text-align: left;
    font-size: 0.9rem;
  }
}

/* --- Updated Header Logo --- */
.header-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: transform 0.3s ease;
}

.header-logo:hover {
  transform: scale(1.05);
}

/* --- New Footer Design --- */
.footer {
  background: #0d0d0d; /* Very dark grey/black */
  padding: 4rem 0 2rem;
  border-top: 2px solid var(--border);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-logo img {
  filter: drop-shadow(0 4px 15px rgba(201, 169, 94, 0.2));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-logo img:hover {
  transform: scale(1.08) rotate(2deg);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.social-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

.social-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.social-link:hover {
  color: var(--accent);
}

.social-link:hover::after {
  width: 100%;
}

.footer-copyright {
  color: #666;
  font-size: 0.85rem;
  margin-top: 2rem;
  letter-spacing: 0.5px;
}

@media (max-width: 650px) {
  .footer-social {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

/* --- Loading Spinner --- */
.spinner-small {
  width: 18px;
  height: 18px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spinDash 0.8s linear infinite;
}

@keyframes spinDash {
  to { transform: rotate(360deg); }
}

/* --- Product Image Slider (Client) --- */
.product-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.slider-nav:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.slider-prev { left: 8px; }
.slider-next { right: 8px; }

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--accent);
  width: 16px;
  border-radius: 4px;
}

/* =========================================
   PREMIUM PAGE TRANSITION (PRODUCT LOADING)
   ========================================= */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 10, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.page-transition-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Minimalist Ring / Necklace Icon Concept */
.gold-ring-spinner {
  width: 65px;
  height: 65px;
  border: 3px solid rgba(212, 175, 55, 0.15); /* Faded luxury #D4AF37 */
  border-top: 3px solid #D4AF37; /* Solid gold */
  border-right: 3px solid #D4AF37;
  border-radius: 50%;
  animation: spinGoldRing 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

@keyframes spinGoldRing {
  0% { transform: rotate(0deg) scale(0.9); }
  50% { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(0.9); }
}

.transition-text {
  margin-top: 25px;
  color: #D4AF37;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.85rem;
  animation: pulseText 1.5s ease-in-out infinite;
}

@keyframes pulseText {
  0%, 100% { opacity: 0.5; filter: drop-shadow(0 0 2px rgba(212,175,55,0)); }
  50% { opacity: 1; filter: drop-shadow(0 0 8px rgba(212,175,55,0.5)); }
}
