/* ==========================================================================
   SAGARANADU SATTVIC FOODS - LUXURY ORGANIC DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Primary Brand Colors */
  --sg-emerald-900: #0f2d1c;
  --sg-emerald-800: #143823;
  --sg-emerald-700: #1f4d2c;
  --sg-emerald-600: #2b683e;
  --sg-emerald-500: #388e3c;
  
  /* Accent & Highlight Colors */
  --sg-gold-600: #b8860b;
  --sg-gold-500: #d4af37;
  --sg-gold-400: #e5c158;
  --sg-gold-100: #fbf5df;
  
  /* Warm Earthy Tones */
  --sg-terracotta: #c85a32;
  --sg-brown: #7a5230;
  --sg-sand: #f4efe2;
  --sg-cream: #fbf9f4;
  --sg-white: #ffffff;
  
  /* Text & Neutral Colors */
  --sg-text-dark: #1e2923;
  --sg-text-muted: #64748b;
  --sg-border-light: #e8e2d5;
  --sg-border-gold: rgba(212, 175, 55, 0.3);

  /* Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 45, 28, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 45, 28, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 45, 28, 0.12);
  --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.25);
  
  /* Typography Families */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   GLOBAL RESET & TYPOGRAPHY
   ========================================================================== */

body {
  background-color: var(--sg-cream);
  font-family: var(--font-body);
  color: var(--sg-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading, .navbar-brand-text, .section-title {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

a {
  color: var(--sg-emerald-700);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

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

/* Section Title Styling with Ornamental Accent */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sg-emerald-900);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--sg-gold-500), var(--sg-emerald-700));
  border-radius: 3px;
  margin-top: 8px;
}

.section-title.text-center::after {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   HEADER & NAVBAR (GLASSMORPHISM)
   ========================================================================== */

.navbar-custom {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sg-border-light);
  transition: all 0.3s ease;
}

.navbar-brand-text {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--sg-emerald-900) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--sg-emerald-800), var(--sg-emerald-600));
  color: var(--sg-gold-400);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(20, 56, 35, 0.2);
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sg-emerald-900) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 20px;
  transition: all 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--sg-gold-600) !important;
  background-color: var(--sg-gold-100);
}

/* Navbar Search Input */
.navbar-search {
  position: relative;
  max-width: 240px;
}

.navbar-search .form-control {
  border-radius: 25px;
  padding-left: 36px;
  border: 1px solid var(--sg-border-light);
  background-color: var(--sg-cream);
  font-size: 0.88rem;
  transition: all 0.3s ease;
}

.navbar-search .form-control:focus {
  background-color: var(--sg-white);
  border-color: var(--sg-gold-500);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.navbar-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sg-text-muted);
  font-size: 0.85rem;
}

/* Cart Badge */
.cart-badge-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sg-emerald-900);
  color: var(--sg-white) !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 25px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 45, 28, 0.15);
  transition: all 0.25s ease;
}

.cart-badge-btn:hover {
  background: var(--sg-emerald-700);
  transform: translateY(-1px);
  color: var(--sg-gold-400) !important;
}

.cart-count-pill {
  background: var(--sg-gold-500);
  color: var(--sg-emerald-900);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 50px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-count-pop {
  animation: badgePop 0.4s ease;
}

@keyframes badgePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn-brand {
  background: linear-gradient(135deg, var(--sg-emerald-800), var(--sg-emerald-700));
  border: none;
  color: var(--sg-white);
  font-weight: 600;
  border-radius: 8px;
  padding: 0.6rem 1.4rem;
  box-shadow: 0 4px 14px rgba(20, 56, 35, 0.2);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-brand:hover, .btn-brand:focus {
  background: linear-gradient(135deg, var(--sg-emerald-700), var(--sg-emerald-600));
  color: var(--sg-white);
  box-shadow: 0 6px 20px rgba(20, 56, 35, 0.3);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--sg-gold-500), var(--sg-gold-600));
  border: none;
  color: var(--sg-emerald-900);
  font-weight: 700;
  border-radius: 8px;
  padding: 0.6rem 1.4rem;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--sg-gold-400), var(--sg-gold-500));
  color: var(--sg-emerald-900);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-outline-brand {
  border: 2px solid var(--sg-emerald-700);
  color: var(--sg-emerald-800);
  background: transparent;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.55rem 1.3rem;
  transition: all 0.25s ease;
}

