/* ============================================================
   LUXURY JEWELLERY E-COMMERCE — Design System
   Inspired by Kruthika Jewellery warm traditional aesthetic
   ============================================================ */

/* ---------- 1. CSS Custom Properties (Design Tokens) ---------- */
:root {
  /* Primary - Traditional Gold */
  --gold: #B8860B;
  --gold-light: #D4A843;
  --gold-dark: #8B6508;
  --gold-gradient: linear-gradient(135deg, #B8860B 0%, #D4A843 50%, #B8860B 100%);
  --gold-gradient-hover: linear-gradient(135deg, #8B6508 0%, #B8860B 50%, #8B6508 100%);

  /* Neutral — Warm Cream / Traditional */
  --charcoal: #3D1515;          /* deep maroon-brown (drawer, footer) */
  --dark-bg: #FBF5EC;           /* warm cream (main page bg) */
  --card-bg: #FFF8F0;           /* warm ivory (cards) */
  --surface: #F5EBD8;           /* light tan (inputs, surfaces) */
  --text-primary: #2C1A0E;      /* dark warm brown */
  --text-secondary: #7A5C3E;    /* medium warm brown */
  --text-muted: #A08060;        /* muted warm tan */

  /* Accent */
  --rose: #8B1A1A;              /* deep maroon */
  --emerald: #10B981;
  --error: #C0392B;
  --success: #27AE60;

  /* Glass — Ivory tinted */
  --glass-bg: rgba(255, 248, 240, 0.75);
  --glass-border: rgba(139, 26, 26, 0.15);
  --glass-bg-hover: rgba(255, 248, 240, 0.95);

  /* Shadows — warm brown tones */
  --shadow-sm: 0 1px 3px rgba(44, 26, 14, 0.12);
  --shadow-md: 0 4px 12px rgba(44, 26, 14, 0.15);
  --shadow-lg: 0 8px 30px rgba(44, 26, 14, 0.2);
  --shadow-gold: 0 4px 20px rgba(184, 134, 11, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Warm Border Colours */
  --border-soft: rgba(139, 26, 26, 0.15);
  --border-light: rgba(139, 26, 26, 0.08);
}

/* ---------- 2. Base Reset / Global Styles ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Subtle traditional diamond/paisley pattern — Kruthika-style */
  background-image: url('../images/sample4.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--gold-dark);
}

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

/* ---------- 3. Glassmorphism Utilities ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg), inset 0 0 20px rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.glass-navbar {
  background: rgba(251, 245, 236, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 26, 26, 0.15);
  box-shadow: 0 2px 12px rgba(44, 26, 14, 0.08);
}

/* ---------- 4. Gold Gradient Components ---------- */
.btn-gold {
  background: #5C3A1E;
  color: #FFFFFF;
  font-weight: 700;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(92, 58, 30, 0.25);
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.8s;
  transform: skewX(-25deg);
}

.btn-gold:hover {
  background: #3D2512;
  box-shadow: 0 10px 24px rgba(61, 37, 18, 0.35);
  transform: translateY(-3px) scale(1.02);
}

.btn-gold:hover::before {
  left: 150%;
}

.btn-gold:active {
  transform: translateY(-1px) scale(0.98);
}

/* Preserved original gold style — use on specific buttons */
.btn-gold-original {
  background: linear-gradient(135deg, #B8860B 0%, #D4A843 50%, #B8860B 100%) !important;
  background-size: 200% auto !important;
  color: #0F0F23 !important;
  box-shadow: 0 10px 20px rgba(201, 168, 76, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.2) !important;
}
.btn-gold-original:hover {
  background-position: right center !important;
  box-shadow: 0 15px 30px rgba(201, 168, 76, 0.35), inset 0 0 15px rgba(255, 255, 255, 0.3) !important;
}

.btn-gold-outline {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-weight: 600;
  padding: 12px 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}

.btn-gold-outline:hover {
  background: rgba(184, 134, 11, 0.1);
  box-shadow: 0 0 20px rgba(184, 134, 11, 0.2);
  background: #5C3A1E;
  color: #FFFFFF;
  border-color: #5C3A1E;
  box-shadow: 0 10px 20px rgba(92, 58, 30, 0.2);
  transform: translateY(-3px);
}

.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gold-gradient {
  background: #5C3A1E;
}

.border-gold {
  border-color: var(--gold) !important;
}

/* ---------- 5. Product Card ---------- */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.product-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 168, 76, 0.2);
}

.product-card__image-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--surface);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-card__wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(251, 245, 236, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(139, 26, 26, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--text-secondary);
  z-index: 5;
}

.product-card__wishlist:hover,
.product-card__wishlist.active {
  color: var(--rose);
  background: rgba(232, 93, 117, 0.15);
  border-color: var(--rose);
}

.product-card__wishlist.active svg {
  fill: var(--rose);
}

.product-card__body {
  padding: 16px;
}

.product-card__name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.product-card__add-to-cart {
  width: 100%;
  background: #5C3A1E;
  color: #FFFFFF;
  font-weight: 700;
  padding: 12px;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(92, 58, 30, 0.2);
}

.product-card__add-to-cart::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: all 0.6s;
}

