/* ============================================================
   Princess Craft - Royal Rajasthani CSS Theme
   Brand: Handcrafted • Royal • Indian Heritage
   Color Palette:
     Deep Maroon: #6A1E2D
     Royal Gold:  #C6A75E
     Sand Beige:  #F5E6CC
     Cream BG:    #FDF8F0
     Charcoal:    #2C2C2C
   ============================================================ */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:wght@700;800&family=Cormorant+Garamond:wght@300;400;500;600&family=Montserrat:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

/* === CSS VARIABLES === */
:root {
  --maroon: #800020;
  --gold: #D4AF37;
  --gold-light: #F4E5B2;
  --beige: #F5E6CC;
  --cream: #FDF8F0;
  --charcoal: #121212;
  --text-muted: #8E8E8E;
  --border: rgba(212, 175, 55, 0.4);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.2);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* === BASE === */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Playfair Display', serif;
  color: var(--maroon);
}

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

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

/* === GOLD TOP BORDER === */
body::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--maroon), var(--gold), var(--maroon));
}


.navbar {
  background-color: #fff;
  border-bottom: 1px solid var(--border);
  height: 85px;
  /* Restored to original fixed height */
  padding: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  transition: var(--transition);
  z-index: 1050;
  overflow: visible !important;
}

/* Scroll effect removed for full rollback */
.navbar.scrolled {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.mobile-logo-wrapper {
  width: 140px;
  position: relative;
  height: 85px;
}

.mobile-logo-link {
  position: absolute;
  top: -43px;
  left: 50px;
  z-index: 1001;
}

.mobile-logo-link img {
  height: 195px;
  width: auto;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.navbar-toggler {
  transition: var(--transition);
}

.navbar.scrolled .navbar-toggler {
  padding: 0.25rem 0.5rem;
}

.navbar-brand .brand-tagline {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
}

.nav-link {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333 !important;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.5rem 1.5rem !important;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link.active::after {
  width: 50%;
}

.nav-link:hover::after {
  width: 25%;
}

/* Smart highlight line for Shop */
.nav-link.shop-highlight::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  display: block;
  box-shadow: 0 2px 8px rgba(198, 167, 94, 0.4);
  border-radius: 2px;
}

.nav-link.dropdown-toggle::after {
  display: none;
}

.nav-link.shop-highlight.dropdown-toggle::after {
  display: block;
  /* Override for Shop */
}

/* Custom ornament for dropdowns to match screenshot */
.nav-item.dropdown .nav-link::before {
  content: '▾';
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 1.2rem;
  display: block;
}

.nav-item.dropdown:hover .nav-link {
  color: var(--gold) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:hover {
  color: var(--maroon) !important;
}

/* Cart icon with count */
.cart-icon-wrapper {
  position: relative;
  display: inline-block;
}

.cart-count-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--maroon);
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ================================================================
   HERO SECTION — ROYAL RAJASTHANI PALACE
   Colour story (Rajput palace at dusk over the Thar Desert):
     Deep Indigo-Night  #0D0A1E  — top corners (starlit sky)
     Rich Maroon        #6B0F22  — core (royal crimson of Rajput courts)
     Warm Burgundy      #3D0A16  — mid shadow
     Saffron Bloom      #B05C0C  — base glow (desert sunset)
================================================================ */
/* ─ Lighter rich royal palette — deep maroon to warm burgundy ─ */
.hero-section {
  min-height: 92vh;
  background:
    /* Warm amber glow from left — highlights the headline */
    radial-gradient(ellipse 45% 75% at 0% 50%, rgba(175, 80, 8, 0.42) 0%, transparent 58%),
    /* Soft rose accent from bottom-right */
    radial-gradient(ellipse 55% 40% at 100% 100%, rgba(90, 12, 28, 0.40) 0%, transparent 55%),
    /* Core: rich deep maroon → warm burgundy → dark wine (not near-black!) */
    linear-gradient(118deg,
      #72122A 0%,
      #5A0E20 35%,
      #3C0A16 65%,
      #250610 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 2.5px solid #C9A84C;
  box-shadow: 0 4px 40px rgba(196, 148, 28, 0.22);
}


/* Traditional jali lattice (diamond + dot — Rajasthani marble screen) */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0 L40 20 L20 40 L0 20 Z' fill='none' stroke='%23D4AF37' stroke-width='0.45' stroke-opacity='0.08'/%3E%3Ccircle cx='20' cy='20' r='1.5' fill='%23D4AF37' fill-opacity='0.06'/%3E%3Ccircle cx='0'  cy='0'  r='1'   fill='%23D4AF37' fill-opacity='0.06'/%3E%3Ccircle cx='40' cy='0'  r='1'   fill='%23D4AF37' fill-opacity='0.06'/%3E%3Ccircle cx='0'  cy='40' r='1'   fill='%23D4AF37' fill-opacity='0.06'/%3E%3Ccircle cx='40' cy='40' r='1'   fill='%23D4AF37' fill-opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Inner gold hairline frame — the jharokha border */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(212, 175, 55, 0.20);
  pointer-events: none;
  z-index: 1;
}

/* ── L-shaped corner brackets — sharp gold, fully opaque ── */
.hero-corner {
  position: absolute;
  width: 60px;
  height: 60px;
  z-index: 4;
  pointer-events: none;
}

.hero-corner--tl {
  top: 22px;
  left: 22px;
  border-top: 2px solid #C9A84C;
  border-left: 2px solid #C9A84C;
}

.hero-corner--tr {
  top: 22px;
  right: 22px;
  border-top: 2px solid #C9A84C;
  border-right: 2px solid #C9A84C;
}

.hero-corner--bl {
  bottom: 22px;
  left: 22px;
  border-bottom: 2px solid #C9A84C;
  border-left: 2px solid #C9A84C;
}

.hero-corner--br {
  bottom: 22px;
  right: 22px;
  border-bottom: 2px solid #C9A84C;
  border-right: 2px solid #C9A84C;
}

.hero-corner::before {
  content: '◆';
  position: absolute;
  color: #C9A84C;
  font-size: 7px;
  line-height: 1;
}

.hero-corner--tl::before {
  top: -4px;
  left: -4px;
}

.hero-corner--tr::before {
  top: -4px;
  right: -4px;
}

.hero-corner--bl::before {
  bottom: -4px;
  left: -4px;
}

.hero-corner--br::before {
  bottom: -4px;
  right: -4px;
}

.hero-content {
  position: relative;
  z-index: 5;
}


/* ── Decorative top motif (flanking lines + diamonds) ── */
.hero-motif {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-motif-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55));
}

