/* ==============================================================
   Hisar Dry Fruits — Design Tokens
   Palette derived from the dry fruits themselves:
   maroon (dried fig skin) / gold (saffron & roasted cashew) /
   walnut brown / pistachio green / cashew cream / almond beige
   ============================================================== */
:root {
    --maroon: #6B1D1D;
    --maroon-dark: #4E1414;
    --gold: #D4A017;
    --gold-light: #E8C158;
    --walnut: #5A3B22;
    --pistachio: #8FA87A;
    --cashew-cream: #F3E5C8;
    --almond-beige: #EADFC8;
    --off-white: #FFFDF8;
    --text-dark: #2C1E12;
    --text-muted: #7A6A55;
    --danger: #B23A2E;
    --success: #4B7B4E;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', 'Segoe UI', sans-serif;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(90, 59, 34, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--off-white);
    color: var(--text-dark);
    line-height: 1.55;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5rem; color: var(--maroon-dark); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
button, .btn { cursor: pointer; font-family: var(--font-body); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    border: none;
    border-radius: 999px;
    padding: 12px 26px;
    font-weight: 600;
    font-size: .95rem;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--maroon); color: var(--off-white); }
.btn-primary:hover { background: var(--maroon-dark); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--maroon-dark); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--maroon); color: var(--maroon); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1EBE5A; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--maroon);
    color: var(--off-white);
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--gold-light); }
.logo img { height: 42px; width: 42px; border-radius: 50%; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-weight: 600; letter-spacing: .3px; padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { border-bottom-color: var(--gold); color: var(--gold-light); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.cart-link { position: relative; font-size: 1.3rem; }
.cart-badge {
    position: absolute; top: -8px; right: -12px;
    background: var(--gold); color: var(--maroon-dark);
    font-size: .7rem; font-weight: 700; border-radius: 50%;
    width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
}
.nav-toggle { display: none; background: none; border: none; color: var(--off-white); font-size: 1.6rem; }

@media (max-width: 860px) {
    .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--maroon); flex-direction: column; gap: 0; padding: 10px 0; display: none; }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 20px; display: block; }
    .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
    color: var(--off-white);
    padding: 70px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(212,160,23,.15), transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(212,160,23,.12), transparent 40%);
}
.hero h1 { color: var(--off-white); font-size: 2.6rem; position: relative; }
.hero p { max-width: 600px; margin: 0 auto 24px; color: var(--cashew-cream); font-size: 1.1rem; position: relative; }
.trust-badges { display: flex; justify-content: center; gap: 24px; margin-top: 30px; flex-wrap: wrap; }
.trust-badges span { background: rgba(255,255,255,.08); border: 1px solid var(--gold); padding: 8px 18px; border-radius: 999px; font-size: .85rem; color: var(--gold-light); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--almond-beige); }
.section-header { text-align: center; margin-bottom: 34px; }
.section-header h2 { font-size: 2rem; }
.section-header p { color: var(--text-muted); }
.section-header .eyebrow { text-transform: uppercase; letter-spacing: 2px; color: var(--gold); font-weight: 700; font-size: .78rem; }

/* ---------- Category tiles ---------- */
.category-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.category-tile {
    background: linear-gradient(160deg, var(--walnut), var(--maroon-dark));
    color: var(--off-white); border-radius: var(--radius);
    padding: 40px 24px; text-align: center; box-shadow: var(--shadow);
    transition: transform .2s ease;
}
.category-tile:hover { transform: translateY(-4px); }
.category-tile .icon { font-size: 2.4rem; margin-bottom: 12px; }
.category-tile h3 { color: var(--gold-light); }
@media (max-width: 760px) { .category-tiles { grid-template-columns: 1fr; } }