.product-card__add-to-cart:hover {
  background: #3D2512;
  box-shadow: 0 6px 18px rgba(61, 37, 18, 0.35);
  transform: translateY(-2px);
}

.product-card__add-to-cart:hover::before {
  left: 100%;
}

/* ---------- 6. Star Rating ---------- */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.star-rating__star {
  color: var(--gold);
  font-size: 0.875rem;
}

.star-rating__star--empty {
  color: var(--text-muted);
  opacity: 0.4;
}

.star-rating__count {
  margin-left: 6px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

/* ---------- 7. Price Styling ---------- */
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price__current {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #2C1A0E;
  letter-spacing: -0.02em;
}

.price__original {
  font-size: 0.8125rem;
  color: #A08060;
  opacity: 0.6;
  text-decoration: line-through;
  font-weight: 400;
}

.price__discount {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rose);
  background: rgba(232, 93, 117, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ---------- 8. Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge--featured {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.badge--discount {
  background: #E53935;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(229, 57, 53, 0.35);
  letter-spacing: 0.5px;
}

.badge--out-of-stock {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}

.badge--in-stock {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
}

.badge--new {
  background: rgba(99, 102, 241, 0.15);
  color: #818CF8;
}

.badge--tag {
  background: var(--glass-bg);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

/* ---------- 8.1 Pills ---------- */
.pill-modern {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.pill-modern:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pill-modern.active,
.pill-modern--active {
  background: #5C3A1E !important;
  color: #FFFFFF !important;
  border-color: #5C3A1E !important;
  box-shadow: 0 4px 12px rgba(92, 58, 30, 0.25);
}

/* Cart count badge */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  background: var(--rose);
  color: #FFF8F0;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ---------- 9. Skeleton Loading ---------- */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface) 0%,
    rgba(255, 240, 210, 0.8) 50%,
    var(--surface) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton--text {
  height: 14px;
  margin-bottom: 8px;
  width: 80%;
}

.skeleton--text-sm {
  height: 10px;
  width: 60%;
}

.skeleton--image {
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
}

.skeleton--btn {
  height: 40px;
  border-radius: var(--radius-sm);
}

/* ---------- 10. Scrollbar Styling ---------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(184, 134, 11, 0.35);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 26, 26, 0.45);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 134, 11, 0.35) var(--dark-bg);
}

/* ---------- 11. Custom Form Elements ---------- */
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 0;
  color: var(--text-secondary);
  transition: color var(--transition-base);
}

.filter-checkbox:hover {
  color: var(--text-primary);
}

.filter-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--glass-border);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  flex-shrink: 0;
}

.filter-checkbox input[type="checkbox"]:checked {
  background: var(--rose);
  border-color: var(--rose);
}

.filter-checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FFF8F0;
  font-size: 11px;
  font-weight: 700;
}

.filter-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px 0;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.filter-radio:hover {
  color: var(--text-primary);
}

.filter-radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-radio input[type="radio"]:checked {
  border-color: var(--rose);
  border-color: #8B5E3C;
  background: rgba(139, 94, 60, 0.08);
  box-shadow: 0 0 15px rgba(139, 94, 60, 0.2);
}

.filter-radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--rose);
  transform: translate(-50%, -50%) scale(1);
  width: 10px;
  height: 10px;
  background: #5C3A1E;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(92, 58, 30, 0.3);
  animation: bounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.filter-radio input[type="radio"]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 10px;
  height: 10px;
  background: #5C3A1E;
  border-radius: 50%;
  transition: transform 0.3s var(--transition-base);
}

