/* =============================================================
   PujaSanskriti - Main CSS Design System
   ============================================================= */

/* ── 1. CSS Custom Properties ──────────────────────────────── */
:root {
    /* Brand Colors */
    --ps-saffron:        #FF6B00;
    --ps-saffron-light:  #FF8C38;
    --ps-saffron-dark:   #E05A00;
    --ps-maroon:         #8B1A1A;
    --ps-maroon-light:   #A52020;
    --ps-maroon-dark:    #6B1414;
    --ps-gold:           #C8962E;
    --ps-gold-light:     #E4B84A;
    --ps-gold-dark:      #A07820;
    --ps-ivory:          #FDF8F0;
    --ps-cream:          #FAF3E5;
    --ps-beige:          #F5E8D0;
    --ps-dark:           #1A1A1A;
    --ps-text:           #2D2D2D;
    --ps-text-muted:     #6B6B6B;
    --ps-border:         #E8DDD0;
    --ps-white:          #FFFFFF;

    /* Typography */
    --ps-font-serif:  'Playfair Display', Georgia, serif;
    --ps-font-sans:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ps-font-hindi:  'Noto Sans Devanagari', sans-serif;

    /* Shadows */
    --ps-shadow-sm:    0 2px 8px  rgba(139,26,26,.08);
    --ps-shadow:       0 4px 20px rgba(139,26,26,.12);
    --ps-shadow-lg:    0 8px 40px rgba(139,26,26,.18);
    --ps-shadow-hover: 0 12px 40px rgba(200,150,46,.25);

    /* Radii */
    --ps-radius:      12px;
    --ps-radius-sm:    8px;
    --ps-radius-lg:   20px;
    --ps-radius-pill: 50px;

    /* Transitions */
    --ps-transition:      all .3s cubic-bezier(.4,0,.2,1);
    --ps-transition-fast: all .15s ease;

    /* Navbar height */
    --navbar-h: 72px;
}

/* ── 2. Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--ps-font-sans);
    color: var(--ps-text);
    background-color: var(--ps-ivory);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--ps-font-serif);
    color: var(--ps-dark);
    line-height: 1.25;
    font-weight: 700;
}

a { color: var(--ps-saffron); text-decoration: none; transition: var(--ps-transition-fast); }
a:hover { color: var(--ps-saffron-dark); }

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

ul { list-style: none; padding: 0; margin: 0; }

/* ── 3. Utility Classes ─────────────────────────────────────── */
.text-saffron  { color: var(--ps-saffron) !important; }
.text-maroon   { color: var(--ps-maroon) !important; }
.text-gold     { color: var(--ps-gold) !important; }
.bg-ivory      { background-color: var(--ps-ivory) !important; }
.bg-cream      { background-color: var(--ps-cream) !important; }
.bg-saffron    { background-color: var(--ps-saffron) !important; }
.bg-maroon     { background-color: var(--ps-maroon) !important; }
.font-serif    { font-family: var(--ps-font-serif) !important; }
.font-hindi    { font-family: var(--ps-font-hindi) !important; }
.section-pad   { padding: 80px 0; }
.section-pad-sm{ padding: 50px 0; }

