/* ==============================================================
   MODERN E-COMMERCE THEME OVERRIDES
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* New Clean Light Theme Palette (with Gold accents) */
  --gold-primary: #C9A227; /* Gold */
  --gold-dark: #9D7A13;
  --gold-light: #F0D36D;
  
  --luxury-black: #F9FAFB; /* Light Gray Background */
  --luxury-dark-grey: #FFFFFF; /* White Cards */
  --luxury-light-grey: #F3F4F6;
  --white: #111827; /* Dark Text */
  --overlay-black: rgba(255, 255, 255, 0.9);
  --text-muted: #6B7280;
  
  --gold-gradient: linear-gradient(135deg, #C9A227 0%, #9D7A13 100%);
  --gold-gradient-hover: linear-gradient(135deg, #9D7A13 0%, #C9A227 100%);
  --dark-gold-gradient: linear-gradient(135deg, #9D7A13 0%, #6E530A 100%);
  --dark-gradient: linear-gradient(180deg, #F9FAFB 0%, #F3F4F6 100%);
  
  /* Fonts */
  --font-heading-cinzel: 'Poppins', sans-serif;
  --font-heading-playfair: 'Poppins', sans-serif;
  --font-heading-cormorant: 'Poppins', sans-serif;
  --font-body-poppins: 'Inter', sans-serif;
  --font-body-inter: 'Inter', sans-serif;
  
  --border-color: #E5E7EB;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Base Overrides */
body {
  background-color: var(--luxury-black);
  color: var(--white);
  font-family: var(--font-body-inter);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .hero-title, .section-title, .product-title-large, .checkout-title {
  font-family: var(--font-heading-cinzel) !important;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.02em;
}

p {
  font-family: var(--font-body-inter);
  color: #4B5563 !important;
}
span, div {
  font-family: var(--font-body-inter);
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color) !important;
}
.nav-link {
  color: #4B5563 !important;
  font-weight: 500;
  font-size: 0.875rem !important;
  text-transform: capitalize !important;
  letter-spacing: 0.3px !important;
  white-space: nowrap !important;
  padding-left: 0.65rem !important;
  padding-right: 0.65rem !important;
}
.nav-link:hover {
  color: var(--gold-primary) !important;
}
.navbar-brand img {
  /* Removed filter to preserve original logo colors */
}

/* Mobile Nav Menu Overrides */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
  }
  .toggler-icon {
    background-color: #111827 !important; /* Force dark hamburger menu icon */
  }
}

/* Buttons */
.btn {
  font-family: var(--font-heading-cinzel);
  font-weight: 500;
  border-radius: 8px;
  padding: 10px 24px;
  transition: all 0.2s ease;
  text-transform: none;
  letter-spacing: normal;
  border: none;
}
.btn-gold {
  background: var(--gold-primary);
  color: #fff !important;
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover {
  background: var(--gold-dark);
  transform: scale(1.05);
}

/* ==============================================================
   Mobile Navbar Layout Fix (Hamburger Left, Logo Center, Icons Right)
   ============================================================== */
@media (max-width: 991.98px) {
  .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
  .navbar-toggler {
    order: 1;
    margin: 0;
  }
  .navbar-brand {
    order: 2;
    margin: 0 !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
  }
  .mobile-icons {
    order: 3;
    display: flex !important;
    gap: 15px;
    align-items: center;
    margin: 0;
  }
  .mobile-icons a {
    color: var(--text-color);
    font-size: 1.25rem;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  .mobile-icons a:hover {
    color: var(--gold-primary);
  }
  .navbar-collapse {
    order: 4;
    width: 100%;
    flex-basis: 100%;
    margin-top: 15px;
  }
}
@media (min-width: 992px) {
  .mobile-icons {
    display: none !important;
  }
}

.btn-gold:hover {
  box-shadow: var(--shadow-md);
}
.btn-outline-gold {
  background: transparent;
  border: 1px solid var(--border-color);
  color: #374151 !important;
}
.btn-outline-gold:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary) !important;
  background: #F0FDF4;
}
.btn-place-order, .product-action-btn {
  padding: 14px 32px !important;
  font-size: 1.1rem !important;
}

/* Product Cards */
.product-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-img-box {
  background: #F3F4F6;
  border-bottom: 1px solid var(--border-color);
}
.product-info {
  padding: 20px;
  background: #fff;
}
.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
}
.product-price {
  color: #111827 !important;
  font-weight: 600;
  font-size: 1.1rem;
}
.product-shop-btn {
  font-weight: 500;
  font-size: 0.9rem;
}
.product-discount-badge {
  background-color: #EF4444 !important;
  color: white !important;
  font-weight: 600;
  border-radius: 6px !important;
  padding: 6px 12px !important;
  box-shadow: var(--shadow-sm);
}

/* Forms (Checkout) */
.checkout-card {
  background: #fff !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-sm);
  border-radius: 12px !important;
  padding: 30px;
}
.checkout-title {
  border-bottom-color: var(--border-color) !important;
  padding-bottom: 15px;
  margin-bottom: 25px;
}
.form-control, .form-select {
  background-color: #F9FAFB !important;
  border: 1px solid var(--border-color) !important;
  color: #111827 !important;
  border-radius: 8px;
  padding: 12px 16px !important;
  transition: all 0.2s ease;
}
.form-control:focus, .form-select:focus {
  background-color: #fff !important;
  border-color: var(--gold-primary) !important;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2) !important;
}
.form-label {
  color: #374151 !important;
  font-weight: 500;
}
.payment-option {
  border-color: var(--border-color) !important;
  background: #F9FAFB;
  border-radius: 8px !important;
}
.payment-option:hover {
  border-color: var(--gold-primary) !important;
  background: #F0FDF4 !important;
}
.order-summary-item {
  border-bottom-color: var(--border-color) !important;
}
.order-total {
  border-top-color: var(--border-color) !important;
}