.btn-outline-brand:hover {
  background: var(--sg-emerald-800);
  border-color: var(--sg-emerald-800);
  color: var(--sg-white);
  transform: translateY(-2px);
}

/* Discount Pill Badge */
.badge-discount {
  background: linear-gradient(135deg, var(--sg-terracotta), #b3421b);
  color: var(--sg-white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.35em 0.7em;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(200, 90, 50, 0.25);
}

/* Star Ratings */
.star-rating {
  color: var(--sg-gold-500);
  font-size: 0.9rem;
}
.star-rating .star-empty {
  color: var(--sg-border-light);
}

/* ==========================================================================
   HERO IMAGE SECTION (replaces hero video)
   ========================================================================== */

.hero-image-section {
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--sg-gold-500);
}

.hero-img-wrapper {
  position: relative;
  height: 72vh;
  min-height: 480px;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.82);
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 45, 28, 0.25) 0%, rgba(15, 45, 28, 0.72) 100%);
  pointer-events: none;
}

.hero-img-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1rem;
}

.hero-fallback-banner {
  background: linear-gradient(135deg, rgba(15, 45, 28, 0.92), rgba(27, 77, 46, 0.85)), url('/static/images/hero-banner.jpg') center/cover;
  min-height: 480px;
  color: #ffffff;
}

.hero-caption-card {
  background: rgba(15, 45, 28, 0.75);
  backdrop-filter: origenal;
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 2.2rem;
  max-width: 580px;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-caption-card h1,
.hero-caption-card h2,
.hero-caption-card h5 {
  font-family: var(--font-heading);
  color: var(--sg-white) !important;
  font-weight: 700;
}

.hero-caption-card p {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 1.05rem;
}

/* Trust Badges Feature Strip */
.trust-badges-strip {
  background: var(--sg-white);
  border-top: 1px solid var(--sg-border-light);
  border-bottom: 1px solid var(--sg-border-light);
  padding: 2.5rem 0;
  box-shadow: var(--shadow-sm);
}

.trust-badge-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 1rem;
  border-radius: 12px;
  background: var(--sg-cream);
  border: 1px solid var(--sg-border-light);
  transition: all 0.3s ease;
}

.trust-badge-card:hover {
  transform: translateY(-4px);
  border-color: var(--sg-gold-500);
  box-shadow: var(--shadow-md);
  background: var(--sg-white);
}

.trust-icon-box {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sg-emerald-900), var(--sg-emerald-700));
  color: var(--sg-gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(20, 56, 35, 0.15);
}

.trust-badge-card h6 {
  font-weight: 700;
  color: var(--sg-emerald-900);
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.trust-badge-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--sg-text-muted);
}

/* ==========================================================================
   PRODUCT CARDS & GRIDS
   ========================================================================== */

.product-card {
  background: var(--sg-white);
  border: 1px solid var(--sg-border-light);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sg-border-gold);
}

.product-card-img-wrapper {
  position: relative;
  overflow: hidden;
  background-color: var(--sg-white);
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-bottom: 1px solid var(--sg-border-light);
}

.product-card-img-wrapper a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img-wrapper img {
  transform: scale(1.06);
}

.product-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* ==========================================================================
   FORMS (LOGIN, SIGNUP, CHECKOUT)
   ========================================================================== */

.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid var(--sg-border-light);
  padding: 0.6rem 0.9rem;
  font-size: 0.92rem;
  background-color: var(--sg-white);
  transition: all 0.25s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--sg-emerald-700);
  box-shadow: 0 0 0 4px rgba(31, 77, 44, 0.12);
}

/* Category Filter Pills */
.category-pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  background: var(--sg-cream);
  border: 1px solid var(--sg-border-light);
  color: var(--sg-emerald-900);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.category-pill:hover, .category-pill.active {
  background: var(--sg-emerald-900);
  color: var(--sg-gold-400);
  border-color: var(--sg-emerald-900);
}

/* ==========================================================================
   CART, CHECKOUT & ACCOUNT CARDS
   ========================================================================== */

