:root {
  --primary-color: #3e2723; /* Dark chocolate brown */
  --secondary-color: #ffb300; /* Amber gold accent */
  --accent-color: #d84315; /* Rust orange */
  --bg-color: #f9f9f9; /* Clean light background */
  --text-dark: #212121;
  --text-light: #ffffff;
  --card-border-radius: 24px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Custom Signature Headers */
h1, h2, h3, h4, .font-premium-header {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
}

/* Navigation Capsule */
.nav-capsule {
  transition: all 0.3s ease;
}

/* Card Styling Re-imagined */
.card.product-card {
  border-radius: var(--card-border-radius);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

.card.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* Custom Buttons */
.btn-premium {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 50px;
  padding: 10px 28px;
  font-weight: 600;
  border: none;
  transition: all 0.2s ease;
}

.btn-premium:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: scale(1.03);
}

/* Footer Hover Effects */
.footer-links a {
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--secondary-color) !important;
  padding-left: 5px;
}

/* Micro-animations */
.fade-in-up {
  animation: fadeInUp 0.7s ease-out forwards;
}

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

/* Aspect-ratio layout rules for widescreen banners */
.banner-curve {
  border-radius: var(--card-border-radius);
  overflow: hidden;
}

/* Occasion & Category Grids styling overrides */
.grid-item-hover {
  transition: all 0.3s ease;
}
.grid-item-hover:hover {
  background-color: #fff !important;
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);
  transform: translateY(-3px);
}

/* --- Collection Lanes & Responsive Horizontal Carousel --- */
.collection-section-wrapper {
  border-radius: 32px;
  margin: 40px 0;
  padding: 40px 0;
  transition: background-color 0.3s ease;
}

/* Distinct Themes */
.theme-bites {
  background-color: #f3f6f4; /* Soft Sage Green */
  color: #1b3d2f;
}
.theme-bites .collection-title-serif {
  color: #1b3d2f;
}
.theme-bites .collection-card {
  border-color: #1b3d2f;
}
.theme-bites .collection-card-stars {
  color: #1b3d2f;
}
.theme-bites .collection-scroll-btn:hover {
  background-color: #1b3d2f;
  color: #fff;
  border-color: #1b3d2f;
}

.theme-choco {
  background-color: #fdf8f5; /* Soft Cream Chocolate */
  color: #4a2c22;
}
.theme-choco .collection-title-serif {
  color: #4a2c22;
}
.theme-choco .collection-card {
  border-color: #4a2c22;
}
.theme-choco .collection-card-stars {
  color: #d84315;
}
.theme-choco .collection-scroll-btn:hover {
  background-color: #4a2c22;
  color: #fff;
  border-color: #4a2c22;
}

.theme-gifting {
  background-color: #faf6eb; /* Soft Gold/Champagne */
  color: #5c4008;
}
.theme-gifting .collection-title-serif {
  color: #5c4008;
}
.theme-gifting .collection-card {
  border-color: #5c4008;
}
.theme-gifting .collection-card-stars {
  color: #ffb300;
}
.theme-gifting .collection-scroll-btn:hover {
  background-color: #5c4008;
  color: #fff;
  border-color: #5c4008;
}

/* Header & Title */
.collection-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.collection-title-serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 0;
}

/* Horizontal Scroll lane wrapper */
.collection-scroll-wrapper {
  position: relative;
}
.collection-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}
.collection-scroll-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

/* Collection item card width constraints */
.collection-card-item {
  flex: 0 0 240px; /* Desktop Blinkit-like width */
  scroll-snap-align: start;
}

/* Collection Card design */
.collection-card {
  height: 100%;
  background-color: #ffffff;
  border-radius: 20px;
  border: 1.5px solid;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  text-decoration: none !important;
  color: inherit !important;
}
.collection-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}

.collection-card-image-capsule {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background-color: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 170px;
  border: 1px solid rgba(0,0,0,0.03);
}
.collection-card-image-capsule img {
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.collection-card:hover .collection-card-image-capsule img {
  transform: scale(1.05);
}

/* Badges */
.collection-discount-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #097969; /* Green badge */
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(9,121,105,0.25);
}
.collection-sold-out-badge {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  color: #333333;
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  white-space: nowrap;
  z-index: 5;
}

