/* ==========================================================================
   KRSNA ORNAMENTS - Custom Stylesheet
   Regal Indian E-Commerce Theme (Maroon & Gold Luxury Aesthetic)
   ========================================================================== */

/* 1. Custom Luxury Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #3d0714; /* Maroon 900 */
}

::-webkit-scrollbar-thumb {
  background: #d4af37; /* Gold 500 */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b7950b; /* Gold 600 */
}

/* Firefox Scrollbar Support */
* {
  scrollbar-width: thin;
  scrollbar-color: #d4af37 #3d0714;
}

/* 2. Smooth Scrolling & Viewport Overflow Protection */
html, body {
  scroll-behavior: smooth;
  max-width: 100vw;
  width: 100%;
  overflow-x: hidden;
}

/* ==========================================================================
   Luxury Vanilla Cream Geometric Pattern Background
   Replaces boring/plain white & flat cream backgrounds across the site
   ========================================================================== */
body.bg-cream,
.bg-cream,
.cream-pattern-bg {
  background-color: #faf5ea !important;
  background-image: url('cream-pattern.jpg') !important;
  background-repeat: repeat !important;
  background-size: 240px auto !important;
}

.cream-card-bg {
  background-color: #fbf7ee !important;
  background-image: url('cream-pattern.jpg') !important;
  background-repeat: repeat !important;
  background-size: 200px auto !important;
  border-color: rgba(212, 175, 55, 0.4);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

/* Interactive Hover Lift & Gold Glow for Cards (Why Us, Care Guide, Reviews, Highlights) */
.hover-card {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease !important;
  cursor: pointer;
}

.hover-card:hover {
  transform: translateY(-6px) !important;
  border-color: #d4af37 !important;
  box-shadow: 0 14px 28px rgba(88, 12, 31, 0.08),
              0 4px 14px rgba(212, 175, 55, 0.22) !important;
}

/* 3. Category Filter Active Button State */
.filter-btn.active {
  background-color: #580c1f !important;
  color: #ffffff !important;
  border-color: #580c1f !important;
  box-shadow: 0 2px 8px rgba(88, 12, 31, 0.25);
}

/* 4. Subtle Shimmer Animation for Badges */
@keyframes goldGlow {
  0%, 100% {
    box-shadow: 0 0 4px rgba(212, 175, 55, 0.25);
  }
  50% {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  }
}

.gold-glow {
  animation: goldGlow 3s infinite ease-in-out;
}

/* 5. Hero Glowing Typography */
@keyframes softTextGlow {
  0%, 100% {
    text-shadow: 0 0 6px rgba(212, 175, 55, 0.2);
  }
  50% {
    text-shadow: 0 0 16px rgba(212, 175, 55, 0.5);
  }
}

.hero-glowing-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  color: #FFE6A8;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: center;
  margin: 14px 0;
  padding-bottom: 6px;
  animation: softTextGlow 4s ease-in-out infinite;
}

@media (max-width: 640px) {
  .hero-glowing-title {
    font-size: 2rem;
    line-height: 1.3;
  }
}

.hero-main-title {
  font-family: "Cinzel", "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-align: center;
}

/* 6. Why Us Feature Cards */
.why-us-section {
  padding: 60px 20px;
  background-color: #faf5ea;
  background-image: url('cream-pattern.jpg');
  background-repeat: repeat;
  background-size: 240px auto;
  text-align: center;
}

.feature-card {
  background-color: #fbf7ee;
  background-image: url('cream-pattern.jpg');
  background-repeat: repeat;
  background-size: 200px auto;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 28px 20px;
  box-shadow: 0 4px 12px rgba(88, 12, 31, 0.04);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              box-shadow 0.3s ease, 
              border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: #d4af37;
  box-shadow: 0 12px 24px rgba(88, 12, 31, 0.08),
              0 4px 12px rgba(212, 175, 55, 0.15);
}

/* 7. Product Card Image Hover Zoom */
.product-card-img {
  transition: transform 0.4s ease;
}

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