.card-luxury {
  background: var(--sg-white);
  border: 1px solid var(--sg-border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
}

.table-custom {
  margin: 0;
}

.table-custom th {
  font-family: var(--font-heading);
  color: var(--sg-emerald-900);
  font-weight: 700;
  border-bottom-width: 2px;
  border-color: var(--sg-border-light);
  padding-bottom: 0.75rem;
}

.table-custom td {
  vertical-align: middle;
  padding: 1rem 0.75rem;
}

.order-summary-box {
  background: linear-gradient(180deg, var(--sg-white) 0%, var(--sg-cream) 100%);
  border: 1px solid var(--sg-border-gold);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer-brand {
  background: linear-gradient(180deg, var(--sg-emerald-900) 0%, #091c11 100%);
  color: #e2ebd8;
  border-top: 3px solid var(--sg-gold-500);
}

.footer-brand h5, .footer-brand h6 {
  font-family: var(--font-heading);
  color: var(--sg-gold-400);
}

.footer-brand a {
  color: #d1dfc5;
  transition: all 0.2s ease;
}

.footer-brand a:hover {
  color: var(--sg-gold-400);
  padding-left: 4px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--sg-gold-400) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon-btn:hover {
  background: var(--sg-gold-500);
  color: var(--sg-emerald-900) !important;
  transform: translateY(-3px);
}

/* ==========================================================================
   TOAST NOTIFICATIONS & ANIMATIONS
   ========================================================================== */

.toast-custom {
  background: var(--sg-emerald-900);
  color: var(--sg-white);
  border-left: 4px solid var(--sg-gold-500);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

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

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

/* ==========================================================================
   RESPONSIVE DESIGN — TABLET (768px – 991px)
   ========================================================================== */

@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero */
  .hero-img-wrapper {
    height: 60vh;
    min-height: 380px;
  }
  .hero-caption-card {
    padding: 1.75rem;
    max-width: 520px;
  }
  .hero-caption-card h1 { font-size: 1.85rem; }

  /* Navbar */
  .navbar-search { max-width: 180px; }

  /* Trust badges — 2×2 grid on tablet */
  .trust-badges-strip { padding: 1.5rem 0; }

  /* Section title */
  .section-title { font-size: 1.65rem; }

  /* Card luxury compact */
  .card-luxury { padding: 1.25rem; }

  /* Product card */
  .product-card-img-wrapper { height: 155px; }
}

/* ==========================================================================
   RESPONSIVE DESIGN — MOBILE L (425px – 767px)
   ========================================================================== */

@media (max-width: 767.98px) {

  /* --- Navbar --- */
  .navbar-custom { padding: 0.5rem 0 !important; }
  .navbar-brand-text { font-size: 1.2rem; gap: 6px; }
  .navbar-search { max-width: 100%; width: 100%; }
  .navbar-collapse { padding: 0.5rem 0; }
  .nav-link { font-size: 0.9rem; padding: 0.45rem 0.75rem !important; }
  .cart-badge-btn { padding: 0.4rem 0.85rem !important; font-size: 0.85rem; }

  /* --- Hero Image --- */
  .hero-img-wrapper {
    height: 55vh;
    min-height: 300px;
  }
  .hero-img-content { padding: 0.75rem; }
  .hero-caption-card {
    padding: 1.25rem 1rem;
    max-width: 100%;
    border-radius: 12px;
  }
  .hero-caption-card h1 {
    font-size: 1.4rem !important;
    margin-bottom: 0.5rem;
  }
  .hero-caption-card p { font-size: 0.88rem !important; margin-bottom: 1rem; }
  .hero-caption-card .btn { font-size: 0.88rem; padding: 0.55rem 1rem; }
  .hero-caption-card .badge { font-size: 0.7rem; padding: 0.3rem 0.75rem; margin-bottom: 0.75rem !important; }

  /* Flex buttons stack on very small screens */
  .hero-caption-card .d-flex.gap-3 { gap: 0.6rem !important; }

  /* --- Trust Badges --- */
  .trust-badges-strip { padding: 1.25rem 0; }
  .trust-badge-card {
    flex-direction: row;
    gap: 10px;
    padding: 0.75rem;
  }
  .trust-icon-box {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.1rem;
  }
  .trust-badge-card h6 { font-size: 0.85rem; }
  .trust-badge-card p { font-size: 0.75rem; }

  /* --- Section titles --- */
  .section-title { font-size: 1.45rem; margin-bottom: 1.25rem; }

  /* --- Product Cards --- */
  .product-card-img-wrapper { height: 145px; }
  .product-card-body { padding: 0.75rem; }

  /* --- Category pills — scrollable row --- */
  .category-pills-row {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .category-pill { font-size: 0.8rem; padding: 0.3rem 0.75rem; white-space: nowrap; }

  /* --- Cart table responsive --- */
  .table-responsive-stack td,
  .table-responsive-stack th { display: block; width: 100%; }
  .table-custom th, .table-custom td { padding: 0.65rem 0.5rem; font-size: 0.85rem; }

  /* --- Card luxury --- */
  .card-luxury { padding: 1rem; border-radius: 12px; }

  /* --- Footer --- */
  .footer-brand { text-align: center; }
  .footer-brand .d-flex.gap-2 { justify-content: center; }
  .footer-brand .row > div { margin-bottom: 1.5rem; }
  .footer-brand ul { align-items: center; }
}

/* ==========================================================================
   RESPONSIVE DESIGN — MOBILE M & S (320px – 424px)
   ========================================================================== */

@media (max-width: 424.98px) {

  /* --- Navbar --- */
  .navbar-brand-text { font-size: 1.05rem; }
  .cart-badge-btn span:first-of-type { display: none; } /* hide "Cart" text, show icon only */
  .cart-badge-btn { padding: 0.4rem 0.65rem !important; }

  /* --- Hero --- */
  .hero-img-wrapper {
    height: 50vh;
    min-height: 260px;
  }
  .hero-caption-card {
    padding: 1rem 0.85rem;
    border-radius: 10px;
  }
  .hero-caption-card h1 { font-size: 1.2rem !important; }
  .hero-caption-card p { font-size: 0.82rem !important; display: none; }
  .hero-caption-card .btn { font-size: 0.82rem; padding: 0.5rem 0.9rem; }

  /* --- Section title --- */
  .section-title { font-size: 1.25rem; margin-bottom: 1rem; }

  /* --- Trust badge compact --- */
  .trust-icon-box { width: 34px; height: 34px; min-width: 34px; font-size: 0.95rem; }
  .trust-badge-card h6 { font-size: 0.78rem; }
  .trust-badge-card p { font-size: 0.7rem; }

  /* --- Product card image smaller --- */
  .product-card-img-wrapper { height: 120px; }

  /* --- Buttons — full width where appropriate --- */
  .btn-brand, .btn-gold, .btn-outline-brand {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  /* --- Cart & checkout forms --- */
  .form-control, .form-select { font-size: 0.85rem; padding: 0.5rem 0.75rem; }
  .card-luxury { padding: 0.85rem; border-radius: 10px; }

  /* --- Footer copyright --- */
  .footer-brand .d-flex.flex-column-sm { flex-direction: column !important; text-align: center; gap: 0.75rem !important; }
}

/* ==========================================================================
   UTILITY — Touch-friendly minimum sizes
   ========================================================================== */

@media (max-width: 991.98px) {
  /* Min touch target 44px for all interactive elements */
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .btn-sm { min-height: 38px; }
  .nav-link { min-height: 44px; display: flex; align-items: center; }
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="number"],
  select,
  textarea { min-height: 44px; }

  /* Prevent horizontal overflow sitewide */
  body { overflow-x: hidden; }
  .container { padding-left: 1rem; padding-right: 1rem; }

  /* Border-end on lg only — remove on smaller screens */
  .border-end-lg { border-right: none !important; }
}


.trust-badge-card h6 {
  font-weight: 700;
  color: var(--sg-emerald-900);
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.trust-badge-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--sg-text-muted);
}

/* ==========================================================================
   PRODUCT CARDS & GRIDS
   ========================================================================== */

.product-card {
  background: var(--sg-white);
  border: 1px solid var(--sg-border-light);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sg-border-gold);
}

.product-card-img-wrapper {
  position: relative;
  overflow: hidden;
  background-color: var(--sg-white);
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-bottom: 1px solid var(--sg-border-light);
}

.product-card-img-wrapper a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img-wrapper img {
  transform: scale(1.06);
}

.product-card-badge-container {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.product-card-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--sg-emerald-900);
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.product-title a {
  color: var(--sg-emerald-900);
}

.product-title a:hover {
  color: var(--sg-gold-600);
}

.product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--sg-emerald-900);
  margin-bottom: 0.6rem !important;
}

