/* =========================================================
   Farmavet Services — Design System v2 ("Animal Apothecary")
   Deep pine greens, warm gold, Fraunces serif display type,
   grain-textured surfaces, springy micro-interactions.
   Plain CSS — no build step.
   ========================================================= */

/* ----------  Design tokens  ---------- */
:root {
    /* Pine scale (brand) */
    --pine-950: #062319;
    --pine-900: #0b3524;
    --pine-800: #11492f;
    --pine-700: #17603f;
    --pine-600: #1e7a50;
    --pine-500: #2a9163;
    --mint-300: #a9d9bf;
    --mint-200: #c9e8d6;
    --mint-100: #ddf1e5;
    --mint-50:  #eef8f2;

    /* Legacy aliases (status badges, older rules) */
    --green-900: var(--pine-900);
    --green-800: var(--pine-800);
    --green-700: var(--pine-700);
    --green-600: var(--pine-600);
    --green-100: var(--mint-200);
    --green-50:  var(--mint-50);

    /* Warm gold accent */
    --gold:      #d9962e;
    --gold-700:  #a86f14;
    --gold-100:  #f7e4c3;
    --gold-50:   #fdf4e2;
    --amber:     var(--gold);
    --amber-700: var(--gold-700);
    --amber-50:  var(--gold-50);

    /* WhatsApp */
    --wa:      #21c05c;
    --wa-dark: #189a49;

    /* Ink */
    --ink:     #122019;
    --muted:   #56675d;
    --muted-2: #87958c;

    /* Surfaces */
    --bg:        #f3f6f3;
    --surface:   #ffffff;
    --surface-2: #edf3ee;
    --tile:      #f2f6f2;

    /* Lines */
    --border:        #e1e9e2;
    --border-strong: #cbd8ce;

    /* Status */
    --danger:  #bb3a2e;  --danger-50:  #fbeae7;
    --success: #17603f;  --success-50: #e5f3ea;
    --info:    #22677e;  --info-50:    #e4f0f4;
    --warning: #96650d;  --warning-50: #fdf3e0;

    /* Shape */
    --r-sm: 10px;  --r: 16px;  --r-lg: 22px;  --r-xl: 30px;  --pill: 999px;

    /* Depth — green-tinted, layered */
    --shadow-sm: 0 1px 2px rgba(11, 53, 36, .06), 0 1px 4px rgba(11, 53, 36, .05);
    --shadow:    0 4px 10px rgba(11, 53, 36, .06), 0 10px 28px rgba(11, 53, 36, .08);
    --shadow-lg: 0 10px 24px rgba(11, 53, 36, .10), 0 24px 56px rgba(11, 53, 36, .13);
    --ring:      0 0 0 3.5px rgba(42, 145, 99, .22);

    /* Layout */
    --container: 1240px;
    --header-h: 72px;

    /* Type */
    --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

    /* Motion */
    --ease-out:    cubic-bezier(.22, 1, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
    --t-fast: .16s var(--ease-out);
    --t-med:  .28s var(--ease-out);
    --transition: .2s ease; /* legacy alias */

    /* Grain texture (SVG turbulence, data URI — used on dark panels) */
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* Smooth cross-fade between pages (progressive enhancement) */
@view-transition { navigation: auto; }

/* ----------  Reset & base  ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

html, body { height: 100%; }

body {
    margin: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(1100px 420px at 85% -60px, rgba(42, 145, 99, .07), transparent 65%),
        radial-gradient(900px 380px at -10% -80px, rgba(217, 150, 46, .05), transparent 60%),
        var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--pine-700); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--pine-800); }

h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -.015em;
    margin: 0 0 .5em;
    font-variation-settings: "opsz" 40;
}
h4, h5 {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
    margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); }
h3 { font-size: 1.28rem; }
h1 em, h2 em {
    font-style: italic;
    font-weight: 500;
    color: var(--pine-600);
}
p  { margin: 0 0 1rem; }

:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: 6px;
}

::selection { background: var(--mint-200); }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 2000;
    background: var(--pine-700);
    color: #fff;
    padding: 12px 18px;
    border-radius: var(--r-sm);
    font-weight: 700;
    transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ----------  Scroll-reveal (JS adds .js to <html>)  ---------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}
.js [data-reveal="fade"] { transform: none; }

/* ----------  Layout helpers  ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 22px;
}

main {
    flex: 1 0 auto;
    padding: 30px 0 72px;
}

.muted { color: var(--muted); }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.section { margin-bottom: 56px; }
.mb-20 { margin-bottom: 20px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}
.section-head h2 { margin: 0; }
.section-head .lede { margin: 0; color: var(--muted); }
.section-head__group { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }

/* Small serif kicker above section titles */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pine-600);
    margin-bottom: 10px;
}
.kicker::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
}

.pagination { margin-top: 30px; display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.pagination__info { color: var(--muted); font-size: .92rem; }

/* ----------  Announcement bar  ---------- */
.announce {
    background: var(--pine-900);
    color: var(--mint-100);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .02em;
    position: relative;
}
.announce::after {
    content: "";
    position: absolute; inset: 0;
    background-image: var(--grain);
    opacity: .05;
    pointer-events: none;
}
.announce__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 36px;
    padding-block: 5px;
    text-align: center;
}
.announce svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }
.announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.announce a:hover { color: var(--gold-100); }