/* Section headings */
.section-title {
    font-family: var(--ps-font-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--ps-maroon);
    position: relative;
    display: inline-block;
    margin-bottom: 0.4rem;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--ps-saffron), var(--ps-gold));
    border-radius: 2px;
    margin-top: 8px;
}
.section-subtitle {
    color: var(--ps-text-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

/* ── 4. Navbar ──────────────────────────────────────────────── */
.navbar-ps {
    background: var(--ps-white);
    border-bottom: 2px solid var(--ps-border);
    padding: 0.35rem 0;
    min-height: var(--navbar-h);
    height: auto;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: var(--ps-transition);
    box-shadow: var(--ps-shadow-sm);
}

.navbar-ps.scrolled {
    box-shadow: var(--ps-shadow);
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(8px);
}

.navbar-ps .navbar-brand { padding: 0; }

/* Brand logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-om {
    font-size: 2.2rem;
    color: var(--ps-saffron);
    font-family: var(--ps-font-hindi);
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(255,107,0,.3));
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-name {
    font-family: var(--ps-font-serif);
    font-size: 1.25rem;
    color: var(--ps-maroon);
    letter-spacing: -.02em;
}
.brand-name strong { color: var(--ps-saffron); }
.brand-tagline {
    font-size: .65rem;
    color: var(--ps-text-muted);
    font-family: var(--ps-font-hindi);
    letter-spacing: .03em;
}

/* Nav links */
.navbar-ps .navbar-nav {
    display: flex;
    align-items: center;
}
@media (min-width: 992px) {
    .navbar-ps .navbar-nav {
        flex-wrap: nowrap;
    }
}
.navbar-ps .nav-item {
    white-space: nowrap;
    flex-shrink: 0;
}
.navbar-ps .nav-link {
    color: var(--ps-text) !important;
    font-weight: 500;
    font-size: .9rem;
    padding: .5rem .75rem !important;
    border-radius: var(--ps-radius-sm);
    transition: var(--ps-transition-fast);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}
.navbar-ps .nav-link:hover,
.navbar-ps .nav-link.active {
    color: var(--ps-saffron) !important;
    background: rgba(255,107,0,.07);
}

/* Dropdown */
.dropdown-menu-ps {
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow-lg);
    padding: .5rem;
    background: var(--ps-white);
    min-width: 220px;
}
.dropdown-menu-ps .dropdown-item {
    border-radius: var(--ps-radius-sm);
    padding: .5rem .85rem;
    font-size: .875rem;
    color: var(--ps-text);
    transition: var(--ps-transition-fast);
}
.dropdown-menu-ps .dropdown-item:hover {
    background: var(--ps-cream);
    color: var(--ps-saffron);
}

/* Search */
.search-wrapper {
    position: relative;
    width: 240px;
}
.search-input {
    border-radius: var(--ps-radius-pill) !important;
    border: 1.5px solid var(--ps-border) !important;
    padding: .45rem 2.5rem .45rem 1rem !important;
    font-size: .875rem;
    background: var(--ps-cream) !important;
    transition: var(--ps-transition-fast);
}
.search-input:focus {
    border-color: var(--ps-saffron) !important;
    background: var(--ps-white) !important;
    box-shadow: 0 0 0 3px rgba(255,107,0,.12) !important;
    outline: none;
}
.search-btn {
    position: absolute;
    right: .5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ps-saffron);
    cursor: pointer;
    font-size: .85rem;
    padding: 0;
}

/* Navbar action buttons */
.navbar-actions { display: flex; align-items: center; gap: .25rem; }

.nav-action-btn {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .45rem .65rem;
    border-radius: var(--ps-radius-sm);
    color: var(--ps-text);
    font-size: .875rem;
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--ps-transition-fast);
    position: relative;
}
.nav-action-btn:hover { color: var(--ps-saffron); background: rgba(255,107,0,.07); }
.nav-action-btn i { font-size: 1.1rem; }

.badge-count {
    position: absolute;
    top: 4px; right: 4px;
    background: var(--ps-saffron);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    border-radius: 50%;
    width: 16px; height: 16px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--ps-white);
}

.navbar-toggler { border: 1.5px solid var(--ps-border); border-radius: var(--ps-radius-sm); padding: .4rem .6rem; }
.navbar-toggler i { color: var(--ps-maroon); }

/* ── 5. Hero Section ────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--ps-maroon) 0%, #4A0E0E 40%, #2D0808 100%);
    min-height: 88vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: .06;
    background-image:
        radial-gradient(circle at 20% 30%, var(--ps-gold) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--ps-saffron) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8962E' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
}

.hero-om-bg {
    position: absolute;
    right: -2%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40vw;
    color: rgba(255,255,255,.025);
    font-family: var(--ps-font-hindi);
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.hero-content { position: relative; z-index: 2; }

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(200,150,46,.2);
    border: 1px solid rgba(200,150,46,.4);
    color: var(--ps-gold-light);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .35rem .9rem;
    border-radius: var(--ps-radius-pill);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: var(--ps-white);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.hero-title .highlight {
    color: var(--ps-gold-light);
    display: block;
}

.hero-subtitle {
    color: rgba(255,255,255,.75);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    max-width: 520px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── 6. Buttons ─────────────────────────────────────────────── */