/* Card Metadata */
.collection-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  color: #111111;
  margin: 12px 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6rem;
  line-height: 1.3;
}
.collection-card-stars {
  font-size: 0.75rem;
  text-align: center;
  margin-bottom: 6px;
  font-weight: 500;
}
.collection-card-price-row {
  text-align: center;
  margin-top: auto;
  padding-bottom: 6px;
}
.collection-mrp-strike {
  text-decoration: line-through;
  color: #888888;
  font-size: 0.75rem;
  margin-right: 6px;
}
.collection-sale-price {
  font-weight: 800;
  color: #111111;
  font-size: 0.95rem;
}

/* Nav Controls */
.collection-scroll-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  background-color: #ffffff;
  color: #333333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  font-weight: bold;
}
.collection-scroll-btn:active {
  transform: scale(0.95);
}

/* Responsive Scaling: Smaller Blinkit/Zepto Cards on Mobile */
@media (max-width: 576px) {
  .collection-section-wrapper {
    margin: 20px 0;
    padding: 24px 0;
    border-radius: 20px;
  }
  .collection-header-wrapper {
    margin-bottom: 16px;
  }
  .collection-title-serif {
    font-size: 1.25rem;
    line-height: 1.2;
  }
  .collection-scroll-container {
    gap: 12px;
    padding-bottom: 15px;
  }
  .collection-card-item {
    flex: 0 0 145px; /* Blinkit/Zepto card size */
  }
  .collection-card {
    border-width: 1px;
    padding: 8px;
    border-radius: 14px;
  }
  .collection-card-image-capsule {
    height: 110px;
    border-radius: 10px;
  }
  .collection-card-title {
    font-size: 0.75rem;
    height: 2.2rem;
    margin-top: 8px;
  }
  .collection-card-stars {
    font-size: 0.65rem;
    margin-bottom: 4px;
  }
  .collection-mrp-strike {
    font-size: 0.65rem;
    margin-right: 4px;
  }
  .collection-sale-price {
    font-size: 0.8rem;
  }
  .collection-discount-badge {
    font-size: 0.6rem;
    padding: 2px 5px;
    top: 5px;
    right: 5px;
  }
  .collection-sold-out-badge {
    font-size: 0.6rem;
    padding: 2px 8px;
    bottom: 5px;
  }
  .collection-scroll-btn {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
}

/* --- Occasions & Why Choose Grid Sizing --- */
.occasion-card-img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.occasion-card-title {
  font-size: 0.95rem;
}
.choose-card-img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
}
.choose-card-title {
  font-size: 0.95rem;
}
.choose-card-desc {
  font-size: 0.8rem;
}

@media (max-width: 576px) {
  .occasion-card-img {
    max-height: 72px;
  }
  .occasion-card-title {
    font-size: 0.85rem;
    line-height: 1.25;
  }
  .choose-card-img {
    max-height: 72px;
  }
  .choose-card-title {
    font-size: 0.85rem;
    line-height: 1.25;
  }
  .choose-card-desc {
    font-size: 0.68rem;
    line-height: 1.25;
  }
}

/* Preloader styling */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff; /* Clean light background */
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.5s;
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.preloader-logo {
  animation: pulseLogo 1.5s infinite ease-in-out;
}

.preloader-text-logo {
  font-family: 'Pacifico', cursive;
  font-size: 2.8rem;
  color: #3e2723; /* primary-color */
  display: block;
}

.preloader-tagline {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffb300; /* secondary-color */
}

.preloader-spinner {
  width: 44px;
  height: 44px;
  border: 3.5px solid rgba(62, 39, 35, 0.1);
  border-top-color: #3e2723;
  border-radius: 50%;
  animation: spinPreloader 0.8s linear infinite;
}

@keyframes pulseLogo {
  0%, 100% {
    transform: scale(0.98);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.02);
    opacity: 1;
  }
}

@keyframes spinPreloader {
  to {
    transform: rotate(360deg);
  }
}

body.loading {
  overflow: hidden;
}

/* Professional Pricing Styling */
.price-professional {
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif !important;
  font-weight: 700 !important;
  color: #000000 !important;
  letter-spacing: -0.01em;
}

/* Override existing pricing sizes/styles to adapt nicely */
.collection-sale-price.price-professional {
  font-size: 1.05rem !important;
}

.collection-mrp-strike.price-professional {
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif !important;
  font-weight: 500 !important;
  color: #8c8c8c !important;
  text-decoration: line-through !important;
  margin-right: 8px;
}

/* Delighter success animation */
.animate-success-badge {
  animation: successPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes successPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}