/* 8. Luxury Animated Search Bar (Royal Theme & Decorum) */
.luxury-search-box {
  width: 100%;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.luxury-search-input {
  width: 100%;
  height: 38px !important;
  line-height: 20px !important;
  font-size: 12.5px !important;
  padding-left: 38px !important;
  padding-right: 32px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  border-radius: 9999px !important;
  border: 1.5px solid rgba(212, 175, 55, 0.5) !important;
  background: rgba(254, 252, 245, 0.7) !important;
  color: #1e293b !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-search-input::placeholder {
  color: #94a3b8 !important;
  font-weight: 500;
}

.luxury-search-input:hover {
  border-color: #d4af37 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15) !important;
}

.luxury-search-input:focus {
  border-color: #d4af37 !important;
  background: #ffffff !important;
  outline: none !important;
  box-shadow: 0 0 0 3.5px rgba(212, 175, 55, 0.25), 0 6px 18px rgba(88, 12, 31, 0.08) !important;
}

/* Search Icon Centering & Animation */
.search-icon-anim {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  color: #b7950b;
  z-index: 2;
  transition: transform 0.25s ease, color 0.25s ease;
}

.luxury-search-box:hover .search-icon-anim,
.luxury-search-box:focus-within .search-icon-anim {
  transform: translateY(-50%) scale(1.15);
  color: #580c1f;
}

/* Quick Clear Button */
.search-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  cursor: pointer;
}

/* 7. Festive Bridal Rental Lounge Animations */
@keyframes festivePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 12px 3px rgba(212, 175, 55, 0.6);
    transform: scale(1.02);
  }
}

.festive-rent-btn {
  animation: festivePulse 3.5s infinite ease-in-out;
}

.festive-rent-btn:hover {
  animation: none;
}

