/* ============================================================
   Ness Things — Design tokens
   Palette: 60% Cream Canvas / 30% Light Emerald Structure /
            5% Light Golden / 5% Golden Accent
   Type: Fraunces (headline) + Manrope (body/UI)
   Layout idea: the site borrows the "drawer & tray" language of
   the products themselves — thin dividing rules, small corner
   ticks like drawer labels, flat bordered trays instead of
   rounded shadow cards.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Manrope:wght@400;500;600;700&display=swap');

:root {
    --cream:        #F4EFE2;
    --cream-deep:   #ECE4D2;
    --paper:        #FBF8F1;
    --emerald-deep: #2E4A3E;
    --emerald:      #5C8973;
    --emerald-soft: #7FA491;
    --gold-light:   #E7C888;
    --gold-accent:  #B9822E;
    --ink:          #2A2620;
    --ink-soft:     #5A5548;
    --line:         #D8CFB9;
    --white:        #FFFFFF;
    --danger:       #A9432E;

    --font-head: "Fraunces", "Georgia", serif;
    --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-tray: 3px;
    --max-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 500;
    color: var(--emerald-deep);
    line-height: 1.15;
    margin: 0 0 0.4em;
}
h1 { font-weight: 600; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--ink-soft); }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* Focus visibility (accessibility floor) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--gold-accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius-tray);
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--emerald-deep); color: var(--white); }
.btn-primary:hover { background: var(--emerald); }
.btn-gold { background: var(--gold-accent); color: var(--white); }
.btn-gold:hover { background: #a5741f; }
.btn-outline { background: transparent; border-color: var(--emerald-deep); color: var(--emerald-deep); }
.btn-outline:hover { background: var(--emerald-deep); color: var(--white); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------------- Visit banners ---------------- */
.visit-banner {
    background: var(--emerald-deep);
    color: var(--paper);
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
}
.visit-banner strong { color: var(--gold-light); }

/* ---------------- Header ---------------- */
.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}
.logo {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 600;
    color: var(--emerald-deep);
    letter-spacing: 0.3px;
}
.logo span { color: var(--gold-accent); }
.main-nav { display: flex; gap: 28px; }
.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { border-bottom-color: var(--gold-accent); color: var(--emerald-deep); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.cart-pill {
    display: flex; align-items: center; gap: 6px;
    background: var(--emerald-deep); color: var(--white);
    padding: 9px 16px; border-radius: var(--radius-tray);
    font-weight: 600; font-size: 14px;
}
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--emerald-deep); cursor: pointer; }

@media (max-width: 860px) {
    .main-nav { position: fixed; top: 66px; left: 0; right: 0; background: var(--paper); flex-direction: column; gap: 0; padding: 8px 24px 16px; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 0.18s ease; }
    .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; }
    .nav-toggle { display: block; }
}

/* ---------------- Hero ---------------- */
.hero {
    padding: 56px 0 40px;
    border-bottom: 1px solid var(--line);
}
.hero .row {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}
.hero-eyebrow-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 6px 12px;
    border-radius: var(--radius-tray);
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 18px;
}
.hero-eyebrow-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-accent); }
.hero h1 {
    font-size: clamp(38px, 5vw, 58px);
    margin-bottom: 18px;
}
.hero h1 .accent { color: var(--gold-accent); }
.hero p.lead { font-size: 18px; max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

.hero-tray {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-tray);
    padding: 22px;
    position: relative;
}
.hero-tray::before, .hero-tray::after {
    content: "";
    position: absolute;
    width: 14px; height: 14px;
    border: 2px solid var(--emerald-soft);
}
.hero-tray::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hero-tray::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    height: 380px;
}
.hero-grid a { position: relative; overflow: hidden; border-radius: 2px; background: var(--cream-deep); }
.hero-grid a:first-child { grid-row: span 2; }
.hero-grid img { width: 100%; height: 100%; object-fit: cover; }
.hero-grid .tag {
    position: absolute; left: 8px; bottom: 8px;
    background: rgba(46,74,62,0.9); color: var(--paper);
    font-size: 12px; padding: 4px 8px; border-radius: 2px;
}