.btn-ps-primary {
    background: linear-gradient(135deg, var(--ps-saffron), var(--ps-saffron-dark));
    color: var(--ps-white);
    border: none;
    border-radius: var(--ps-radius-pill);
    padding: .75rem 2rem;
    font-weight: 600;
    font-size: .95rem;
    transition: var(--ps-transition);
    box-shadow: 0 4px 15px rgba(255,107,0,.35);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    text-decoration: none;
}
.btn-ps-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,0,.45);
    color: var(--ps-white);
    background: linear-gradient(135deg, var(--ps-saffron-light), var(--ps-saffron));
}
.btn-ps-primary:active { transform: translateY(0); }

.btn-ps-outline {
    background: transparent;
    color: var(--ps-white);
    border: 2px solid rgba(255,255,255,.5);
    border-radius: var(--ps-radius-pill);
    padding: .7rem 1.9rem;
    font-weight: 600;
    font-size: .95rem;
    transition: var(--ps-transition);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    text-decoration: none;
}
.btn-ps-outline:hover {
    background: rgba(255,255,255,.1);
    border-color: var(--ps-white);
    color: var(--ps-white);
    transform: translateY(-2px);
}

.account-section .btn-ps-outline,
.cart-section .btn-ps-outline,
.checkout-section .btn-ps-outline,
.pandits-section .btn-ps-outline,
.product-detail-section .btn-ps-outline,
.btn-ps-outline-dark {
    background: transparent;
    color: var(--ps-maroon) !important;
    border: 1.5px solid var(--ps-border);
    border-radius: var(--ps-radius-pill);
    padding: .45rem 1.15rem;
    font-weight: 600;
    font-size: .85rem;
    transition: var(--ps-transition-fast);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    text-decoration: none;
}
.account-section .btn-ps-outline:hover,
.cart-section .btn-ps-outline:hover,
.checkout-section .btn-ps-outline:hover,
.pandits-section .btn-ps-outline:hover,
.product-detail-section .btn-ps-outline:hover,
.btn-ps-outline-dark:hover {
    background: var(--ps-cream);
    color: var(--ps-saffron) !important;
    border-color: var(--ps-saffron);
    transform: translateY(-1px);
}

.btn-ps-gold {
    background: linear-gradient(135deg, var(--ps-gold), var(--ps-gold-dark));
    color: var(--ps-white);
    border: none;
    border-radius: var(--ps-radius-pill);
    padding: .7rem 1.8rem;
    font-weight: 600;
    transition: var(--ps-transition);
    box-shadow: 0 4px 15px rgba(200,150,46,.35);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    text-decoration: none;
}
.btn-ps-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200,150,46,.5);
    color: var(--ps-white);
}

.btn-ps-maroon {
    background: linear-gradient(135deg, var(--ps-maroon), var(--ps-maroon-dark));
    color: var(--ps-white);
    border: none;
    border-radius: var(--ps-radius-pill);
    padding: .7rem 1.8rem;
    font-weight: 600;
    transition: var(--ps-transition);
    box-shadow: 0 4px 15px rgba(139,26,26,.3);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    text-decoration: none;
}
.btn-ps-maroon:hover {
    transform: translateY(-2px);
    color: var(--ps-white);
    box-shadow: 0 8px 25px rgba(139,26,26,.4);
}

/* ── 7. Trust Badges ────────────────────────────────────────── */
.trust-bar {
    background: var(--ps-white);
    border-top: 3px solid var(--ps-saffron);
    border-bottom: 1px solid var(--ps-border);
    padding: 1.5rem 0;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .5rem 1rem;
}
.trust-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--ps-cream), var(--ps-beige));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: var(--ps-saffron);
    flex-shrink: 0;
    border: 2px solid var(--ps-border);
}
.trust-text strong {
    display: block;
    font-size: .9rem;
    color: var(--ps-dark);
    font-weight: 600;
}
.trust-text span {
    font-size: .75rem;
    color: var(--ps-text-muted);
}

