/**
 * The Vaishnav Store - Core Theme Stylesheet
 * Spiritual Vaishnav Palette: Deep Maroon, Saffron, Gold, Cream
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --vs-maroon: #7B160F;
  --vs-maroon-dark: #4B130D;
  --vs-maroon-light: #9B2219;
  --vs-saffron: #E98A08;
  --vs-saffron-light: #FF9E24;
  --vs-gold: #C9912D;
  --vs-gold-light: #E0AB4B;
  --vs-cream: #FFF9EF;
  --vs-beige: #F7EAD3;
  --vs-green: #4F6F26;
  --vs-text: #2D241F;
  --vs-text-muted: #6B5E55;
  --vs-white: #FFFFFF;
  --vs-border: #E8D9C5;
  --vs-shadow-sm: 0 2px 8px rgba(75, 19, 13, 0.06);
  --vs-shadow-md: 0 6px 20px rgba(75, 19, 13, 0.10);
  --vs-shadow-lg: 0 12px 35px rgba(75, 19, 13, 0.16);
  --vs-font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --vs-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --vs-radius: 10px;
  --vs-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base */
body {
  font-family: var(--vs-font-sans);
  color: var(--vs-text);
  background-color: #FAF5ED;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .serif-heading {
  font-family: var(--vs-font-serif);
  color: var(--vs-maroon-dark);
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

/* Top Notification Bar */
.top-bar {
  background: var(--vs-maroon-dark);
  color: var(--vs-cream);
  font-size: 0.84rem;
  padding: 6px 0;
  border-bottom: 2px solid var(--vs-gold);
}
.top-bar a {
  color: var(--vs-cream);
}
.top-bar a:hover {
  color: var(--vs-saffron-light);
}

/* Main Navigation Header */
.main-header {
  background: var(--vs-cream);
  border-bottom: 1px solid var(--vs-border);
  box-shadow: var(--vs-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: var(--vs-transition);
}
.main-header.is-sticky {
  box-shadow: var(--vs-shadow-md);
  background: rgba(255, 249, 239, 0.98);
  backdrop-filter: blur(8px);
}

.brand-logo img {
  height:90px;
  width: auto;
  object-fit: contain;
  transition: var(--vs-transition);
}

/* Nav links */
.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--vs-text);
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--vs-maroon);
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--vs-gold);
  transition: var(--vs-transition);
  transform: translateX(-50%);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 70%;
}

/* Header Action Icons */
.header-action-btn {
  color: var(--vs-maroon-dark);
  font-size: 1.25rem;
  position: relative;
  padding: 6px 10px;
  border-radius: 50%;
  transition: var(--vs-transition);
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-action-btn:hover {
  background: var(--vs-beige);
  color: var(--vs-maroon);
}
.header-badge {
  position: absolute;
  top: 0px;
  right: 2px;
  background: var(--vs-maroon);
  color: var(--vs-cream);
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--vs-cream);
}

/* Mega Menu Dropdown */
.main-header {
  position: relative !important;
}
.navbar {
  position: static !important;
}
.mega-menu-dropdown {
  position: static !important;
}
.mega-menu-dropdown .nav-link {
  padding-top: 15px;
  padding-bottom: 15px;
}
.mega-menu-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 !important;
  transform: none !important;
  background: var(--vs-cream) !important;
  border: none !important;
  border-top: 2px solid var(--vs-gold) !important;
  border-bottom: 3px solid var(--vs-maroon) !important;
  box-shadow: 0 15px 35px rgba(75, 19, 13, 0.18) !important;
  padding: 28px 0 !important;
  border-radius: 0 0 14px 14px !important;
  z-index: 1050 !important;
  display: none;
}

/* Invisible hover bridge between navbar link and mega menu */
.mega-menu-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
  display: block;
}