/* 8. Festive Fairy Light Bulbs Animation */
@keyframes festiveBulb1 {
  0%, 100% { opacity: 0.65; filter: drop-shadow(0 0 3px #f59e0b); }
  50% { opacity: 1; filter: drop-shadow(0 0 9px #fef08a) drop-shadow(0 0 16px #f59e0b); }
}

@keyframes festiveBulb2 {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 8px #fde047); }
  50% { opacity: 0.55; filter: drop-shadow(0 0 2px #f59e0b); }
}

.festive-bulb-1 {
  animation: festiveBulb1 2.2s infinite ease-in-out;
}

.festive-bulb-2 {
  animation: festiveBulb2 2.9s infinite ease-in-out;
}

/* 9. Royal Maroon Velvet Fabric Header Background with Subtle Damask Watermark */
.royal-velvet-bg {
  position: relative;
  background-color: #26030c;
  background-image: 
    radial-gradient(ellipse 85% 60% at 50% 32%, rgba(145, 16, 48, 0.42) 0%, rgba(85, 9, 28, 0.32) 55%, rgba(32, 3, 10, 0.75) 85%, #180106 100%),
    radial-gradient(circle at 50% 50%, transparent 40%, rgba(12, 1, 4, 0.6) 100%),
    url('hero-texture.jpg');
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: 100% 100%, 100% 100%, 420px auto;
  background-position: center, center, center top;
  box-shadow: inset 0 0 120px rgba(10, 1, 4, 0.8);
}

/* 10. Rental Track Action Button (Royal Maroon with Soft Golden Hover) */
.rental-track-btn {
  background: linear-gradient(135deg, #26040c 0%, #460818 50%, #26040c 100%);
  color: #f9e79f;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 2px 8px rgba(38, 4, 12, 0.3);
  transition: all 0.3s ease;
}

.rental-track-btn:hover {
  background: linear-gradient(135deg, #e6ca65 0%, #fff2b2 50%, #d4af37 100%) !important;
  color: #26040c !important;
  border-color: #d4af37 !important;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.5) !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   11. Mobile Header & Festive Rental Pill Anti-Overlap Shield
   Ensures brand name, logo and utilities (Rent, Login, Track, Cart)
   stay perfectly proportioned and never collide or overlap on any phone.
   ========================================================================== */
@media (max-width: 639px) {
  .nav-brand-title {
    font-size: 12.5px !important;
    letter-spacing: 0.04em !important;
    line-height: 1.15 !important;
  }
  .nav-brand-subtitle {
    font-size: 7px !important;
    letter-spacing: 0.08em !important;
  }
  .festive-rent-btn {
    font-size: 10px !important;
    padding: 4px 8px !important;
    gap: 3px !important;
  }
  .nav-auth-btn {
    font-size: 10px !important;
    padding: 4px 8px !important;
    gap: 3px !important;
  }
  .nav-track-btn {
    font-size: 10px !important;
    padding: 4px 7px !important;
  }
  .nav-cart-btn {
    padding: 4px !important;
  }
}

@media (max-width: 360px) {
  .nav-brand-title {
    font-size: 11.5px !important;
    letter-spacing: 0.02em !important;
  }
  .nav-brand-subtitle {
    font-size: 6.5px !important;
    letter-spacing: 0.05em !important;
  }
  .festive-rent-btn {
    font-size: 9.5px !important;
    padding: 3px 6px !important;
  }
  .nav-auth-btn {
    font-size: 9.5px !important;
    padding: 3px 6px !important;
  }
}

/* ==========================================================================
   12. Balanced Spacing & Visual Breathing Room System
   Professional ecommerce spacing — not too cramped, not excessive.
   Targeted CSS rules with explicit values that work independently of Tailwind.
   ========================================================================== */

/* Hero Header Spacing:
   Gives sufficient clearance below the decorative fairy lights (Jhalar 36-40px)
   and a graceful bottom padding before the next section. */
.hero-header-spacing {
  padding-top: 64px !important;
  padding-bottom: 56px !important;
}

@media (min-width: 640px) {
  .hero-header-spacing {
    padding-top: 80px !important;
    padding-bottom: 68px !important;
  }
}

@media (min-width: 1024px) {
  .hero-header-spacing {
    padding-top: 96px !important;
    padding-bottom: 80px !important;
  }
}

/* Hero Content Flow:
   Uses Flex Column with consistent, modern gap to create breathing room
   between Badge -> Title -> Subtitle -> Promotional Card / Grid. */
.hero-content-flow {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 20px !important;
}

@media (min-width: 640px) {
  .hero-content-flow {
    gap: 24px !important;
  }
}

@media (min-width: 1024px) {
  .hero-content-flow {
    gap: 28px !important;
  }
}

/* Hero Title Typography Spacing */
.hero-content-flow h1 {
  line-height: 1.25 !important;
  margin-bottom: 6px !important;
}

@media (min-width: 640px) {
  .hero-content-flow h1 {
    margin-bottom: 8px !important;
  }
}

/* Trust Strip Section */
.trust-strip-spacing {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

@media (min-width: 640px) {
  .trust-strip-spacing {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
}

/* Major Content Sections (Consistent Section Separation) */
#collection,
#rental-collection,
#whatsapp-section,
#why-us,
#care-guide,
#reviews,
.rental-steps-section {
  padding-top: 48px !important;
  padding-bottom: 48px !important;
}

@media (min-width: 640px) {
  #collection,
  #rental-collection,
  #whatsapp-section,
  #why-us,
  #care-guide,
  #reviews,
  .rental-steps-section {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }
}

@media (min-width: 1024px) {
  #collection,
  #rental-collection,
  #whatsapp-section,
  #why-us,
  #care-guide,
  #reviews,
  .rental-steps-section {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }
}

/* Rental USP Grid Card internal padding on mobile */
@media (max-width: 639px) {
  header.royal-velvet-bg .grid > div {
    padding: 10px 12px !important;
  }
}

/* ==========================================================================
   13. Product Details Modal (Quick-View) Scroll Lock & Independent Scrolling
   Prevents background page scroll chaining while ensuring smooth modal scroll.
   ========================================================================== */

/* Background page lock class applied to <body> */
body.modal-scroll-locked {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

/* Modal backdrop container */
.modal-scroll-container {
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch;
}

/* Modal dialog scrollable content container */
.modal-dialog-scrollable {
  max-height: 90vh !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch;
}

@media (max-height: 700px) {
  .modal-dialog-scrollable {
    max-height: 88vh !important;
  }
}

/* Custom scrollbars inside modal */
.modal-dialog-scrollable::-webkit-scrollbar {
  width: 6px;
}

.modal-dialog-scrollable::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 9999px;
}

.modal-dialog-scrollable::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.modal-dialog-scrollable::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