/* ── 8. Section backgrounds ─────────────────────────────────── */
.section-ivory  { background: var(--ps-ivory); }
.section-cream  { background: var(--ps-cream); }
.section-white  { background: var(--ps-white); }
.section-maroon {
    background: linear-gradient(135deg, var(--ps-maroon), var(--ps-maroon-dark));
    color: var(--ps-white);
}
.section-maroon .section-title,
.section-maroon h2,
.section-maroon h3 { color: var(--ps-white); }
.section-maroon .section-title::after { background: linear-gradient(90deg, var(--ps-gold-light), var(--ps-saffron-light)); }
.section-maroon .section-subtitle { color: rgba(255,255,255,.75); }

/* ── 9. Category Cards ──────────────────────────────────────── */
.category-card {
    background: var(--ps-white);
    border-radius: var(--ps-radius-lg);
    border: 1.5px solid var(--ps-border);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--ps-transition);
    cursor: pointer;
    display: block;
    text-decoration: none;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ps-shadow-hover);
    border-color: var(--ps-saffron);
    color: inherit;
}
.category-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--ps-cream), var(--ps-beige));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: var(--ps-saffron);
    border: 2px solid var(--ps-border);
    transition: var(--ps-transition);
}
.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--ps-saffron), var(--ps-saffron-dark));
    color: var(--ps-white);
    border-color: var(--ps-saffron);
}
.category-card h6 {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ps-dark);
    margin-bottom: .25rem;
}
.category-card small { color: var(--ps-text-muted); font-size: .75rem; }