/* ---------- Product grid & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.product-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); display: flex; flex-direction: column;
    border: 1px solid rgba(212,160,23,.25);
    position: relative;
}
.product-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: var(--gold); color: var(--maroon-dark);
    font-size: .7rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .5px;
}
.product-img, .img-placeholder {
    width: 100%; height: 190px; object-fit: cover;
    background: linear-gradient(135deg, var(--cashew-cream), var(--almond-beige));
}
.img-placeholder { display: flex; align-items: center; justify-content: center; }
.img-placeholder span { font-family: var(--font-display); font-size: 3rem; color: var(--gold); opacity: .6; }
.product-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { font-size: 1.05rem; margin: 0; }
.product-variety { color: var(--text-muted); font-size: .85rem; margin: -6px 0 0; }
.product-nutrition { font-size: .78rem; color: var(--text-muted); border-top: 1px dashed var(--almond-beige); padding-top: 8px; }
.pack-selector { display: flex; gap: 6px; }
.pack-selector button {
    flex: 1; border: 1px solid var(--walnut); background: #fff; color: var(--walnut);
    border-radius: 8px; padding: 6px 4px; font-size: .78rem; font-weight: 600;
}
.pack-selector button.active { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.product-price { font-family: var(--font-display); font-size: 1.3rem; color: var(--maroon); font-weight: 700; }
.stars { color: var(--gold); font-size: .85rem; }

/* ---------- Gift hampers ---------- */
.hampers-section { background: linear-gradient(160deg, var(--maroon-dark), var(--walnut)); color: var(--off-white); }
.hampers-section .section-header h2, .hampers-section .section-header .eyebrow { color: var(--gold-light); }
.hampers-section .section-header p { color: var(--cashew-cream); }
.hamper-card { background: rgba(255,253,248,.06); border: 1px solid var(--gold); }
.hamper-card .product-price { color: var(--gold-light); }
.hamper-card h3, .hamper-card .product-variety, .hamper-card .product-nutrition { color: var(--off-white); }

/* ---------- Delivery progress banner ---------- */
.delivery-banner { background: var(--pistachio); color: #1f3319; padding: 12px 18px; border-radius: 10px; font-size: .92rem; font-weight: 600; text-align: center; margin-bottom: 20px; }
.delivery-banner.unlocked { background: var(--gold); color: var(--maroon-dark); }
.delivery-progress-track { background: rgba(255,255,255,.5); border-radius: 999px; height: 8px; margin-top: 8px; overflow: hidden; }
.delivery-progress-fill { background: var(--maroon); height: 100%; border-radius: 999px; transition: width .3s ease; }

/* ---------- Reviews ---------- */
.review-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border-left: 4px solid var(--gold); }
.review-card .stars { font-size: 1rem; }
.review-card .reviewer { font-weight: 700; margin-top: 8px; }

/* ---------- Forms ---------- */
.form-card { max-width: 480px; margin: 0 auto; background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 11px 14px; border: 1px solid #ddd0b5; border-radius: 8px; font-family: var(--font-body); font-size: .95rem;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--gold); }
.form-error { color: var(--danger); font-size: .85rem; margin-top: 8px; }
.form-success { color: var(--success); font-size: .85rem; margin-top: 8px; }

/* ---------- Cart / table ---------- */
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cart-table th, .cart-table td { padding: 14px; text-align: left; border-bottom: 1px solid var(--almond-beige); }
.cart-table th { background: var(--almond-beige); font-family: var(--font-display); }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--walnut); border-radius: 8px; overflow: hidden; }
.qty-control button { background: var(--almond-beige); border: none; width: 30px; height: 30px; font-weight: 700; }
.qty-control input { width: 40px; text-align: center; border: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-dark); color: var(--cashew-cream); padding: 44px 20px 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; max-width: 1200px; margin: 0 auto; }
.footer-grid h4 { color: var(--gold-light); }
.footer-grid a { display: block; margin-bottom: 8px; color: var(--cashew-cream); opacity: .9; }
.footer-bottom { text-align: center; padding-top: 24px; margin-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; opacity: .8; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
    position: fixed; bottom: 22px; right: 22px; z-index: 200;
    background: #25D366; color: #fff; width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

/* ---------- Misc ---------- */
.badge-outofstock { background: var(--danger); color: #fff; }
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.breadcrumb { font-size: .85rem; color: var(--text-muted); padding: 16px 0; }
.category-tabs { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.category-tabs a { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--walnut); font-weight: 600; font-size: .88rem; }
.category-tabs a.active { background: var(--maroon); color: #fff; border-color: var(--maroon); }
