/* === VARIABLES & BASE === */
:root {
  --chocolate-dark: #352620; /* Updated from #241102 */
  --chocolate-medium: #352620; /* Updated from #241102 */
  --chocolate-light: #58534f; /* Used for cards - Remains unchanged */
  --chocolate-highlight: #D2691E; /* Orange color - Remains unchanged */
  --text-light: #F5F5F5; /* White text */
  --text-muted-custom: #BCAAA4; /* Muted text */
  --card-bg: var(--chocolate-light); /* Added for consistency in shop */
  --card-border: #706a65; /* Added for shop */
  --primary: var(--chocolate-highlight); /* Added */
  --border-radius-sm: 0.2rem; /* Added for shop */
  --border-radius: 0.5rem; /* Added for shop */
  --border-radius-lg: 0.8rem; /* Added for shop */
}

body {
  font-family: 'Lora', serif; /* Original font */
  background: var(--chocolate-dark);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif; /* Original font */
  color: var(--chocolate-highlight);
  font-weight: 700;
}

a {
    color: var(--chocolate-highlight);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--text-light);
}


/* === HERO VIDEO & OVERLAY === */
.hero-section {
  position: relative;
  height: 100vh;
  z-index: 1;
}

.video-background-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: -2;
}

.video-background {
  width: 100%; height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(46,27,19,0.6); /* This overlay color might need adjustment if it clashes with the new theme. Original: rgba(46,27,19,0.6) which is based on a darker brown. New theme #352620 (53,38,32). A possible adjusted overlay: rgba(53,38,32,0.6) */
  z-index: -1;
}

.hero-section .container {
  position: relative;
  z-index: 1;
  padding-top: 20vh; /* Default padding for desktop */
}

/* === SECTION HEADINGS & UTILITY TEXT === */
.section-heading {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  text-align: center;
  color: var(--chocolate-highlight);
}

.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--chocolate-highlight);
  margin: 0.5rem auto 0;
}

.text-light-accent { color: var(--text-light); opacity: 0.9; }
.lead { color: var(--text-muted-custom); }