.hero-motif-line.rev {
  background: linear-gradient(270deg, transparent, rgba(212, 175, 55, 0.55));
}

.hero-motif-diamond {
  font-size: 8px;
  color: #E8C35A;
  letter-spacing: 5px;
}

/* ── Eyebrow — open bar style (no blur, sharp & traditional) ── */
.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 5px;
  color: #D4AF37;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  padding: 6px 0 8px;
  border-top: 1px solid rgba(212, 175, 55, 0.55);
  border-bottom: 1px solid rgba(212, 175, 55, 0.55);
  background: transparent;
  margin-bottom: 1.2rem;
}

/* ── Main headline — crisp, high-contrast ── */
.hero-title {
  font-size: clamp(3rem, 7vw, 6rem);
  color: #FFFFFF;
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -1.5px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
  margin-bottom: 0;
}

/* Metallic gold — thin Cormorant Garamond for elegant contrast with bold Playfair */
.hero-title span {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(3.2rem, 7.5vw, 6.5rem);
  letter-spacing: 1px;
  background: linear-gradient(160deg, #C9A62A 0%, #F5E07A 38%, #F0CA4A 52%, #C9A62A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 4s ease-in-out infinite;
}

@keyframes goldShimmer {

  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.15);
  }
}

/* ── Ornamental divider with central text ── */
.hero-ornament-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 1.2rem 0 1.4rem;
}

.hero-orn-line {
  height: 1px;
  flex: 1;
  max-width: 55px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55));
}

.hero-orn-line.rev {
  background: linear-gradient(270deg, transparent, rgba(212, 175, 55, 0.55));
}

.hero-orn-center {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 7px;
  letter-spacing: 3px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.65);
}

/* ── Subtitle ── */
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 238, 210, 0.85);
  font-weight: 400;
  line-height: 1.78;
  margin-bottom: 2.2rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

/* ── 2×2 PRODUCT GRID WRAPPER ── */
.hero-grid-wrapper {
  position: relative;
  z-index: 5;
  animation: slideInRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Sparkle star */
.hero-sparkle {
  position: absolute;
  top: -10px;
  right: 0;
  font-size: 22px;
  color: #F4DC90;
  text-shadow: 0 0 12px #C9A84C, 0 0 28px rgba(201, 168, 76, 0.45);
  animation: twinkle 3s ease-in-out infinite;
  z-index: 10;
  line-height: 1;
  pointer-events: none;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.72) rotate(20deg);
  }
}

/* Grid panel container */
.hero-grid-panel {
  position: relative;
  border: 1.5px solid rgba(201, 168, 76, 0.52);
  border-radius: 20px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.22);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 24px 70px rgba(0, 0, 0, 0.55),
    inset 0 0 50px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(201, 168, 76, 0.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  aspect-ratio: 1 / 1;
}