/* ----------  Header  ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(170%) blur(14px);
    -webkit-backdrop-filter: saturate(170%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-med), box-shadow var(--t-med), background var(--t-med);
}
.site-header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 6px 24px rgba(11, 53, 36, .07);
    background: rgba(255, 255, 255, .92);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    line-height: 1.05;
}
.brand img {
    height: 44px;
    width: 44px;
    object-fit: contain;
    transition: transform .4s var(--ease-spring);
}
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand__name {
    font-family: var(--font-head);
    font-weight: 620;
    font-size: 1.22rem;
    letter-spacing: -.01em;
    color: var(--pine-800);
    display: block;
}
.brand:hover .brand__name { color: var(--pine-700); }
.brand small {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .64rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-top: 2px;
}

/* Header search (desktop) */
.header-search {
    flex: 1 1 auto;
    max-width: 400px;
    display: none;
}
.header-search-field {
    position: relative;
    display: flex;
    align-items: center;
}
.header-search-field input[type=search] {
    width: 100%;
    padding: 10px 46px 10px 40px;
    border-radius: var(--pill);
    background: var(--surface-2);
    border: 1px solid transparent;
    transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.header-search-field input[type=search]:focus {
    background: var(--surface);
    border-color: var(--pine-600);
    box-shadow: var(--ring);
}
.header-search-field::before {
    content: "";
    position: absolute;
    left: 15px;
    width: 16px;
    height: 16px;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2387958c' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat center / contain;
}
.header-search-submit {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--pine-700);
    color: #fff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast);
}
.header-search-submit:hover { background: var(--pine-800); transform: scale(1.06); }
.header-search-submit svg { width: 15px; height: 15px; }

/* Desktop nav */
.main-nav {
    display: none;
    align-items: center;
    gap: 2px;
}
.main-nav a.nav-link {
    position: relative;
    color: var(--ink);
    font-weight: 600;
    font-size: .93rem;
    padding: 9px 13px;
    border-radius: var(--pill);
    white-space: nowrap;
    transition: background var(--t-fast), color var(--t-fast);
}
.main-nav a.nav-link:hover { background: var(--mint-50); color: var(--pine-800); }
.main-nav a.nav-link.is-active { color: var(--pine-700); }
.main-nav a.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Mobile toggles */
.search-toggle,
.menu-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    color: var(--ink);
    transition: background var(--t-fast), border-color var(--t-fast);
}
.search-toggle:hover, .menu-toggle:hover { background: var(--mint-50); border-color: var(--border-strong); }
.search-toggle svg { width: 19px; height: 19px; }
.menu-toggle svg { width: 21px; height: 21px; }

.mobile-search-row {
    display: none;
    padding: 0 0 14px;
}
.mobile-search-row.open { display: block; animation: slide-down .25s var(--ease-out); }
@keyframes slide-down {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}
.mobile-search-row form { position: relative; }
.mobile-search-row input[type=search] {
    width: 100%;
    padding: 11px 48px 11px 16px;
    border-radius: var(--pill);
}
.mobile-search-row .header-search-submit { right: 5px; top: 5px; bottom: 5px; }

/* Cart pill with badge */
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 17px 10px 14px;
    border-radius: var(--pill);
    background: var(--pine-800);
    color: #fff;
    font-weight: 600;
    font-size: .93rem;
    box-shadow: var(--shadow-sm);
    transition: background var(--t-fast), transform .3s var(--ease-spring), box-shadow var(--t-fast);
}
.cart-link:hover { background: var(--pine-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.cart-link svg { width: 18px; height: 18px; }
.cart-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--pill);
    background: var(--gold);
    color: #2c1e04;
    font-size: .72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cart-badge.bump { animation: badge-bump .45s var(--ease-spring); }
@keyframes badge-bump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.45); }
    100% { transform: scale(1); }
}

.verify-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: var(--pill);
    background: var(--warning-50);
    color: var(--warning);
    border: 1px solid #eBd9ab;
    font-size: .85rem;
    font-weight: 600;
}
.verify-flag:hover { border-color: var(--gold); color: var(--gold-700); }

/* Fly-to-cart ghost (created by JS) */
.cart-fly {
    position: fixed;
    z-index: 2000;
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    pointer-events: none;
    transition: transform .7s cubic-bezier(.5, -0.1, .75, .4), opacity .7s ease;
}

/* ----------  Mobile drawer  ---------- */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 35, 25, .5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
    z-index: 1000;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

.drawer {
    position: fixed;
    top: 0;
    right: -360px;
    width: 330px;
    max-width: 88vw;
    height: 100%;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: right .32s var(--ease-out);
    z-index: 1001;
    overflow-y: auto;
}
.drawer.open { right: 0; }
.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.drawer-head span {
    font-family: var(--font-head);
    font-weight: 620;
    font-size: 1.15rem;
    color: var(--pine-800);
}
.close-btn {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 22px; line-height: 1;
    color: var(--ink);
    cursor: pointer;
    transition: background var(--t-fast);
}
.close-btn:hover { background: var(--mint-100); }
.drawer a.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 12px;
    color: var(--ink);
    font-weight: 600;
    transition: background var(--t-fast), transform var(--t-fast);
}
.drawer a.drawer-link:hover { background: var(--mint-50); color: var(--pine-800); transform: translateX(3px); }
.drawer .drawer-sep { height: 1px; background: var(--border); margin: 10px 2px; }
.drawer .mt-8 { margin-top: 8px; }