.product-price .original-price {
  font-size: 0.9rem;
  color: var(--sg-text-muted);
  text-decoration: line-through;
  font-weight: 500;
  margin-right: 6px;
}

.card-nostock {
  opacity: 0.75;
  filter: grayscale(20%);
}

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */

.product-gallery-main {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--sg-border-light);
  box-shadow: var(--shadow-sm);
  background: var(--sg-white);
  padding: 12px;
}

.product-gallery-main img {
  width: 150%;
  max-height: 480px;
  object-fit: contain;
}

.product-thumb {
  width: 75px;
  height: 75px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-thumb:hover, .product-thumb.active {
  border-color: var(--sg-gold-500);
  transform: scale(1.05);
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--sg-border-light);
  border-radius: 8px;
  background: var(--sg-white);
  overflow: hidden;
}

.quantity-control input {
  width: 50px;
  text-align: center;
  border: none;
  font-weight: 700;
}

.quantity-control button {
  background: var(--sg-cream);
  border: none;
  width: 36px;
  height: 38px;
  font-weight: 700;
  color: var(--sg-emerald-900);
  transition: background 0.2s;
}

.quantity-control button:hover {
  background: var(--sg-sand);
}

/* ==========================================================================
   SHOP FILTER BAR & FORMS
   ========================================================================== */