/* Individual product cells */
.hero-grid-cell {
  border-radius: 11px;
  overflow: hidden;
  position: relative;
  background: rgba(58, 12, 24, 0.75);
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.hero-grid-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-grid-cell:hover img {
  transform: scale(1.08);
}

/* Gold glow inset on hover */
.hero-grid-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 11px;
  box-shadow: inset 0 0 0 0 rgba(201, 168, 76, 0);
  transition: box-shadow 0.38s ease;
  pointer-events: none;
  z-index: 2;
}

.hero-grid-cell:hover::after {
  box-shadow: inset 0 0 28px rgba(201, 168, 76, 0.22);
}

/* Cell hover reveal label */
.hero-cell-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 14px 11px;
  background: linear-gradient(0deg, rgba(35, 8, 18, 0.88) 0%, transparent 100%);
  color: #E2C97E;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: 3;
}

.hero-grid-cell:hover .hero-cell-label {
  opacity: 1;
  transform: translateY(0);
}

/* SVG icon placeholder cells (when no real image exists) */
.hero-cell-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  min-height: 160px;
  transition: background 0.4s ease;
}

.hero-cell-placeholder svg {
  width: 70px;
  height: 70px;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.4s ease;
}

.hero-grid-cell:hover .hero-cell-placeholder svg {
  opacity: 1;
  transform: scale(1.08);
}

.hero-cell-placeholder span {
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: rgba(226, 201, 126, 0.7);
}