/* ── 10. Flash Messages ─────────────────────────────────────── */
.flash-container {
    position: fixed;
    top: calc(var(--navbar-h) + 12px);
    right: 16px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-width: 380px;
}
.flash-message {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    border-radius: var(--ps-radius);
    background: var(--ps-white);
    box-shadow: var(--ps-shadow-lg);
    border-left: 4px solid;
    font-size: .875rem;
    animation: slideInRight .3s ease;
    transition: opacity .3s ease, transform .3s ease;
}
.flash-message span { flex: 1; }
.flash-message i { font-size: 1rem; flex-shrink: 0; }
.flash-close {
    background: none; border: none; cursor: pointer;
    color: var(--ps-text-muted); font-size: .8rem; padding: 0;
}
.flash-success { border-color: #28a745; }
.flash-success i { color: #28a745; }
.flash-danger, .flash-error { border-color: #dc3545; }
.flash-danger i, .flash-error i { color: #dc3545; }
.flash-warning { border-color: #ffc107; }
.flash-warning i { color: #ffc107; }
.flash-info { border-color: var(--ps-saffron); }
.flash-info i { color: var(--ps-saffron); }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}

/* ── 11. Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--ps-dark); color: rgba(255,255,255,.8); }

.footer-top { padding: 70px 0 50px; }

.footer-brand .brand-name { color: rgba(255,255,255,.9); }
.footer-brand .brand-om   { color: var(--ps-saffron); }
.footer-desc { color: rgba(255,255,255,.6); font-size: .875rem; line-height: 1.7; margin-bottom: 1.5rem; }

.social-links { display: flex; gap: .75rem; }
.social-link {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7);
    font-size: .9rem;
    transition: var(--ps-transition-fast);
    border: 1px solid rgba(255,255,255,.12);
}
.social-link:hover { background: var(--ps-saffron); color: var(--ps-white); border-color: var(--ps-saffron); }

.footer-heading {
    color: var(--ps-white);
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 1.25rem;
    font-family: var(--ps-font-sans);
}

.footer-links li { margin-bottom: .6rem; }
.footer-links a {
    color: rgba(255,255,255,.6);
    font-size: .875rem;
    transition: var(--ps-transition-fast);
}
.footer-links a:hover { color: var(--ps-saffron-light); padding-left: 4px; }

.footer-contact li {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin-bottom: .75rem;
    font-size: .875rem;
    color: rgba(255,255,255,.6);
}
.footer-contact i { color: var(--ps-saffron); width: 16px; margin-top: 3px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,.6); }
.footer-contact a:hover { color: var(--ps-saffron-light); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.25rem 0;
    font-size: .8rem;
    color: rgba(255,255,255,.4);
}

.payment-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    color: rgba(255,255,255,.5);
    font-size: .85rem;
}
.payment-badges i { font-size: 1.5rem; }

/* ── 12. Forms ──────────────────────────────────────────────── */
.form-control-ps {
    border: 1.5px solid var(--ps-border);
    border-radius: var(--ps-radius-sm);
    padding: .65rem 1rem;
    font-size: .9rem;
    background: var(--ps-white);
    color: var(--ps-text);
    transition: var(--ps-transition-fast);
}
.form-control-ps:focus {
    border-color: var(--ps-saffron);
    box-shadow: 0 0 0 3px rgba(255,107,0,.12);
    outline: none;
}
.form-label-ps {
    font-size: .85rem;
    font-weight: 600;
    color: var(--ps-dark);
    margin-bottom: .4rem;
    display: block;
}

/* Auth card */
.auth-card {
    background: var(--ps-white);
    border-radius: var(--ps-radius-lg);
    box-shadow: 0 10px 40px rgba(139, 26, 26, 0.12), 0 1px 3px rgba(0,0,0,0.05);
    padding: 2.5rem 2rem;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid var(--ps-border);
    border-top: 4px solid var(--ps-saffron);
    position: relative;
}
body.auth-page {
    display: block !important;
    min-height: 100vh;
    background-color: var(--ps-ivory);
}
.auth-section {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1rem;
    background: radial-gradient(circle at 50% 15%, rgba(255, 107, 0, 0.08) 0%, transparent 60%), linear-gradient(180deg, var(--ps-cream) 0%, var(--ps-ivory) 100%);
}
.auth-om {
    font-size: 3.25rem;
    line-height: 1;
    color: var(--ps-saffron);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(255, 107, 0, 0.25);
    font-family: var(--ps-font-hindi);
}
.auth-header h2 {
    font-family: var(--ps-font-serif);
    color: var(--ps-maroon);
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.auth-header p {
    font-size: 0.925rem;
    color: var(--ps-text-muted);
}
.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon-wrapper > i:first-child {
    position: absolute;
    left: 1rem;
    color: #9e8d7c;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
}
.input-icon-wrapper .ps-input {
    padding-left: 2.85rem !important;
    padding-right: 2.85rem;
    height: 48px;
    border-radius: var(--ps-radius-sm);
    border: 1.5px solid var(--ps-border);
    font-size: 0.925rem;
    color: var(--ps-text);
    background-color: #fff;
    transition: var(--ps-transition-fast);
}
.input-icon-wrapper .ps-input:focus {
    border-color: var(--ps-saffron);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
    outline: none;
}
.input-icon-wrapper .toggle-pw {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: #9e8d7c;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}
.input-icon-wrapper .toggle-pw:hover {
    color: var(--ps-saffron);
}
.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}
.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--ps-border);
}
.auth-divider span {
    background: var(--ps-white);
    padding: 0 1rem;
    position: relative;
    color: var(--ps-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.auth-demo-box {
    background: #faf6f0;
    border: 1px dashed #dfceb8;
    border-radius: var(--ps-radius-sm);
    padding: 1rem;
    margin-bottom: 1.25rem;
}
.auth-demo-title {
    font-size: 0.775rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ps-maroon);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.demo-badge-btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    border: 1px solid var(--ps-border);
    background: #fff;
    color: var(--ps-dark);
    cursor: pointer;
    font-weight: 600;
    transition: var(--ps-transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.demo-badge-btn:hover {
    border-color: var(--ps-saffron);
    background: rgba(255,107,0,0.06);
    color: var(--ps-saffron);
}

/* ── 13. Breadcrumb ─────────────────────────────────────────── */
.breadcrumb-ps {
    background: var(--ps-white);
    border-bottom: 1px solid var(--ps-border);
    padding: .75rem 0;
    font-size: .825rem;
}
.breadcrumb-ps .breadcrumb { margin: 0; }
.breadcrumb-item a { color: var(--ps-text-muted); }
.breadcrumb-item.active { color: var(--ps-maroon); font-weight: 600; }

/* ── 14. Steps / How it Works ───────────────────────────────── */
.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
}
.step-number {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--ps-saffron), var(--ps-gold));
    color: var(--ps-white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
    font-family: var(--ps-font-serif);
    box-shadow: 0 4px 15px rgba(255,107,0,.3);
}
.step-icon {
    width: 70px; height: 70px;
    background: rgba(255,255,255,.12);
    border: 2px solid rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    color: var(--ps-gold-light);
}
.step-connector {
    position: relative;
}
.step-connector::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 55%;
    width: 90%;
    height: 2px;
    background: linear-gradient(90deg, var(--ps-saffron), transparent);
    opacity: .4;
}

/* ── 15. Newsletter ─────────────────────────────────────────── */
.newsletter-section {
    background: linear-gradient(135deg, var(--ps-saffron) 0%, var(--ps-gold-dark) 100%);
    padding: 60px 0;
}
.newsletter-input-group {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    border-radius: var(--ps-radius-pill);
    overflow: hidden;
    box-shadow: var(--ps-shadow-lg);
}
.newsletter-input {
    flex: 1;
    border: none;
    padding: .85rem 1.5rem;
    font-size: .95rem;
    outline: none;
}
.newsletter-btn {
    background: var(--ps-maroon);
    color: var(--ps-white);
    border: none;
    padding: .85rem 2rem;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: var(--ps-transition-fast);
    white-space: nowrap;
}
.newsletter-btn:hover { background: var(--ps-maroon-dark); }

/* ── 16. FAQ Accordion ──────────────────────────────────────── */
.faq-accordion .accordion-item {
    border: 1.5px solid var(--ps-border);
    border-radius: var(--ps-radius) !important;
    margin-bottom: .75rem;
    overflow: hidden;
}
.faq-accordion .accordion-button {
    font-weight: 600;
    font-size: .95rem;
    color: var(--ps-dark);
    background: var(--ps-white);
    padding: 1.1rem 1.5rem;
}
.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--ps-saffron);
    background: var(--ps-cream);
    box-shadow: none;
}
.faq-accordion .accordion-button::after {
    filter: none;
}
.faq-accordion .accordion-body {
    color: var(--ps-text-muted);
    font-size: .9rem;
    line-height: 1.7;
    padding: 1rem 1.5rem 1.25rem;
    background: var(--ps-cream);
}

/* ── 17. Testimonials ───────────────────────────────────────── */
.review-card {
    background: var(--ps-white);
    border-radius: var(--ps-radius-lg);
    padding: 2rem;
    box-shadow: var(--ps-shadow-sm);
    border: 1px solid var(--ps-border);
    height: 100%;
    position: relative;
}
.review-card::before {
    content: '\201C';
    position: absolute;
    top: 1rem; left: 1.5rem;
    font-size: 4rem;
    color: var(--ps-saffron);
    opacity: .2;
    font-family: Georgia, serif;
    line-height: 1;
}
.review-stars { color: var(--ps-gold); font-size: .85rem; margin-bottom: .75rem; }
.review-text { color: var(--ps-text); font-size: .9rem; line-height: 1.7; margin-bottom: 1.25rem; }
.reviewer-info { display: flex; align-items: center; gap: .75rem; }
.reviewer-avatar {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--ps-saffron), var(--ps-gold));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--ps-white);
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
}
.reviewer-name { font-weight: 600; font-size: .875rem; color: var(--ps-dark); }
.reviewer-location { font-size: .75rem; color: var(--ps-text-muted); }