/* ----------  Buttons  ---------- */
button { font-family: inherit; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.1;
    border-radius: 13px;
    border: 1px solid transparent;
    background: linear-gradient(180deg, var(--pine-600), var(--pine-700));
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(11,53,36,.18), inset 0 1px 0 rgba(255,255,255,.12);
    transition: filter var(--t-fast), transform .25s var(--ease-spring), box-shadow var(--t-fast);
}
.btn:hover {
    filter: brightness(1.07);
    color: #fff;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px rgba(11,53,36,.22), inset 0 1px 0 rgba(255,255,255,.12);
}
.btn:active { transform: translateY(0) scale(.985); }
.btn:disabled, .btn[disabled] {
    background: var(--surface-2);
    color: var(--muted-2);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    filter: none;
}
.btn svg { flex-shrink: 0; }

.btn--accent {
    background: linear-gradient(180deg, #e6a93f, var(--gold));
    color: #2c1e04;
}
.btn--accent:hover { color: #2c1e04; }

.btn--outline {
    background: transparent;
    color: var(--pine-700);
    border-color: var(--pine-600);
    box-shadow: none;
}
.btn--outline:hover { background: var(--mint-50); color: var(--pine-800); filter: none; }

.btn--ghost {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--border-strong);
    box-shadow: none;
}
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); filter: none; }

.btn--danger { background: linear-gradient(180deg, #cc4a3d, var(--danger)); }

.btn--wa { background: linear-gradient(180deg, #27ce65, var(--wa-dark)); }

.btn--light {
    background: #fff;
    color: var(--pine-800);
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.btn--light:hover { color: var(--pine-900); }

.btn--sm { padding: 8px 15px; font-size: .85rem; border-radius: 10px; }
.btn--lg { padding: 15px 30px; font-size: 1.02rem; border-radius: 15px; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row--center { justify-content: center; }

.main-nav form, .nav-actions form { margin: 0; }
.drawer form { margin: 0; width: 100%; }
.drawer form .btn { width: 100%; }

/* ----------  Cards  ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.card--tinted { background: var(--surface-2); }
.card--slim { max-width: 540px; }
.card--interactive { transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med); }
.card--interactive:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card h2:first-child,
.card h3:first-child { margin-top: 0; }

/* ----------  Page heading  ---------- */
.page-head { margin-bottom: 30px; }
.page-head h1 { margin-bottom: 8px; }
.page-head .lede { color: var(--muted); font-size: 1.05rem; max-width: 62ch; margin: 0; }
.page-head--accent { border-left: 4px solid var(--gold); padding-left: 20px; }
.page-head--center { text-align: center; padding: 14px 20px 0; }
.page-head--center .lede { margin-inline: auto; }
.page-head--center .error-code {
    font-family: var(--font-head);
    font-weight: 620;
    font-size: clamp(4.5rem, 3.6rem + 5vw, 7rem);
    line-height: 1;
    margin-bottom: 4px;
    background: linear-gradient(120deg, var(--pine-600) 20%, var(--pine-800) 60%, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ----------  Trust chips  ---------- */
.trust-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    list-style: none;
    padding: 0;
}
.trust-chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--pine-800);
    background: var(--mint-50);
    border: 1px solid var(--mint-200);
    padding: 7px 14px;
    border-radius: var(--pill);
}
.trust-chips svg { width: 15px; height: 15px; color: var(--pine-600); flex-shrink: 0; }

/* On dark hero */
.hero .trust-chips li {
    color: var(--mint-100);
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.16);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.hero .trust-chips svg { color: var(--gold); }

/* ----------  Hero (shop landing) — dark pine, grain, floating decor ---------- */
.hero {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    background:
        radial-gradient(900px 500px at 85% 115%, rgba(42,145,99,.5), transparent 60%),
        radial-gradient(700px 380px at 8% -30%, rgba(217,150,46,.16), transparent 55%),
        linear-gradient(135deg, var(--pine-900) 0%, var(--pine-950) 100%);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: stretch;
    isolation: isolate;
}
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background-image: var(--grain);
    opacity: .07;
    pointer-events: none;
    z-index: 0;
}
.hero__content {
    position: relative;
    z-index: 1;
    padding: 60px 26px 60px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    align-self: flex-start;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-100);
    background: rgba(217,150,46,.13);
    border: 1px solid rgba(217,150,46,.3);
    padding: 7px 15px;
    border-radius: var(--pill);
    margin-bottom: 22px;
}
.hero__eyebrow svg { width: 14px; height: 14px; color: var(--gold); }
.hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.6rem);
    margin-bottom: 16px;
    text-wrap: balance;
}
.hero h1 em {
    font-style: italic;
    font-weight: 480;
    color: var(--mint-300);
}
.hero .lede {
    color: rgba(233, 244, 237, .82);
    font-size: 1.08rem;
    max-width: 46ch;
    margin: 0 0 26px;
}
.hero .btn-row { gap: 14px; }

.hero__panel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 380px;
}
.hero__badge {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 0 0 12px rgba(255,255,255,.06), 0 0 0 28px rgba(255,255,255,.03);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    animation: hero-float 7s ease-in-out infinite;
}
.hero__badge img { width: 100%; height: 100%; object-fit: contain; }

/* Floating glass chips on the hero panel */
.hero__chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    white-space: nowrap;
}
.hero__chip svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; }
.hero__chip--1 { top: 15%; left: 8%; animation: hero-float 6s ease-in-out infinite .6s; }
.hero__chip--2 { bottom: 14%; right: 9%; animation: hero-float 6.5s ease-in-out infinite 1.4s; }