/* Category-specific background gradients for placeholders */
.hero-cell-placeholder--jutti {
  background: linear-gradient(145deg, #5C102A 0%, #7A1830 50%, #4A0C22 100%);
}

.hero-cell-placeholder--mojdi {
  background: linear-gradient(145deg, #4A1208 0%, #6B2010 50%, #3A0C06 100%);
}

.hero-cell-placeholder--bags {
  background: linear-gradient(145deg, #3A1A06 0%, #5A2C0C 50%, #2C1204 100%);
}

.hero-cell-placeholder--wallets {
  background: linear-gradient(145deg, #0E1A3A 0%, #182A5C 50%, #0A1228 100%);
}

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(212, 175, 55, 0.42);
  font-size: 0.82rem;
  z-index: 5;
}

/* seal removed */

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .hero-section {
    text-align: center;
    padding: 2rem 0;
  }

  .hero-grid-wrapper {
    max-width: 460px;
    margin: 0 auto;
  }

  .hero-grid-panel {
    aspect-ratio: 1 / 1;
  }

  .hero-corner {
    display: none;
  }

  .hero-motif,
  .hero-ornament-divider {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-grid-wrapper {
    max-width: 340px;
  }

  .hero-cell-placeholder {
    min-height: 110px;
  }

  .hero-cell-placeholder svg {
    width: 48px;
    height: 48px;
  }
}

.jharokha-decoration {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 40px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  z-index: 3;
  opacity: 0.8;
}

.mandala-accent {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 150px;
  height: 150px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='45' fill='none' stroke='%23D4AF37' stroke-width='0.5' stroke-dasharray='1 2'/%3E%3Ccircle cx='50' cy='50' r='35' fill='none' stroke='%23D4AF37' stroke-width='0.2'/%3E%3C/svg%3E");
  background-size: contain;
  opacity: 0.3;
  z-index: 1;
  animation: rotateMandala 60s linear infinite;
}

@keyframes rotateMandala {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Hero Buttons */
.btn-hero-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 14px 35px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-hero-outline:hover {
  background: var(--gold);
  color: var(--maroon);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-hero-solid {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 14px 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.btn-hero-solid:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

/* Royal Badges (Pill Style) */
.badge-royal {
  background: rgba(128, 0, 32, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 10px 25px;
  border-radius: 50px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.badge-royal:hover {
  background: var(--maroon);
  transform: scale(1.05);
}

.icon-circle {
  width: 28px;
  height: 28px;
  background: var(--gold);
  color: var(--maroon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

@media (max-width: 991.98px) {
  .hero-section {
    text-align: center;
    padding: 2rem 0;
  }

  .hero-visual-frame {
    max-width: 450px;
    margin: 0 auto;
  }
}

/* --- HERO CTA ROW & BADGES ROW — always 2 columns on mobile --- */
.hero-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  width: 100%;
}

.hero-cta-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0.45rem 0.4rem !important;
  font-size: clamp(0.55rem, 2.5vw, 0.7rem) !important;
  letter-spacing: 0.8px !important;
  min-width: 0;
  word-break: break-word;
  white-space: normal;
  line-height: 1.3;
}

.hero-badges-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  width: 100%;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-width: 0;
  font-size: clamp(0.52rem, 2.5vw, 0.68rem) !important;
  padding: 0.35rem 0.4rem !important;
  letter-spacing: 0.4px !important;
  word-break: break-word;
  white-space: normal;
  line-height: 1.3;
  text-align: center;
}

/* On tablet & desktop — revert to natural flex row */
@media (min-width: 768px) {

  .hero-cta-row,
  .hero-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: auto;
  }

  .hero-cta-item,
  .hero-badge-item {
    flex: 0 0 auto;
    white-space: nowrap;
    word-break: normal;
    overflow: visible;
    font-size: 0.82rem !important;
    letter-spacing: 2.5px !important;
  }

  .hero-cta-item {
    padding: 0.85rem 2.5rem !important;
    line-height: unset;
  }

  .hero-cta-item.btn-royal-outline {
    padding: 0.85rem 2.2rem !important;
  }

  .hero-badge-item {
    padding: 0.6rem 1.4rem !important;
    letter-spacing: 0.8px !important;
    font-size: 0.8rem !important;
    text-align: left;
    line-height: unset;
  }
}

/* --- VIBRANT BADGES --- */
.badge-vibrant {
  background: rgba(212, 175, 55, 0.07);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #F4E5B8;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.35s ease;
}

@media (max-width: 767px) {
  .badge-vibrant {
    padding: 0.3rem 0.6rem;
    font-size: 0.62rem;
    letter-spacing: 0.3px;
  }

  .badge-vibrant i {
    font-size: 0.7rem;
    margin-right: 5px !important;
  }
}

.badge-vibrant:hover {
  transform: translateY(-2px);
  background: rgba(212, 175, 55, 0.14);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.7);
}

.badge-vibrant i {
  color: #E8C35A;
}

/* Animated CTA Button */
.btn-royal {
  background: transparent;
  border: 1.5px solid #D4AF37;
  color: #E8C35A;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 0.85rem 2.5rem;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: color 0.35s;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.08);
  z-index: 1;
}

.btn-royal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #C9A62A, #E8C35A);
  transition: left 0.35s ease;
  z-index: -1;
}

.btn-royal:hover {
  color: #5C0A1E !important;
  box-shadow: 0 6px 28px rgba(212, 175, 55, 0.35);
}

.btn-royal:hover::before {
  left: 0;
}

/* Secondary outline variant */
.btn-royal-outline {
  background: rgba(212, 175, 55, 0.08);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  color: #D4AF37;
  font-family: 'Poppins', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border-radius: 2px;
  transition: all 0.35s ease;
}

.btn-royal-outline:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.8);
  color: #F4DC90;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Solid royal button variant */
.btn-royal-solid {
  background: var(--maroon);
  border: 2px solid var(--maroon);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 0;
  transition: var(--transition);
}

.btn-royal-solid:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--maroon) !important;
}

.btn-gold {
  background: var(--gold);
  border: 2px solid var(--gold);
  color: var(--maroon);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 0;
  transition: var(--transition);
}

.btn-gold:hover {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff !important;
}

/* === SECTION STYLING === */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: #C6A75E;
  /* Antique Gold */
  text-transform: uppercase;
  font-weight: 500;
  display: block;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #800020;
  margin-bottom: 1.2rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

/* Decorative gold divider */
.gold-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.gold-divider::before,
.gold-divider::after {
  content: '';
  height: 1px;
  width: 100px;
  /* Longer lines */
  background: #C6A75E;
}

.gold-divider i {
  color: #C6A75E;
  font-size: 0.5rem;
}

/* === PRODUCT CARDS === */
.product-card {
  background: #fff;
  border: 1px solid #F5E6CC;
  /* Matching the testimonial border for consistency */
  border-radius: 8px;
  /* Slightly less rounded */
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  /* Subtler shadow */
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: #C6A75E;
  /* Antique Gold hover border */
}

.product-card-img-wrapper {
  overflow: hidden;
  aspect-ratio: 1/1;
  /* Square padding for that "boxed" product look */
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensuring Juttis fill the box elegantly */
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Discount badge */
.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--maroon);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  letter-spacing: 1px;
}

