:root {
    --sacred-maroon: #7B1E1E;
    --sacred-dark: #4A0E0E;
    --sacred-gold: #D4A017;
    --sacred-saffron: #E67E22;
    --sacred-cream: #FFF8E7;
    --sacred-orange: #C45C00;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body,
.site-header,
.navbar,
.footer-sacred,
.btn-sacred,
.btn-gold,
.btn-hero-primary,
.product-card,
.category-card,
.why-card,
.hero-slide-inner,
.scroll-spy-nav,
.cta-section,
.section-title,
.title-underline {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* ===== Top navbar (menu top-right) ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

.top-nav-menu .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.top-nav-menu .nav-link:hover {
    color: var(--sacred-gold) !important;
    background: rgba(255, 255, 255, 0.1);
}

.top-nav-menu .nav-link.active {
    color: #fff !important;
    background: rgba(212, 160, 23, 0.35);
    font-weight: 600;
}

.top-nav-menu .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--sacred-gold);
    border-radius: 2px;
}

/* ===== Right-side vertical scroll-spy menu ===== */
.scroll-spy-nav {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1030;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    padding: 12px 8px;
    box-shadow: 0 4px 24px rgba(74, 14, 14, 0.15);
    border: 1px solid rgba(212, 160, 23, 0.3);
}

.scroll-spy-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scroll-spy-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    text-decoration: none;
    color: #888;
    border-radius: 20px;
    transition: all 0.35s ease;
    white-space: nowrap;
}

.scroll-spy-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: all 0.35s ease;
}

.scroll-spy-label {
    font-size: 0.8rem;
    font-weight: 500;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.35s ease, opacity 0.35s ease;
}

.scroll-spy-nav:hover .scroll-spy-label,
.scroll-spy-item.active .scroll-spy-label {
    max-width: 120px;
    opacity: 1;
}

.scroll-spy-item:hover {
    color: var(--sacred-maroon);
    background: var(--sacred-cream);
}

.scroll-spy-item.active {
    color: var(--sacred-maroon);
    background: var(--sacred-cream);
    font-weight: 600;
}

.scroll-spy-item.active .scroll-spy-dot {
    background: var(--sacred-gold);
    border-color: var(--sacred-maroon);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(212, 160, 23, 0.6);
}

.page-section {
    scroll-margin-top: 80px;
}

html {
    scroll-behavior: smooth;
}

/* Inner pages: hide scroll spy, show page nav only */
.page-inner .scroll-spy-nav {
    display: none;
}

/* Mobile scroll-spy: bottom horizontal bar */
@media (max-width: 991.98px) {
    .scroll-spy-nav {
        top: auto;
        bottom: 16px;
        right: 50%;
        transform: translateX(50%);
        border-radius: 40px;
        padding: 8px 12px;
    }

    .scroll-spy-list {
        flex-direction: row;
        gap: 2px;
    }

    .scroll-spy-item {
        padding: 6px 8px;
        flex-direction: column;
        gap: 2px;
    }

    .scroll-spy-label {
        display: none;
    }

    .scroll-spy-nav:hover .scroll-spy-label,
    .scroll-spy-item.active .scroll-spy-label {
        display: none;
    }

    .scroll-spy-dot {
        width: 8px;
        height: 8px;
    }

    .scroll-spy-item.active .scroll-spy-dot {
        transform: scale(1.5);
    }

    body.scroll-spy-enabled {
        padding-bottom: 70px;
    }
}

@media (max-width: 575.98px) {
    .top-nav-menu {
        text-align: center;
        padding: 0.5rem 0;
    }

    .top-nav-menu .nav-link {
        padding: 0.6rem 1rem !important;
    }
}

.bg-sacred { background-color: var(--sacred-maroon) !important; }
.bg-sacred-light { background-color: #F5E6D3 !important; }
.bg-cream { background-color: var(--sacred-cream); }
.text-sacred { color: var(--sacred-maroon) !important; }
.text-gold { color: var(--sacred-gold) !important; }
.border-sacred { border-color: var(--sacred-maroon) !important; }

.btn-sacred {
    background-color: var(--sacred-maroon);
    border-color: var(--sacred-maroon);
    color: #fff;
}
.btn-sacred:hover {
    background-color: var(--sacred-dark);
    border-color: var(--sacred-dark);
    color: #fff;
}
.btn-gold {
    background-color: var(--sacred-gold);
    border-color: var(--sacred-gold);
    color: #fff;
}
.btn-gold:hover {
    background-color: #B8860B;
    border-color: #B8860B;
    color: #fff;
}
.btn-outline-sacred {
    color: var(--sacred-maroon);
    border-color: var(--sacred-maroon);
}
.btn-outline-sacred:hover {
    background-color: var(--sacred-maroon);
    color: #fff;
}

.logo-img {
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 4px 8px;
}
.brand-text { font-family: 'Noto Serif Devanagari', serif; font-weight: 600; font-size: 1.1rem; }

/* ===== Hero — full-bleed pooja image carousel ===== */
.hero-carousel-section {
    padding: 0 !important;
    scroll-margin-top: 70px;
}

.hero-carousel {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    min-height: 100vh;
    min-height: 100dvh;
}

.hero-carousel .carousel-item {
    position: relative;
    overflow: hidden;
}

.hero-slide-bg {
    position: absolute;
    inset: -5%;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    transform: scale(1.06);
    transition: transform 8s ease-out;
    will-change: transform;
}

.hero-carousel .carousel-item.active .hero-slide-bg {
    animation: heroKenBurns 8s ease-out forwards;
}

@keyframes heroKenBurns {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: var(--theme-hero-overlay, linear-gradient(to right, rgba(20, 4, 4, 0.94) 0%, rgba(45, 10, 10, 0.82) 28%, rgba(74, 14, 14, 0.48) 48%, rgba(20, 4, 4, 0.22) 68%, rgba(20, 4, 4, 0.08) 100%)),
        linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 42%);
    pointer-events: none;
    z-index: 1;
    transition: background 0.4s ease;
}