/* Paw prints scattered on the hero panel */
.hero__paw {
    position: absolute;
    color: rgba(255,255,255,.09);
    animation: hero-float 9s ease-in-out infinite;
}
.hero__paw--1 { top: 8%;  right: 18%; width: 46px; animation-delay: .9s; }
.hero__paw--2 { bottom: 8%; left: 14%; width: 34px; animation-delay: 2s; }
.hero__paw--3 { top: 42%; left: 4%;  width: 26px; animation-delay: 3s; }

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-11px); }
}

/* Marquee-style scrolling strip under the hero (pure CSS) */
.ticker {
    margin-top: 16px;
    overflow: hidden;
    border-radius: var(--pill);
    background: var(--mint-50);
    border: 1px solid var(--mint-200);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
    display: flex;
    gap: 44px;
    width: max-content;
    padding: 13px 0;
    animation: ticker-scroll 30s linear infinite;
}
.ticker span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--pine-700);
    white-space: nowrap;
}
.ticker span::before { content: "🐾"; font-size: .8rem; }
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ----------  Category tiles  ---------- */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}
.cat-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: border-color var(--t-med), transform .3s var(--ease-spring), box-shadow var(--t-med);
}
.cat-tile::after {
    content: "";
    position: absolute;
    inset: auto -30% -55% auto;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--mint-100), transparent 70%);
    opacity: 0;
    transition: opacity var(--t-med);
    pointer-events: none;
}
.cat-tile:hover {
    border-color: var(--pine-600);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.cat-tile:hover::after { opacity: 1; }
.cat-tile__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--mint-50);
    color: var(--pine-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-med), transform .3s var(--ease-spring);
}
.cat-tile:hover .cat-tile__icon { background: var(--mint-200); transform: rotate(-5deg) scale(1.07); }
.cat-tile__icon svg { width: 24px; height: 24px; }
.cat-tile strong { font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: var(--ink); }
.cat-tile__link { color: var(--pine-600); font-weight: 700; font-size: .85rem; transition: color var(--t-fast); }
.cat-tile:hover .cat-tile__link { color: var(--pine-800); }

/* ----------  Featured strip  ---------- */
.featured-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 14px;
    margin: -4px -4px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}
.featured-scroll .product-card {
    flex: 0 0 236px;
    scroll-snap-align: start;
}
.scroll-nav { display: none; gap: 8px; }
.scroll-nav button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--pine-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.scroll-nav button:hover { background: var(--mint-50); border-color: var(--pine-600); }
.scroll-nav button:active { transform: scale(.92); }
.scroll-nav svg { width: 17px; height: 17px; }
@media (min-width: 700px) { .js .scroll-nav { display: inline-flex; } }

/* ----------  Toolbar / filters  ---------- */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}
.toolbar .field-inline { display: flex; align-items: center; gap: 10px; }
.toolbar label { font-weight: 600; color: var(--muted); margin: 0; font-size: .9rem; white-space: nowrap; }

select.select,
.category-dropdown select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2317603f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 14px center;
    border: 1px solid var(--border-strong);
    color: var(--ink);
    padding: 11px 40px 11px 16px;
    border-radius: 12px;
    font-size: .93rem;
    font-family: inherit;
    cursor: pointer;
    min-width: 190px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
select.select:focus,
.category-dropdown select:focus {
    outline: none;
    border-color: var(--pine-600);
    box-shadow: var(--ring);
}

/* ----------  Chips (category filter pills)  ---------- */
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 17px;
    border-radius: var(--pill);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--ink);
    font-size: .88rem;
    font-weight: 600;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform .25s var(--ease-spring);
}
.chip:hover { border-color: var(--pine-600); color: var(--pine-800); transform: translateY(-1px); }
.chip.is-active {
    background: var(--pine-800);
    border-color: var(--pine-800);
    color: #fff;
    box-shadow: 0 3px 10px rgba(11,53,36,.22);
}
.chip.is-active:hover { background: var(--pine-700); color: #fff; }
.chip-row--sub { margin-top: -4px; }
.chip--sm { padding: 6px 14px; font-size: .82rem; }

/* ----------  Product grid & cards  ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 22px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease-spring), box-shadow var(--t-med), border-color var(--t-med);
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--mint-300);
}
.product-card__media {
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(120% 90% at 50% 0%, #fff 30%, var(--tile) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .5s var(--ease-out);
}
.product-card:hover .product-card__media img { transform: scale(1.07) rotate(.6deg); }
.product-card__body {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 16px 16px 16px;
    flex: 1;
}
.product-card__title {
    font-family: var(--font-body);
    font-size: .98rem;
    font-weight: 650;
    color: var(--ink);
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card__title a { color: inherit; }
.product-card__title a:hover { color: var(--pine-700); }
/* Stretch the title link over the whole card; buttons re-raise above it */
.product-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.product-card__cat {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--muted-2);
    font-weight: 700;
}
.price {
    font-family: var(--font-head);
    font-weight: 620;
    font-size: 1.22rem;
    color: var(--pine-700);
    letter-spacing: -.01em;
}
.product-card .price { margin-top: auto; }
.product-card__actions { display: flex; gap: 8px; margin-top: 9px; position: relative; z-index: 2; }
.product-card__actions .btn { flex: 1; }
.product-card__actions form { flex: 1; margin: 0; }