/* Wishlist/Quick view overlay */
.product-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transition: var(--transition);
  z-index: 15;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-overlay .btn-icon {
  background: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.product-overlay .btn-icon:hover {
  background: var(--maroon);
  color: #fff;
}

.product-card-body {
  padding: 0.4rem 0.7rem;
  text-align: left;
}

@media (max-width: 767px) {
  .product-card-body {
    padding: 0.5rem 0.5rem;
  }

  .product-name {
    font-size: 0.95rem !important;
    margin: 0.15rem 0 !important;
  }

  .product-price .price-current {
    font-size: 1rem !important;
  }

  .btn-add-cart {
    margin-top: 0.5rem !important;
    padding: 0.4rem !important;
    font-size: 0.65rem !important;
  }
}

.product-category-tag {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: #800020;
  margin: 0.05rem 0;
  line-height: 1.2;
}

.product-price .price-current {
  font-size: 1.1rem;
  font-weight: 700;
  color: #800020;
}

.product-price .price-original {
  font-size: 0.85rem;
  color: #999;
  text-decoration: line-through;
  margin-left: 8px;
}

.btn-add-cart {
  width: 100%;
  background: #fff;
  border: 1px solid #800020;
  color: #800020;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.4rem;
  margin-top: 0.3rem;
  transition: var(--transition);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add-cart:hover {
  background: #800020;
  color: #fff;
}

/* === CATEGORY GRID === */
.category-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 310px;
  max-width: 93%;
  margin: 0 auto;
  border-radius: 14px;
  background: linear-gradient(145deg, #3A0610 0%, #6B0F22 100%);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* fills full card — no empty space */
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

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

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(106, 30, 45, 0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.category-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.category-count {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 2px;
}

/* Specific background for homepage collections section */
section.craft-collections-section {
  background-color: #F0E3D1 !important;
  /* Refined to be slightly lighter than before */
  position: relative;
  z-index: 1;
}

section.craft-collections-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(106, 30, 45, 0.03);
  /* Subtle maroon overlay for richness */
  pointer-events: none;
}

/* Specific background for homepage royal moments section */
section.royal-moments-section {
  background-color: #F7F0E6 !important;
  /* Lighter than collections (#F0E3D1) but darker than basic cream */
  position: relative;
  z-index: 1;
}

section.royal-moments-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(106, 30, 45, 0.015);
  /* Even subtler maroon overlay */
  pointer-events: none;
}

/* === CRAFT STORY SECTION === */
.craft-story-section {
  background: linear-gradient(135deg, var(--maroon) 0%, #4A0E1D 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.craft-story-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C6A75E' fill-opacity='0.08' fill-rule='evenodd'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Ccircle cx='40' cy='40' r='10'/%3E%3C/g%3E%3C/svg%3E");
}

.craft-story-section .section-title {
  color: #fff;
}

.craft-story-section p {
  color: rgba(255, 255, 255, 0.85);
}

.craft-icon-box {
  text-align: center;
  padding: 2rem 1.5rem;
}

.craft-icon-box .icon-wrap {
  width: 70px;
  height: 70px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--gold);
  font-size: 1.5rem;
}

.craft-icon-box h5 {
  color: var(--gold);
  font-size: 1.1rem;
}

.craft-icon-box p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

/* === TESTIMONIALS === */
#royal-reviews {
  background-color: #FDF9F3;
  /* Subtle cream background to match image */
}

.testimonial-card {
  background: #fff;
  border: 1px solid #F5E6CC;
  /* Exact light beige border */
  padding: 3rem 2.5rem 2.5rem;
  position: relative;
  transition: var(--transition);
  text-align: left;
  height: 100%;
}

.testimonial-card::before {
  content: '"';
  /* Opening quote */
  position: absolute;
  top: -15px;
  left: 25px;
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: #C6A75E;
  background: #fff;
  line-height: 1;
  padding: 0 8px;
}

.testimonial-rating {
  color: #C6A75E;
  margin-bottom: 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 4px;
}

.testimonial-text {
  font-style: italic;
  color: #555;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.85;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

.testimonial-author {
  font-weight: 700;
  color: #800020;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  display: block;
}

.testimonial-product {
  font-size: 0.75rem;
  color: #999;
  font-weight: 400;
}

/* === PRODUCT GALLERY (DETAIL PAGE) === */
.product-gallery-main {
  background: #fff !important;
  border: 1px solid #F5E6CC;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.product-gallery-main:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.product-gallery-thumb {
  width: 80px;
  height: 80px;
  border: 1px solid #F5E6CC;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  background: #fff;
  padding: 4px;
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery-thumb:hover {
  border-color: #C6A75E;
}

.product-gallery-thumb.active {
  border-color: #800020;
  border-width: 2px;
}

/* === GALLERY GRID === */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    gap: 20px;
  }
}

.gallery-item {
  overflow: hidden;
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 4px;
  flex: 0 0 calc(50% - 15px);
  max-width: 380px;
  /* Increased from 180px */
}

@media (min-width: 768px) {
  .gallery-item {
    flex: 0 0 380px;
    /* Increased from 180px */
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

/* === NEWSLETTER === */
.newsletter-section {
  background: var(--beige);
  padding: 4rem 0;
  text-align: center;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}

.newsletter-input {
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem !important;
  background: #fff !important;
}

.newsletter-input:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(198, 167, 94, 0.2) !important;
}

/* === FOOTER === */
footer {
  background: var(--maroon);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
}

footer .footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #fff;
}

footer .footer-tagline {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 3px;
}

footer h6 {
  color: var(--gold);
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

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

footer li {
  margin-bottom: 0.4rem;
  list-style: none;
}

/* Smart Footer Branding */
.footer-logo-container {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 165px;
  height: 165px;
  background: #fff;
  border-radius: 50%;
  border: 4px solid var(--gold-light);
  overflow: hidden;
  margin: 0 auto;
  padding: 0;
}

.footer-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  transform: scale(1.25) translateY(3%);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.footer-description {
  font-size: 0.9rem;
  opacity: 0.75;
  max-width: 400px;
  /* Increased to fit roughly 3 lines */
  margin: 0 auto;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.social-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 6px;
  transition: var(--transition);
  font-size: 0.85rem;
}

.social-icon:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--maroon);
}