@media (max-width: 860px) {
    .hero .row { grid-template-columns: 1fr; }
    .hero-grid { height: 300px; }
}

/* ---------------- Benefit strip ---------------- */
.benefits {
    padding: 44px 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.benefits .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.benefit-item { display: flex; gap: 14px; align-items: flex-start; }
.benefit-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.benefit-item h4 { margin-bottom: 4px; font-size: 17px; }
.benefit-item p { margin: 0; font-size: 14.5px; }
@media (max-width: 760px) { .benefits .row { grid-template-columns: 1fr; } }

/* ---------------- Section heading ---------------- */
.section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 30px; margin: 0; }
.section-head p { margin: 6px 0 0; }

/* ---------------- Product grid & cards ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-tray);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.product-card .thumb { aspect-ratio: 1/1; background: var(--cream-deep); overflow: hidden; position: relative; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--gold-accent); color: var(--white);
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.3px;
    padding: 4px 9px; border-radius: 2px;
}
.badge.low-stock { background: var(--danger); }
.product-card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card h3 { font-size: 16.5px; margin: 0; }
.product-card .benefit-line { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.price-now { font-size: 19px; font-weight: 700; color: var(--emerald-deep); }
.price-mrp { font-size: 14px; color: #9c9584; text-decoration: line-through; }
.price-off { font-size: 12.5px; color: var(--gold-accent); font-weight: 700; }
.rating-row { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.stars { color: var(--gold-accent); letter-spacing: 1px; }
.product-card .actions { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; }

/* ---------------- Offer banner ---------------- */
.offer-banner {
    background: var(--emerald-deep);
    color: var(--paper);
    border-radius: var(--radius-tray);
    padding: 30px;
    display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.offer-banner h3 { color: var(--gold-light); margin-bottom: 6px; }
.offer-banner p { color: #D9E4DC; margin: 0; }

/* ---------------- Trust strip ---------------- */
.trust-strip { display: flex; gap: 34px; flex-wrap: wrap; justify-content: center; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-item { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-soft); }

/* ---------------- Forms ---------------- */
.form-panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-tray);
    padding: 30px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input[type=text], .field input[type=tel], .field input[type=email], .field select, .field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-tray);
    font-family: var(--font-body); font-size: 15px; background: var(--white); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.form-success { background: #EAF2ED; border: 1px solid var(--emerald-soft); color: var(--emerald-deep); padding: 14px 18px; border-radius: var(--radius-tray); margin-bottom: 18px; }
.form-error { background: #F7E7E2; border: 1px solid var(--danger); color: var(--danger); padding: 14px 18px; border-radius: var(--radius-tray); margin-bottom: 18px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--emerald-deep); color: #D9E4DC; padding: 46px 0 24px; margin-top: 40px; }
.site-footer h4 { color: var(--gold-light); font-size: 15px; margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid a { display: block; color: #C7D6CD; font-size: 14px; padding: 4px 0; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 32px; padding-top: 18px; font-size: 13px; color: #A9BDB2; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------- Product detail page ---------------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }
.pd-gallery-main { border: 1px solid var(--line); border-radius: var(--radius-tray); overflow: hidden; aspect-ratio: 1/1; background: var(--cream-deep); }
.pd-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-title { font-size: 30px; }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 18px; }
.pd-price-row .price-now { font-size: 28px; }
.urgency-row { display: flex; align-items: center; gap: 10px; background: #F7E7E2; color: var(--danger); border-radius: var(--radius-tray); padding: 10px 14px; font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-tray); overflow: hidden; }
.qty-stepper button { width: 38px; height: 40px; background: var(--paper); border: none; font-size: 18px; cursor: pointer; }
.qty-stepper input { width: 46px; text-align: center; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); height: 40px; font-size: 15px; }
.pd-actions { display: flex; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.pd-actions .btn { flex: 1; min-width: 160px; }
.express-pay-row { display: flex; gap: 10px; margin: 6px 0 20px; flex-wrap: wrap; }
.express-pay-row button { flex: 1; min-width: 150px; padding: 11px; border-radius: var(--radius-tray); border: 1px solid var(--line); background: var(--white); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.guarantee-box { display: flex; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-tray); padding: 16px; margin-top: 22px; align-items: flex-start; }
.pd-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-top: 40px; }
.pd-tabs button { background: none; border: none; padding: 12px 2px; font-weight: 600; color: var(--ink-soft); cursor: pointer; border-bottom: 2px solid transparent; }
.pd-tabs button.active { color: var(--emerald-deep); border-color: var(--gold-accent); }
.pd-tab-panel { padding: 22px 0; white-space: pre-line; }

/* ---------------- Cart page ---------------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: flex-start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 76px; height: 76px; object-fit: cover; border-radius: 2px; border: 1px solid var(--line); }
.cart-line .name { font-weight: 600; font-size: 15px; }
.cart-line .remove-link { font-size: 13px; color: var(--danger); margin-top: 4px; display: inline-block; }
.summary-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-tray); padding: 22px; position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 7px 0; }
.summary-row.total { font-weight: 700; font-size: 17px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; color: var(--emerald-deep); }
.offer-tag { display: inline-flex; align-items: center; gap: 6px; background: #EAF2ED; color: var(--emerald-deep); border: 1px solid var(--emerald-soft); border-radius: var(--radius-tray); padding: 8px 12px; font-size: 13px; margin-bottom: 14px; }
.countdown { font-weight: 700; color: var(--gold-accent); }

/* ---------------- Success screen ---------------- */
.success-box { text-align: center; max-width: 560px; margin: 0 auto; padding: 60px 24px; }
.success-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--emerald-deep); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 34px; margin: 0 auto 20px; }
.order-summary-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-tray); padding: 20px; margin: 24px 0; text-align: left; }