/* Text Colors */
.text-gold, .text-gold-gradient {
  color: var(--gold-primary) !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}
.text-muted {
  color: var(--text-muted) !important;
}

/* Specific Section Fixes */
.hero-section {
  background: #F9FAFB;
  border-bottom: 1px solid var(--border-color);
  padding-top: 180px !important; /* Ensure content clears the taller 100px navbar */
}
.hero-content-wrapper {
  /* Padding removed to prevent double-spacing with .hero-section */
}
.hero-glow-1, .hero-glow-2, #particle-canvas {
  display: none !important; /* Remove dark theme effects */
}
.hero-image-overlay {
  display: none !important;
}
.section-padding {
  padding: 80px 0;
}
.product-detail-section, .checkout-section {
  padding-top: 140px;
}
footer {
  background: #fff;
  border-top: 1px solid var(--border-color);
}
footer p, footer .footer-title, footer .footer-links-list a, footer .footer-contact-item span, footer .footer-bottom-links a {
  color: #4B5563 !important;
}
footer .footer-links-list a:hover, footer .footer-bottom-links a:hover {
  color: var(--gold-primary) !important;
}
.footer-bottom {
  border-top-color: var(--border-color) !important;
}
.preloader-spinner {
  border-top-color: var(--gold-primary) !important;
}

/* Product Detail Specifics */
.product-detail-img {
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-sm) !important;
}
.product-meta, .product-description {
  color: #4B5563 !important;
}
.product-price-large {
  color: #111827 !important;
}
.product-price-large del {
  color: #9CA3AF !important;
}
hr {
  border-color: var(--border-color) !important;
  opacity: 1;
}

/* Fix Preloader & Cursor */
#preloader {
  background: #fff !important;
}
.custom-cursor, .custom-cursor-ring {
  border-color: var(--gold-primary) !important;
}
.custom-cursor {
  background: var(--gold-primary) !important;
  mix-blend-mode: normal !important;
}

/* Value & Why Choose Us Cards */
.value-card, .why-card {
  background: #ffffff !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-sm) !important;
  transition: all 0.3s ease !important;
  padding: 30px !important;
}
.value-card:hover, .why-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--shadow-md) !important;
  border-color: var(--gold-primary) !important;
}
.why-icon, .value-icon-box {
  color: var(--gold-primary) !important;
}

/* Banner Overrides */
.new-arrivals-banner h2, .new-arrivals-banner p,
.final-cta-section h2, .final-cta-section p {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Add slight shadow for extra readability */
}

/* Testimonial Fixes */
.testimonial-slide::before {
  color: rgba(201, 162, 39, 0.15) !important; /* Make the gold watermark quote visible on light background */
}
.swiper-button-next, .swiper-button-prev {
  color: var(--gold-primary) !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
}

/* ==============================================================
   RESPONSIVE & MOBILE STABILITY FIXES
   ============================================================== */

/* 1. Logo Responsiveness */
.nav-logo {
  height: clamp(77px, 5vw, 60px);
  width: auto;
  mix-blend-mode: multiply;
  object-fit: contain;
}

.preloader-img {
  height: clamp(50px, 8vw, 100px);
  width: auto;
  margin-bottom: 20px;
}

/* 2. Global Containers & Images Fixes */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

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

/* 3. Button Touch Targets */
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* Base Mobile Overrides */
@media (max-width: 991.98px) {
  /* Navbar Collapse Scroll */
  .navbar-collapse {
    max-height: 80vh;
    overflow-y: auto;
  }
  
  /* Less Padding */
  .section-padding {
    padding: 60px 0 !important;
  }
  
  /* Hero Section Align */
  .hero-section {
    padding-top: 100px !important;
  }
}

@media (max-width: 767.98px) {
  /* Less Padding Mobile */
  .section-padding {
    padding: 40px 0 !important;
  }
  
  /* Hero Typography & Layout */
  .hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem) !important;
  }
  .hero-desc {
    font-size: 1rem;
    padding: 0 10px;
  }
  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.4rem) !important;
  }
  
  /* Product Cards Grid & Images */
  .collection-grid {
    gap: 12px;
  }
  .product-img-box {
    aspect-ratio: 3/4;
    width: 100%;
    overflow: hidden;
  }
  .product-img-box img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
  .product-info {
    padding: 12px;
  }
  .product-title {
    font-size: 0.95rem;
  }
  
  /* Footer Stack Align */
  footer {
    padding: 40px 0 20px 0;
    text-align: center;
  }
  .footer-brand, .footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-social-links {
    justify-content: center;
    margin-bottom: 20px;
  }
  .footer-contact-item {
    justify-content: center;
  }
  .footer-bottom-links {
    justify-content: center;
    margin-top: 15px;
  }
  
  /* Testimonial adjustments */
  .testimonial-slide {
    padding: 2rem 1rem !important;
  }
}