/* === BREADCRUMB === */
.page-banner {
  background: linear-gradient(135deg, var(--beige), #fff);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumb-item+.breadcrumb-item::before {
  color: var(--gold);
}

.breadcrumb-item a {
  color: var(--maroon);
}

/* === PRODUCT DETAIL === */
.product-gallery-main {
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid var(--border);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-thumb {
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover {
  border-color: var(--gold);
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.size-btn {
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.size-btn.active,
.size-btn:hover {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}

.stock-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.in-stock .stock-dot {
  background: #28a745;
}

.out-of-stock .stock-dot {
  background: #dc3545;
}

/* === CART === */
.cart-item-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
}

.cart-summary {
  background: var(--beige);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.cart-summary-title {
  font-family: 'Playfair Display', serif;
  color: var(--maroon);
}

/* === FORMS === */
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 167, 94, 0.2);
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
}

/* === ALERTS / MESSAGES === */
.django-message {
  border-radius: 0;
  border-left: 4px solid;
}

.django-message.success {
  border-color: #28a745;
  background: #d4edda;
}

.django-message.error {
  border-color: #dc3545;
  background: #f8d7da;
}

.django-message.info {
  border-color: var(--gold);
  background: var(--beige);
}

/* === FILTER SIDEBAR === */
.filter-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.filter-title {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
}

/* === UTILITIES === */
.text-maroon {
  color: var(--maroon);
}

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

.bg-maroon {
  background-color: var(--maroon);
}

.bg-gold {
  background-color: var(--gold);
}

.bg-beige {
  background-color: var(--beige);
}

.bg-cream {
  background-color: var(--cream);
}

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

/* === ORDER / PROFILE PAGES === */
.profile-sidebar {
  background: var(--maroon);
  color: #fff;
  padding: 2rem;
}

.profile-nav a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.profile-nav a:hover,
.profile-nav a.active {
  color: var(--gold);
  padding-left: 0.5rem;
}

.order-status-badge {
  font-size: 0.7rem;
  padding: 0.35rem 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

/* === ANIMATIONS (supplement AOS) === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

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

  .product-gallery-main {
    aspect-ratio: 1;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.2rem;
  }

  .search-form {
    display: none;
  }
}

/* === RAJASTHANI PATTERN DIVIDER === */
.pattern-divider {
  text-align: center;
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 6px;
  margin: 0.5rem 0;
  opacity: 0.6;
}

/* === MOBILE LOGO CENTERING (Perfect Alignment) === */
@media (max-width: 991.98px) {
  .navbar {
    height: 70px !important;
  }

  /* Force the wrapper to the absolute center of the navbar in mobile */
  .mobile-logo-wrapper {
    position: absolute !important;
    left: 50% !important;
    top: 110% !important;
    /* Single control point for height */
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    height: 70px !important;
    z-index: 1000 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .mobile-logo-link {
    position: static !important;
    top: auto !important;
    left: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .mobile-logo-link img {
    height: 160px !important;
    width: auto !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15)) !important;
    transition: var(--transition);
  }

  /* Ensure toggle and other elements stay on sides */
  .navbar-toggler {
    z-index: 1100 !important;
    padding: 0 !important;
    order: 1;
    position: relative;
  }

  .mobile-nav-tools {
    order: 2;
    margin-left: auto;
    z-index: 1100 !important;
    position: relative;
  }

  .navbar>.container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative;
    z-index: 1100;
  }

  /* Mobile menu as full-width white overlay */
  #navMenu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: #fff !important;
    z-index: 1050 !important;
    /* Higher than logo, lower than togglers */
    padding: 100px 20px 40px !important;
    /* Room for header icons */
    margin: 0 !important;
    box-shadow: none;
    overflow-y: auto;
    display: none;
    /* Controlled by bootstrap collapse classes */
  }

  #navMenu.show {
    display: block !important;
  }

  /* Smooth menu link appearance */
  .navbar-nav {
    text-align: center;
    width: 100%;
  }

  .nav-item {
    width: 100%;
    margin: 10px 0;
  }

  .nav-link {
    font-size: 1.2rem !important;
    padding: 15px !important;
    border-bottom: 1px solid #f8f8f8;
  }
}

/* === QUICK VIEW MODAL CUSTOM STYLES === */
#quickViewModal .modal-xl {
  max-width: 1100px;
}