/* ---------------- Admin ---------------- */
.admin-body { background: #F1EEE6; font-family: var(--font-body); }
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--emerald-deep); color: var(--paper); padding: 24px 0; }
.admin-sidebar .brand { padding: 0 22px 22px; font-family: var(--font-head); font-size: 20px; border-bottom: 1px solid rgba(255,255,255,0.12); margin-bottom: 14px; }
.admin-sidebar a { display: block; padding: 11px 22px; color: #CFE0D7; font-size: 14.5px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.08); color: var(--white); }
.admin-main { padding: 30px 34px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.admin-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-tray); padding: 22px; margin-bottom: 22px; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 26px; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-tray); padding: 18px; }
.stat-card .num { font-family: var(--font-head); font-size: 30px; color: var(--emerald-deep); }
.stat-card .label { font-size: 13px; color: var(--ink-soft); }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin-table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-soft); border-bottom: 1px solid var(--line); padding: 10px 8px; }
table.admin-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.admin-table img { width: 44px; height: 44px; object-fit: cover; border-radius: 2px; }
.status-pill { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-new { background: #FCEFD8; color: var(--gold-accent); }
.status-contacted, .status-confirmed { background: #E4EEE8; color: var(--emerald-deep); }
.status-closed, .status-delivered { background: #E5E5E0; color: var(--ink-soft); }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--emerald-deep); }
.login-card { background: var(--paper); border-radius: var(--radius-tray); padding: 40px; width: 100%; max-width: 380px; }
@media (max-width: 900px) { .admin-shell { grid-template-columns: 1fr; } .admin-sidebar { display: none; } .stat-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------- Sticky mobile buy bar (product page) ---------------- */
.sticky-buy-bar { display: none; }
@media (max-width: 760px) {
    .sticky-buy-bar {
        display: flex; gap: 10px; position: fixed; bottom: 0; left: 0; right: 0;
        background: var(--paper); border-top: 1px solid var(--line); padding: 12px 16px; z-index: 60;
    }
    .sticky-buy-bar .btn { flex: 1; }
}

/* ---------------- WhatsApp float button ---------------- */
.wa-float {
    position: fixed; bottom: 22px; right: 22px; z-index: 70;
    width: 54px; height: 54px; border-radius: 50%;
    background: #25D366; color: white; display: flex; align-items: center; justify-content: center;
    font-size: 26px; box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