/* Input fields */
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--card-bg);
  border: 1px solid rgba(139, 26, 26, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: all var(--transition-base);
  outline: none;
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* ---------- 12. Mobile Drawer / Overlay ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 21, 21, 0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

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

.drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--charcoal);
  border-right: 1px solid var(--glass-border);
  z-index: 100;
  transition: left var(--transition-base);
  overflow-y: auto;
  padding: 24px;
}

.drawer.active {
  left: 0;
}

.drawer-right {
  left: auto;
  right: -320px;
  border-right: none;
  border-left: 1px solid var(--glass-border);
  transition: right var(--transition-base);
}

.drawer-right.active {
  right: 0;
}

.drawer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.drawer__close:hover {
  color: var(--text-primary);
  background: var(--glass-bg-hover);
}

/* ---------- 13. Animation Keyframes ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.3); }
  50% { transform: scale(0.9); }
  70% { transform: scale(1.1); }
}

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

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

@keyframes checkmark {
  0% { transform: scale(0) rotate(45deg); opacity: 0; }
  50% { transform: scale(1.2) rotate(45deg); opacity: 1; }
  100% { transform: scale(1) rotate(45deg); opacity: 1; }
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  15% { transform: scale(1.3); }
  30% { transform: scale(1); }
  45% { transform: scale(1.2); }
  60% { transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Animation utility classes */
.animate-fade-in {
  animation: fadeIn var(--transition-slow) ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.6s ease forwards;
}

.animate-slide-down {
  animation: slideDown var(--transition-base) ease forwards;
}

.animate-pulse {
  animation: pulse 0.4s ease;
}

.animate-bounce {
  animation: bounce 0.5s ease;
}

.animate-heartbeat {
  animation: heartBeat 0.8s ease;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Page load animation */
.page-transition {
  animation: fadeIn 0.4s ease;
}

/* Staggered children animation */
.stagger-children > * {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(9) { animation-delay: 0.45s; }
.stagger-children > *:nth-child(10) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(11) { animation-delay: 0.55s; }
.stagger-children > *:nth-child(12) { animation-delay: 0.6s; }

/* ---------- 14. Quantity Selector ---------- */
.qty-selector {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.qty-selector__btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  border-radius: 50%;
}

.qty-selector__btn:hover {
  background: #5C3A1E;
  color: #FFFFFF;
  border-color: #5C3A1E;
  box-shadow: 0 0 15px rgba(92, 58, 30, 0.25);
  transform: scale(1.1);
}

.qty-selector__btn:active {
  transform: scale(0.95);
}

.qty-selector__input {
  width: 45px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
  outline: none;
  -moz-appearance: textfield;
  font-family: var(--font-heading);
}
/* ---------- 15. Tabs ---------- */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 24px;
}

.tab {
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-base);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-body);
}

.tab:hover {
  color: var(--text-secondary);
}

.tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.tab-content {
  display: none;
  animation: fadeIn var(--transition-base) ease;
}

.tab-content.active {
  display: block;
}

/* ---------- 16. Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.pagination__btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 0 12px;
  text-decoration: none;
}

.pagination__btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pagination__btn.active {
  background: #5C3A1E;
  border-color: #5C3A1E;
  color: #FFFFFF;
  font-weight: 600;
}

.pagination__btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- 17. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition-base);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb__separator {
  color: var(--text-muted);
  opacity: 0.5;
}

.breadcrumb__current {
  color: var(--gold);
}

/* ---------- 18. Mega Menu ---------- */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 780px;
  background: var(--card-bg);
  border: 1px solid rgba(139, 26, 26, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 60;
  box-shadow: 0 8px 30px rgba(44, 26, 14, 0.18);
}