/* Success flash on the add-to-cart button (JS toggles .is-added) */
.btn.is-added {
    background: linear-gradient(180deg, var(--pine-500), var(--pine-600));
    pointer-events: none;
}

/* ----------  Badges / status  ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--pill);
    font-size: .78rem;
    font-weight: 700;
    background: var(--mint-50);
    color: var(--pine-800);
    text-transform: capitalize;
}
.badge--new { background: var(--info-50); color: var(--info); }
.badge--processing { background: var(--warning-50); color: var(--warning); }
.badge--out_for_delivery { background: var(--info-50); color: var(--info); }
.badge--delivered { background: var(--success-50); color: var(--success); }
.badge--cancelled { background: var(--danger-50); color: var(--danger); }
.badge--featured { background: var(--gold-50); color: var(--gold-700); }
.badge--stock-out { background: var(--danger-50); color: var(--danger); }
.badge--cod { background: var(--mint-50); color: var(--pine-800); border: 1px solid var(--mint-200); }

.badge--featured-tile,
.badge--stock-out-tile {
    position: absolute;
    top: 12px;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}
.badge--featured-tile { left: 12px; }
.badge--stock-out-tile { right: 12px; }

/* ----------  Order tracking timeline  ---------- */
.order-timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 22px 0 8px;
}
.order-timeline__step {
    flex: 1 1 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}
.order-timeline__step::before {
    content: "";
    position: absolute;
    top: 17px;
    left: -50%;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: var(--border);
    z-index: 0;
}
.order-timeline__step:first-child::before { display: none; }
.order-timeline__dot {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: .85rem;
    background: var(--surface-2);
    color: var(--muted);
    border: 2px solid var(--border);
    transition: transform .3s var(--ease-spring);
}
.order-timeline__label {
    margin-top: 9px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
}
.order-timeline__step.is-done .order-timeline__dot {
    background: var(--pine-700);
    color: #fff;
    border-color: var(--pine-700);
}
.order-timeline__step.is-done::before { background: var(--pine-700); }
.order-timeline__step.is-current .order-timeline__dot {
    background: var(--pine-700);
    color: #fff;
    border-color: var(--pine-700);
    box-shadow: 0 0 0 5px var(--mint-200);
    animation: pulse-ring 2.2s ease-out infinite;
}
@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 4px var(--mint-200); }
    50%  { box-shadow: 0 0 0 8px rgba(201, 232, 214, .45); }
    100% { box-shadow: 0 0 0 4px var(--mint-200); }
}
.order-timeline__step.is-done .order-timeline__label,
.order-timeline__step.is-current .order-timeline__label { color: var(--ink); }

.order-cancelled-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--danger-50);
    border: 1px solid #eecac5;
    border-radius: var(--r);
    color: var(--danger);
    font-weight: 600;
    margin: 18px 0;
}
.order-track-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.order-track-head h2 { margin: 0; }
.order-number {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 620;
    color: var(--pine-700);
    margin: 4px 0 8px;
}
.order-address { margin-top: 18px; }
.order-address p { margin: 4px 0 0; white-space: pre-line; }

/* ----------  Breadcrumb  ---------- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: 20px;
}
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--pine-700); }
.breadcrumb span.sep { color: var(--border-strong); }

/* ----------  Product detail  ---------- */
.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 40px;
    align-items: start;
}
.product-detail__media {
    position: sticky;
    top: calc(var(--header-h) + 22px);
    background:
        radial-gradient(120% 100% at 50% 0%, #fff 40%, var(--tile) 100%);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.product-detail__media img {
    max-height: 460px;
    width: auto;
    object-fit: contain;
    transition: transform .5s var(--ease-out);
}
.product-detail__media:hover img { transform: scale(1.04); }
.product-detail__info h1 { margin: 10px 0 6px; }
.product-detail__info .price { font-size: 2.1rem; display: inline-block; margin: 4px 0 10px; }
.stock-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .92rem;
    font-weight: 600;
    margin: 0 0 18px;
}
.stock-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--success);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px var(--success-50);
}
.stock-line.out .stock-dot { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-50); }
.stock-line.ok { color: var(--success); }
.stock-line.out { color: var(--danger); }
.product-detail__desc { color: var(--ink); margin-bottom: 26px; white-space: pre-line; }
.qty-row {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.qty-field { width: 110px; }
.product-detail__secondary { margin-top: 8px; margin-bottom: 22px; }

/* Quantity stepper */
.stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
}
.stepper button {
    width: 40px;
    border: 0;
    background: var(--surface-2);
    color: var(--pine-800);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--t-fast);
}
.stepper button:hover { background: var(--mint-100); }
.stepper input {
    width: 54px;
    border: 0;
    border-left: 1px solid var(--border-strong);
    border-right: 1px solid var(--border-strong);
    text-align: center;
    padding: 8px 0;
    border-radius: 0;
}
.stepper input:focus { box-shadow: none; }

/* ----------  Forms  ---------- */
label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .93rem; }

