/* BeejaSutra - Luxury Handcrafted Marketplace Styling System */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

:root {
  --color-primary: #293E21;
  --color-primary-light: #3c5a31;
  --color-primary-dark: #1b2b16;
  --color-bg-cream: #F8EFE3;
  --color-bg-cream-card: #FAF4EB;
  --color-bg-white: #FFFFFF;
  --color-accent-gold: #C7A76C;
  --color-accent-gold-hover: #b59458;
  --color-text-dark: #1D1D1D;
  --color-text-muted: #6F6F6F;
  --color-border-beige: #E8DDCF;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-soft: 0 12px 32px -8px rgba(41, 62, 33, 0.08);
  --shadow-hover: 0 22px 45px -10px rgba(41, 62, 33, 0.15);
  --shadow-gold: 0 8px 25px -5px rgba(199, 167, 108, 0.25);
  --radius-card: 22px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & typography */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--color-bg-cream);
  color: var(--color-text-dark);
}

body {
  overflow-x: hidden;
  background-color: var(--color-bg-cream);
  color: var(--color-text-dark);
}

h1, h2, h3, h4, .font-serif-heading {
  font-family: var(--font-heading);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-cream);
}
::-webkit-scrollbar-thumb {
  background: #C7A76C;
  border-radius: 5px;
  border: 2px solid var(--color-bg-cream);
}
::-webkit-scrollbar-thumb:hover {
  background: #293E21;
}

/* Hide scrollbars for containers with .no-scrollbar or #marketplace-products-slider */
.no-scrollbar::-webkit-scrollbar,
#marketplace-products-slider::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.no-scrollbar,
#marketplace-products-slider {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* Glassmorphism & Header state */
.header-glass {
  background: #F8EFE3;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 221, 207, 0.8);
  transition: var(--transition-smooth);
}

.header-scrolled {
  background: #F8EFE3;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px -10px rgba(41, 62, 33, 0.12);
  border-bottom: 1px solid rgba(199, 167, 108, 0.4);
}


/* Soft card styling */
.luxury-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-beige);
  border-radius: var(--radius-card);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-soft);
}

.luxury-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent-gold);
}

/* Product Card Spec */
.product-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-beige);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 24px -6px rgba(41, 62, 33, 0.06);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(199, 167, 108, 0.6);
}

.product-img-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin: 10px;
}

.product-img-container img {
  transition: transform 0.7s ease;
}

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

