/* =====================================================
   Namdev Sweets — Premium Theme
   Palette: Maroon #8B0000 | Gold #D4AF37 | Cream #FFF8E7 | Dark Brown #3E2723
   Type: Playfair Display (headings) + Poppins (body)
   ===================================================== */

:root {
    --maroon: #8B0000;
    --maroon-dark: #6d0000;
    --gold: #D4AF37;
    --gold-light: #e7cd7a;
    --cream: #FFF8E7;
    --choc: #3E2723;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', system-ui, sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--choc);
    background: #fffdf8;
    font-weight: 400;
}

.font-display { font-family: var(--font-display); }
.text-maroon { color: var(--maroon) !important; }
.text-cream { color: var(--cream) !important; }
.text-dark-choc { color: var(--choc) !important; }
.text-muted-gold { color: #b8962e; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.bg-cream { background: var(--cream); }

/* ---------- Announcement bar ---------- */
.announce-bar {
    background: linear-gradient(90deg, var(--maroon), #a31515, var(--maroon));
    color: var(--cream);
    letter-spacing: .04em;
}

/* ---------- Navigation ---------- */
.site-nav {
    background: #fffdf8;
    border-bottom: 1px solid rgba(212, 175, 55, .35);
    box-shadow: 0 2px 14px rgba(62, 39, 35, .06);
}
.navbar-brand { font-family: var(--font-display); font-size: 1.5rem; }
.brand-script { color: var(--maroon); font-style: italic; font-weight: 700; }
.brand-caps { color: var(--gold); font-weight: 600; letter-spacing: .22em; font-size: .85em; }
.site-nav .nav-link {
    color: var(--choc); font-size: .92rem; font-weight: 500; padding: .55rem .85rem;
}
.site-nav .nav-link:hover { color: var(--maroon); }
.nav-icon {
    color: var(--choc); font-size: 1.2rem; padding: .35rem .5rem; text-decoration: none;
}
.nav-icon:hover { color: var(--maroon); }
.cart-badge {
    position: absolute; top: 0; right: 0;
    background: var(--maroon); color: #fff;
    font-size: .62rem; border-radius: 50rem; padding: .12rem .38rem;
}
.nav-search { position: relative; }
.nav-search input { border-radius: 50rem 0 0 50rem; border-color: rgba(212,175,55,.5); min-width: 180px; }
.nav-search .btn { border-radius: 0 50rem 50rem 0; }

/* ---------- Buttons ---------- */
.btn-maroon { background: var(--maroon); color: #fff; border: 1px solid var(--maroon); }
.btn-maroon:hover, .btn-maroon:focus { background: var(--maroon-dark); color: #fff; }
.btn-gold { background: var(--gold); color: var(--choc); border: 1px solid var(--gold); font-weight: 500; }
.btn-gold:hover { background: #c19d2c; color: var(--choc); }
.btn-outline-maroon { border: 1px solid var(--maroon); color: var(--maroon); }
.btn-outline-maroon:hover { background: var(--maroon); color: #fff; }
.btn-outline-cream { border: 1px solid var(--cream); color: var(--cream); }
.btn-outline-cream:hover { background: var(--cream); color: var(--choc); }

/* ---------- Hero ---------- */
.hero-img { height: min(64vh, 540px); object-fit: cover; }
.hero-caption { text-shadow: 0 2px 18px rgba(0,0,0,.55); bottom: 18%; }
.hero-default {
    min-height: min(72vh, 580px);
    background:
        radial-gradient(ellipse at 20% 20%, rgba(212,175,55,.22), transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139,0,0,.5), transparent 60%),
        linear-gradient(150deg, var(--choc) 0%, #54352e 55%, var(--maroon) 100%);
    color: var(--cream);
}
.hero-eyebrow { color: var(--gold); letter-spacing: .3em; font-size: .78rem; font-weight: 500; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
.hero-title em { color: var(--gold); }

/* ---------- Sections ---------- */
.section-pad { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.section-head { margin-bottom: 2.2rem; }
.section-eyebrow {
    color: var(--maroon); letter-spacing: .25em; text-transform: uppercase;
    font-size: .74rem; font-weight: 600; margin-bottom: .35rem;
}
.section-eyebrow.gold { color: var(--gold); }
.section-title { font-weight: 700; position: relative; display: inline-block; padding-bottom: .6rem; }
.section-title::after {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
    width: 64px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--maroon));
    border-radius: 2px;
}
.section-head.text-center .section-title { margin-inline: auto; }

/* ---------- Category tiles ---------- */
@media (min-width: 992px) {
    .col-lg-2-4 { flex: 0 0 auto; width: 20%; }
}
.category-tile { text-decoration: none; color: var(--choc); transition: transform .25s; }
.category-tile:hover { transform: translateY(-4px); color: var(--maroon); }
.category-img-wrap {
    width: 110px; height: 110px; margin: 0 auto .65rem; border-radius: 50%;
    background: var(--cream); border: 2px solid rgba(212,175,55,.5);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    box-shadow: 0 6px 18px rgba(62,39,35,.12);
}
.category-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.category-emoji { font-size: 2.6rem; }
.category-name { font-size: .95rem; font-weight: 600; margin: 0; }

/* ---------- Product cards ---------- */
.product-card {
    background: #fff; border: 1px solid rgba(212,175,55,.25); border-radius: 14px;
    overflow: hidden; transition: box-shadow .25s, transform .25s;
}
.product-card:hover { box-shadow: 0 14px 34px rgba(62,39,35,.14); transform: translateY(-3px); }
.product-img-wrap { position: relative; overflow: hidden; aspect-ratio: 1/1; background: var(--cream); }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-img { transform: scale(1.06); }
.placeholder-img {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; color: #c9b88a; font-size: 2rem; background: var(--cream);
}
.badge-sale, .badge-soldout {
    position: absolute; top: 10px; left: 10px; font-size: .66rem; font-weight: 600;
    padding: .3rem .55rem; border-radius: 50rem; letter-spacing: .04em;
}
.badge-sale { background: var(--gold); color: var(--choc); }
.badge-soldout { background: #6c757d; color: #fff; }
.card-actions {
    position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px;
    opacity: 0; transform: translateX(8px); transition: all .25s;
}
.product-card:hover .card-actions { opacity: 1; transform: translateX(0); }
.action-btn {
    width: 34px; height: 34px; border-radius: 50%; border: none;
    background: #fff; color: var(--choc); box-shadow: 0 3px 10px rgba(0,0,0,.18);
    display: flex; align-items: center; justify-content: center; font-size: .9rem;
}
.action-btn:hover { background: var(--maroon); color: #fff; }
.product-title { font-size: .95rem; font-weight: 600; margin: .15rem 0; }
.product-title a { color: var(--choc); text-decoration: none; }
.product-title a:hover { color: var(--maroon); }
.price { color: var(--maroon); font-weight: 700; }
.price-strike { color: #9b8d85; text-decoration: line-through; font-size: .8rem; margin-left: .3rem; }
.rating-stars { color: var(--gold); font-size: .8rem; }

/* ---------- Festival section ---------- */
.festival-section {
    background:
        radial-gradient(ellipse at 80% 10%, rgba(212,175,55,.25), transparent 55%),
        linear-gradient(140deg, #2c1a16, var(--choc) 60%, #58110d);
}
.festival-section .product-card { border-color: rgba(212,175,55,.5); }

/* ---------- USP / review / chips ---------- */
.usp-icon {
    width: 76px; height: 76px; margin: 0 auto; border-radius: 50%;
    background: var(--cream); border: 2px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--maroon);
}
.review-card {
    background: #fff; border: 1px solid rgba(212,175,55,.3); border-left: 4px solid var(--gold);
    border-radius: 12px; padding: 1.25rem;
}
.area-chip {
    background: var(--cream); border: 1px solid rgba(212,175,55,.45);
    padding: .45rem .9rem; border-radius: 50rem; font-size: .82rem;
}
.insta-tile {
    aspect-ratio: 1/1; border-radius: 12px; font-size: 2.2rem; text-decoration: none;
    background: linear-gradient(135deg, var(--cream), #f7e9c4);
    border: 1px solid rgba(212,175,55,.4); transition: transform .25s;
}
.insta-tile:hover { transform: scale(1.04); }

/* ---------- Filter / cards ---------- */
.filter-card {
    background: #fff; border: 1px solid rgba(212,175,55,.3);
    border-radius: 14px; padding: 1.25rem;
}
.filter-list a { color: var(--choc); text-decoration: none; display: block; padding: .3rem 0; font-size: .9rem; }
.filter-list a:hover, .filter-list a.active { color: var(--maroon); font-weight: 600; }
.breadcrumb a { color: var(--maroon); text-decoration: none; }
.page-link { color: var(--maroon); }
.page-item.active .page-link { background: var(--maroon); border-color: var(--maroon); }

/* ---------- Product detail ---------- */
.gallery-main {
    border-radius: 16px; overflow: hidden; aspect-ratio: 1/1;
    border: 1px solid rgba(212,175,55,.35); background: var(--cream); position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder { font-size: 3rem; }
/* Zoom effect on hover */
.img-zoom { transition: transform .25s ease-out; cursor: zoom-in; }
.gallery-main:hover .img-zoom { transform: scale(1.8); }
.gallery-thumb {
    width: 64px; height: 64px; border-radius: 10px; overflow: hidden; padding: 0;
    border: 2px solid transparent; background: none;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--gold); }
.btn-variant {
    border: 1.5px solid rgba(212,175,55,.6); color: var(--choc);
    border-radius: 10px; line-height: 1.25; font-size: .85rem;
}
.btn-check:checked + .btn-variant { background: var(--maroon); color: #fff; border-color: var(--maroon); }

/* ---------- Quantity control ---------- */
.qty-control {
    display: inline-flex; align-items: center; border: 1.5px solid rgba(212,175,55,.6);
    border-radius: 50rem; overflow: hidden;
}
.qty-btn {
    width: 38px; height: 38px; border: none; background: var(--cream);
    color: var(--maroon); font-size: 1.2rem; font-weight: 600;
}
.qty-btn:hover { background: var(--gold-light); }
.qty-control input {
    width: 48px; border: none; text-align: center; font-weight: 600; -moz-appearance: textfield;
}
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm .qty-btn { width: 30px; height: 30px; font-size: 1rem; }
.qty-sm input { width: 40px; font-size: .85rem; }

/* ---------- Cart ---------- */
.cart-row {
    background: #fff; border: 1px solid rgba(212,175,55,.3);
    border-radius: 12px; padding: .8rem 1rem; margin-bottom: .75rem;
}
.cart-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.payment-option {
    border: 1.5px solid rgba(212,175,55,.4); border-radius: 12px; padding: .85rem 1rem; cursor: pointer;
}
.payment-option:has(input:checked) { border-color: var(--maroon); background: var(--cream); }
.saved-address:has(input:checked) { border-color: var(--maroon) !important; background: var(--cream); }

/* ---------- Order tracker ---------- */
.order-tracker { position: relative; }
.tracker-step { text-align: center; flex: 1; position: relative; color: #adb5bd; }
.tracker-step small { font-size: .68rem; display: block; margin-top: .35rem; }
.tracker-dot {
    width: 16px; height: 16px; border-radius: 50%; background: #dee2e6; margin: 0 auto; position: relative; z-index: 1;
}
.tracker-step:not(:first-child)::before {
    content: ''; position: absolute; top: 7px; left: -50%; width: 100%; height: 3px; background: #dee2e6;
}
.tracker-step.done { color: var(--choc); }
.tracker-step.done .tracker-dot { background: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.3); }
.tracker-step.done:not(:first-child)::before { background: var(--gold); }

/* ---------- Account ---------- */
.account-nav .list-group-item { border-color: rgba(212,175,55,.3); }
.account-nav .list-group-item.active { background: var(--maroon); border-color: var(--maroon); }

/* ---------- Footer ---------- */
.site-footer { background: var(--choc); color: var(--cream); }
.footer-brand { font-family: var(--font-display); color: var(--gold); }
.footer-heading { color: var(--gold); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a {
    color: var(--cream); opacity: .8; text-decoration: none; font-size: .88rem; display: block; padding: .22rem 0;
}
.footer-links a:hover { opacity: 1; color: var(--gold); }
.footer-divider { border-color: rgba(212,175,55,.3); }
.social-icon {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(212,175,55,.5);
    color: var(--gold); display: flex; align-items: center; justify-content: center; text-decoration: none;
}
.social-icon:hover { background: var(--gold); color: var(--choc); }

/* ---------- Floating buttons ---------- */
.float-btn {
    position: fixed; right: 18px; z-index: 1040;
    width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff; text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,.28); transition: transform .2s;
}
.float-btn:hover { transform: scale(1.08); color: #fff; }
.whatsapp-btn { bottom: 88px; background: #25D366; }
.call-btn { bottom: 22px; background: var(--maroon); font-size: 1.25rem; }

/* ---------- Festival popup ---------- */
.festival-popup {
    background: linear-gradient(160deg, var(--cream), #fdf2d4);
    border: 2px solid var(--gold); border-radius: 18px;
}

/* ---------- Spinner color ---------- */
.text-maroon.spinner-border, .spinner-border.text-maroon { color: var(--maroon); }

/* ---------- Mobile-first tweaks ---------- */
@media (max-width: 575px) {
    .section-pad { padding-top: 2.4rem; padding-bottom: 2.4rem; }
    .hero-title { font-size: 2.2rem; }
    .category-img-wrap { width: 86px; height: 86px; }
    .float-btn { width: 48px; height: 48px; font-size: 1.3rem; }
    .whatsapp-btn { bottom: 78px; }
}
