/*
Theme Name: Sparsh Theme
Theme URI: https://github.com/google-gemini/sparsh-theme
Author: Antigravity AI
Author URI: https://ai.google.dev
Description: A premium, pixel-perfect, highly responsive spiritual luxury and e-commerce theme for WordPress. Seamlessly compatible with WooCommerce and Elementor, featuring high-contrast Vedic templates, swinging bell logos, and PhonePe payment styles.
Version: 1.0.0
License: GNU GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sparsh-theme
Tags: e-commerce, custom-menu, post-formats, theme-options, translation-ready
*/

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

:root {
  /* Divine Temple Palette - Full Premium Shade Ramp */
  --color-saffron-50: #fdf5f2;
  --color-saffron-100: #fbeee8;
  --color-saffron-200: #f8d9cd;
  --color-saffron-300: #f4bca9;
  --color-saffron-400: #ee987d;
  --color-saffron-500: #e05a10;
  --color-saffron-600: #c24300;
  --color-saffron-700: #9e3300;
  --color-saffron-800: #7d2600;
  --color-saffron-900: #5f1c00;
  --color-saffron-950: #3b1000;
  
  --color-maroon-50: #faf2f3;
  --color-maroon-100: #f5e1e2;
  --color-maroon-200: #ebbcc0;
  --color-maroon-300: #dd8d93;
  --color-maroon-400: #cb5c62;
  --color-maroon-500: #b3363c;
  --color-maroon-600: #932227;
  --color-maroon-700: #811419;
  --color-maroon-800: #641216;
  --color-maroon-900: #4a0d13;
  --color-maroon-950: #290508;
  
  --color-gold-50: #fbf9f0;
  --color-gold-100: #f7f1cd;
  --color-gold-200: #f0e2a2;
  --color-gold-300: #ebd275;
  --color-gold-400: #e4be54;
  --color-gold-500: #d4af37;
  --color-gold-600: #b59226;
  --color-gold-700: #90721c;
  --color-gold-800: #6b5413;
  --color-gold-900: #4b3a09;
  --color-gold-950: #2d2203;
  
  --color-sandalwood-50: #fbfaf6;
  --color-sandalwood-100: #f5f2eb;
  --color-sandalwood-200: #ebe5d7;
  --color-sandalwood-300: #decfae;
  --color-sandalwood-400: #c8b394;
  --color-sandalwood-500: #ac9475;
  --color-sandalwood-600: #8f785b;
  --color-sandalwood-700: #745f47;
  --color-sandalwood-800: #5a4a37;
  --color-sandalwood-900: #211c16;
  --color-sandalwood-950: #130f0b;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

/* Reset & Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-sandalwood-50);
  color: var(--color-sandalwood-900);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-sandalwood-950);
}

a {
  color: var(--color-saffron-600);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--color-saffron-700);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Custom Micro-interactions and Spiritual Animations */
@keyframes diya-glow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4), 0 0 20px rgba(224, 90, 16, 0.2);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3), inset 0 0 8px rgba(224, 90, 16, 0.1);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 16px rgba(212, 175, 55, 0.6), 0 0 28px rgba(224, 90, 16, 0.4);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5), inset 0 0 12px rgba(224, 90, 16, 0.2);
    transform: scale(1.03);
  }
}

@keyframes bell-swing {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-12deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-5deg); }
}

@keyframes incense-smoke {
  0% {
    transform: translateY(0) scaleX(1) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.4;
  }
  50% {
    transform: translateY(-50px) scaleX(1.2) rotate(15deg);
    opacity: 0.2;
  }
  75% {
    transform: translateY(-100px) scaleX(0.8) rotate(-15deg);
    opacity: 0.1;
  }
  100% {
    transform: translateY(-200px) scaleX(0.5) rotate(5deg);
    opacity: 0;
  }
}

.animate-diya {
  animation: diya-glow 3s infinite ease-in-out;
}

.animate-bell-swing:hover {
  animation: bell-swing 1.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  transform-origin: top center;
}

.incense-container {
  overflow: hidden;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.incense-line {
  position: absolute;
  border-radius: 55%;
  animation: incense-smoke 6s infinite linear;
}

/* Glassmorphism Temple Plate */
.glass-temple {
  background: rgba(251, 250, 246, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.dark-glass-temple {
  background: rgba(33, 28, 22, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-sandalwood-100);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold-500);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-saffron-50);
}

/* Layout Container & Grids */
.container-max {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container-max {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .container-max {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Common Components & Styles */
.banner-ribbon {
  background-color: var(--color-maroon-950);
  color: var(--color-gold-400);
  padding: 0.375rem 1rem;
  text-align: center;
  font-size: 11px;
  font-family: monospace;
  font-weight: bold;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.banner-decor {
  height: 4px;
  width: 100%;
  background: linear-gradient(to right, var(--color-saffron-500), var(--color-gold-400), var(--color-saffron-600));
}

/* Main Header */
.brand-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  background-color: var(--color-maroon-950);
  color: var(--color-gold-50);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: linear-gradient(to right, var(--color-saffron-500), var(--color-saffron-600));
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(224, 90, 16, 0.3);
  transition: all 0.2s ease;
  text-align: center;
}
.btn-primary:hover {
  background: linear-gradient(to right, var(--color-saffron-600), var(--color-saffron-700));
  box-shadow: 0 10px 20px -3px rgba(224, 90, 16, 0.4);
  transform: translateY(-1px);
  color: white;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background-color: transparent;
  color: var(--color-gold-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.btn-secondary:hover {
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--color-gold-300);
}

.btn-maroon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-maroon-900);
  color: var(--color-gold-400);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: center;
}
.btn-maroon:hover {
  background-color: var(--color-maroon-950);
  color: var(--color-gold-300);
}

/* Card Transitions */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Responsive Utilities */
.hidden-mobile {
  display: none;
}
@media (min-width: 640px) {
  .hidden-mobile {
    display: block;
  }
}

/* WooCommerce Overrides */
.woocommerce-message, .woocommerce-info {
  background-color: var(--color-saffron-50);
  border-top-color: var(--color-saffron-500);
  color: var(--color-saffron-950);
  border-radius: 12px;
  font-size: 13px;
  padding: 1rem 1.5rem !important;
}
.woocommerce-error {
  background-color: var(--color-maroon-50);
  border-top-color: var(--color-maroon-500);
  color: var(--color-maroon-950);
  border-radius: 12px;
  font-size: 13px;
  padding: 1rem 1.5rem !important;
}

/* Core SVG Dimensions Constraint Fallbacks */
svg {
  max-width: 100%;
}
.brand-logo-container svg {
  max-width: 20px !important;
  max-height: 20px !important;
}
.brand-header svg {
  display: inline-block;
  vertical-align: middle;
}

