/* ==========================================================================
   Royal Trading and Company — Nashik's Premier Utensil & Crockery Destination
   Styles & Custom Aesthetics (Themed to Royal Maroon & Imperial Gold Logo)
   Logo Palette: Deep Royal Maroon (#540000), Imperial Gold (#D4AF37), Pure White
   ========================================================================== */

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

:root {
  --royal-maroon: #540000;
  --royal-maroon-dark: #380004;
  --royal-maroon-deep: #240003;
  --royal-maroon-light: #6E0A14;
  --royal-maroon-card: #450309;
  --royal-gold: #D4AF37;
  --royal-gold-light: #F7E7B4;
  --royal-gold-dark: #9A7B1C;
  --royal-cream: #FAF6EF;
  --royal-surface: #F4ECE1;
  --text-dark: #1F1517;
  --text-muted: #5C5557;
}

/* Base Smooth Scrolling & Typography */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif-royal {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-cinzel {
  font-family: 'Cinzel', Georgia, serif;
  letter-spacing: 0.08em;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #240003;
}
::-webkit-scrollbar-thumb {
  background: #6E0A14;
  border-radius: 9999px;
  border: 2px solid #240003;
}
::-webkit-scrollbar-thumb:hover {
  background: #D4AF37;
}

/* Gold Gradient Accents & Text Gradients */
.gold-gradient-text {
  background: linear-gradient(135deg, #FFF0B8 0%, #E5B842 40%, #D4AF37 70%, #9A7B1C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.maroon-gradient-text {
  background: linear-gradient(135deg, #7A0B16 0%, #540000 60%, #380004 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-border-glow {
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.15);
}

.gold-border-glow:hover {
  border-color: rgba(212, 175, 55, 0.8);
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.3);
}

.maroon-border-glow {
  border: 1px solid rgba(84, 0, 0, 0.25);
  box-shadow: 0 8px 24px rgba(84, 0, 0, 0.08);
}

.maroon-border-glow:hover {
  border-color: #540000;
  box-shadow: 0 12px 30px rgba(84, 0, 0, 0.16);
}

/* Card Glow and Hover Transitions */
.luxury-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
  border: 1px solid #EAE3DA;
}

.luxury-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(84, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.05);
  border-color: #D4AF37;
}

.dark-luxury-card {
  background: linear-gradient(160deg, #450309 0%, #290004 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-luxury-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.2);
}

/* Pattern Backgrounds themed to Logo Maroon */
.bg-regal-maroon {
  background-color: #380004;
  background-image: 
    radial-gradient(rgba(212, 175, 55, 0.16) 1px, transparent 1px), 
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, #380004 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
}

.bg-cream-pattern {
  background-color: #FAF6EF;
  background-image: radial-gradient(rgba(84, 0, 0, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Custom Floating Pulse */
@keyframes softPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
}

.whatsapp-pulse {
  animation: softPulse 2.8s infinite;
}

/* Star Rating Shimmer */
@keyframes starShimmer {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.8)); }
  50% { opacity: 0.85; filter: drop-shadow(0 0 8px rgba(245, 158, 11, 1)); }
}

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

/* Circular Logo Spin / Glow Accent */
.logo-halo {
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.35), 0 0 60px rgba(84, 0, 0, 0.4);
}

/* Subtle Shimmer Overlay on Hero / Featured Badges */
.shimmer-badge {
  position: relative;
  overflow: hidden;
}
.shimmer-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 20%, rgba(255,255,255,0.25) 50%, transparent 80%);
  transform: rotate(25deg);
  animation: shimmerMove 4s infinite linear;
}

@keyframes shimmerMove {
  0% { transform: translateX(-150%) rotate(25deg); }
  100% { transform: translateX(150%) rotate(25deg); }
}

/* Filter Button Active State */
.filter-btn.active {
  background: linear-gradient(135deg, #540000 0%, #380004 100%) !important;
  color: #F7E7B4 !important;
  font-weight: 700 !important;
  border-color: #D4AF37 !important;
  box-shadow: 0 6px 18px rgba(84, 0, 0, 0.25);
}

/* Accordion Smooth Collapse */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, opacity 0.3s ease, margin 0.3s ease;
  opacity: 0;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  opacity: 1;
  margin-top: 1rem;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* Product quick view modal */
.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Print Friendly Formats */
@media print {
  header, footer, .floating-actions, #contact-cta, button {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
}