input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=tel],
input[type=search],
input[type=url],
input:not([type]),
select:not(.btn),
textarea {
    width: 100%;
    padding: 12px 15px;
    font-family: inherit;
    font-size: .97rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus,
select:not(.btn):focus,
textarea:focus {
    outline: none;
    border-color: var(--pine-600);
    box-shadow: var(--ring);
}
textarea { min-height: 120px; resize: vertical; }
input[type=file] {
    width: 100%;
    padding: 12px;
    background: var(--surface-2);
    border: 1.5px dashed var(--border-strong);
    border-radius: 12px;
    font-size: .9rem;
    color: var(--muted);
    cursor: pointer;
}
input[type=file]:hover { border-color: var(--pine-600); }
input[type=search] { border-radius: var(--pill); }

form p { margin: 0 0 18px; }
form p label { margin-bottom: 6px; }

.helptext,
.helptext li { color: var(--muted); font-size: .82rem; line-height: 1.45; }
ul.helptext, .helptext ul { margin: 6px 0 0; padding-left: 18px; }

.errorlist {
    list-style: none;
    margin: 8px 0 0;
    padding: 10px 14px;
    background: var(--danger-50);
    border: 1px solid #eecac5;
    border-left: 3px solid var(--danger);
    border-radius: 10px;
    color: var(--danger);
    font-size: .88rem;
    font-weight: 600;
}
.errorlist li { margin: 0; }

/* Auth card */
.auth-wrap { max-width: 460px; margin: 14px auto; }
.auth-wrap--wide { max-width: 1000px; }
.auth-card { padding: 38px 34px; }
.auth-card__logo {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: linear-gradient(150deg, var(--mint-50), var(--mint-200));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    padding: 11px;
    box-shadow: inset 0 0 0 1px var(--mint-200);
}
.auth-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.auth-card h1, .auth-card h2 { margin-bottom: 6px; text-align: center; }
.auth-sub { color: var(--muted); margin-bottom: 26px; text-align: center; }
.auth-alt {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    font-size: .92rem;
}
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: .92rem; }

/* Circular status icon (order success / verification screens) */
.status-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.status-icon--success { background: var(--success-50); box-shadow: 0 0 0 10px rgba(229, 243, 234, .55); }
.status-icon--warning { background: var(--gold-50); box-shadow: 0 0 0 10px rgba(253, 244, 226, .6); }

/* Animated checkmark (order success) */
.check-draw path {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: check-draw .55s var(--ease-out) .25s forwards;
}
@keyframes check-draw { to { stroke-dashoffset: 0; } }

/* Confetti (order success, particles created by JS) */
.confetti {
    position: fixed;
    top: -12px;
    z-index: 1600;
    width: 9px;
    height: 14px;
    border-radius: 2px;
    pointer-events: none;
    animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
    to { transform: translateY(105vh) rotate(660deg); opacity: .2; }
}

/* ----------  Alerts / messages  ---------- */
.messages { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.alert {
    padding: 14px 18px;
    border-radius: 13px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--ink);
    font-size: .95rem;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: alert-in .35s var(--ease-out);
}
@keyframes alert-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.alert a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.alert--success, .alert.success { background: var(--success-50); border-color: #bcdab1; color: var(--success); }
.alert--error,   .alert.error,
.alert--danger,  .alert.danger   { background: var(--danger-50); border-color: #eecac5; color: var(--danger); }
.alert--info,    .alert.info    { background: var(--info-50); border-color: #bcd7e0; color: var(--info); }
.alert--warning, .alert.warning { background: var(--warning-50); border-color: #ecd9a6; color: var(--warning); }

/* ----------  Tables  ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .94rem;
}
.table th, .table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.table th {
    font-family: var(--font-body);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    font-weight: 700;
}
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: var(--mint-50); }
.table .num { text-align: right; }

/* ----------  Cart  ---------- */
.cart-line {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.cart-line:last-child { border-bottom: 0; }
.cart-thumb {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: var(--tile);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px;
}
.cart-line__info h3 { font-family: var(--font-body); font-weight: 650; font-size: 1.02rem; margin: 0 0 4px; }
.cart-line__info h3 a { color: inherit; }
.cart-line__info h3 a:hover { color: var(--pine-700); }
.cart-line__meta { color: var(--muted); font-size: .9rem; margin: 0; }
.cart-line__update { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.cart-line__update-form { display: flex; align-items: center; gap: 10px; margin: 0; }
.cart-line__remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    box-shadow: none;
    color: var(--muted);
    padding: 6px 4px;
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    border-radius: 8px;
    transition: color var(--t-fast);
}
.cart-line__remove:hover { color: var(--danger); }
.cart-line__remove svg { width: 15px; height: 15px; }
.cart-line__price { text-align: right; }
.cart-line__price .price { font-size: 1.15rem; }
.cart-line__price small { display: block; color: var(--muted); font-size: .8rem; }

.order-summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); font-size: .95rem; }
.summary-row--first { margin-top: 14px; }
.summary-row.total {
    border-top: 1px solid var(--border);
    margin-top: 10px;
    padding-top: 16px;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 620;
    font-size: 1.3rem;
}
.summary-row.total .price { font-size: 1.3rem; }
.summary-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.summary-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    color: var(--muted);
    font-size: .84rem;
}
.summary-note svg { width: 16px; height: 16px; color: var(--pine-600); flex-shrink: 0; }

.cart-layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); gap: 28px; align-items: start; }