.hero-slide-glow {
    position: absolute;
    inset: 0;
    background: var(--theme-hero-glow, radial-gradient(ellipse 60% 50% at 20% 80%, rgba(212, 160, 23, 0.18) 0%, transparent 60%), radial-gradient(ellipse 40% 35% at 85% 20%, rgba(230, 126, 34, 0.12) 0%, transparent 55%));
    pointer-events: none;
    z-index: 2;
    transition: background 0.4s ease;
}

.hero-slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 6rem 5vw 5rem;
    text-align: left;
    z-index: 3;
}

.hero-slide-inner {
    max-width: 720px;
    padding: 2.25rem 2.5rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.carousel-item.active .hero-slide-inner > *,
.carousel-item.active .hero-slide-inner-premium > * {
    animation: heroFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.carousel-item.active .hero-badge { animation-delay: 0.05s; }
.carousel-item.active .hero-premium-badge { animation-delay: 0.05s; }
.carousel-item.active .hero-brand-premium-line:nth-child(1) { animation-delay: 0.1s; }
.carousel-item.active .hero-brand-premium-line:nth-child(2) { animation-delay: 0.18s; }
.carousel-item.active .hero-premium-divider { animation-delay: 0.24s; }
.carousel-item.active .hero-premium-heading { animation-delay: 0.3s; }
.carousel-item.active .hero-premium-desc { animation-delay: 0.38s; }
.carousel-item.active .btn-hero-premium { animation-delay: 0.46s; }
.carousel-item.active .hero-slide-title { animation-delay: 0.15s; }
.carousel-item.active .hero-slide-subtitle { animation-delay: 0.28s; }
.carousel-item.active .hero-slide-actions { animation-delay: 0.4s; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sacred-gold);
    background: rgba(212, 160, 23, 0.12);
    border: 1px solid rgba(212, 160, 23, 0.35);
    border-radius: 999px;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sacred-gold);
    box-shadow: 0 0 10px var(--sacred-gold);
}

.hero-slide-title {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.hero-slide-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1.75rem;
    max-width: 560px;
}

.hero-slide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--sacred-dark);
    background: linear-gradient(135deg, #f0c94a 0%, var(--sacred-gold) 50%, #c9920f 100%);
    border: none;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(212, 160, 23, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-hero-primary:hover {
    color: var(--sacred-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(212, 160, 23, 0.55);
}

.btn-hero-primary i {
    transition: transform 0.3s ease;
}

.btn-hero-primary:hover i {
    transform: translateX(4px);
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    z-index: 6;
}

.hero-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--sacred-gold), #f0c94a);
    box-shadow: 0 0 12px rgba(212, 160, 23, 0.8);
}

.hero-progress-bar.is-running {
    animation: heroProgress 6s linear forwards;
}

@keyframes heroProgress {
    from { width: 0; }
    to   { width: 100%; }
}

.hero-indicators {
    margin-bottom: 2.5rem;
    z-index: 5;
    gap: 0.5rem;
}

.hero-indicators button {
    width: 36px;
    height: 4px;
    border-radius: 4px;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    opacity: 1;
    transition: all 0.4s ease;
}

.hero-indicators button.active {
    width: 48px;
    background: var(--sacred-gold);
    box-shadow: 0 0 12px rgba(212, 160, 23, 0.6);
}

.hero-slide-counter {
    position: absolute;
    right: 5vw;
    bottom: 3.5rem;
    z-index: 5;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.08em;
}

.hero-slide-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sacred-gold);
}

.hero-slide-divider {
    margin: 0 0.25rem;
    opacity: 0.5;
}

.hero-control {
    width: 52px;
    height: 52px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    opacity: 0.9;
    color: #fff;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    z-index: 5;
}