/* ── 18. Contact Bar ────────────────────────────────────────── */
.contact-bar {
    background: var(--ps-maroon);
    color: rgba(255,255,255,.9);
    padding: 1rem 0;
    font-size: .875rem;
}
.contact-bar a { color: var(--ps-gold-light); }
.contact-bar a:hover { color: var(--ps-white); }

/* ── 19. Loading / Skeleton ─────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #f0e6d8 25%, #e8d8c4 50%, #f0e6d8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--ps-radius-sm);
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.spinner-ps {
    width: 40px; height: 40px;
    border: 3px solid var(--ps-border);
    border-top-color: var(--ps-saffron);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 20. Error Pages ────────────────────────────────────────── */
.error-page {
    min-height: calc(100vh - var(--navbar-h));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--ps-cream) 0%, var(--ps-beige) 100%);
    padding: 3rem 1rem;
}
.error-code {
    font-size: clamp(6rem, 15vw, 10rem);
    font-family: var(--ps-font-serif);
    color: var(--ps-maroon);
    line-height: 1;
    opacity: .15;
    font-weight: 900;
}
.error-title { font-size: clamp(1.5rem, 3vw, 2.5rem); color: var(--ps-maroon); margin-bottom: 1rem; }
.error-msg { color: var(--ps-text-muted); max-width: 400px; margin: 0 auto 2rem; }