.section-bg-alt {
  background: var(--chocolate-medium);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.footer {
  background: var(--chocolate-dark);
  color: var(--text-muted-custom);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.shop-section {
  padding: 60px 0 40px;
  background-color: var(--chocolate-dark);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

#about, #contact {
    position: relative;
    overflow: hidden;
    z-index: 0;
}


/* === BUTTON GLOW === */
.btn-glow {
  position: relative;
  z-index: 1;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -5px; bottom: -5px;
  left: -5px; right: -5px;
  border-radius: inherit;
  filter: blur(8px);
  background: rgba(210,105,30,0.3);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.btn-glow:hover::after { opacity: 1; }

/* === ABOUT SECTION IMAGE & LIST === */
.modern-img { width: 100%; border-radius: .5rem; }
.modern-list li { margin-bottom: .5rem; }
.modern-list i { color: var(--chocolate-highlight);}

/* === TESTIMONIALS === */
.testimonial-card {
  background: var(--chocolate-light);
  color: var(--text-light);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
}

.testimonial-img {
  width: 100px; height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.testimonial-text    { font-style: italic; margin-bottom: 1rem; }
.testimonial-name    { color: var(--chocolate-highlight); margin-bottom: .25rem; }
.testimonial-service { color: var(--text-muted-custom); font-size: .9rem; }

/* === CONTACT CARDS & FORMS === */
.contact-form-wrapper,
.contact-info-wrapper {
  background: var(--chocolate-light);
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

.form-label { color: var(--text-muted-custom); }

.form-control,
.form-select {
  background: var(--chocolate-medium);
  color: var(--text-light);
  border: 1px solid var(--chocolate-light);
  border-radius: .5rem;
}

.form-control:focus,
.form-select:focus {
  background-color: var(--chocolate-medium);
  color: var(--text-light);
  border-color: var(--chocolate-highlight);
  box-shadow: 0 0 0 .25rem rgba(210,105,30,0.25);
}

.form-control::placeholder { color: var(--text-muted-custom); opacity: 0.7; }
.form-control::-ms-input-placeholder { color: var(--text-muted-custom); opacity: 0.7; }
.form-control:-ms-input-placeholder { color: var(--text-muted-custom); opacity: 0.7;}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23BCAAA4' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.qr-code-container img { max-width: 75%; height: auto; }

/* === SOCIAL ICONS === */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icon {
  font-size: 1.25rem;
  color: var(--text-light);
  transition: color .3s;
}
.social-icon:hover {
  color: var(--chocolate-highlight);
}

/* === BACK TO TOP BUTTON === */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 40px; height: 40px;
  background: var(--chocolate-highlight);
  color: var(--text-light);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
  opacity: 0;
  visibility: hidden;
}
.back-to-top:hover {
    background-color: #E67E22;
    opacity: 1;
}

/* === NAVBAR & BUTTON COLORS === */
.navbar {
  transition: background-color 0.3s ease-in-out;
  padding-top: 1rem;
  padding-bottom: 1rem;
  z-index: 1030;
  box-shadow: none !important;
  background-color: var(--chocolate-dark); /* Default opaque background for all pages/scroll */
}

/* Transparent navbar for DESKTOP ONLY, when at the top of the hero section */
.navbar.navbar-transparent-on-hero {
    background-color: transparent !important;
}


.navbar-dark .navbar-toggler {
    border-color: rgba(210, 105, 30, 0.5);
}
.navbar-dark .navbar-toggler-icon {
     background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(210, 105, 30, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-primary {
  background-color: var(--chocolate-highlight) !important;
  border-color:    var(--chocolate-highlight) !important;
  color:           var(--text-light)          !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #E67E22 !important;
  border-color:     #E67E22 !important;
  color:            var(--text-light) !important;
  box-shadow: 0 0 8px rgba(210,105,30,0.5);
}

.btn-outline-light { /* For Mute button */
  color: var(--text-light) !important;
  border-color: var(--text-light) !important;
}
.btn-outline-light:hover,
.btn-outline-light:focus {
  color: var(--chocolate-dark) !important;
  background-color: var(--text-light) !important;
  border-color: var(--text-light) !important;
}


.btn-outline-primary {
  color:         var(--chocolate-highlight)!important;
  border-color:  var(--chocolate-highlight)!important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--chocolate-highlight)!important;
  color:            var(--text-light)!important;
  box-shadow: 0 0 8px rgba(210,105,30,0.3);
}

.text-primary {
  color: var(--chocolate-highlight)!important;
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--text-light)!important;
  transition: color 0.3s;
  position: relative;
  padding: 0.5rem 1rem;
  font-weight: 500;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--chocolate-highlight)!important;
}
.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--chocolate-highlight)!important;
  transition: width 0.3s ease-in-out;
}
.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
  width: calc(100% - 2rem);
}

/* === TWINKLING STAR ANIMATIONS === */
@keyframes blink {
  0% { opacity: 0.1; transform: scale(0.8); }
  50% { opacity: 0.7; transform: scale(1.1); }
  100% { opacity: 0.1; transform: scale(0.8); }
}

.twinkling-star-global {
  position: fixed;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  animation: blink 2s ease-in-out infinite alternate;
  z-index: -10;
}

.twinkling-star-in-section {
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  animation: blink 2.2s ease-in-out infinite alternate;
  z-index: 0;
}


/* === LOGO ALIGNMENT === */
.navbar .brand-logo {
  height: 100px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  transition: height 0.3s ease-in-out;
}
.footer-logo-img {
  height: 180px;
  width: auto;
  display: block;
  margin: 0 auto;
  transition: height 0.3s ease-in-out;
}