@media (max-width: 480px) {
  .collection-grid {
    gap: 10px;
  }
  
  .hero-section {
    padding-top: 90px !important;
  }
  
  /* Ensure button doesn't overflow */
  .btn {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
  }
  .nav-cta .btn {
    width: 100%;
  }
  
  /* Ensure buttons stack side by side correctly if needed, or wrap */
  .hero-section .d-flex.flex-row.gap-3.flex-wrap {
    flex-direction: column !important;
    width: 100%;
  }
}

/* ==============================================================
   HEADER ICONS, AUTH MODAL & CART STYLES
   ============================================================== */

/* Header Desktop & Mobile Icons */
.nav-icons-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-icon-item {
  color: #111827 !important;
  font-size: 1.25rem;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.nav-icon-item:hover {
  color: var(--gold-primary) !important;
  transform: translateY(-1px);
}
.nav-cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background-color: #EF4444 !important;
  color: #ffffff !important;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

/* Mobile Icon Container Alignment */
.mobile-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Auth Modal Backdrop & Card */
.auth-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(6px);
  z-index: 10500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}
.auth-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}
.auth-modal-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 440px;
  padding: 2.5rem 2rem;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}
.auth-modal-backdrop.active .auth-modal-card {
  transform: translateY(0) scale(1);
}
.auth-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #F3F4F6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #4B5563;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-modal-close:hover {
  background: #E5E7EB;
  color: #111827;
}

/* Auth Form Elements */
.auth-modal-header {
  text-align: center;
  margin-bottom: 1.75rem;
}
.auth-modal-title {
  font-family: var(--font-heading-cinzel);
  font-weight: 700;
  color: #111827;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.auth-modal-subtitle {
  color: #6B7280;
  font-size: 0.9rem;
}
.auth-input-group {
  margin-bottom: 1.5rem;
}
.auth-input-label {
  display: block;
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.auth-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #F9FAFB;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.95rem;
  color: #111827;
  transition: all 0.2s ease;
}
.auth-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
}

/* OTP 6-Digit Box Layout */
.otp-boxes-container {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.otp-box {
  width: 48px;
  height: 54px;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  background: #F9FAFB;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  color: #111827;
  transition: all 0.2s ease;
}
.otp-box:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
}

.auth-submit-btn {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  background: var(--gold-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.25);
}
.auth-submit-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}
.auth-secondary-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
}
.auth-link {
  color: var(--gold-primary);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}
.auth-link:hover {
  text-decoration: underline;
}

/* Cart Page Specific CSS */
.cart-section {
  padding-top: 140px;
  padding-bottom: 80px;
  background: #F9FAFB;
  min-height: 85vh;
}
.cart-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
}
.cart-table-wrapper {
  overflow-x: auto;
}
.cart-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 1rem;
}
.cart-table th {
  color: #6B7280;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}
.cart-item-row {
  background: #ffffff;
  transition: background 0.2s ease;
}
.cart-item-row td {
  padding: 1rem;
  vertical-align: middle;
  border-top: 1px solid #F3F4F6;
  border-bottom: 1px solid #F3F4F6;
}
.cart-item-row td:first-child {
  border-left: 1px solid #F3F4F6;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
.cart-item-row td:last-child {
  border-right: 1px solid #F3F4F6;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}
.cart-product-img {
  width: 75px;
  height: 95px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.cart-product-title {
  font-family: var(--font-heading-cinzel);
  font-weight: 600;
  color: #111827;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.cart-product-meta {
  font-size: 0.85rem;
  color: #6B7280;
}
.qty-btn-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background: #F9FAFB;
}
.qty-btn {
  border: none;
  background: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #374151;
  cursor: pointer;
  transition: background 0.2s ease;
}
.qty-btn:hover {
  background: #E5E7EB;
}
.qty-val {
  width: 36px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: #111827;
}
.cart-remove-btn {
  background: none;
  border: none;
  color: #EF4444;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.cart-remove-btn:hover {
  background: #FEE2E2;
}

/* Order Summary Box */
.summary-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  position: sticky;
  top: 110px;
}
.summary-title {
  font-family: var(--font-heading-cinzel);
  font-weight: 700;
  font-size: 1.25rem;
  color: #111827;
  padding-bottom: 1rem;
  border-bottom: 1.5px solid var(--border-color);
  margin-bottom: 1.25rem;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #4B5563;
}
.summary-line.grand-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
  border-top: 1.5px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 1rem;
}
.cart-empty-state {
  text-align: center;
  padding: 4rem 1rem;
}
.cart-empty-icon {
  font-size: 3.5rem;
  color: #D1D5DB;
  margin-bottom: 1rem;
}