/* ── 21. Responsive ─────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .navbar-ps {
        min-height: var(--navbar-h);
        height: auto;
        padding: 0.6rem 0;
    }
    .navbar-ps .navbar-collapse {
        background: #ffffff;
        border-radius: var(--ps-radius);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border: 1px solid var(--ps-border);
        padding: 1.25rem;
        margin-top: 0.75rem;
        max-height: 80vh;
        overflow-y: auto;
    }
    .navbar-ps .navbar-nav .nav-link {
        padding: 0.6rem 0.75rem;
        border-radius: 8px;
        font-weight: 500;
    }
    .navbar-ps .navbar-nav .nav-link:hover,
    .navbar-ps .navbar-nav .nav-link.active {
        background: var(--ps-cream);
        color: var(--ps-saffron) !important;
    }
    .search-wrapper {
        width: 100%;
        margin: 0.75rem 0;
    }
    .navbar-actions {
        padding: .5rem 0;
        gap: .5rem;
    }
    .hero-section {
        min-height: auto;
        padding: 4rem 0 3rem;
    }
    .hero-om-bg { display: none; }
    .section-pad { padding: 50px 0; }
    .step-connector::after { display: none; }
}

@media (max-width: 767.98px) {
    :root { --navbar-h: 64px; }
    .brand-om { font-size: 1.75rem; }
    .brand-name { font-size: 1.1rem; }
    .brand-tagline { font-size: 0.65rem; }

    /* Mobile header quick action buttons */
    .nav-action-btn {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: var(--ps-cream);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
    }
    .nav-action-btn .badge-count {
        top: -3px;
        right: -3px;
        font-size: 10px;
        width: 17px;
        height: 17px;
    }

    /* Hero section on mobile */
    .hero-section {
        padding: 3rem 0 2.5rem;
    }
    .hero-title {
        font-size: clamp(1.85rem, 6.5vw, 2.4rem);
        line-height: 1.2;
        margin-bottom: 0.85rem;
    }
    .hero-subtitle {
        font-size: 0.92rem;
        margin-bottom: 1.75rem;
        line-height: 1.6;
    }
    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.85rem !important;
        background: rgba(0, 0, 0, 0.22);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: var(--ps-radius);
        padding: 1.1rem 0.75rem !important;
        margin-top: 2rem !important;
    }
    .hero-stats > div {
        padding: 0.25rem 0.5rem;
    }
    .hero-stats > div > div:first-child {
        font-size: 1.45rem !important;
    }

    /* Trust bar */
    .trust-bar {
        padding: 1rem 0;
    }
    .trust-item {
        padding: 0.5rem;
        gap: 0.6rem;
    }
    .trust-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 10px;
        flex-shrink: 0;
    }
    .trust-text strong {
        font-size: 0.85rem;
    }
    .trust-text span {
        font-size: 0.72rem;
        line-height: 1.2;
    }

    /* Product card adjustments on mobile */
    .product-card {
        margin-bottom: 0.5rem;
    }
    .product-card .product-title {
        font-size: 0.9rem;
        min-height: 2.4rem;
        line-height: 1.25;
    }
    .product-card .price-current {
        font-size: 1.05rem;
    }
    .product-card .product-img-wrapper {
        aspect-ratio: 1 / 1;
    }

    /* Category cards on mobile */
    .category-card {
        padding: 1rem 0.5rem;
    }
    .category-card .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.35rem;
    }
    .category-card h6 {
        font-size: 0.85rem;
    }

    /* Auth card & Layout */
    .auth-card { padding: 1.5rem; }
    .section-pad { padding: 38px 0; }
    .footer-top { padding: 40px 0 25px; }
    .flash-container { left: 12px; right: 12px; max-width: none; }
    .newsletter-input-group { flex-direction: column; border-radius: var(--ps-radius); }
    .newsletter-input { border-radius: var(--ps-radius) var(--ps-radius) 0 0 !important; }
    .newsletter-btn { border-radius: 0 0 var(--ps-radius) var(--ps-radius) !important; text-align: center; }
}