#quickViewModal .modal-content {
  border-radius: 0;
  background-color: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: none;
}

#modalGallery {
  background-color: #f8f8f8;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#modalMainImgWrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #fff;
}

#modalMainImg {
  transition: opacity 0.3s ease-in-out, transform 0.5s ease;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-nav-btn:hover {
  background: var(--maroon);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.modal-nav-btn.prev {
  left: 24px;
}

.modal-nav-btn.next {
  right: 24px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(128, 0, 32, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.gallery-dot.active {
  background: var(--maroon);
  transform: scale(1.2);
  border-color: var(--gold-light);
}

.btn-outline-maroon {
  border: 1.5px solid var(--maroon);
  color: var(--maroon);
  transition: all 0.3s ease;
  background: transparent;
}

.btn-outline-maroon:hover {
  background: var(--maroon);
  color: #fff;
}

.letter-spacing-1 {
  letter-spacing: 1px;
}

#modalDescription {
  line-height: 1.6;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#quickViewModal .btn-close {
  background-color: #fff;
  border-radius: 50%;
  opacity: 0.8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#quickViewModal .btn-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

/* Desktop refinements */
@media (min-width: 992px) {
  #quickViewModal .modal-body {
    min-height: 550px;
  }

  #quickViewModal .modal-content {
    height: 75vh;
    max-height: 700px;
  }

  #quickViewModal .row,
  #quickViewModal .col-lg-7,
  #quickViewModal .col-lg-5 {
    height: 100%;
  }

  #modalProductName {
    font-size: 2rem;
    font-weight: 700;
    color: var(--maroon);
  }

  #modalSellingPrice {
    font-size: 1.5rem;
    color: var(--maroon);
  }
}

@media (max-width: 991.98px) {
  #modalGallery {
    min-height: 350px !important;
  }

  #quickViewModal .modal-content {
    height: auto;
  }
}

/* === UTILITIES === */
.bg-beige {
  background-color: #FDF8F0 !important;
  /* Soft cream/beige */
}

/* Gallery Hover Effect */
.gallery-image-wrapper:hover .gallery-overlay-hover {
  opacity: 1 !important;
}

/* ==================== SMART MOBILE IMPROVEMENTS ==================== */

/* Fixed Bottom Navigation (App-like feel) */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
  z-index: 1100;
  padding-bottom: env(safe-area-inset-bottom);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-bottom-nav.nav-hidden {
  transform: translateY(100%);
}

.mobile-nav-item {
  flex: 1;
  text-align: center;
}

.mobile-nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #777;
  font-size: 0.65rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 8px 0;
}

.mobile-nav-item i {
  font-size: 1.2rem;
  margin-bottom: 2px;
  transition: transform 0.3s ease;
}

.mobile-nav-item.active a {
  color: var(--maroon);
}

.mobile-nav-item.active i {
  transform: translateY(-3px);
  color: var(--maroon);
}

/* Compensate bottom padding for the fixed nav */
body {
  padding-bottom: 70px;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

/* Mobile Hero Enhancements */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.4rem !important;
    text-align: center;
  }

  .hero-title span {
    font-size: 2.6rem !important;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .hero-ornament-divider {
    justify-content: center;
  }

  .hero-grid-panel {
    border-radius: 12px;
    padding: 6px;
    gap: 6px;
  }

  .hero-grid-cell {
    border-radius: 8px;
  }

  .hero-content {
    text-align: center;
    padding-bottom: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }
}

