/* ==========================================================================
   Shree Srimandir — Public & shared stylesheet
   ========================================================================== */
:root {
    --maroon: #7b1e1e;
    --maroon-dark: #5a1414;
    --deep: #3a0d0d;
    --saffron: #f4a300;
    --gold: #ffb703;
    --cream: #fff8ee;
    --cream-2: #fdeedd;
    --ink: #2b2118;
    --muted: #7a6a5a;
    --line: #eadcc9;
    --white: #ffffff;
    --success: #1f7a45;
    --warning: #b7791f;
    --danger: #b3261e;
    --info: #1f6f8b;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 10px 30px -12px rgba(58, 13, 13, .35);
    --shadow-sm: 0 4px 14px -8px rgba(58, 13, 13, .4);
    --font: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-deva: 'Tiro Devanagari Sanskrit', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--maroon); text-decoration: none; transition: color .2s; }
a:hover { color: var(--saffron); }
h1, h2, h3, h4 { font-family: var(--font); line-height: 1.25; color: var(--deep); margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head .eyebrow,
.eyebrow {
    display: inline-block; font-size: .78rem; letter-spacing: .18em;
    text-transform: uppercase; color: var(--saffron); font-weight: 600; margin-bottom: .5rem;
}
.deva { font-family: var(--font-deva); }

/* ------------------------------- Buttons -------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .7rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: .93rem;
    border: 2px solid transparent; cursor: pointer; line-height: 1.2;
    transition: transform .15s, box-shadow .2s, background .2s, color .2s;
    text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--saffron), var(--maroon)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { color: #fff; box-shadow: var(--shadow); }
.btn-donate { background: linear-gradient(135deg, var(--gold), var(--maroon)); color: #fff; }
.btn-donate:hover { color: #fff; }
.btn-outline { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-ghost { color: var(--deep); background: rgba(0,0,0,.04); }
.btn-ghost:hover { background: rgba(0,0,0,.08); color: var(--deep); }
.btn-light { background: #fff; color: var(--maroon); }
.btn-light:hover { color: var(--maroon-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: .42rem .85rem; font-size: .82rem; }
.btn-lg { padding: .95rem 2rem; font-size: 1rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { color: #fff; filter: brightness(1.05); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* -------------------------------- Badges -------------------------------- */
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; }
.badge-success { background: #e3f5ea; color: var(--success); }
.badge-warning { background: #fdf0d5; color: var(--warning); }
.badge-danger  { background: #fbe3e1; color: var(--danger); }
.badge-info    { background: #e1f0f6; color: var(--info); }
.badge-muted   { background: #eee6db; color: var(--muted); }
.chip { display: inline-block; padding: .28rem .75rem; border-radius: 999px; background: var(--cream-2); color: var(--maroon); font-size: .78rem; font-weight: 600; }

/* -------------------------------- Alerts --------------------------------- */
.flash-stack { margin-top: 1rem; display: grid; gap: .6rem; }
.alert { padding: .85rem 1.1rem; border-radius: var(--radius-sm); border-left: 4px solid; font-size: .92rem; }
.alert-success { background: #eaf7ef; border-color: var(--success); color: #155e33; }
.alert-warning { background: #fdf6e3; border-color: var(--warning); color: #8a5a12; }
.alert-danger  { background: #fdeceb; border-color: var(--danger);  color: #8f1d17; }
.alert-info    { background: #eaf4f8; border-color: var(--info);    color: #14556b; }

/* --------------------------------- Topbar -------------------------------- */
.topbar { background: var(--deep); color: #f3e2cf; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; flex-wrap: wrap; }
.topbar a { color: #f3e2cf; }
.topbar a:hover { color: var(--gold); }
.topbar-right { display: flex; gap: 1.1rem; }

/* --------------------------------- Header -------------------------------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 248, 238, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark { display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.15rem; color: var(--maroon); letter-spacing: .01em; }
.brand-text small { font-size: .7rem; color: var(--muted); }
.brand-light .brand-text strong { color: #fff; }

.main-nav { display: flex; align-items: center; gap: .35rem; }
.main-nav > a { padding: .5rem .8rem; border-radius: 999px; font-weight: 500; font-size: .93rem; color: var(--ink); }
.main-nav > a:hover, .main-nav > a.active { color: var(--maroon); background: var(--cream-2); }
.main-nav > a.btn-donate { color: #fff; margin-left: .2rem; }
.main-nav > a.btn-donate:hover { color: #fff; background: linear-gradient(135deg, var(--gold), var(--maroon-dark)); }
.nav-auth { display: flex; gap: .4rem; margin-left: .35rem; padding-left: .6rem; border-left: 1px solid var(--line); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--maroon); cursor: pointer; }

/* ---------------------------------- Hero --------------------------------- */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background: linear-gradient(180deg, rgba(58,13,13,.72), rgba(58,13,13,.82)), url('../img/hero.svg') center/cover no-repeat;
}
.hero-inner { padding: 6rem 0 5rem; max-width: 760px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: .8rem; }
.hero p { font-size: 1.08rem; color: #f4e3d0; max-width: 600px; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero .eyebrow { color: var(--gold); }

.page-hero { background: linear-gradient(135deg, var(--deep), var(--maroon)); color: #fff; padding: 3.2rem 0 2.6rem; }
.page-hero h1 { color: #fff; margin-bottom: .3rem; }
.page-hero p { color: #f0dcc6; margin: 0; }
.breadcrumb { font-size: .84rem; color: #e6cdb4; margin-bottom: .7rem; }
.breadcrumb a { color: #f0dcc6; }

/* ------------------------------- Page grid ------------------------------- */
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* --------------------------------- Cards --------------------------------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--cream-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-title { font-size: 1.12rem; margin: 0; }
.card-title a { color: var(--deep); }
.card-title a:hover { color: var(--maroon); }
.card-meta { display: flex; gap: 1rem; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.card-text { font-size: .92rem; color: #5b4c3d; margin: 0; }
.card-footer { padding: 1rem 1.4rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: auto; }
.media-badge { position: absolute; top: .8rem; left: .8rem; background: rgba(58,13,13,.85); color: #fff; padding: .25rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 600; }

/* Feature / info cards on home */
.feature { background: #fff; border-radius: var(--radius); padding: 1.8rem 1.4rem; border: 1px solid var(--line); text-align: center; box-shadow: var(--shadow-sm); }
.feature .icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; font-size: 1.6rem; background: linear-gradient(135deg, var(--cream-2), #ffe3bd); color: var(--maroon); }
.feature h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.feature p { font-size: .9rem; color: var(--muted); margin: 0; }

/* Stat strip */
.stat-strip { background: linear-gradient(135deg, var(--maroon), var(--deep)); color: #fff; border-radius: var(--radius); padding: 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; box-shadow: var(--shadow); }
.stat-strip .num { font-size: 2rem; font-weight: 700; color: var(--gold); display: block; }
.stat-strip .label { font-size: .85rem; color: #f0dcc6; }

/* Schedule list */
.schedule { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.schedule li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px dashed var(--line); }
.schedule li:last-child { border-bottom: 0; }
.schedule .time { font-weight: 600; color: var(--maroon); white-space: nowrap; }

/* Donation progress */
.progress { height: 10px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--maroon)); }
.cause-amount { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-top: .35rem; }

/* --------------------------------- Forms --------------------------------- */
.form-group { margin-bottom: 1.05rem; }
.form-group label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; color: var(--deep); }
.form-group .hint { font-size: .78rem; color: var(--muted); margin-top: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=date], input[type=time], input[type=file], select, textarea {
    width: 100%; padding: .72rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font-family: inherit; font-size: .94rem; color: var(--ink); background: #fffdfa; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(244,163,0,.18); }
textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.form-check input { width: auto; }

/* Auth card */
.auth-wrap { min-height: calc(100vh - 130px); display: grid; place-items: center; padding: 3rem 0; background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.auth-card { width: min(440px, 92%); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.2rem; border: 1px solid var(--line); }
.auth-card.wide { width: min(560px, 94%); }
.auth-card h1 { font-size: 1.6rem; margin-bottom: .2rem; }
.auth-card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 1.5rem; }
.auth-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), var(--maroon)); color: #fff; font-size: 1.5rem; margin-bottom: 1rem; }
.auth-alt { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 1.3rem; }
.divider { text-align: center; color: var(--muted); font-size: .8rem; margin: 1.2rem 0; position: relative; }
.divider::before { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1px solid var(--line); }
.divider span { background: #fff; padding: 0 .8rem; position: relative; }
.demo-creds { background: var(--cream); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; font-size: .82rem; }
.demo-creds code { background: #fff; padding: .1rem .4rem; border-radius: 4px; border: 1px solid var(--line); }

/* --------------------------------- Tables -------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data thead th { background: var(--cream); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
table.data tbody tr:hover { background: #fffaf2; }
table.data tbody tr:last-child td { border-bottom: 0; }

/* ------------------------------ Pagination ------------------------------- */
.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.page-link { padding: .45rem .85rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .88rem; }
.page-link:hover { border-color: var(--saffron); color: var(--maroon); }
.page-link.active { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.page-dots { padding: .45rem .3rem; color: var(--muted); }

/* ------------------------------- Gallery --------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; background: var(--cream-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item .caption { position: absolute; inset: auto 0 0; padding: 1.4rem .9rem .7rem; background: linear-gradient(transparent, rgba(58,13,13,.85)); color: #fff; font-size: .84rem; font-weight: 500; }
.album-tabs { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.album-tabs a { padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .86rem; font-weight: 500; }
.album-tabs a.active, .album-tabs a:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(24,6,6,.92); display: none; place-items: center; z-index: 200; padding: 2rem; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox .close { position: absolute; top: 1.2rem; right: 1.5rem; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; }

/* -------------------------------- Footer --------------------------------- */
.site-footer { background: var(--deep); color: #e9d6c1; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2rem; padding: 3.2rem 0 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer .muted { color: #bfa78f; font-size: .88rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-links a { color: #e9d6c1; font-size: .9rem; }
.footer-links a:hover { color: var(--gold); }
.footer-address { font-style: normal; font-size: .9rem; color: #e9d6c1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-size: .82rem; color: #bfa78f; flex-wrap: wrap; }

/* Split content sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split .media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--cream-2); }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.tick-list li { position: relative; padding-left: 1.9rem; font-size: .94rem; }
.tick-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.3rem; height: 1.3rem; background: var(--cream-2); color: var(--maroon); border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }

/* Detail layouts */
.detail-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 2.5rem; align-items: start; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.info-card h3 { font-size: 1.1rem; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; font-size: .9rem; }
.info-list li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: .6rem; }
.info-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list .k { color: var(--muted); }
.info-list .v { font-weight: 600; color: var(--deep); text-align: right; }

/* Timeline for announcements */
.timeline { position: relative; padding-left: 1.6rem; }
.timeline::before { content: ""; position: absolute; left: .42rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 1.6rem; }
.timeline-item::before { content: ""; position: absolute; left: -1.6rem; top: .35rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 3px var(--cream-2); }
.timeline-item h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.timeline-item .date { font-size: .8rem; color: var(--muted); }

/* Empty state */
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty .icon { font-size: 2.4rem; margin-bottom: .6rem; }

/* ---------------------------------- Misc --------------------------------- */
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), var(--maroon)); color: #fff; font-weight: 600; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 96px; height: 96px; font-size: 2rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ------------------------------- Responsive ------------------------------ */
@media (max-width: 980px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .split, .detail-grid, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: var(--cream); border-bottom: 1px solid var(--line); padding: .8rem 4%; gap: .2rem;
        display: none; box-shadow: var(--shadow);
    }
    .main-nav.open { display: flex; }
    .nav-auth { border-left: 0; padding-left: 0; margin-left: 0; flex-direction: row; }
    .grid-2, .grid-3, .grid-4, .split, .detail-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
    .form-row { grid-template-columns: 1fr; }
    .hero-inner { padding: 4rem 0 3.4rem; }
    .section { padding: 2.8rem 0; }
}
@media (max-width: 460px) {
    .stat-strip { grid-template-columns: 1fr; }
    .topbar-inner { justify-content: center; text-align: center; }
}

/* ==========================================================================
   Modals (shared — public pages use these for Buy Now / booking)
   ========================================================================== */
.modal-backdrop { position: fixed; inset: 0; background: rgba(24, 6, 6, .62); display: none; place-items: center; z-index: 150; padding: 1.5rem; }
.modal-backdrop.open { display: grid; }
.modal { background: #fff; border-radius: var(--radius); width: min(560px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 1.1rem; }
.modal-head .close { background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-body { padding: 1.4rem; }
.modal-foot { padding: 1rem 1.4rem; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: .6rem; }

/* ==========================================================================
   Temple guide page
   ========================================================================== */
.btn-light-outline { border-color: rgba(255, 255, 255, .65); color: #fff; background: transparent; }
.btn-light-outline:hover { background: #fff; color: var(--maroon); }

.temple-hero {
    position: relative; color: #fff; overflow: hidden;
    background: linear-gradient(180deg, rgba(58, 13, 13, .88), rgba(58, 13, 13, .95)), var(--deep);
    background-size: cover; background-position: center;
}
.temple-hero-inner { padding: 2.6rem 0 2.3rem; max-width: 900px; }
.temple-hero .crumb { font-size: .84rem; color: #e6cdb4; margin-bottom: .5rem; }
.temple-hero .crumb a { color: #f0dcc6; }
.temple-hero h1 { color: #fff; margin: .2rem 0 .4rem; font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
.temple-hero-tag { color: #f0dcc6; max-width: 660px; margin: 0 0 1rem; }
.temple-hero-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 1.3rem; }
.temple-hero-facts span {
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); color: #fff;
    padding: .35rem .8rem; border-radius: 999px; font-size: .82rem; backdrop-filter: blur(4px);
}
.temple-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Jump navigation */
.temple-quicknav { background: #fff; border-bottom: 1px solid var(--line); }
.temple-quicknav-inner { display: flex; gap: .45rem; overflow-x: auto; padding: .65rem 0; scrollbar-width: thin; }
.temple-quicknav a {
    white-space: nowrap; padding: .4rem .95rem; border-radius: 999px; font-size: .85rem; font-weight: 500;
    color: var(--ink); border: 1px solid var(--line); background: var(--cream);
}
.temple-quicknav a:hover { color: var(--maroon); border-color: var(--saffron); background: var(--cream-2); }

/* Two-column guide layout */
.temple-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr); gap: 2rem; align-items: start; padding: 2rem 0 3.5rem; }
.temple-main { display: grid; gap: 1.6rem; min-width: 0; }
.temple-side { display: grid; gap: 1.2rem; position: sticky; top: 88px; align-content: start; }

.t-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; scroll-margin-top: 88px; }
.t-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); }
.t-card-head h2 { font-size: 1.15rem; margin: 0; }
.t-card-head p { margin: .15rem 0 0; font-size: .82rem; color: var(--muted); }
.t-card-body { padding: 1.3rem; }
.t-prose { color: #4a3d31; }
.t-prose p { margin: 0 0 1rem; }
.t-prose p:last-child { margin-bottom: 0; }

/* Pooja blocks */
.pooja-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; background: #fffdfa; }
.pooja-block + .pooja-block { margin-top: 1rem; }
.pooja-block-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.pooja-block h3 { margin: 0 0 .25rem; font-size: 1.08rem; }
.pooja-block .desc { font-size: .86rem; color: var(--muted); margin: 0 0 .9rem; }
.pkg-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; background: #fff; }
.pkg-row + .pkg-row { margin-top: .5rem; }
.pkg-name { font-weight: 600; font-size: .92rem; }
.pkg-detail { font-size: .78rem; color: var(--muted); }
.pkg-price { font-weight: 700; color: var(--maroon); }
.pkg-none { font-size: .85rem; color: var(--muted); }

/* How to reach */
.reach-item { display: flex; gap: .95rem; padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.reach-item:last-child { border-bottom: 0; padding-bottom: 0; }
.reach-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; background: linear-gradient(135deg, var(--cream-2), #ffe3bd); color: var(--maroon); flex-shrink: 0; }
.reach-item h3 { font-size: 1rem; margin: 0 0 .1rem; }
.reach-loc { font-size: .8rem; color: var(--maroon); font-weight: 600; }
.reach-item p { margin: .35rem 0 0; font-size: .87rem; color: #5b4c3d; }

/* Reviews */
.review-summary { display: flex; align-items: center; gap: 1.3rem; padding: 1.1rem 1.3rem; background: var(--cream); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.review-score { font-size: 2.3rem; font-weight: 700; color: var(--maroon); line-height: 1; }
.review-score small { display: block; font-size: .74rem; font-weight: 500; color: var(--muted); }
.review-item { border: 1px solid var(--line); border-radius: 10px; padding: 1rem; }
.review-item + .review-item { margin-top: .8rem; }
.review-head { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.stars { color: var(--gold); letter-spacing: .12em; font-size: .95rem; white-space: nowrap; }
.review-title { font-weight: 600; margin: .3rem 0 .2rem; }
.review-comment { font-size: .88rem; color: #5b4c3d; }
.review-meta { font-size: .76rem; color: var(--muted); }

/* Sidebar widgets */
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.widget-head { padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: linear-gradient(135deg, var(--cream), #fff); }
.widget-head h3 { margin: 0; font-size: .98rem; display: flex; align-items: center; gap: .45rem; }
.widget-head .badge { font-size: .68rem; }
.widget-body { padding: 1.1rem; }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; font-size: .88rem; }
.fact-list li { display: flex; gap: .6rem; align-items: flex-start; }
.fact-list .fi { width: 1.3rem; text-align: center; flex-shrink: 0; }
.fact-list .fk { color: var(--muted); }
.fact-list .fv { font-weight: 600; color: var(--deep); }

.widget-pooja { display: flex; justify-content: space-between; gap: .6rem; align-items: center; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.widget-pooja:last-child { border-bottom: 0; padding-bottom: 0; }
.widget-pooja .t { font-weight: 600; font-size: .9rem; line-height: 1.25; }
.widget-pooja .p { font-size: .8rem; color: var(--maroon); font-weight: 700; white-space: nowrap; }

.daily-devotee { text-align: center; }
.daily-devotee .avatar { margin: 0 auto .6rem; }
.daily-devotee .name { font-weight: 700; }
.daily-devotee .stars { display: block; margin: .15rem 0 .55rem; }
.daily-devotee blockquote { margin: 0; font-size: .88rem; color: #5b4c3d; font-style: italic; }
.daily-stats { display: flex; justify-content: space-around; gap: .5rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.daily-stats .n { font-size: 1.3rem; font-weight: 700; color: var(--maroon); display: block; line-height: 1; }
.daily-stats .l { font-size: .72rem; color: var(--muted); }

/* Hero status badge */
.temple-hero-facts .status { display: inline-flex; align-items: center; gap: .45rem; }
.status-dot { width: .55rem; height: .55rem; border-radius: 50%; display: inline-block; }
.status-open .status-dot { background: #31c48d; box-shadow: 0 0 0 3px rgba(49, 196, 141, .28); }
.status-closed .status-dot { background: #f0736a; box-shadow: 0 0 0 3px rgba(240, 115, 106, .28); }

/* On this page navigation */
.toc { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .1rem; font-size: .87rem; color: var(--ink); border-bottom: 1px dashed var(--line); transition: padding .15s, color .15s; }
.toc li:last-child a { border-bottom: 0; }
.toc a:hover { color: var(--maroon); padding-left: .35rem; }
.toc a .n { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Rating distribution */
.rating-bars { display: grid; gap: .34rem; flex: 1; min-width: 190px; }
.rating-bar { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: .55rem; font-size: .75rem; color: var(--muted); }
.rating-bar .track { height: 7px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.rating-bar .fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--saffron), var(--maroon)); }

/* Pooja polish */
.pooja-block.is-top { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(244, 163, 0, .12); }
.pkg-row .pkg-buy .btn { white-space: nowrap; }

/* Reviews form panel */
.review-form { background: var(--cream); }

/* Highlighted right-widgets (Top Poojas / Daily Devotee) */
.widget-accent { border-color: rgba(244, 163, 0, .55); }
.widget-accent .widget-head { background: linear-gradient(135deg, #fff5e6, #ffe8c7); }

/* ==========================================================================
   Pooja listing page (Chadhava-style)
   ========================================================================== */
.temple-quicknav a.active { background: var(--maroon); color: #fff; border-color: var(--maroon); }

.pooja-hero { position: relative; color: #fff; overflow: hidden; background: var(--deep) center/cover no-repeat; }
.pooja-hero-inner { padding: 4.4rem 0 3.8rem; max-width: 720px; }
.pooja-hero .eyebrow { color: var(--gold); }
.pooja-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: .6rem; }
.pooja-hero .lead { color: #f4e3d0; font-size: 1.06rem; max-width: 620px; }

.hero-points { list-style: none; margin: 1.1rem 0 1.7rem; padding: 0; display: grid; gap: .55rem; }
.hero-points li { position: relative; padding-left: 1.8rem; color: #f6e8d6; font-size: .95rem; }
.hero-points li::before {
    content: "✓"; position: absolute; left: 0; top: .05rem; width: 1.25rem; height: 1.25rem;
    border-radius: 50%; background: rgba(244, 163, 0, .22); color: var(--gold);
    display: grid; place-items: center; font-size: .72rem; font-weight: 700;
}

.pooja-card .card-media { aspect-ratio: 16/10; }
.pooja-card-foot { flex-direction: column; align-items: stretch; gap: .75rem; }
.pooja-price { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.pooja-price .amt { font-weight: 700; color: var(--maroon); font-size: 1.05rem; }
.pooja-price .pkgn { font-size: .78rem; color: var(--muted); }

.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.how-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.3rem; box-shadow: var(--shadow-sm); }
.how-step .num {
    width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
    font-weight: 700; color: #fff; margin-bottom: .9rem;
    background: linear-gradient(135deg, var(--gold), var(--maroon));
}
.how-step h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.how-step p { font-size: .86rem; color: var(--muted); margin: 0; }

.cta-band {
    background: linear-gradient(135deg, var(--maroon), var(--deep)); color: #fff;
    border-radius: var(--radius); padding: 2.4rem; display: flex; align-items: center;
    justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p { color: #f0dcc6; }
.cta-band .temple-actions { margin: 0; }

/* ==========================================================================
   Donate page
   ========================================================================== */
.donate-hero { position: relative; color: #fff; overflow: hidden; background: var(--maroon-dark) center/cover no-repeat; }
.donate-hero-inner { padding: 4.4rem 0 3.8rem; max-width: 720px; }
.donate-hero .eyebrow { color: var(--gold); }
.donate-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: .6rem; }
.donate-hero .lead { color: #f4e3d0; font-size: 1.06rem; max-width: 620px; }

.donate-highlights { display: grid; gap: 1rem; }
.donate-stat { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--saffron); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm); }
.donate-stat .n { display: block; font-size: 1.8rem; font-weight: 700; color: var(--maroon); line-height: 1.15; }
.donate-stat .l { font-size: .88rem; color: var(--muted); }

.amount-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.amount-chip {
    border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px;
    padding: .5rem 1rem; font-weight: 600; font-size: .9rem; cursor: pointer; font-family: inherit; transition: all .18s;
}
.amount-chip:hover { border-color: var(--saffron); color: var(--maroon); }
.amount-chip.active { background: linear-gradient(135deg, var(--saffron), var(--maroon)); color: #fff; border-color: transparent; }

.pill-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { display: inline-flex; align-items: center; gap: .45rem; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .5rem 1rem; font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .18s; }
.pill input { width: auto; accent-color: var(--maroon); }
.pill:hover { border-color: var(--saffron); }
.pill:has(input:checked) { border-color: var(--maroon); background: var(--cream-2); color: var(--maroon); box-shadow: 0 0 0 3px rgba(244, 163, 0, .14); }

.form-section { padding-bottom: 1.2rem; margin-bottom: 1.2rem; border-bottom: 1px dashed var(--line); }
.form-section:last-of-type { border-bottom: 0; margin-bottom: .6rem; }
.form-section-title { font-size: 1rem; color: var(--maroon); margin-bottom: 1rem; }

@media (max-width: 980px) {
    .how-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .pooja-hero-inner { padding: 3rem 0 2.6rem; }
    .cta-band { padding: 1.8rem; }
    .donate-hero-inner { padding: 3rem 0 2.6rem; }
}
@media (max-width: 560px) {
    .how-steps { grid-template-columns: 1fr; }
}

@media (min-width: 761px) {
    .temple-side { max-height: calc(100vh - 104px); overflow-y: auto; padding-right: .2rem; }
    .temple-side::-webkit-scrollbar { width: 8px; }
    .temple-side::-webkit-scrollbar-thumb { background: #e2d2bd; border-radius: 999px; }
}

@media (max-width: 760px) {
    .temple-layout { grid-template-columns: 1fr; gap: 1.6rem; }
    .temple-side { position: static; top: auto; max-height: none; overflow: visible; }
}
@media (max-width: 560px) {
    .pkg-row { flex-direction: column; align-items: flex-start; gap: .5rem; }
    .pkg-row .pkg-buy { width: 100%; }
    .pkg-row .pkg-buy .btn { width: 100%; }
    .temple-hero-inner { padding: 1.8rem 0 1.6rem; }
}

/* ==========================================================================
   Divine Store — shop, product, cart, checkout & order styles
   ========================================================================== */

/* ---------------------------- Nav: cart link ----------------------------- */
.cart-link { position: relative; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--deep); }
.cart-link .cart-count { background: var(--maroon); color: #fff; font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center; line-height: 1; }

/* ------------------------- Panels (public pages) ------------------------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 1.05rem; margin: 0; }
.panel-body { padding: 1.3rem; }
.panel-body.flush { padding: 0; }
.nowrap { white-space: nowrap; }

/* --------------------------- Product cards ------------------------------- */
.product-card .card-media { aspect-ratio: 1 / 1; }
.product-card .card-body { padding: 1.1rem 1.2rem .6rem; }
.product-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--saffron); }
.product-card .card-title { font-size: 1.02rem; line-height: 1.3; }
.product-price { display: flex; align-items: baseline; gap: .5rem; margin-top: .2rem; }
.product-price .now { font-size: 1.2rem; font-weight: 700; color: var(--maroon); }
.product-price .was { font-size: .85rem; color: var(--muted); text-decoration: line-through; }
.product-card .card-text { -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-foot { display: block; padding: .9rem 1.2rem; }
.product-card-foot .btn { width: 100%; }
.media-badge.badge-sale { background: linear-gradient(135deg, var(--gold), var(--maroon)); }
.media-badge.badge-out { left: auto; right: .8rem; background: rgba(58,13,13,.9); }

/* ----------------------------- Shop listing ------------------------------ */
.shop-hero form.shop-search { display: flex; gap: .6rem; max-width: 560px; margin-top: 1.3rem; }
.shop-hero form.shop-search input { flex: 1; }
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; align-items: start; }
.shop-filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); position: sticky; top: 16px; }
.filter-block { padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px dashed var(--line); }
.filter-block:last-of-type { border-bottom: 0; }
.filter-block h3 { font-size: .95rem; margin: 0 0 .7rem; color: var(--deep); }
.filter-cats, .filter-cats ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.filter-cats ul { margin: .3rem 0 .3rem 1rem; }
.filter-cats a { display: block; padding: .3rem .5rem; border-radius: var(--radius-sm); font-size: .88rem; color: #5b4c3d; }
.filter-cats a:hover { background: var(--cream-2); color: var(--maroon); }
.filter-cats a.active { background: var(--maroon); color: #fff; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.sort-form { display: flex; align-items: center; gap: .5rem; }
.sort-form select { width: auto; min-width: 170px; padding: .45rem .7rem; }
.shop-filters .form-row { gap: .5rem; }

/* ------------------------------- PDP ------------------------------------- */
.crumb-bar { background: var(--cream-2); border-bottom: 1px solid var(--line); padding: .8rem 0; }
.crumb-bar .breadcrumb { color: var(--muted); margin: 0; }
.crumb-bar .breadcrumb a { color: var(--maroon); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.pdp-gallery { position: sticky; top: 16px; }
.pdp-main { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--cream-2); aspect-ratio: 1 / 1; }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.pdp-sale { position: absolute; top: .9rem; left: .9rem; background: linear-gradient(135deg, var(--gold), var(--maroon)); color: #fff; padding: .3rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pdp-thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.pdp-thumb { width: 72px; height: 72px; padding: 0; border: 2px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--cream-2); cursor: pointer; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.active { border-color: var(--maroon); }
.pdp-info .pdp-title { font-size: 1.75rem; margin: .35rem 0 .7rem; line-height: 1.2; }
.pdp-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .85rem; margin-bottom: 1rem; }
.pdp-price { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.pdp-price .now { font-size: 2rem; font-weight: 700; color: var(--maroon); }
.pdp-price .was { font-size: 1.05rem; color: var(--muted); text-decoration: line-through; }
.pdp-price .save { background: #e3f5ea; color: var(--success); font-size: .8rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.pdp-short { font-size: 1rem; color: #5b4c3d; margin: 1rem 0; }
.pdp-form { margin: 1.2rem 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.pdp-buy { display: flex; align-items: stretch; gap: .7rem; flex-wrap: wrap; }
.qty-input { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fffdfa; }
.qty-input button { width: 42px; border: 0; background: var(--cream-2); font-size: 1.2rem; cursor: pointer; color: var(--maroon); }
.qty-input button:hover { background: #f4e2ca; }
.qty-input input { width: 58px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; background: #fffdfa; }
.trust-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .55rem; font-size: .88rem; color: #5b4c3d; }
.product-body { margin-top: 3rem; }
.pdp-tabs { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.pdp-tab-nav { display: flex; gap: 0; border-bottom: 1px solid var(--line); background: var(--cream); flex-wrap: wrap; }
.pdp-tab-nav button { padding: .95rem 1.5rem; border: 0; background: transparent; font-family: inherit; font-weight: 600; font-size: .92rem; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; }
.pdp-tab-nav button.active { color: var(--maroon); border-bottom-color: var(--maroon); background: #fff; }
.pdp-tab-panel { padding: 1.6rem; }
.t-prose { line-height: 1.75; color: #4d4033; }
.specs-table { border: 0; }
.specs-table th { width: 220px; background: var(--cream); }
.product-rail .grid { margin-bottom: 0; }

/* ------------------------------- Cart ------------------------------------ */
.cart-layout, .checkout-layout, .order-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.6rem; align-items: start; }
.cart-prod { display: flex; align-items: center; gap: .85rem; }
.cart-prod img { width: 62px; height: 62px; border-radius: var(--radius-sm); object-fit: cover; border: 1px solid var(--line); }
.cart-prod-name { font-weight: 600; color: var(--deep); }
.qty-form { display: flex; align-items: center; gap: .4rem; }
.qty-form input { width: 68px; padding: .4rem .5rem; }
.cart-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.cart-total .k, .cart-total .v { font-size: 1.1rem; font-weight: 700; color: var(--deep); }
.cart-summary h3, .checkout-summary h3, .order-summary h3 { margin-bottom: 1rem; }

/* ----------------------------- Checkout ---------------------------------- */
.pay-options { display: grid; gap: .6rem; }
.pay-option { display: flex; align-items: flex-start; gap: .7rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .9rem; cursor: pointer; transition: border-color .2s, background .2s; }
.pay-option:hover { border-color: var(--saffron); }
.pay-option input { margin-top: .25rem; width: auto; }
.pay-option span { display: flex; flex-direction: column; }
.pay-option small { color: var(--muted); font-size: .78rem; }
.pay-option:has(input:checked) { border-color: var(--maroon); background: var(--cream); }
.summary-items { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.summary-items li { display: flex; align-items: center; gap: .7rem; }
.summary-items img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.summary-items .si-name { flex: 1; font-size: .86rem; display: flex; flex-direction: column; }
.summary-items .si-name small { color: var(--muted); }
.summary-items .si-price { font-weight: 600; white-space: nowrap; }

/* ------------------------------ Category --------------------------------- */
.category-intro { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.category-intro h2 { font-size: 1.25rem; margin-bottom: .6rem; }
.category-intro p { color: #5b4c3d; line-height: 1.75; margin: 0; }

/* ------------------------------ Responsive ------------------------------- */
@media (max-width: 980px) {
    .shop-layout, .product-detail, .cart-layout, .checkout-layout, .order-layout { grid-template-columns: 1fr; gap: 1.6rem; }
    .shop-filters, .pdp-gallery { position: static; }
    .pdp-info .pdp-title { font-size: 1.5rem; }
    .pdp-price .now { font-size: 1.7rem; }
}

/* ------------------------------- Toast ----------------------------------- */
.site-toast {
    position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
    background: var(--deep); color: #fff; padding: .8rem 1.3rem; border-radius: 999px;
    font-size: .9rem; font-weight: 500; box-shadow: var(--shadow); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s; z-index: 60; max-width: 90vw; text-align: center;
}
.site-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------- Sale & Coupons ------------------------------ */
.sale-section { background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.sale-banner {
    position: relative; overflow: hidden; color: #fff; border-radius: var(--radius);
    padding: 2.4rem 2.6rem; margin-bottom: 2.2rem;
    background: linear-gradient(120deg, var(--maroon) 0%, #6b1a1a 55%, #3a0d0d 100%);
    box-shadow: var(--shadow);
}
.sale-banner::after {
    content: ""; position: absolute; top: -40%; right: -8%; width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(212,168,83,.42), transparent 68%); pointer-events: none;
}
.sale-banner-copy { position: relative; z-index: 1; max-width: 620px; }
.sale-banner-copy .eyebrow { color: var(--gold); }
.sale-banner h2 { color: #fff; font-size: 2rem; margin: .35rem 0 .6rem; }
.sale-banner p { color: #f3e2cf; margin: 0 0 1.1rem; }
.coupon-highlight {
    display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap;
    background: rgba(255,255,255,.12); border: 1px dashed rgba(255,255,255,.5);
    border-radius: 999px; padding: .45rem .5rem .45rem 1rem; margin-bottom: 1rem;
}
.coupon-highlight-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #f0d9bd; }
.coupon-highlight-code {
    font-weight: 800; letter-spacing: .06em; color: #3a0d0d; background: var(--gold);
    padding: .2rem .7rem; border-radius: 999px; font-size: .95rem;
}
.coupon-highlight-value { font-size: .85rem; color: #ffe9cf; }
.sale-countdown { font-size: .9rem; color: #ffe9cf; margin-bottom: 1.1rem; }
.sale-countdown strong { color: #fff; }
.sale-banner-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.sale-banner-actions .btn-light { color: var(--maroon); }
.sale-rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.sale-rail-head h2 { margin: .2rem 0 0; }
.media-badge.badge-sale-ends { top: auto; bottom: .8rem; background: rgba(58,13,13,.92); font-size: .68rem; }

/* On-sale listing strip */
.sale-strip {
    display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold);
    border-radius: var(--radius); padding: .8rem 1.1rem; margin-top: 1.3rem; box-shadow: var(--shadow-sm);
}
.sale-strip-flag { font-weight: 800; color: var(--maroon); letter-spacing: .04em; }
.sale-strip-text { flex: 1; color: #5b4c3d; font-size: .9rem; }

/* Coupon UI in cart / checkout summaries */
.coupon-form { display: flex; gap: .5rem; margin-bottom: 1rem; }
.coupon-form input { flex: 1; text-transform: uppercase; }
.coupon-form input::placeholder { text-transform: none; }
.coupon-applied {
    display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
    background: #eaf7ef; border: 1px dashed var(--success); border-radius: var(--radius-sm);
    padding: .6rem .8rem; margin-bottom: 1rem;
}
.coupon-tag { font-weight: 700; color: var(--success); white-space: nowrap; }
.coupon-desc { flex: 1; font-size: .8rem; color: #4d4033; }
.coupon-applied form { margin: 0; }
.coupon-remove { border: 0; background: transparent; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 .2rem; }
.coupon-remove:hover { color: var(--danger, #b3261e); }
.coupon-note {
    background: #fff4e5; border: 1px dashed var(--gold); border-radius: var(--radius-sm);
    padding: .6rem .8rem; font-size: .82rem; color: #6b4a12; margin-bottom: 1rem;
}
.coupon-note a { color: var(--maroon); font-weight: 600; }
.discount-line .v { color: var(--success); font-weight: 700; }

@media (max-width: 640px) {
    .sale-banner { padding: 1.7rem 1.4rem; }
    .sale-banner h2 { font-size: 1.5rem; }
    .sale-rail-head { align-items: flex-start; }
}

/* --------------------------- Product reviews ----------------------------- */
.pdp-rating { display: inline-flex; align-items: center; gap: .45rem; margin: .15rem 0 .95rem; text-decoration: none; font-size: .9rem; color: var(--deep); }
.pdp-rating .stars { color: var(--gold); }
.pdp-rating:hover .muted { color: var(--maroon); }
.star-input { display: inline-flex; gap: .2rem; font-size: 1.5rem; color: #d9c9ab; line-height: 1; }
.star-input span { cursor: pointer; transition: color .15s, transform .15s; user-select: none; }
.star-input span:hover { transform: scale(1.15); }
.star-input span.on { color: var(--gold); }
.product-reviews .review-item { background: #fff; }


/* ================= Pooja Commerce Module ================= */
.pooja-detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr); gap: 2.2rem; align-items: start; }
.pooja-detail-info .pdp-title { margin: .35rem 0 .6rem; }
.pooja-detail-info .pdp-meta { display: flex; gap: 1rem; margin-bottom: .6rem; font-size: .9rem; }
.pooja-detail-media .pdp-main { aspect-ratio: 4/3; }
.pooja-detail-media .pdp-main img { width: 100%; height: 100%; object-fit: cover; }

.pooja-anchor { position: sticky; top: 0; z-index: 30; display: flex; gap: .35rem; overflow-x: auto; background: var(--deep); padding: .55rem .9rem; border-radius: 999px; margin: 1.8rem 0; scrollbar-width: thin; box-shadow: var(--shadow-sm); }
.pooja-anchor a { color: #f4e3d0; text-decoration: none; font-size: .85rem; font-weight: 600; white-space: nowrap; padding: .3rem .7rem; border-radius: 999px; border: 1px solid transparent; }
.pooja-anchor a:hover { color: #fff; background: rgba(255,255,255,.12); }
.pooja-anchor #details:target, .pooja-anchor a.targeted { }

.pooja-section { margin-top: 3rem; }
.pooja-section .section-head h2 { margin-bottom: .4rem; }

.pooja-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-top: 1.4rem; }
.pooja-facts .fact { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; }
.pooja-facts .fact-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .2rem; }
.pooja-facts .fact span:last-child { font-weight: 600; color: var(--deep); }

.benefit-card { border-top: 3px solid var(--saffron); height: 100%; }
.benefit-title { color: var(--maroon); margin-bottom: .35rem; font-size: 1.02rem; }

.process-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; counter-reset: step; }
.process-step { display: flex; gap: .85rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow-sm); }
.step-no { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--maroon); color: #fff; font-weight: 700; }

.countdown-box { display: inline-flex; align-items: center; gap: .8rem; background: var(--deep); color: #ffe9cf; border-radius: var(--radius); padding: .65rem 1rem; margin-top: 1rem; }
.countdown-box strong { color: #fff; font-size: .85rem; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--gold); font-size: .95rem; }

/* Package picker */
.package-list { display: grid; gap: .7rem; margin-bottom: 1.4rem; }
.package-option { display: flex; gap: .7rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; }
.package-option:hover { border-color: var(--saffron); }
.package-option:has(input:checked) { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(133,40,22,.12); background: var(--cream-2); }
.package-option input[type=radio] { margin-top: .25rem; accent-color: var(--maroon); }
.package-option-body { display: grid; gap: .2rem; flex: 1; }
.package-option-head { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.package-price { color: var(--maroon); font-weight: 700; }
.package-details { color: var(--muted); font-size: .85rem; }

.sankalp-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.sankalp-form h3 { margin-bottom: .9rem; color: var(--maroon); font-size: 1.05rem; }

/* Card chips */
.pooja-stats { display: flex; gap: .5rem; flex-wrap: wrap; }
.stat-chip { font-size: .78rem; color: var(--muted); background: var(--cream-2); border: 1px solid var(--line); border-radius: 999px; padding: .18rem .6rem; white-space: nowrap; }
.pdp-rating.sm { font-size: .8rem; margin: .2rem 0 .5rem; }

/* FAQs */
.faq-list { display: grid; gap: .7rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--deep); padding: .9rem 1rem; list-style: none; position: relative; padding-right: 2.2rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 1rem; top: .85rem; color: var(--maroon); font-weight: 700; font-size: 1.15rem; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 1rem 1rem; color: var(--muted); }

/* Admin gallery thumbs */
.admin-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.admin-thumb { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.admin-thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.admin-thumb form { padding: .4rem; }

.quicknav-sep { flex: 0 0 2px; align-self: stretch; background: var(--line); margin: 0 .2rem; }

@media (max-width: 860px) {
    .pooja-detail-grid { grid-template-columns: 1fr; }
    .pooja-anchor { border-radius: 12px; }
}

/* Home page promotional banner */
.promo-banner {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(90, 20, 20, .18);
    line-height: 0;
}
.promo-banner img {
    width: 100%;
    height: auto;
    display: block;
}
@media (max-width: 760px) {
    .promo-banner { border-radius: 12px; }
}
