/* ============================================================
   BRAJ PUJAN - MAIN DESIGN SYSTEM (v2 — polished)
   Font: Poppins | Primary: Gold #d4af37 | BG: White | Text: Black
   All class names below are used across the entire site — kept
   100% intact so nothing breaks. Only visuals/spacing/sizes refined.
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #d4af37;
    --primary-dark: #b8952a;
    --primary-light: #fdf1d0;
    --black: #2b2118;
    --gray-dark: #5a4a38;
    --gray: #8a7a5f;
    --gray-light: #e8dcc0;
    --gray-bg: #fdf6e3;
    --white: #ffffff;
    --green: #1a9c5c;
    --green-dark: #147a48;
    --red: #d93737;
    --yellow: #e0a30d;
    --navy: #4a1010;
    --navy-2: #7a1f1f;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow: 0 2px 12px rgba(74,16,16,0.08);
    --shadow-md: 0 10px 28px rgba(74,16,16,0.14);
    --ease: cubic-bezier(.25,.8,.25,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--primary); color: #fff; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------------- TYPOGRAPHY (smaller, cleaner scale) ---------------- */
h1,h2,h3,h4,h5 { font-weight: 700; color: var(--black); line-height: 1.32; letter-spacing: -.2px; }
h1 { font-size: 28px; }
h2 { font-size: 23px; }
h3 { font-size: 17px; }
p { color: var(--gray-dark); font-size: 14px; }
.text-primary { color: var(--primary); }
.text-green { color: var(--green); }
.section-title { text-align: center; margin-bottom: 8px; }
.section-subtitle { text-align: center; color: var(--gray); font-size: 13px; max-width: 600px; margin: 0 auto 34px; line-height: 1.7; }

/* ---------------- HEADER ---------------- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow .25s var(--ease);
}
.brand { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 700; }
.brand-logo {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 17px;
    box-shadow: 0 4px 10px rgba(241,137,18,.35);
}
.main-nav { display: flex; gap: 22px; align-items: center; }
.main-nav a { position: relative; font-weight: 500; color: var(--gray-dark); font-size: 13.5px; transition: color .2s; padding: 6px 0; }
.main-nav a::after {
    content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--primary);
    border-radius: 2px; transition: width .25s var(--ease);
}
.main-nav a.active, .main-nav a:hover { color: var(--primary); }
.main-nav a.active::after, .main-nav a:hover::after { width: 100%; }
.header-right { display: flex; align-items: center; gap: 12px; }
.lang-select { border: 1px solid var(--gray-light); border-radius: var(--radius-sm); padding: 6px 10px; font-size: 12.5px; background: var(--white); }
.profile-icon {
    width: 36px; height: 36px; border-radius: 50%; background: var(--gray-bg);
    display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--gray-dark);
    border: 1px solid var(--gray-light); transition: all .2s var(--ease);
}
.profile-icon:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.hamburger { display: none; font-size: 22px; background: none; border: none; color: var(--black); }

/* ---------------- BUTTONS ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: var(--radius-sm); font-weight: 600; font-size: 13.5px;
    transition: all .2s var(--ease); }
.btn-primary { background: var(--green); color: var(--white); box-shadow: 0 4px 12px rgba(26,156,92,.25); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(26,156,92,.32); }
.btn-outline { background: var(--white); color: var(--black); border: 1.5px solid var(--gray-light); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.btn-orange { background: var(--primary); color: var(--white); box-shadow: 0 4px 12px rgba(241,137,18,.25); }
.btn-orange:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 15px; font-size: 12px; }

/* ---------------- HERO ---------------- */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: var(--white);
    min-height: 440px;
    overflow: hidden;
    position: relative;
}
.hero-slide { display: none; align-items: center; min-height: 440px; width: 100%; }
.hero-slide.active { display: flex; animation: bpFadeIn .5s var(--ease); }
@keyframes bpFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.hero .container { display: flex; align-items: center; gap: 40px; width: 100%; }
.hero-text { flex: 1; max-width: 460px; z-index: 2; }
.hero-text h1 { color: var(--white); font-size: 32px; margin-bottom: 14px; }
.hero-text h1 span { color: var(--primary); }
.hero-text p { color: #f0dca0; margin-bottom: 22px; font-size: 14px; line-height: 1.7; }
.hero-img { flex: 1; text-align: center; }
.hero-img img { border-radius: var(--radius-md); max-height: 420px; margin-left: auto; box-shadow: 0 20px 44px rgba(0,0,0,.3); }
.hero-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: white; display: flex; align-items: center; justify-content: center; font-size: 15px;
    transition: all .2s var(--ease); cursor: pointer;
}
.hero-nav-btn:hover { background: rgba(255,255,255,.24); }
.hero-nav-btn.left { left: 18px; } .hero-nav-btn.right { right: 18px; }
.hero-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.hero-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.35); transition: all .25s var(--ease); cursor: pointer; }
.hero-dots span.active { background: var(--primary); width: 22px; border-radius: 4px; }