/* === RESPONSIVE TWEAKS (General) === */
@media (max-width: 991.98px) { /* Mobile and Tablet */
  .hero-section .container { 
    padding-top: 25vh; /* Adjusted for mobile text positioning */
  }
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.25rem; }
  .navbar .brand-logo { height: 70px; }
  .section-heading { font-size: 2.2rem; }

  .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: var(--chocolate-dark) !important; /* Crucial: Mobile navbar always opaque */
  }

  .navbar.navbar-transparent-on-hero {
      background-color: var(--chocolate-dark) !important;
  }

  .navbar.navbar-menu-is-open {
    background-color: var(--chocolate-dark) !important;
  }

  .navbar-collapse {
    text-align: center;
    background-color: var(--chocolate-dark); 
    padding: 1rem 0;
    margin-top: 0;
    border-radius: 0;
    border-top: 1px solid rgba(210, 105, 30, 0.3);
    width: 100%;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
  }

  .navbar-nav {
    width: 100%;
    justify-content: center;
  }
  .navbar-dark .navbar-nav .nav-link::after {
    display: none;
  }

  #mobile-cart-icon.nav-link {
      padding-right: 0.5rem;
  }
  .navbar-nav .nav-item .btn-sm {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section { height: auto; min-height: 70vh; }
  .hero-section .container { 
    padding-top: 28vh; /* Further adjust for smaller mobile screens */
    width: 90%; 
    margin-left: auto; 
    margin-right: auto; 
  }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .btn-lg { padding: .5rem 1.5rem; font-size: .9rem; }
  .navbar .brand-logo { height: 60px; }
  .footer-logo-img { height: 120px; }
  .section-heading { font-size: 1.8rem; }
  .testimonial-card, .contact-form-wrapper, .contact-info-wrapper { padding: 1.5rem; }
  .col-lg-6.mt-4.mt-lg-0 { margin-top: 1.5rem !important; }
}

@media (max-width: 575.98px) {
  .hero-section { min-height: 65vh; }
  .hero-section .container { 
    padding-top: 30vh; /* Specific adjustment for very small screens */
  }
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 0.9rem; }
  .navbar .brand-logo { height: 50px; }
  .footer-logo-img { height: 100px; }
}

.contact-info-wrapper.h-100 { display: flex; flex-direction: column; justify-content: center; }
.contact-info-wrapper.h-100 .qr-code-container { flex-grow: 0; }
.contact-info-wrapper.h-100 .social-icons { margin-top: auto; }

.form-control::placeholder { color: var(--text-muted-custom); opacity: 1; }
.form-control::-ms-input-placeholder { color: var(--text-muted-custom); }
.form-control:-ms-input-placeholder { color: var(--text-muted-custom); }

/* === JS DRIVEN CAROUSEL STYLES (Services) - RESPONSIVENESS FIX === */
.carousel-navigation-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 0 80px; /* Provides space for buttons */
  box-sizing: border-box;
}
.carousel-outer-container {
  width: 100%; /* Changed from calc() to be responsive */
  overflow: hidden;
  margin: 0; /* Changed from 0 10px */
}
.carousel-container {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  transition: transform 0.6s linear;
  touch-action: pan-y; /* Allows vertical page scroll, while capturing horizontal for swipe */
}
.carousel-control-btn {
  background: var(--chocolate-highlight);
  color: var(--text-light);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, transform 0.2s;
  z-index: 10;
  position: absolute; /* Positioned within the wrapper's padding */
  top: 50%;
  transform: translateY(-50%);
}
.prev-btn { left: 0; }
.next-btn { right: 0; }

.carousel-control-btn:hover {
  background-color: #E67E22;
  transform: translateY(-50%) scale(1.1); /* Adjusted for absolute positioning */
}
.carousel-card-container {
  flex-shrink: 0;
  height: 350px;
  perspective: 1500px;
  /* Default to 4 cards on XL screens */
  flex: 0 0 calc(25% - 15px); /* 20px gap * 3 cards / 4 = 15px */
}
.carousel-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.carousel-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.4, 0.0, 0.2, 1);
  cursor: pointer;
  border-radius: 15px;
  background-color: var(--chocolate-light);
  z-index: 1;
}
.carousel-card-container:hover .carousel-card {
  transform: rotateY(180deg);
}
.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-radius: 15px;
  transform: translateZ(0px);
}
.card-front {
  color: var(--text-light);
  padding:0;
}
.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 15px;
}
.card-front-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    box-sizing: border-box;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 1;
}
.card-front-title-overlay h4 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
.card-back {
  background: var(--chocolate-highlight);
  color: var(--text-light);
  transform: rotateY(180deg) translateZ(1px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border-radius: 15px;
}
.card-back h4 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.card-back p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-light);
}

/* Responsive Carousel - Large desktops (show 3 cards) */
@media (max-width: 1199.98px) {
    .carousel-card-container {
        flex-basis: calc(33.333% - 14px); /* 20px gap * 2 cards / 3 = ~14px */
    }
}