.hero-control:hover {
    background: rgba(212, 160, 23, 0.25);
    border-color: rgba(212, 160, 23, 0.5);
    color: #fff;
    opacity: 1;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.hero-scroll-hint i {
    font-size: 1.1rem;
    animation: heroBounce 2s ease-in-out infinite;
}

.hero-scroll-hint:hover {
    color: var(--sacred-gold);
}

@keyframes heroBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

.section-title {
    font-family: 'Noto Serif Devanagari', serif;
    color: var(--sacred-maroon);
    font-weight: 600;
}
.title-underline {
    width: 60px;
    height: 3px;
    background: var(--sacred-gold);
    margin-bottom: 1rem;
}

.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 30, 30, 0.15) !important;
}
.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.category-card {
    background: #fff;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s;
}
.category-card:hover {
    border-color: var(--sacred-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.category-icon { font-size: 2.5rem; color: var(--sacred-maroon); }
.category-img { height: 120px; width: 100%; max-width: 180px; object-fit: cover; border-radius: 12px; border: 2px solid var(--sacred-gold); }

.why-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.why-icon { font-size: 2rem; color: var(--sacred-gold); }

.about-img, .about-page-logo {
    max-height: 220px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(123, 30, 30, 0.12);
}
.product-detail-img { max-height: 450px; object-fit: cover; width: 100%; }

.cta-section {
    background: linear-gradient(135deg, var(--sacred-maroon), var(--sacred-dark));
}

.footer-sacred {
    background: var(--sacred-dark);
    color: #ddd;
}
.footer-logo {
    max-height: 100px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 6px 12px;
}
.footer-links a { color: #ccc; text-decoration: none; }
.footer-links a:hover { color: var(--sacred-gold); }

.contact-info-card {
    background: var(--sacred-cream);
    border-radius: 12px;
    border-left: 4px solid var(--sacred-gold);
}
.map-container { overflow: hidden; }

.page-header { border-bottom: 3px solid var(--sacred-gold); }

/* ===== Inner page breadcrumb & back navigation ===== */
.page-breadcrumb-bar {
    position: sticky;
    top: 56px;
    z-index: 1035;
    box-shadow: 0 2px 8px rgba(74, 14, 14, 0.06);
}

.breadcrumb-sacred {
    --bs-breadcrumb-divider: '›';
    font-size: 0.95rem;
}

.breadcrumb-sacred .breadcrumb-item a {
    color: var(--sacred-maroon);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-sacred .breadcrumb-item a:hover {
    color: var(--sacred-dark);
    text-decoration: underline;
}

.breadcrumb-sacred .breadcrumb-item.active {
    color: #666;
}

.back-home-link {
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .page-breadcrumb-bar .container {
        flex-direction: column;
        align-items: stretch !important;
    }

    .back-home-link {
        width: 100%;
        text-align: center;
    }
}

/* ===== Floating WhatsApp (clickable on mobile only) ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1050;
}

.whatsapp-mobile-link {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
}

.whatsapp-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 1.85rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    opacity: 0.92;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 768px) {
    .whatsapp-mobile-link {
        pointer-events: auto;
        cursor: pointer;
    }

    .whatsapp-float-btn:active {
        transform: scale(0.95);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 88px;
        left: 16px;
    }

    .whatsapp-float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .hero-carousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item {
        min-height: 88vh;
        min-height: 88dvh;
    }

    .hero-slide-content {
        align-items: flex-end;
        justify-content: center;
        padding: 5.5rem 1.25rem 4.5rem;
        text-align: center;
        overflow: visible;
    }

    .hero-slide-inner,
    .hero-slide-inner-premium {
        overflow: visible;
    }

    .hero-slide-inner:not(.hero-slide-inner-premium) {
        max-width: 100%;
        padding: 1.5rem 1.25rem;
        border-radius: 20px;
    }

    .hero-slide-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-slide-actions {
        justify-content: center;
    }

    .hero-slide-counter {
        right: 1.25rem;
        bottom: 2.75rem;
        font-size: 0.8rem;
    }

    .hero-slide-current { font-size: 1.2rem; }

    .hero-scroll-hint {
        display: none;
    }

    .logo-img { height: 40px; max-width: 160px; }
    .brand-text { font-size: 0.9rem; }
    .hero-control { display: none; }
}

/* ===== Mobile theme floating button (also in style.css for server reliability) ===== */
.theme-switcher-mobile {
    display: flex;
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 1055;
}

@media (max-width: 768px) {
    .theme-switcher-mobile {
        bottom: 20px;
        right: 16px;
    }
}

@media (min-width: 992px) {
    .theme-switcher-mobile {
        display: none !important;
    }
}

.theme-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    background: linear-gradient(145deg, #7B1E1E, #4A0E0E);
    border: 2px solid #D4AF37;
    color: #FFFFFF;
    -webkit-appearance: none;
    appearance: none;
}

.theme-fab i,
.theme-fab i::before {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

html[data-theme="green"] .theme-fab {
    background: linear-gradient(145deg, #1E6B3A, #145a2e);
    border-color: rgba(255, 255, 255, 0.5);
}