/* ---------------- TRUST STRIP ---------------- */
.trust-strip {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 13px 0;
    display: flex;
    justify-content: center;
    gap: 44px;
    flex-wrap: wrap;
    font-weight: 500;
    font-size: 13px;
}
.trust-strip span { display: flex; align-items: center; gap: 8px; }

/* ---------------- SECTION ---------------- */
.section { padding: 52px 0; }
.section-alt { background: var(--gray-bg); }

/* ---------------- CARD GRID ---------------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------------- PUJA / SEVA CARD ---------------- */
.card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
    display: flex;
    flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: #f3d9b3; }
/* ---------------- IMAGE PLACEHOLDER (shown when no image uploaded yet) ---------------- */
.img-placeholder {
    width: 100%; height: 100%; min-height: 130px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--gray-bg)); color: var(--primary);
    font-size: 28px;
}
.card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--gray-light); }
.card-img img, .card-img .img-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }

/* ---------------- QTY SELECTOR BUTTONS ---------------- */
.qty-btn.selected { background: var(--primary); color: #fff; border-color: var(--primary); }

.badge-live {
    position: absolute; top: 11px; left: 11px; background: var(--red); color: white;
    font-size: 10px; font-weight: 700; padding: 5px 10px; border-radius: 20px;
    display: flex; align-items: center; gap: 4px;
}
.badge-special {
    position: absolute; bottom: 11px; left: 11px; background: rgba(255,193,7,.95); color: #4a3400;
    font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: 20px;
}
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card-tag { color: #c0398a; font-size: 10px; font-weight: 700; letter-spacing: .5px; margin-bottom: 6px; text-transform: uppercase; }
.card-body h3 { font-size: 15px; margin-bottom: 7px; }
.card-body p { font-size: 12.5px; margin-bottom: 11px; line-height: 1.6; }
.card-meta { font-size: 12px; color: var(--gray); display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.card-meta span { display: flex; align-items: center; gap: 6px; }
.card-price { color: var(--green); font-weight: 700; font-size: 15px; margin-bottom: 11px; }

/* ---------------- STATUS BADGES (used on My Seva / My Puja / My Orders etc.) ---------------- */
.badge { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-pending { background: #fff5db; color: #9a7300; }
.badge-confirmed { background: #e2f0ff; color: #1a5db8; }
.badge-progress { background: #fdf0da; color: #b5690a; }
.badge-completed { background: #e2f7ea; color: var(--green-dark); }
.badge-cancelled { background: #fbe4e4; color: #a12424; }

/* ---------------- ICON FEATURE CARD ---------------- */
.feature-card { text-align: left; }
.feature-icon {
    width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex;
    align-items: center; justify-content: center; font-size: 19px; color: white; margin-bottom: 13px;
    box-shadow: 0 6px 14px rgba(0,0,0,.12);
}
.feature-card h4 { margin-bottom: 6px; font-size: 14.5px; }
.feature-card p { font-size: 12.5px; }

/* ---------------- STEP PROCESS ---------------- */
.step-item { display: flex; gap: 13px; margin-bottom: 22px; }
.step-num {
    width: 28px; height: 28px; border-radius: 8px; background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(241,137,18,.3);
}
.step-item h4 { font-size: 14px; margin-bottom: 4px; }
.step-item p { font-size: 12.5px; }

/* ---------------- TABS ---------------- */
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--gray-light); overflow-x: auto; margin-bottom: 28px; }
.tab-item { padding: 11px 2px; font-weight: 500; font-size: 13px; color: var(--gray); white-space: nowrap; border-bottom: 2px solid transparent; cursor: pointer; transition: color .2s; }
.tab-item.active { color: var(--primary); border-color: var(--primary); font-weight: 600; }

/* ---------------- PACKAGE SELECT CARD ---------------- */
.package-card {
    border: 1.5px solid var(--gray-light); border-radius: var(--radius-md); padding: 13px; cursor: pointer;
    position: relative; transition: all .2s var(--ease); text-align: center;
}
.package-card:hover { border-color: #f3d9b3; }
.package-card.selected { border-color: var(--primary); background: var(--primary-light); }
.package-check {
    position: absolute; top: 10px; right: 10px; width: 19px; height: 19px; border-radius: 50%;
    border: 2px solid var(--gray-light); background: white; transition: all .2s;
}
.package-card.selected .package-check { background: var(--primary); border-color: var(--primary); }
.package-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--primary-light); color: var(--primary-dark);
    font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 20px; margin-bottom: 8px; }
.package-card img { border-radius: var(--radius-sm); margin: 8px auto; height: 66px; width: 66px; object-fit: cover; }
.package-card .price { color: var(--green); font-weight: 700; font-size: 13.5px; }

/* ---------------- MODAL ---------------- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(15,15,25,.65); display: none;
    align-items: center; justify-content: center; z-index: 1000; padding: 20px;
}
.modal-overlay.open { display: flex; animation: bpFadeIn .2s var(--ease); }
.modal-box { background: white; border-radius: var(--radius-md); max-width: 620px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 24px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal-close { position: absolute; top: 16px; right: 16px; font-size: 18px; color: var(--gray); cursor: pointer; transition: color .2s; }
.modal-close:hover { color: var(--red); }
.modal-check-list li { display: flex; gap: 10px; margin-bottom: 10px; font-size: 13px; color: var(--gray-dark); }
.modal-check-list li::before { content: "✓"; color: var(--green); font-weight: 700; }

/* ---------------- COUNTDOWN ---------------- */
.countdown { display: flex; gap: 9px; margin: 13px 0; }
.countdown-box { background: var(--primary-light); color: var(--primary-dark); border-radius: var(--radius-sm);
    padding: 8px 13px; text-align: center; min-width: 52px; }
.countdown-box .num { font-size: 16px; font-weight: 700; display: block; }
.countdown-box .label { font-size: 9px; text-transform: uppercase; letter-spacing: .3px; }

/* ---------------- AVATAR STACK / RATING ---------------- */
.avatar-stack { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.avatars { display: flex; }
.avatars img, .avatars .av { width: 26px; height: 26px; border-radius: 50%; border: 2px solid white; margin-left: -8px; background: var(--gray-light); }
.avatars img:first-child, .avatars .av:first-child { margin-left: 0; }
.rating { font-size: 12px; color: var(--gray); font-weight: 600; }
.rating .stars { color: var(--yellow); }

/* ---------------- CHECKOUT / CART ---------------- */
.checkout-steps { display: flex; gap: 18px; background: var(--gray-bg); padding: 13px 0; margin-bottom: 24px; overflow-x: auto; border-radius: var(--radius-sm); }
.checkout-steps .step { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--gray); white-space: nowrap; padding: 0 12px; }
.checkout-steps .step.done { color: var(--green); font-weight: 600; }
.checkout-steps .step.active { color: var(--primary); font-weight: 600; }
.checkout-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.summary-card { border: 1px solid var(--gray-light); border-radius: var(--radius-md); padding: 18px; margin-bottom: 18px; }
.bill-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13.5px; color: var(--gray-dark); }
.bill-row.total { font-weight: 700; color: var(--black); border-top: 1px solid var(--gray-light); margin-top: 6px; padding-top: 11px; }
.upsell-card { display: flex; gap: 13px; border: 1px solid var(--gray-light); border-radius: var(--radius-md); padding: 13px; margin-bottom: 15px; transition: border-color .2s; }
.upsell-card:hover { border-color: #f3d9b3; }
.upsell-card img, .upsell-card .img-placeholder { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; min-height: 0; font-size: 18px; }
.upsell-card .info h4 { font-size: 13px; margin-bottom: 4px; }
.upsell-card .info p { font-size: 11.5px; margin-bottom: 8px; }
.sticky-cta { position: sticky; bottom: 0; background: white; padding: 15px 0; border-top: 1px solid var(--gray-light); }

/* ---------------- FORM ---------------- */
.form-group { margin-bottom: 17px; }
.form-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.form-control {
    width: 100%; padding: 11px 13px; border: 1.5px solid var(--gray-light); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 13.5px; background: white; color: var(--black); transition: border-color .2s var(--ease);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(241,137,18,.12); }
textarea.form-control { resize: vertical; min-height: 96px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.auth-card { max-width: 420px; margin: 54px auto; padding: 32px; border: 1px solid var(--gray-light); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.auth-card h2 { text-align: center; margin-bottom: 22px; font-size: 21px; }

/* ---------------- FOOTER ---------------- */
.site-footer { background: linear-gradient(160deg, var(--primary-dark), var(--primary)); color: white; padding: 46px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 28px; padding-bottom: 28px; }
.footer-grid h4 { color: white; margin-bottom: 15px; font-size: 14px; }
.footer-grid p, .footer-grid a { color: rgba(255,255,255,.85); font-size: 12.5px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a { transition: color .2s; }
.footer-grid ul li a:hover { color: white; text-decoration: underline; }
.footer-social { display: flex; gap: 9px; margin-top: 13px; }
.footer-social a { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; transition: all .2s var(--ease); }
.footer-social a:hover { background: rgba(255,255,255,.32); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.22); padding: 16px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; }
.footer-bottom a { margin-left: 15px; }
.app-badges { display: flex; gap: 10px; }
.app-badges img { height: 34px; }

/* ---------------- STAT BLOCK ---------------- */
.stats-block { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: white; padding: 46px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 18px; }
.stat-item { display: flex; gap: 11px; }
.stat-icon { width: 38px; height: 38px; border-radius: var(--radius-sm); background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-item h4 { color: white; font-size: 16.5px; }
.stat-item p { color: #f0dca0; font-size: 12px; }

/* ---------------- BOTTOM MOBILE NAV ---------------- */
.bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #ffffff;
    border-top: 1px solid var(--gray-light); justify-content: space-around;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); z-index: 200; box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; font-size: 9.5px; color: var(--gray); gap: 3px; transition: color .2s; }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav .icon { font-size: 18px; }

/* ---------------- BREADCRUMB ---------------- */
.breadcrumb { font-size: 12.5px; color: var(--gray); padding: 13px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--gray); transition: color .2s; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------------- PANEL (generic content block used across dashboard/info pages) ---------------- */
.panel { background: var(--white); border: 1px solid var(--gray-light); border-radius: var(--radius-md); padding: 20px; margin-bottom: 18px; transition: box-shadow .2s var(--ease); }
.panel:hover { box-shadow: var(--shadow); }

/* ---------------- FILTERS BAR (category filter buttons) ---------------- */
.filters-bar { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------- TAB CONTENT (shown/hidden by JS) ---------------- */
.tab-content { display: none; }
.tab-content.active { display: block; animation: bpFadeIn .3s var(--ease); }

/* ---------------- FAQ ACCORDION ---------------- */
.faq-answer { font-size: 13px; color: var(--gray-dark); line-height: 1.7; }

/* ---------------- CART QTY STEPPER ---------------- */
.cart-qty-control { display: flex; align-items: center; gap: 8px; }
.qty-minus, .qty-plus {
    width: 26px; height: 26px; border-radius: 6px; border: 1.5px solid var(--gray-light); background: white;
    display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--gray-dark);
    transition: all .2s var(--ease);
}
.qty-minus:hover, .qty-plus:hover { border-color: var(--primary); color: var(--primary); }
.qty-value { width: 34px; text-align: center; font-weight: 600; font-size: 13px; }

/* ---------------- MISC ---------------- */
.empty-state { text-align: center; padding: 56px 20px; color: var(--gray); font-size: 13.5px; }
.alert { padding: 13px 17px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 13px; }
.alert-success { background: #e4f7ec; color: var(--green-dark); border: 1px solid #b7ebce; }
.alert-error { background: #fdeaea; color: #a12424; border: 1px solid #f5c2c2; }

/* ---------------- FLOATING WHATSAPP BUTTON (all pages) ---------------- */
.wa-float {
    position: fixed; bottom: 22px; right: 22px; width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 26px; box-shadow: 0 8px 20px rgba(37,211,102,.45); z-index: 500; transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
@media (max-width: 768px) {
    .wa-float { width: 50px; height: 50px; font-size: 22px; bottom: 78px; right: 16px; }
}

/* ---------------- SITE POPUP (admin-managed) ---------------- */
.site-popup-overlay {
    position: fixed; inset: 0; background: rgba(20,15,10,.6); display: none; align-items: center; justify-content: center;
    z-index: 600; padding: 20px; opacity: 0; transition: opacity .25s ease;
}
.site-popup-overlay.open { display: flex; opacity: 1; }
.site-popup-box {
    background: #fff; border-radius: 18px; max-width: 420px; width: 100%; overflow: hidden; position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,.3); animation: popupPop .35s cubic-bezier(.25,.8,.25,1);
}
@keyframes popupPop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.site-popup-close {
    position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.4);
    color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; font-size: 13px;
}
.site-popup-img { aspect-ratio: 16/10; background: var(--gray-light); }
.site-popup-img img, .site-popup-img .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.site-popup-body { padding: 22px; text-align: center; }
.site-popup-body h3 { font-size: 19px; margin-bottom: 8px; color: var(--primary-dark); }
.site-popup-body p { font-size: 13.5px; color: var(--gray-dark); margin-bottom: 16px; line-height: 1.6; }

/* ---------------- REUSABLE PAGE HERO (attractive banner for listing pages) ---------------- */
.page-hero {
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, #3a2a1a 130%);
    color: #fff; padding: 46px 0 40px; position: relative; overflow: hidden; margin-bottom: 6px;
}
.page-hero::before { content: ""; position: absolute; width: 260px; height: 260px; background: var(--primary); opacity: .18; border-radius: 50%; filter: blur(60px); top: -100px; right: -60px; }
.page-hero::after { content: ""; position: absolute; width: 200px; height: 200px; background: #d4af37; opacity: .15; border-radius: 50%; filter: blur(50px); bottom: -80px; left: -40px; }
.page-hero-inner { position: relative; z-index: 1; text-align: center; }
.page-hero-icon {
    width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 14px; color: var(--primary);
}
.page-hero h1 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.page-hero p { color: #f0dca0; font-size: 13.5px; max-width: 520px; margin: 0 auto; line-height: 1.7; }
@media (max-width: 640px) {
    .page-hero { padding: 32px 0 28px; }
    .page-hero h1 { font-size: 21px; }
    .page-hero-icon { width: 48px; height: 48px; font-size: 18px; }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .hamburger { display: block; }
    .hero .container { flex-direction: column; text-align: center; }
    .hero-text { max-width: 100%; }
    .hero-img img { margin: 0 auto; }
    .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
    .trust-strip { gap: 14px; font-size: 12px; flex-direction: column; align-items: center; }
    body { padding-bottom: 64px; font-size: 13.5px; }
    .bottom-nav { display: flex; }
    .form-row { grid-template-columns: 1fr; }
    h1 { font-size: 22px; }
    h2 { font-size: 19px; }
    .footer-grid { grid-template-columns: 1fr; text-align: left; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .btn { font-size: 13px; padding: 10px 18px; }
}

/* Mobile off-canvas menu */
.mobile-menu {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100%; background: white;
    box-shadow: -4px 0 24px rgba(0,0,0,.18); z-index: 300; transition: right .3s var(--ease); padding: 20px;
}
.mobile-menu.open { right: 0; }
.mobile-menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--gray-light); font-weight: 500; font-size: 13.5px; transition: color .2s; }
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 299; display: none; }
.mobile-menu-overlay.open { display: block; }