/* Checkout layout */
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.checkout-items { margin: 14px 0 4px; display: flex; flex-direction: column; gap: 12px; }
.checkout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .92rem;
}
.checkout-item img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: var(--tile);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    flex-shrink: 0;
}
.checkout-item__name { flex: 1; min-width: 0; }
.checkout-item__name strong {
    display: block;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.checkout-item__name span { color: var(--muted); font-size: .84rem; }
.checkout-item__price { font-weight: 700; color: var(--pine-700); white-space: nowrap; }

.empty-state { text-align: center; padding: 54px 20px; color: var(--muted); }
.empty-state svg { width: 60px; height: 60px; color: var(--mint-300); margin-bottom: 16px; }
.empty-state h3 { color: var(--ink); }
.empty-state .btn-row { justify-content: center; margin-top: 16px; }

/* COD notice */
.notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    background: var(--gold-50);
    border: 1px solid #eddDBb;
    border-radius: 13px;
    color: #6d4d0c;
    font-size: .92rem;
    margin-bottom: 20px;
}
.notice svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--gold-700); }
.notice--green {
    background: var(--mint-50);
    border-color: var(--mint-200);
    color: var(--pine-900);
}
.notice--green svg { color: var(--pine-700); }
.reassurance {
    text-align: center;
    color: var(--muted);
    font-size: .85rem;
    margin-top: 14px;
}

/* ----------  Orders history  ---------- */
.order-card { padding: 24px 26px; }
.order-card__head {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.order-card__head h3 { margin: 0; font-size: 1.15rem; }
.order-meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .9rem; }
.order-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
}
.order-item img {
    width: 64px; height: 64px;
    object-fit: contain;
    background: var(--tile);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 5px;
}
.order-item strong { font-weight: 650; }

/* ----------  Profile  ---------- */
.profile-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 24px; align-items: start; }
.profile-photo {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
}
.profile-photo-empty {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-lg);
    background: var(--tile);
    border: 1.5px dashed var(--border-strong);
    color: var(--muted);
    text-align: center;
    padding: 20px;
}
.profile-photo-empty svg { width: 44px; height: 44px; color: var(--mint-300); }
.profile-email { margin-top: 18px; font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; word-break: break-all; }
.profile-status { color: var(--muted); margin-bottom: 16px; }

/* ----------  Admin dashboard  ---------- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}
.kpi {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    transition: transform var(--t-med), box-shadow var(--t-med);
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pine-600), var(--mint-300));
}
.kpi__icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--mint-50);
    color: var(--pine-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}
.kpi__icon svg { width: 18px; height: 18px; }
.kpi__label { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 0 0 4px; }
.kpi__value { font-family: var(--font-head); font-size: 1.75rem; font-weight: 620; color: var(--pine-800); margin: 0; line-height: 1.1; }
.kpi__sub { color: var(--muted); font-size: .85rem; margin: 4px 0 0; }
.delta {
    display: inline-block;
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}
.delta--up { color: var(--pine-600); }
.delta--down { color: var(--danger); }
.delta--flat { color: var(--muted); }

.stat-pill-row { display: flex; flex-wrap: wrap; gap: 16px; }
.stat-pill {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    flex: 1 1 220px;
}
.stat-pill strong { font-family: var(--font-head); font-weight: 620; font-size: 1.45rem; color: var(--ink); }
.stat-pill .btn { margin-left: auto; }

.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 0; }
.chart-card h3 { margin-top: 0; font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; }
.chart-card canvas { margin-top: 12px; }
.chart-box { position: relative; height: 300px; }

/* ----------  About page  ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    counter-reset: step;
}
.step-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--mint-300); }
.step-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; }
.step-card__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(150deg, var(--pine-600), var(--pine-800));
    color: #fff;
    font-family: var(--font-head);
    font-weight: 620;
    font-size: 1.05rem;
    margin-bottom: 14px;
    box-shadow: 0 4px 10px rgba(11,53,36,.25);
}
.step-card::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -34px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--mint-50), transparent 70%);
    pointer-events: none;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 8px;
}
.contact-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    transition: border-color var(--t-fast), background var(--t-fast);
}
.contact-tile:hover { border-color: var(--mint-300); background: var(--mint-50); }
.contact-tile__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--surface);
    color: var(--pine-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.contact-tile__icon svg { width: 19px; height: 19px; }
.contact-tile strong { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 2px; }

/* ----------  Pre-footer CTA band  ---------- */
.cta-band {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    background:
        radial-gradient(700px 320px at 90% 120%, rgba(42,145,99,.45), transparent 60%),
        linear-gradient(120deg, var(--pine-800), var(--pine-950));
    color: #fff;
    padding: 44px 42px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 56px;
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}
.cta-band::after {
    content: "";
    position: absolute; inset: 0;
    background-image: var(--grain);
    opacity: .07;
    pointer-events: none;
    z-index: -1;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.cta-band h2 em { color: var(--mint-300); font-weight: 480; }
.cta-band p { color: rgba(233,244,237,.8); margin: 0; max-width: 52ch; }

/* ----------  Footer  ---------- */
.site-footer {
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(180deg, var(--pine-900), var(--pine-950));
    color: #d6e5db;
    margin-top: auto;
    isolation: isolate;
}
.site-footer::after {
    content: "";
    position: absolute; inset: 0;
    background-image: var(--grain);
    opacity: .05;
    pointer-events: none;
    z-index: -1;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 36px;
    padding: 54px 0 34px;
}
.footer-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.footer-brand img { height: 48px; width: 48px; object-fit: contain; background: #fff; border-radius: 12px; padding: 5px; }
.footer-brand strong {
    font-family: var(--font-head);
    font-weight: 620;
    font-size: 1.35rem;
    color: #fff;
    letter-spacing: -.01em;
}
.site-footer p { color: #a8bfb1; margin: 0 0 8px; max-width: 42ch; }
.footer-col h4 {
    font-family: var(--font-body);
    color: #fff;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin: 0 0 18px;
}
.footer-col a { color: #d6e5db; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; transition: color var(--t-fast), transform var(--t-fast); }
.footer-col a:hover { color: var(--gold); transform: translateX(2px); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact .row { display: flex; align-items: center; gap: 10px; color: #d6e5db; }
.footer-contact svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 18px 0;
    font-size: .85rem;
    color: #8fa89a;
}
.footer-bottom .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.footer-bottom span { display: inline-flex; align-items: center; gap: 7px; }
.footer-bottom svg { width: 14px; height: 14px; color: var(--gold); }

/* ----------  Floating WhatsApp button  ---------- */
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 800;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(180deg, #29d469, var(--wa-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(24, 154, 73, .4);
    transition: transform .3s var(--ease-spring), box-shadow var(--t-fast);
}
.wa-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(33, 192, 92, .5);
    animation: wa-pulse 2.6s ease-out infinite;
}
@keyframes wa-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(33, 192, 92, .45); }
    70%  { box-shadow: 0 0 0 14px rgba(33, 192, 92, 0); }
    100% { box-shadow: 0 0 0 0 rgba(33, 192, 92, 0); }
}
.wa-float:hover { transform: scale(1.1) rotate(6deg); color: #fff; }
.wa-float svg { width: 29px; height: 29px; }

/* ----------  Toasts  ---------- */
#toast-root {
    position: fixed;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    left: 50%;
    transform: translateX(-50%);
    bottom: 92px;
    width: calc(100% - 28px);
    max-width: 390px;
    align-items: center;
}
.toast {
    position: relative;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: var(--pine-900);
    color: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    animation: toast-in .35s var(--ease-spring);
}
.toast::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--gold);
    transform-origin: left;
    animation: toast-life 3.5s linear forwards;
}
@keyframes toast-life { to { transform: scaleX(0); } }
.toast__icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.toast__icon svg { width: 14px; height: 14px; }
.toast__msg { flex: 1; }
.toast__action {
    flex-shrink: 0;
    color: var(--gold);
    font-weight: 700;
    white-space: nowrap;
}
.toast__action:hover { color: var(--gold-100); }
.toast--danger { background: var(--danger); }
.toast--danger::after { background: rgba(255,255,255,.55); }
.toast--danger .toast__action { color: #fff; text-decoration: underline; }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(14px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

@media (min-width: 600px) {
    #toast-root {
        left: auto;
        right: 20px;
        bottom: 94px;
        transform: none;
        align-items: flex-end;
        width: 100%;
    }
}