/* Smart Hero Height Reduction for Mobile */
@media (max-width: 768px) {
  .hero-section {
    min-height: 48vh !important;
    padding: 10px 0;
  }

  .hero-section .row.min-vh-90 {
    min-height: 42vh !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .hero-title {
    font-size: 2rem !important;
  }

  .hero-title span {
    font-size: 2.1rem !important;
  }
}


/* Hide desktop-only mobile components when bottom nav is active */
@media (max-width: 991px) {
  .mobile-nav-tools {
    display: none !important;
  }

  .navbar-toggler {
    margin-left: 0 !important;
  }
}

/* Improved Touch Targets */
.btn,
.nav-link,
.category-card,
.product-card-v2 {
  touch-action: manipulation;
}

/* Craft Story Section Mobile Fixes */
@media (max-width: 991px) {
  .craft-story-section {
    padding: 1.5rem 0 !important;
    /* Minimal but breathable padding */
    text-align: center !important;
  }

  /* Kill large browser-default gutters on mobile */
  .craft-story-section .row.g-5 {
    --bs-gutter-y: 1rem !important;
  }

  .craft-story-section .section-label {
    margin-bottom: 0.5rem !important;
    font-size: 0.65rem !important;
  }

  /* Footer Mobile Fixes */
  footer {
    padding: 2rem 0 1rem !important;
  }

  footer .footer-brand {
    font-size: 1.5rem !important;
  }

  footer .footer-tagline {
    font-size: 0.6rem !important;
    letter-spacing: 2px !important;
    margin-bottom: 1.5rem !important;
  }

  footer h6 {
    font-size: 0.75rem !important;
    margin-top: 1rem !important;
    margin-bottom: 0.6rem !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 4px;
    display: inline-block;
    width: 100%;
  }

  footer li {
    margin-bottom: 0.3rem !important;
    text-align: center !important;
  }

  footer a {
    font-size: 0.9rem !important;
    opacity: 0.85;
    white-space: nowrap;
    /* Prevent messy wrapping */
  }

  /* Ensure Shop and Company stay parallel */
  footer .col-6 {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  /* Contact Info Styling Mobile - Stacked but compact below columns */
  footer .col-lg-4:last-child {
    text-align: center !important;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
  }

  footer .col-lg-4 p {
    text-align: center !important;
    font-size: 0.8rem !important;
    margin-bottom: 0.5rem !important;
  }

  footer .col-lg-4 .fas {
    margin-right: 6px !important;
    font-size: 0.75rem;
  }

  /* Trust Badges in Footer */
  footer .col-lg-4 p:last-child {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 10px;
    border-radius: 8px;
    display: block;
    width: 100%;
    margin-top: 1rem !important;
    font-size: 0.75rem !important;
    line-height: 1.6 !important;
  }

  .footer-bottom {
    margin-top: 1.5rem !important;
    padding-top: 1rem !important;
    font-size: 0.65rem !important;
  }

  .social-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.8rem !important;
  }

  /* Footer Smart Branding Mobile */
  .footer-logo-container {
    width: 120px !important;
    /* Further reduced from 150px */
    height: 120px !important;
    margin-bottom: 1rem !important;
  }

  .footer-description {
    font-size: 0.75rem !important;
    max-width: 350px !important;
    /* Adjusted to fit roughly 3 lines on mobile */
    line-height: 1.5 !important;
    margin: 0 auto !important;
  }

  .craft-story-section .section-title {
    font-size: 1.8rem !important;
    line-height: 1.1 !important;
    margin-bottom: 0.5rem !important;
  }

  .craft-story-section .gold-divider {
    margin: 0.8rem auto !important;
    justify-content: center !important;
    gap: 1rem !important;
  }

  .craft-story-section p {
    font-size: 0.85rem !important;
    margin-bottom: 0.8rem !important;
    line-height: 1.5 !important;
  }

  .craft-story-section .btn {
    margin: 0.5rem auto 1.5rem !important;
    padding: 8px 18px !important;
    font-size: 0.75rem !important;
  }

  .craft-icon-box {
    padding: 0.6rem 0.2rem !important;
  }

  .craft-icon-box .icon-wrap {
    width: 45px !important;
    height: 45px !important;
    font-size: 1rem !important;
    margin-bottom: 0.4rem !important;
  }

  .craft-icon-box h5 {
    font-size: 0.85rem !important;
    margin-bottom: 0.2rem !important;
  }

  .craft-icon-box p {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Hide excess text on mobile to save space */
  }

  /* Royal Reviews (Testimonials) Mobile Fixes */
  #royal-reviews {
    padding: 2rem 0 !important;
  }

  #royal-reviews .section-title {
    font-size: 1.8rem !important;
    margin-bottom: 0.5rem !important;
  }

  .testimonial-card {
    padding: 1.5rem 1rem 1rem !important;
    /* Reduced from 3rem */
    margin-bottom: 1rem;
  }

  .testimonial-card::before {
    font-size: 2rem !important;
    /* Smaller quote mark */
    top: -10px !important;
    left: 15px !important;
  }

  .testimonial-rating {
    margin-bottom: 0.8rem !important;
    font-size: 0.55rem !important;
  }

  .testimonial-text {
    font-size: 0.85rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.4 !important;
  }

  .testimonial-author {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
  }

  .testimonial-product {
    font-size: 0.7rem !important;
    opacity: 0.7;
  }

  /* Newsletter Section Mobile Fixes */
  .newsletter-section {
    padding: 2rem 0 !important;
  }

  .newsletter-section .section-title {
    font-size: 1.6rem !important;
    margin-bottom: 0.5rem !important;
  }

  .newsletter-section .text-muted {
    font-size: 0.8rem !important;
    margin-bottom: 1rem !important;
  }

  .newsletter-input {
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem !important;
  }

  .newsletter-section .btn {
    padding: 0.6rem 1.2rem !important;
  }

  .newsletter-section p.mt-2 {
    font-size: 0.65rem !important;
  }
}