/* Floating animation elements */
@keyframes floatLeaf {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(8deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.animate-float-slow {
  animation: floatLeaf 6s ease-in-out infinite;
}

.animate-float-reverse {
  animation: floatLeaf 7s ease-in-out infinite reverse;
}

/* Badge styling */
.badge-gold {
  background: rgba(199, 167, 108, 0.15);
  color: #8c6f37;
  border: 1px solid rgba(199, 167, 108, 0.4);
}

.badge-green {
  background: rgba(41, 62, 33, 0.1);
  color: #293E21;
  border: 1px solid rgba(41, 62, 33, 0.2);
}

/* Button Styling */
.btn-primary-green {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border: 1px solid var(--color-primary);
  border-radius: 9999px;
  padding: 0.85rem 2rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 20px -4px rgba(41, 62, 33, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary-green:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -4px rgba(41, 62, 33, 0.35);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-accent-gold);
  border-radius: 9999px;
  padding: 0.8rem 2rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-outline-gold:hover {
  background-color: var(--color-accent-gold);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Active tab state */
.tab-btn.active {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(41, 62, 33, 0.2);
}

/* Drawers & Modals */
.drawer-backdrop,
#cart-backdrop {
  position: fixed;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: rgba(29, 29, 29, 0.5);
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
  z-index: 990 !important;
}

.cart-drawer,
#cart-drawer {
  position: fixed;
  top: 0 !important;
  right: 0 !important;
  height: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
  z-index: 1000 !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Notification Toast */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--color-primary);
  color: #FFFFFF;
  padding: 14px 22px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-accent-gold);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Decorative Arch Shapes */
.arch-shape {
  border-top-left-radius: 200px;
  border-top-right-radius: 200px;
}

.arch-shape-bottom {
  border-bottom-left-radius: 200px;
  border-bottom-right-radius: 200px;
}

/* Custom pulse glow */
.gold-glow {
  box-shadow: 0 0 25px rgba(199, 167, 108, 0.35);
}

/* Dark Hero Section Styling & Carousel System */
.bg-hero-dark {
  background-color: #111C0E;
  background-image: 
    radial-gradient(circle at 15% 30%, rgba(199, 167, 108, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(41, 62, 33, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(20, 32, 17, 0.8) 0%, transparent 80%);
}

.hero-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-slider-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  width: 100%;
}

.hero-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  transform: scale(0.98);
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Dark Glass Cards & Accents */
.dark-glass-card {
  background: rgba(26, 40, 23, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(199, 167, 108, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.badge-dark-gold {
  background: rgba(199, 167, 108, 0.15);
  color: #E2C792;
  border: 1px solid rgba(199, 167, 108, 0.4);
}

.btn-hero-gold {
  background-color: #C7A76C;
  color: #111C0E;
  font-weight: 600;
  border: 1px solid #C7A76C;
  border-radius: 9999px;
  padding: 0.9rem 2.2rem;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 25px rgba(199, 167, 108, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-hero-gold:hover {
  background-color: #D6B77D;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(199, 167, 108, 0.45);
}

.btn-hero-outline {
  background-color: rgba(255, 255, 255, 0.05);
  color: #F8EFE3;
  border: 2px solid rgba(199, 167, 108, 0.6);
  border-radius: 9999px;
  padding: 0.85rem 2.2rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-hero-outline:hover {
  background-color: rgba(199, 167, 108, 0.2);
  border-color: #C7A76C;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Navigation Arrows */
.hero-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(199, 167, 108, 0.35);
  color: #F8EFE3;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.hero-nav-btn:hover {
  background: #C7A76C;
  color: #111C0E;
  border-color: #C7A76C;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(199, 167, 108, 0.4);
}

/* Indicators & Timer Line */
.hero-indicator-dot {
  height: 8px;
  width: 28px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  cursor: pointer;
}

.hero-indicator-dot.active {
  width: 52px;
  background: #C7A76C;
  box-shadow: 0 0 12px rgba(199, 167, 108, 0.5);
}

#top-rated-products{
  max-width: 30rem;
}

/* Categories Mega Menu Styling System */
@media (min-width: 1024px) {
  .mega-menu-container {
    position: static !important;
  }

  .mega-menu-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(8px) !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
    pointer-events: none;
    z-index: 1050 !important;
  }
  
  /* Seamless Hover Bridge: Prevents flickering/closing when moving cursor from trigger link to menu panel */
  .mega-menu-dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 24px;
    background: transparent;
  }

  .mega-menu-container:hover .mega-menu-dropdown,
  .mega-menu-dropdown:hover,
  .mega-menu-dropdown.open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
    pointer-events: auto !important;
  }
}

.mega-menu-dropdown.mobile-open {
  display: block !important;
}

/* Feature Icon Circles & Redesigned "Why Choose Us" 1:1 Reference Styling */
.why-us-section {
  background-color: #F8EFE3;
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Fluid left S-wave image container */
.why-left-flush-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .why-left-flush-container {
    max-width: 530px;
    width: 100%;
    margin: 0;
  }
}

.why-wave-clip-full {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  position: relative;
  clip-path: url(#whyWaveClipFull);
  -webkit-clip-path: url(#whyWaveClipFull);
  background: #FAF4EB;
  box-shadow: 0 20px 45px -10px rgba(41, 62, 33, 0.15);
}

.why-wave-clip-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-left-flush-container:hover .why-wave-clip-full img {
  transform: scale(1.04);
}

/* Floating dark green circular badge overlapping S-wave curve on lower right */
.why-floating-badge-ref {
  position: absolute;
  bottom: -15px;
  right: -10px;
  width: 155px;
  height: 155px;
  border-radius: 50%;
  background: #293E21;
  border: 2px solid #C7A76C;
  color: #F8EFE3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 16px 36px rgba(41, 62, 33, 0.38);
  z-index: 30;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1024px) {
  .why-floating-badge-ref {
    bottom: 5px;
    right: -20px;
    width: 165px;
    height: 165px;
  }
}

.why-floating-badge-ref:hover {
  transform: scale(1.06) rotate(3deg);
}

/* Premium White Feature Cards */
.why-ref-card {
  background: #FFFFFF;
  border: 1px solid #E8DDCF;
  border-radius: 24px;
  padding: 1.85rem 1.35rem 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 6px 20px -4px rgba(41, 62, 33, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  height: 100%;
}

.why-ref-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(41, 62, 33, 0.12);
  border-color: #C7A76C;
}

.why-ref-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #293E21;
  color: #C7A76C;
  border: 1.5px solid rgba(199, 167, 108, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  box-shadow: 0 6px 18px rgba(41, 62, 33, 0.18);
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.why-ref-card:hover .why-ref-icon-circle {
  transform: scale(1.1) rotate(-5deg);
  background: #1b2b16;
  color: #FFFFFF;
  border-color: #C7A76C;
  box-shadow: 0 10px 24px rgba(41, 62, 33, 0.28);
}

.why-card-line {
  width: 32px;
  height: 2px;
  background: rgba(199, 167, 108, 0.6);
  border-radius: 2px;
  margin-top: auto;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.why-ref-card:hover .why-card-line {
  width: 52px;
  background: #293E21;
}


/* Custom Footer Wave Canvas/Gradient Background (Matching Reference Screenshot 2) */
.footer-ref-bg {
  background: radial-gradient(circle at 12% 45%, #f4ebd9 0%, #e6d7bf 28%, #cbb797 44%, #253d26 70%, #15271a 100%);
}



.footer-bullet-item {
  position: relative;
  padding-left: 1rem;
}
.footer-bullet-item::before {
  content: "•";
  position: absolute;
  left: 0;
  top: -1px;
  color: #C7A76C;
  font-size: 1rem;
}

/* Multi-Level Submenu Dropdown System */
.nav-dropdown-wrapper {
  position: relative;
}

@media (min-width: 1024px) {
  .sub-menu-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
  }

  .nav-dropdown-wrapper:hover > .sub-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nested-sub-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
  }

  .has-nested-menu:hover > .nested-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
  }

}

/* Mobile & Tablet Mega Menu Dropdown Styling */
@media (max-width: 1023px) {
  .mega-menu-dropdown {
    position: fixed !important;
    top: 75px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
    width: 92vw !important;
    max-width: 540px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    z-index: 9999 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    background-color: #ffffff !important;
    box-shadow: 0 20px 50px rgba(41, 62, 33, 0.18) !important;
  }

  .mega-menu-dropdown.mobile-open,
  .mega-menu-dropdown.open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
    pointer-events: auto !important;
  }
}

/* Utility: Hide Scrollbar Crisp across browsers */
.scrollbar-none::-webkit-scrollbar {
  display: none !important;
}

.scrollbar-none {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* Standardized Typography & Spacing System */
.site-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .site-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .site-section {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }
}

.site-section-header {
  text-align: center;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .site-section-header {
    margin-bottom: 3rem;
  }
}

@media (min-width: 1024px) {
  .site-section-header {
    margin-bottom: 3.5rem;
  }
}

.heading-h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.heading-h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.heading-h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.3;
}

.body-text-p {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.eyebrow-badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}