/* Responsive Carousel - Medium devices/tablets (show 2 cards) */
@media (max-width: 991.98px) {
    .carousel-navigation-wrapper {
        padding: 0 55px; /* Adjust padding for smaller buttons */
    }
    .carousel-control-btn {
        width: 35px;
        height: 35px;
    }
    .carousel-card-container {
        flex-basis: calc(50% - 10px); /* 20px gap * 1 card / 2 = 10px */
        height: 320px;
    }
}

/* Responsive Carousel - Small devices/phones (show 1 card, hide buttons for swipe) */
@media (max-width: 767.98px) {
    .carousel-navigation-wrapper {
        padding: 0; /* No padding needed as buttons are hidden */
    }
    .carousel-control-btn {
        display: none; /* Hide buttons on mobile, rely on swipe */
    }
    .carousel-card-container {
        flex-basis: 100%; /* Show one full card */
        height: 320px;
    }
    .card-front-title-overlay h4, .card-back h4 {
        font-size: 1.1rem;
    }
    .card-back p {
        font-size: 0.85rem;
    }
}

/* Responsive Carousel - Extra small devices */
@media (max-width: 575.98px) {
    .carousel-card-container {
        height: 280px;
    }
    .card-front-title-overlay {
        padding: 8px;
    }
    .card-front-title-overlay h4 {
        font-size: 1rem;
    }
}


/* === SHOP PAGE STYLES === */
.product-grid .d-flex {
    align-items: stretch;
}
.product-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.product-image {
  width: 100%;
  aspect-ratio: 1 / 1; 
  object-fit: cover; 
  cursor: pointer; 
}
.product-info {
  padding: 15px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-name {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 8px;
}
.product-description {
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  color: var(--text-muted-custom);
  margin-bottom: 15px;
  line-height: 1.5;
  flex-grow: 1;
}
.btn-add-cart {
  padding: 5px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  width: auto;
  margin: 0 auto;
  display: inline-block;
  line-height: 1.5;
}
.btn-add-cart i {
    margin-right: 5px;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 350px;
  max-width: 90%;
  height: 100%;
  background-color: var(--chocolate-dark);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  transition: right 0.4s ease-in-out, visibility 0s 0.4s;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--chocolate-light);
  visibility: hidden;
}
.cart-panel.open {
  right: 0;
  visibility: visible;
  transition: right 0.4s ease-in-out, visibility 0s 0s;
}
.cart-title {
  font-family: 'Cinzel', serif;
  padding: 18px 20px;
  margin: 0;
  font-size: 1.4rem;
  color: var(--chocolate-highlight);
  background-color: var(--chocolate-medium);
  border-bottom: 1px solid var(--chocolate-light);
  text-align: center;
}
.btn-close-cart {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted-custom);
  cursor: pointer;
  line-height: 1;
  padding: 5px;
}
.btn-close-cart:hover {
  color: var(--text-light);
}
.cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 15px 20px;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--chocolate-light);
  color: var(--text-light);
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item-name {
  flex-grow: 1;
  margin-right: 10px;
  font-size: 0.9rem;
  font-family: 'Lora', serif;
}
.btn-remove-item {
  background: none;
  border: none;
  color: var(--text-muted-custom);
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
}
.btn-remove-item:hover {
  color: #dc3545;
}
.cart-empty-message {
    text-align: center;
    color: var(--text-muted-custom);
    margin-top: 30px;
    font-style: italic;
}
.cart-footer {
  padding: 20px;
  background-color: var(--chocolate-medium);
  border-top: 1px solid var(--chocolate-light);
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}
.cart-redirect-message {
    color: var(--text-muted-custom);
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 10px !important;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}
.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.upi-section {
  margin-top: 40px;
  padding: 30px 20px;
  background-color: transparent;
  border-radius: var(--border-radius);
  position: relative;
  z-index: 1;
}
.upi-section h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  color: var(--chocolate-highlight);
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 15px;
  text-align: center;
}
.upi-section p {
    color: var(--text-muted-custom);
    margin-bottom: 15px;
    font-size: 0.9rem;
}
.upi-qr-code {
  max-width: 350px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 15px auto;
  border: 4px solid var(--text-light);
  border-radius: var(--border-radius-sm);
  background-color: white;
  padding: 5px;
  box-sizing: border-box;
}
.upi-id {
  font-size: 1rem;
  color: var(--text-light);
}
.upi-id strong {
    color: var(--chocolate-highlight);
    font-weight: 700;
}