/* ----------  Responsive  ---------- */
@media (min-width: 900px) {
    .main-nav { display: flex; }
    .menu-toggle { display: none; }
}
/* The inline search bar needs real room — below this the icon toggle serves */
@media (min-width: 1150px) {
    .header-search { display: block; }
    .search-toggle { display: none; }
}

@media (max-width: 1080px) {
    .hero__content { padding: 48px 22px 48px 40px; }
}

@media (max-width: 899px) {
    .hero { grid-template-columns: 1fr; }
    .hero__panel { display: none; }
    .hero__content { padding: 42px 30px; }
    .brand small { display: none; }
}

@media (max-width: 960px) {
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .order-summary { position: static; }
    .product-detail { grid-template-columns: 1fr; gap: 24px; }
    .product-detail__media { position: static; }
    .profile-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
    .nav-actions .verify-flag span { display: none; }
    main { padding: 22px 0 52px; }
    .hero__content { padding: 36px 24px; }
    .card { padding: 20px; }
    .cta-band { padding: 32px 26px; }
    .wa-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }
    .wa-float svg { width: 26px; height: 26px; }
    .announce__inner { font-size: .76rem; }
}

@media (max-width: 560px) {
    .header-content { gap: 8px; }
    .brand { gap: 8px; }
    .brand img { height: 36px; width: 36px; }
    .brand__name { font-size: 1rem; }
    .cart-link { padding: 9px 12px; gap: 6px; }
    .cart-link__label { display: none; }
    .search-toggle, .menu-toggle { width: 40px; height: 40px; flex-shrink: 0; }
}

@media (max-width: 620px) {
    .footer-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 13px; }
    .product-card__media { padding: 12px; }
    .product-card__body { padding: 12px 12px 14px; }
    .product-card__title { font-size: .9rem; }
    .price { font-size: 1.08rem; }
    .cart-line { grid-template-columns: 76px 1fr; }
    .cart-thumb { width: 76px; height: 76px; }
    .cart-line__price { grid-column: 2 / -1; text-align: left; margin-top: 6px; }
    .toolbar { flex-direction: column; align-items: stretch; }
    select.select, .category-dropdown select { min-width: 0; width: 100%; }
    .tile-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-scroll .product-card { flex-basis: 200px; }
    .footer-bottom .container { justify-content: center; text-align: center; }
}

@media (max-width: 380px) {
    .product-grid { grid-template-columns: 1fr; }
}

/* ----------  Motion preferences  ----------
   Full animation is intentionally always on. The site deliberately ignores the
   OS/browser "reduce motion" setting, so there is no prefers-reduced-motion
   override here (or anywhere else in this file) by design. */