.mega-menu.active {
  opacity: 1;
  visibility: visible;
}

.mega-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  color: var(--text-secondary);
  text-decoration: none;
}

.mega-menu__item:hover {
  background: rgba(184, 134, 11, 0.08);
  color: var(--rose);
}

.mega-menu__icon {
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.mega-menu__label {
  font-size: 0.875rem;
  font-weight: 500;
}

/* ---------- 19. Trust Badges ---------- */
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px 0;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
}

.trust-badge__icon {
  font-size: 1.5rem;
  color: var(--emerald);
}

/* ---------- 20. Password Strength ---------- */
.password-strength {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.password-strength__bar {
  flex: 1;
  height: 3px;
  background: var(--surface);
  border-radius: 2px;
  transition: background var(--transition-base);
}

.password-strength__bar.weak { background: var(--error); }
.password-strength__bar.medium { background: #8B5E3C; }
.password-strength__bar.strong { background: var(--emerald); }

/* ---------- 21. Empty States ---------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-state__icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state__text {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 400px;
}

/* ---------- 22. Address Card ---------- */
.address-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition-base);
  position: relative;
}

.address-card:hover {
  border-color: rgba(201, 168, 76, 0.2);
}

.address-card.selected,
.address-card.default {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

/* ---------- 23. Order Success Animation ---------- */
.success-checkmark {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: pulse 0.6s ease;
}

.success-checkmark__icon {
  color: var(--success);
  font-size: 3rem;
  animation: fadeInUp 0.5s ease 0.3s forwards;
  opacity: 0;
}

/* ---------- 24. Responsive Utilities ---------- */
@media (max-width: 639px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
  .show-mobile-flex { display: flex !important; }

  .product-card__body { padding: 12px; }
  .product-card__name { font-size: 0.8125rem; }
  .price__current { font-size: 1rem; }

  .mega-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    transform: none;
    min-width: auto;
    border-radius: 0;
    grid-template-columns: repeat(3, 1fr);
    max-height: 70vh;
    overflow-y: auto;
  }
}

@media (min-width: 640px) {
  .hide-tablet { display: none !important; }
}

@media (min-width: 1024px) {
  .hide-desktop { display: none !important; }
  .show-desktop { display: block !important; }
  .show-desktop-flex { display: flex !important; }
}

/* Show/hide defaults */
.show-mobile,
.show-mobile-flex { display: none !important; }
.show-desktop,
.show-desktop-flex { display: none !important; }

/* ---------- 25. Bottom Cart Bar (Mobile) ---------- */
.bottom-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-top: 1px solid rgba(139, 26, 26, 0.2);
  padding: 12px 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
}

@media (max-width: 639px) {
  .bottom-cart-bar { display: flex; }
  body { padding-bottom: 64px; }
}

/* ---------- 26. Notification Toast ---------- */
.toast {
  position: fixed;
  top: 80px;
  right: 20px;
  min-width: 280px;
  padding: 14px 20px;
  background: var(--card-bg);
  border: 1px solid rgba(139, 26, 26, 0.2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  animation: slideDown var(--transition-base) ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

/* ---------- 27. Horizontal Scroll Carousel ---------- */
.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
  height: 4px;
}

.carousel > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ---------- 28. Department Card ---------- */
.dept-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dept-card:hover {
  transform: scale(1.05);
  border-color: rgba(201, 168, 76, 0.3);
  box-shadow: var(--shadow-gold);
}

.dept-card__icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dept-card__name {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ---------- 29. Profile Sidebar ---------- */
.profile-sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-base);
  font-size: 0.9375rem;
  text-decoration: none;
}

.profile-sidebar__link:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
}

.profile-sidebar__link.active {
  background: rgba(139, 26, 26, 0.08);
  color: var(--rose);
  border-left: 2px solid var(--rose);
}