#header-cart-button i,
#mobile-cart-icon i,
#desktop-cart-link i {
    vertical-align: middle;
}

/* Image Popup Modal Styles */
.image-popup-modal {
  display: none;
  position: fixed;
  z-index: 1060; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  padding-top: 60px; 
  box-sizing: border-box;
}

.image-popup-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  max-height: 80vh; 
  object-fit: contain; 
}

#imagePopupCaption {
  margin: 10px auto 0;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: auto; 
}

.image-popup-modal, .image-popup-content {
  animation-name: zoom;
  animation-duration: 0.4s;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

.image-popup-close-btn {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.image-popup-close-btn:hover,
.image-popup-close-btn:focus {
  color: #bbb;
  text-decoration: none;
}


@media (max-width: 991.98px) { /* Shop Page Responsive Tweaks */
    .product-card .product-name { font-size: 1rem; }
    .product-card .product-description { font-size: 0.8rem; }
    .cart-panel { width: 320px; }
}
@media (max-width: 767.98px) { /* Shop Page Responsive Tweaks */
    .category-title { font-size: 1.8rem; }
    .cart-panel { width: 300px; }
    .upi-qr-code {
        max-width: 220px;
    }
    .image-popup-content {
      width: 90%; 
    }
}
@media (max-width: 575.98px) { /* Shop Page Responsive Tweaks */
    .shop-section { padding-top: 40px; }
    .category-title { font-size: 1.6rem; }
    .product-info { padding: 10px; }
    .product-name { font-size: 0.95rem; }
    .product-description { font-size: 0.75rem; }
    .btn-add-cart { font-size: 0.8rem; padding: 4px 10px;}
    .cart-panel { width: 100%; max-width: 280px; }
    .cart-title { font-size: 1.2rem; padding: 15px;}
    .btn-close-cart { top: 12px; right: 12px; font-size: 1.3rem;}
    .cart-item-name { font-size: 0.85rem; }
    .btn-remove-item { font-size: 1rem; }
    .cart-footer { padding: 15px; }
    .upi-section { padding: 20px 15px; }
    .upi-qr-code {
        max-width: 200px;
    }
    .upi-id { font-size: 1.1rem; } 
}

/* === NUMEROLOGY TOOL STYLES === */

#numerology-tool {
    position: relative;
    overflow: hidden;
    z-index: 0;
}

#numerology-tool-container {
    background: var(--chocolate-light);
    color: var(--text-light);
    padding: 2rem 2.5rem;
    border-radius: var(--border-radius-lg);
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

#results-container {
    color: var(--text-light);
    transition: opacity 0.5s ease-in-out;
}

.results-table {
    width: 100%;
    margin-top: 1.5rem;
    border-collapse: separate;
    border-spacing: 0 10px;
    position: relative;
    z-index: 1;
}

.results-table th,
.results-table td {
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
}

.results-table th {
    font-family: 'Cinzel', serif;
    color: var(--primary);
    font-size: 1.2rem;
    width: 35%;
}

.results-table td {
    background-color: var(--chocolate-dark);
    border-radius: var(--border-radius);
    color: var(--text-muted-custom);
}

.results-table .number-highlight {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    display: block;
    text-align: center;
}

.results-header {
    font-family: 'Cinzel', serif;
    color: var(--primary);
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.results-intro {
    text-align: center;
    color: var(--text-muted-custom);
    margin-bottom: 2rem;
    font-style: italic;
}

.error-message {
    color: #ffc107; /* A warning yellow, fits the theme better than red */
    text-align: center;
    margin-top: 1.5rem;
    font-weight: bold;
}

/* === RESPONSIVE TWEAKS FOR TOOL === */
@media (max-width: 767.98px) {
    #numerology-tool-container {
        padding: 1.5rem;
    }

    .results-table th,
    .results-table td {
        display: block;
        width: 100%;
        text-align: center;
    }

    .results-table th {
        padding-bottom: 5px;
    }

    .results-table td {
        margin-bottom: 10px;
        padding: 15px;
    }
}