@media (max-width: 575.98px) {
    .hero-cta-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    .hero-cta-group .btn-ps-primary,
    .hero-cta-group .btn-ps-outline {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1.25rem;
    }
    .section-title {
        font-size: 1.65rem;
    }
    .section-subtitle {
        font-size: 0.88rem;
    }
    .pandit-card .pandit-card-header {
        padding: 1.25rem 1rem !important;
    }
}

/* ── Vedic News Ticker Bar ───────────────────────────────── */
.vedic-news-ticker-bar {
    background: linear-gradient(90deg, #5c0e0e 0%, #7c1414 50%, #4a0909 100%);
    color: #fff;
    padding: 9px 0;
    border-bottom: 2px solid var(--ps-gold);
    font-size: 0.82rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
}
.ticker-badge {
    background: rgba(255, 215, 79, 0.2);
    border: 1px solid rgba(255, 215, 79, 0.4);
    color: #ffd54f;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}
.ticker-dot {
    width: 7px;
    height: 7px;
    background: #4caf50;
    border-radius: 50%;
    display: inline-block;
    animation: tickerPulse 1.8s infinite;
}
@keyframes tickerPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}
.ticker-marquee-wrapper {
    white-space: nowrap;
    overflow: hidden;
}
.ticker-marquee-track {
    display: inline-block;
    padding-left: 10px;
    animation: marqueeAnimation 38s linear infinite;
}
.ticker-marquee-track:hover {
    animation-play-state: paused;
}
@keyframes marqueeAnimation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 18px;
    color: #f7eedf;
}
.ticker-divider {
    color: var(--ps-gold);
    margin: 0 14px;
    opacity: 0.7;
}

/* ── Acharya Vani & Upcoming Parva Section ────────────────── */
.panchang-today-card {
    background: #ffffff;
    border: 2px solid var(--ps-gold);
    border-radius: var(--ps-radius);
    padding: 24px;
    box-shadow: 0 6px 20px rgba(124, 20, 20, 0.08);
    position: relative;
    overflow: hidden;
}
.panchang-today-card::before {
    content: "ॐ";
    position: absolute;
    right: 15px;
    top: -15px;
    font-size: 90px;
    opacity: 0.06;
    color: var(--ps-maroon);
    font-family: var(--ps-font-serif);
    pointer-events: none;
}
.festival-card-home {
    background: #ffffff;
    border: 1px solid #ebd9c2;
    border-radius: var(--ps-radius);
    padding: 18px;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.festival-card-home:hover {
    transform: translateY(-3px);
    border-color: var(--ps-saffron);
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.12);
}
.headline-advice-card {
    background: #fffcf8;
    border: 1px solid #f0e4d2;
    border-left: 4px solid var(--ps-saffron);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}
.headline-advice-card:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