.mega-menu-dropdown.show .mega-menu-menu,
.mega-menu-dropdown:hover .mega-menu-menu,
.mega-menu-menu:hover,
.mega-menu-menu.show {
  display: block !important;
}
.mega-col-title {
  font-family: var(--vs-font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--vs-maroon);
  border-bottom: 1px solid var(--vs-gold);
  padding-bottom: 8px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mega-item-link {
  display: block;
  padding: 4px 0;
  color: var(--vs-text);
  font-size: 0.9rem;
  transition: var(--vs-transition);
}
.mega-item-link:hover {
  color: var(--vs-saffron);
  transform: translateX(4px);
}

/* Hero Slider Full Width */
.hero-slider-section {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #340905;
  margin: 0;
  padding: 0;
}
.hero-slider-section .carousel-item {
  background: #340905;
}
.hero-slider-section .hero-slide-wrapper {
  width: 100%;
  position: relative;
}
.hero-slider-section img.hero-slide-img {
  width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: cover;
}
.hero-slider-section .carousel-indicators {
  display: none !important;
}

/* Buttons */
.btn-primary-vs {
  background-color: var(--vs-maroon);
  color: var(--vs-cream);
  border: 1px solid var(--vs-maroon);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 30px;
  transition: var(--vs-transition);
}
.btn-primary-vs:hover {
  background-color: var(--vs-maroon-dark);
  color: var(--vs-cream);
  border-color: var(--vs-gold);
  box-shadow: 0 4px 12px rgba(123, 22, 15, 0.25);
}
.btn-gold-vs {
  background: linear-gradient(135deg, var(--vs-gold), #b87b1c);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 30px;
  transition: var(--vs-transition);
}
.btn-gold-vs:hover {
  background: linear-gradient(135deg, #d89f38, var(--vs-gold));
  color: #fff;
  box-shadow: 0 4px 12px rgba(201, 145, 45, 0.35);
}
.btn-outline-vs {
  border: 1.5px solid var(--vs-maroon);
  color: var(--vs-maroon);
  background: transparent;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 30px;
  transition: var(--vs-transition);
}
.btn-outline-vs:hover {
  background: var(--vs-maroon);
  color: var(--vs-cream);
}

/* Product Cards */
.vs-product-card {
  background: var(--vs-white);
  border: 1px solid var(--vs-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--vs-transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.vs-product-card:hover {
  box-shadow: var(--vs-shadow-md);
  border-color: var(--vs-gold);
  transform: translateY(-4px);
}
.product-card-img-box {
  position: relative;
  background: #FAF3E6;
  padding-top: 100%;
  overflow: hidden;
}
.product-card-img-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 15px;
  transition: transform 0.4s ease;
}
.vs-product-card:hover .product-card-img-box img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-badge-sale { background: var(--vs-maroon); color: var(--vs-cream); }
.product-badge-new { background: var(--vs-green); color: #fff; }
.product-badge-bestseller { background: var(--vs-gold); color: #fff; }

.product-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--vs-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vs-text-muted);
  transition: var(--vs-transition);
}
.product-wishlist-btn:hover,
.product-wishlist-btn.active {
  background: var(--vs-maroon);
  color: #fff;
  border-color: var(--vs-maroon);
}

.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-card-category {
  font-size: 0.78rem;
  color: var(--vs-gold);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.product-card-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--vs-text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  height: 2.7rem;
}
.product-card-title:hover {
  color: var(--vs-maroon);
}
.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 12px;
}
.current-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--vs-maroon);
}
.mrp-price {
  font-size: 0.85rem;
  color: var(--vs-text-muted);
  text-decoration: line-through;
}
.discount-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--vs-green);
  background: rgba(79, 111, 38, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Category Cards */
.vs-category-card {
  background: var(--vs-cream);
  border: 1px solid var(--vs-border);
  border-radius: 12px;
  padding: 20px 15px;
  text-align: center;
  transition: var(--vs-transition);
  display: block;
}
.vs-category-card:hover {
  border-color: var(--vs-gold);
  background: #FFF3DD;
  transform: translateY(-4px);
  box-shadow: var(--vs-shadow-sm);
}
.vs-cat-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--vs-beige);
  border: 2px solid var(--vs-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--vs-maroon);
  margin: 0 auto 12px auto;
  transition: var(--vs-transition);
}
.vs-category-card:hover .vs-cat-icon-circle {
  background: var(--vs-maroon);
  color: var(--vs-cream);
  transform: rotate(5deg) scale(1.05);
}

/* Section Title Styling */
.section-title-wrap {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}
.section-sub-badge {
  color: var(--vs-gold);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 6px;
}
.section-main-title {
  font-size: 2.2rem;
  color: var(--vs-maroon-dark);
  margin-bottom: 10px;
}
.section-divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--vs-gold);
  font-size: 1.1rem;
}
.section-divider-ornament::before,
.section-divider-ornament::after {
  content: '';
  height: 1px;
  width: 60px;
  background: var(--vs-gold);
}

/* Floating WhatsApp Button */
.whatsapp-float-btn {
  position: fixed;
  bottom: 85px;
  right: 25px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1020;
  transition: var(--vs-transition);
}
.whatsapp-float-btn:hover {
  transform: scale(1.1);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Trust Strip */
.trust-strip {
  background: var(--vs-cream);
  border-top: 1px solid var(--vs-border);
  border-bottom: 1px solid var(--vs-border);
  padding: 30px 0;
}
.trust-box {
  display: flex;
  align-items: center;
  gap: 15px;
}
.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--vs-beige);
  border: 1px solid var(--vs-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--vs-maroon);
  flex-shrink: 0;
}

/* Footer */
.main-footer {
  background: #380C08;
  color: #EBD8C3;
  padding: 60px 0 20px 0;
  border-top: 3px solid var(--vs-gold);
}
.footer-title {
  color: var(--vs-cream);
  font-family: var(--vs-font-serif);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--vs-gold);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #D6C2AC;
  font-size: 0.92rem;
  transition: var(--vs-transition);
}
.footer-links a:hover {
  color: var(--vs-saffron-light);
  padding-left: 5px;
}
.footer-bottom {
  border-top: 1px solid rgba(235, 216, 195, 0.15);
  padding-top: 20px;
  margin-top: 40px;
  font-size: 0.86rem;
  color: #B59F89;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--vs-cream);
  border-top: 1px solid var(--vs-border);
  box-shadow: 0 -3px 12px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  z-index: 1025;
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.72rem;
  color: var(--vs-text-muted);
  text-decoration: none;
  position: relative;
  flex: 1;
}
.mobile-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 2px;
  color: var(--vs-maroon-dark);
}
.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--vs-maroon);
}
.mobile-nav-item.active i {
  color: var(--vs-maroon);
}

@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

/* Toast Container */
.vs-toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
}