.filter-bar {
  background: var(--sg-white);
  border: 1px solid var(--sg-border-light);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid var(--sg-border-light);
  padding: 0.6rem 0.7rem;
  font-size: 0.92rem;
  background-color: var(--sg-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--sg-emerald-700);
  box-shadow: 0 0 0 4px rgba(31, 77, 44, 0.12);
}

/* Category Filter Pills */
.category-pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  background: var(--sg-cream);
  border: 1px solid var(--sg-border-light);
  color: var(--sg-emerald-900);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.category-pill:hover, .category-pill.active {
  background: var(--sg-emerald-900);
  color: var(--sg-gold-400);
  border-color: var(--sg-emerald-900);
}

/* ==========================================================================
   CART, CHECKOUT & ACCOUNT CARDS
   ========================================================================== */

.card-luxury {
  background: var(--sg-white);
  border: 1px solid var(--sg-border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
}

.table-custom {
  margin: 0;
}

.table-custom th {
  font-family: var(--font-heading);
  color: var(--sg-emerald-900);
  font-weight: 700;
  border-bottom-width: 2px;
  border-color: var(--sg-border-light);
  padding-bottom: 0.75rem;
}

.table-custom td {
  vertical-align: middle;
  padding: 1rem 0.75rem;
}

.order-summary-box {
  background: linear-gradient(180deg, var(--sg-white) 0%, var(--sg-cream) 100%);
  border: 1px solid var(--sg-border-gold);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer-brand {
  background: linear-gradient(180deg, var(--sg-emerald-900) 0%, #091c11 100%);
  color: #e2ebd8;
  border-top: 3px solid var(--sg-gold-500);
}

.footer-brand h5, .footer-brand h6 {
  font-family: var(--font-heading);
  color: var(--sg-gold-400);
}

.footer-brand a {
  color: #d1dfc5;
  transition: all 0.2s ease;
}

.footer-brand a:hover {
  color: var(--sg-gold-400);
  padding-left: 4px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--sg-gold-400) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon-btn:hover {
  background: var(--sg-gold-500);
  color: var(--sg-emerald-900) !important;
  transform: translateY(-3px);
}

/* ==========================================================================
   TOAST NOTIFICATIONS & ANIMATIONS
   ========================================================================== */

.toast-custom {
  background: var(--sg-emerald-900);
  color: var(--sg-white);
  border-left: 4px solid var(--sg-gold-500);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

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

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