/* ---------- 30. Hero Section ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__overlay {
  display: none;
}

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

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ---------- 31. Section Headers ---------- */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--rose);
  margin-bottom: 8px;
}

.section-header__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
}

.section-header__line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--gold), var(--rose));
  margin: 16px auto 0;
  border-radius: 1px;
}

/* ---------- 32. Image Gallery (Product Detail) ---------- */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery__main {
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  position: relative;
}

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

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

.gallery__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.gallery__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  flex-shrink: 0;
  opacity: 0.6;
}

.gallery__thumb:hover,
.gallery__thumb.active {
  border-color: var(--gold);
  opacity: 1;
}

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

/* ---------- 33. Misc ---------- */

/* Divider */
.divider {
  height: 1px;
  background: var(--glass-border);
  margin: 24px 0;
}

/* Link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8125rem;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
}

.link-arrow i {
  transition: transform var(--transition-base);
}

.link-arrow:hover {
  color: var(--gold-light);
}

.link-arrow:hover i {
  transform: translateX(6px);
}

/* Newsletter input */
.newsletter-input-group {
  display: flex;
  max-width: 400px;
}

.newsletter-input-group input {
  flex: 1;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
}

.newsletter-input-group input:focus {
  border-color: var(--gold);
}

.newsletter-input-group button {
  padding: 12px 20px;
  background: #5C3A1E;
  color: #FFFFFF;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.newsletter-input-group button:hover {
  background: #3D2512;
}

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: var(--charcoal);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   Overridden Responsive Styles
   ============================================================ */
.hero-section {
  background-image: url('../images/sample7.jpeg') !important; /* mobile default */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 1024px) {
  .hero-section {
    background-image: url('../images/sample5.jpeg') !important;
  }
}
@media (max-width: 768px) {
  /* Pin the announcement bar at the bottom for mobile */
  .ticker-container {
    position: fixed !important;
    bottom: 62px !important;
    left: 0;
    width: 100%;
    z-index: 50;
  }

  /* ---- Mobile Hero: flexbox column, text top, button bottom ---- */
  .hero-section {
    position: relative !important;
    min-height: 100vh !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background-size: cover !important;
    background-position: center center !important;
    overflow: hidden;
  }

  /* Make the container stretch full height */
  .hero-section > .container {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    width: 100% !important;
    padding: 0 !important;
  }

  /* Content wrapper: stretch full height, text top + button bottom */
  .hero-content-wrapper {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex: 1 !important;
    width: 100% !important;
    padding: 10vh 20px 0 20px !important;
    background: transparent !important;
    border-radius: 0 !important;
  }

  /* HIDE description paragraph on mobile */
  .hero-text {
    display: none !important;
  }

  /* Button wrapper: pin to bottom with margin */
  .hero-content-wrapper > .flex:last-child {
    margin-top: auto !important;
    margin-bottom: 40px !important;
    width: 85% !important;
  }

  /* Button itself: full width inside its wrapper */
  .hero-btn-override {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
}

/* ---------- 13. Hero Text Visibility Enhancements ---------- */
.hero-content-wrapper {
  background: linear-gradient( to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
  padding: 40px 30px;
  border-radius: 8px;
}

.hero-label {
  color: #FFD700 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 4px !important;
  text-transform: uppercase !important;
  background-color: rgba(0, 0, 0, 0.55) !important;
  padding: 6px 18px !important;
  border-radius: 30px !important;
  border: 1px solid rgba(255, 215, 0, 0.4) !important;
  display: inline-block !important;
  margin-bottom: 12px !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
}

.hero-title-main {
  color: #FFFFFF !important;
  text-shadow: 2px 2px 12px rgba(0,0,0,0.7);
}

.hero-title-highlight {
  color: #F0C040 !important;
  text-shadow: 2px 2px 12px rgba(0,0,0,0.6);
  background: none !important; /* Override gradient text */
  -webkit-text-fill-color: initial !important; /* Override gradient text */
}

.hero-text {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.8);
}

.hero-btn-override {
  color: #FFFFFF !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
}
