/* ==========================================================================
   GreenBasket storefront
   ========================================================================== */
:root {
    --green-950: #0b2e1a;
    --green-900: #14532d;
    --green-800: #166534;
    --green-700: #1b7a3d;
    --green-600: #22903f;
    --green-500: #34a853;
    --lime: #8cc63f;
    --lime-soft: #eef7e0;
    --cream: #f7faf3;
    --ink: #1c2620;
    --ink-2: #3a463e;
    --muted: #6b776f;
    --line: #e3e9e1;
    --white: #fff;
    --red: #d6453d;
    --red-soft: #fdecea;
    --amber: #c27c0e;
    --amber-soft: #fdf3e1;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(16, 40, 24, .06);
    --shadow: 0 8px 28px rgba(16, 40, 24, .10);
    --shadow-lg: 0 18px 50px rgba(16, 40, 24, .18);
    --font: "Assistant", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-head: "Outfit", var(--font);
    --container: 1240px;
    --gutter: 16px;
    --header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    letter-spacing: .02em;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: 0; font-weight: 600; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.icon { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--green-900); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--green-600); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; } }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.ta-r { text-align: right; }
.warn-text { color: var(--amber); }
.mobile-only { display: inline-flex; }
.desktop-only { display: none !important; }
@media (min-width: 990px) {
    .mobile-only { display: none !important; }
    .desktop-only { display: inline-flex !important; }
    .main-nav.desktop-only { display: flex !important; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 24px;
    border: 1.5px solid transparent; border-radius: 6px;
    font-weight: 600; font-size: 1rem; letter-spacing: .04em;
    transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
    white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 1.05rem; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); box-shadow: 0 6px 18px rgba(27, 122, 61, .3); }
.btn-dark { background: var(--green-950); color: #fff; }
.btn-dark:hover { background: var(--green-900); }
.btn-outline { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover:not([disabled]) { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--green-900); }
.btn-danger { background: var(--red); color: #fff; }
.btn-outline-danger { border-color: var(--red); color: var(--red); background: #fff; list-style: none; }
.btn-outline-danger::-webkit-details-marker { display: none; }
.btn.is-loading { pointer-events: none; position: relative; color: transparent !important; }
.btn.is-loading::after {
    content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid currentColor; border-color: var(--green-700) transparent var(--green-700) transparent;
    animation: spin .7s linear infinite;
}
.btn-primary.is-loading::after, .btn-dark.is-loading::after { border-color: #fff transparent #fff transparent; }
.btn.is-added { background: var(--green-700); border-color: var(--green-700); color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink);
    transition: background .2s, color .2s; position: relative;
}
.icon-btn:hover { background: var(--lime-soft); color: var(--green-800); }
.link-btn { background: none; border: 0; padding: 0; color: inherit; }
.link-btn:hover { color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green-700); white-space: nowrap; }
.link-arrow:hover { gap: 10px; }
.link-underline { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Announcement ---------- */
.announcement { background: var(--green-900); color: #e9f6dc; font-size: .875rem; letter-spacing: .06em; }
.announcement-inner { position: relative; height: 38px; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; overflow: hidden; }
.announcement-item {
    grid-area: 1 / 1; margin: 0; text-align: center; opacity: 0; transform: translateY(10px);
    transition: opacity .5s, transform .5s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.announcement-item.is-active { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; gap: 12px; }
.header-logo { justify-self: center; }
.header-icons { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
@media (min-width: 990px) {
    .header-inner { grid-template-columns: auto 1fr auto; min-height: var(--header-h); gap: 40px; }
    .header-logo { justify-self: start; }
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 46px; height: 46px; filter: drop-shadow(0 3px 6px rgba(27, 122, 61, .25)); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; color: var(--green-700); letter-spacing: -.01em; }
.logo-name b { color: var(--green-950); font-weight: 700; }
.logo-tag { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.logo-light .logo-name { color: var(--lime); }
.logo-light .logo-name b { color: #fff; }
.logo-light .logo-tag { color: rgba(255, 255, 255, .6); }
@media (max-width: 989px) { .logo-tag { display: none; } .logo-mark { width: 40px; height: 40px; } .logo-name { font-size: 1.3rem; } }
@media (max-width: 380px) { .logo-name { font-size: 1.1rem; } .logo-mark { width: 34px; height: 34px; } }

.main-nav { align-items: center; gap: 4px; }
.nav-link {
    display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px;
    color: var(--ink-2); font-size: 1.02rem; background: none; border: 0; letter-spacing: .04em;
    text-decoration: none; text-underline-offset: 6px; transition: color .2s;
}
.nav-link:hover { color: var(--ink); text-decoration: underline; }
.nav-link.is-active { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; }
.nav-link .chev { transition: transform .25s; }
.nav-dropdown { position: relative; }
.nav-dropdown.is-open .chev { transform: rotate(180deg); }
.dropdown-panel {
    position: absolute; top: calc(100% + 18px); left: -14px; width: 300px; max-height: calc(100vh - 160px); overflow-y: auto;
    background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow); padding: 14px 0;
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-dropdown.is-open .dropdown-panel { opacity: 1; visibility: visible; transform: none; }
.dropdown-all { display: flex; align-items: center; justify-content: space-between; margin: 0 14px 8px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--lime-soft); color: var(--green-800); font-weight: 600; }
.dropdown-link, .dropdown-group summary > a { display: block; padding: 10px 28px; color: var(--ink-2); }
.dropdown-link:hover, .dropdown-group summary > a:hover, .dropdown-sub a:hover { color: var(--green-700); text-decoration: underline; text-underline-offset: 4px; }
.dropdown-link.is-current, .dropdown-sub a.is-current, .dropdown-group summary > a.is-current { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.dropdown-group summary { display: flex; align-items: center; justify-content: space-between; padding-right: 24px; cursor: pointer; list-style: none; }
.dropdown-group summary::-webkit-details-marker { display: none; }
.dropdown-group summary > a { padding-right: 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: transparent; }
.dropdown-group[open] summary > a { text-decoration-color: currentColor; color: var(--ink); }
.dropdown-group .chev { transition: transform .25s; color: var(--ink-2); }
.dropdown-group[open] .chev { transform: rotate(180deg); }
.dropdown-sub { background: var(--cream); padding: 6px 0; }
.dropdown-sub a { display: block; padding: 9px 44px; color: var(--ink-2); }

.cart-btn .cart-count {
    position: absolute; right: 2px; bottom: 4px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 10px; background: var(--green-950); color: #fff; font-size: .72rem; font-weight: 700;
    display: grid; place-items: center; line-height: 1; letter-spacing: 0; border: 2px solid #fff;
}
.cart-count.is-hidden { display: none; }
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.35); } }

.search-bar { border-top: 1px solid var(--line); background: #fff; animation: slideDown .2s ease-out; }
.search-form { display: flex; align-items: center; gap: 10px; min-height: 70px; color: var(--muted); }
.search-form input { flex: 1; border: 0; outline: 0; font-size: 1.1rem; padding: 12px 0; color: var(--ink); background: transparent; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(11, 46, 26, .45); z-index: 60; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.drawer {
    position: fixed; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); z-index: 70; background: #fff;
    display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .3s ease; box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.drawer-nav a, .drawer-nav summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 22px; font-size: 1.05rem; cursor: pointer; list-style: none; }
.drawer-nav summary::-webkit-details-marker { display: none; }
.drawer-nav details[open] > summary .chev { transform: rotate(180deg); }
.drawer-nav .chev { transition: transform .25s; }
.drawer-nav a:hover, .drawer-nav summary:hover { background: var(--cream); color: var(--green-700); }
.drawer-sub { background: var(--cream); }
.drawer-sub a, .drawer-sub summary { padding-left: 36px; font-size: 1rem; }
.drawer-sub .drawer-sub { background: #eef4e8; }
.drawer-sub .drawer-sub a { padding-left: 52px; }
.drawer-foot { padding: 16px 20px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
body.no-scroll { overflow: hidden; }

/* ---------- Alerts / toasts ---------- */
.flash-wrap { padding-top: 18px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 500; }
.alert-success { background: var(--lime-soft); color: var(--green-900); border: 1px solid #cfe6b0; }
.alert-error { background: var(--red-soft); color: #9b2620; border: 1px solid #f5c7c3; }
.alert-warn { background: var(--amber-soft); color: #7a4d06; border: 1px solid #f3dcae; }
.alert .icon { margin-top: 2px; }
.toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90;
    background: var(--green-950); color: #fff; padding: 12px 20px; border-radius: 30px; box-shadow: var(--shadow-lg);
    font-weight: 500; max-width: calc(100vw - 32px); text-align: center; animation: toastIn .25s;
}
.toast.is-error { background: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }
.cart-toast {
    position: fixed; z-index: 80; top: 110px; right: 24px; width: 380px; max-width: calc(100vw - 32px);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 18px; animation: slideDown .25s;
}
.cart-toast-head { display: flex; align-items: center; justify-content: space-between; color: var(--green-800); font-weight: 600; margin-bottom: 12px; }
.cart-toast-head span { display: inline-flex; gap: 8px; align-items: center; }
.cart-toast-body { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.cart-toast-body img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-toast-body b { display: block; font-weight: 600; line-height: 1.3; }
.cart-toast-body span { color: var(--muted); font-size: .95rem; }
.cart-toast-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .cart-toast { top: auto; bottom: 16px; right: 16px; left: 16px; width: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--green-950); }
.hero-track { display: grid; }
.hero-slide { grid-area: 1 / 1; position: relative; min-height: clamp(440px, 62vh, 620px); display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.hero-slide.is-active img { transform: scale(1); }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 36, 20, .86) 0%, rgba(8, 36, 20, .55) 45%, rgba(8, 36, 20, .05) 80%); }
.hero-content { position: relative; z-index: 2; color: #fff; padding-top: 48px; padding-bottom: 72px; }
.hero-content > * { max-width: 600px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 18px; }
.hero p { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .88); margin-bottom: 30px; }
.hero .eyebrow { color: var(--lime); }
.hero-slide.is-active .hero-content > * { animation: rise .8s both; }
.hero-slide.is-active .hero-content > *:nth-child(2) { animation-delay: .1s; }
.hero-slide.is-active .hero-content > *:nth-child(3) { animation-delay: .2s; }
.hero-slide.is-active .hero-content > *:nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-dots { position: absolute; z-index: 3; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; padding: 0; background: rgba(255, 255, 255, .45); transition: width .3s, background .3s; }
.hero-dots button.is-active { width: 32px; background: var(--lime); }
@media (max-width: 600px) {
    .hero-slide::after { background: linear-gradient(180deg, rgba(8, 36, 20, .35) 0%, rgba(8, 36, 20, .85) 70%); }
    .hero-slide { align-items: flex-end; }
    .hero-actions .btn { flex: 1; padding: 0 14px; }
}

.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green-600); margin-bottom: 10px; }

.usp-strip { background: var(--lime-soft); border-bottom: 1px solid #dcebc7; }
.usp-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; padding-top: 16px; padding-bottom: 16px; }
.usp-row > div { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--green-900); font-size: .95rem; }
.usp-row .icon { color: var(--green-700); }
@media (min-width: 900px) { .usp-row { grid-template-columns: repeat(4, 1fr); } .usp-row > div { justify-content: center; } }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-tight { padding: 32px 0 56px; }
.section-tint { background: var(--cream); }
.section-dark { background: var(--green-950); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow, .section-dark .link-arrow { color: var(--lime); }
@media (min-width: 990px) { .section { padding: 80px 0; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0; }
.section-head.center { justify-content: center; text-align: center; }
.page-title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 16px; }

/* ---------- Category tiles ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px; }
@media (min-width: 990px) { .category-grid { grid-template-columns: repeat(7, 1fr); } }
.category-tile { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.category-img { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--lime-soft); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); transition: box-shadow .3s, transform .3s; }
.category-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.category-tile:hover .category-img { box-shadow: 0 0 0 2px var(--green-600), var(--shadow); transform: translateY(-3px); }
.category-tile:hover img { transform: scale(1.08); }
.category-name { font-weight: 600; font-size: 1rem; line-height: 1.3; }

/* ---------- Product grid / card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
@media (min-width: 750px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 12px; } }
@media (min-width: 990px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product-card { display: flex; flex-direction: column; min-width: 0; }
.product-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--cream); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.product-card:hover .product-media img { transform: scale(1.06); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 12px; border-radius: 20px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: #fff; line-height: 1.5; }
.badge-sale { background: var(--red); }
.badge-dark { background: var(--green-950); }
.badge-warn { background: var(--amber); }
.badge-lg { font-size: .9rem; padding: 6px 14px; top: 16px; left: 16px; }
.price .badge, .pd-info .badge { position: static; display: inline-block; }
.product-info { padding: 16px 0 14px; flex: 1; }
.product-title { font-family: var(--font); font-size: 1.05rem; font-weight: 400; letter-spacing: .04em; line-height: 1.45; margin: 0 0 8px; }
.product-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.section-dark .product-title, .section-dark .price-now { color: #fff; }
.section-dark .price-was { color: rgba(255, 255, 255, .55); }
.section-dark .btn-outline { background: transparent; border-color: rgba(255, 255, 255, .8); color: #fff; }
.section-dark .btn-outline:hover:not([disabled]) { background: var(--lime); border-color: var(--lime); color: var(--green-950); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price-now { font-size: 1.2rem; letter-spacing: .06em; }
.price-was { color: var(--muted); font-size: .95rem; }
.price-lg .price-now { font-size: 1.7rem; font-weight: 600; color: var(--green-800); }
.product-action .btn { border-radius: 0; font-weight: 500; font-size: 1.05rem; }
@media (max-width: 600px) {
    .product-title { font-size: .95rem; }
    .price-now { font-size: 1.05rem; }
    .product-action .btn { min-height: 44px; font-size: .92rem; padding: 0 8px; }
}

/* ---------- Promo ---------- */
.promo { display: grid; gap: 0; border-radius: 20px; overflow: hidden; background: var(--green-900); color: #fff; }
.promo-text { padding: 36px 24px; }
.promo-text h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.promo-text p { color: rgba(255, 255, 255, .82); }
.promo .eyebrow { color: var(--lime); }
.promo-img { min-height: 260px; }
.promo-img img { width: 100%; height: 100%; object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: center; }
.check-list .icon { color: var(--lime); background: rgba(140, 198, 63, .15); border-radius: 50%; padding: 3px; width: 26px; height: 26px; }
@media (min-width: 900px) { .promo { grid-template-columns: 1.05fr 1fr; } .promo-text { padding: 60px 56px; } }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 20px; }
@media (min-width: 750px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; text-align: center; transition: box-shadow .3s, transform .3s; }
.step:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.step .icon { color: var(--green-700); margin: 0 auto 14px; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; }
.step-num { position: absolute; top: 14px; right: 18px; font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--lime-soft); line-height: 1; }

/* ---------- Listing ---------- */
.page-hero { background: var(--cream); border-bottom: 1px solid var(--line); padding: 28px 0 32px; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 6px 0 8px; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a:hover { color: var(--green-700); text-decoration: underline; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.chip { padding: 8px 18px; border-radius: 30px; border: 1px solid var(--line); background: #fff; font-weight: 500; font-size: .95rem; transition: all .2s; }
.chip:hover { border-color: var(--green-600); color: var(--green-700); }
.chip.is-active { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.toolbar-count { margin: 0; color: var(--muted); }
.toolbar-controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.check { display: inline-flex; gap: 10px; align-items: flex-start; cursor: pointer; user-select: none; margin: 4px 0 18px; }
.toolbar .check { margin: 0; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--green-700); flex-shrink: 0; }
.check a { color: var(--green-700); text-decoration: underline; }
.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap select { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 40px 10px 14px; background: #fff; min-height: 44px; cursor: pointer; }
.select-wrap .icon { position: absolute; right: 14px; pointer-events: none; color: var(--muted); }
.select-full { display: flex; }
.select-full select { width: 100%; min-height: 50px; }
.empty-state { text-align: center; padding: 64px 16px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--cream); }
.empty-state > .icon { color: var(--green-600); margin: 0 auto 14px; }
.empty-state p { color: var(--muted); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 44px; }
.page-link { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); font-weight: 600; }
.page-link:hover { border-color: var(--green-600); color: var(--green-700); }
.page-link.is-current { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.page-link.is-disabled { opacity: .45; pointer-events: none; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; gap: 32px; margin-top: 12px; }
@media (min-width: 900px) { .product-detail { grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; } .pd-media { position: sticky; top: calc(var(--header-h) + 20px); } }
.pd-media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--cream); aspect-ratio: 1; }
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0; color: var(--ink-2); font-size: .97rem; }
.pd-lead { color: var(--ink-2); font-size: 1.05rem; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.stock i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent); }
.stock-ok { color: var(--green-600); }
.stock-low { color: var(--amber); }
.stock-out { color: var(--red); }
.pd-form { margin: 24px 0; }
.pd-buttons { display: grid; gap: 12px; margin-top: 18px; }
.field-label { display: block; font-size: .95rem; color: var(--ink-2); margin-bottom: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ink-2); height: 50px; }
.qty button { width: 46px; height: 100%; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); }
.qty button:hover { color: var(--green-700); background: var(--cream); }
.qty input { width: 54px; height: 100%; border: 0; text-align: center; font-size: 1.05rem; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.pd-perks { list-style: none; padding: 20px 0; margin: 0 0 8px; display: grid; gap: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-perks li { display: flex; gap: 14px; align-items: flex-start; }
.pd-perks .icon { color: var(--green-700); margin-top: 2px; }
.pd-perks b { display: block; font-weight: 600; }
.pd-perks span { color: var(--muted); font-size: .95rem; }
.pd-perks a { color: var(--green-700); text-decoration: underline; }
.pd-desc { border-bottom: 1px solid var(--line); }
.pd-desc summary { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; }
.pd-desc summary::-webkit-details-marker { display: none; }
.pd-desc .chev { transition: transform .25s; }
.pd-desc[open] .chev { transform: rotate(180deg); }
.pd-desc .prose { padding-bottom: 18px; color: var(--ink-2); }

/* ---------- Cart ---------- */
.cart-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 12px 0 28px; }
.cart-title h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.cart-row { display: grid; grid-template-columns: 1fr auto; gap: 14px 16px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-head { padding: 0 0 16px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cart-head span:nth-child(2) { display: none; }
.cart-product { display: flex; gap: 18px; grid-column: 1; }
.cart-thumb { width: 96px; height: 96px; flex-shrink: 0; border: 1px solid var(--line); overflow: hidden; background: var(--cream); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { display: block; font-size: 1.1rem; margin-bottom: 4px; line-height: 1.35; }
.cart-name:hover { text-decoration: underline; }
.cart-qty { grid-column: 1; display: flex; align-items: center; gap: 10px; padding-left: 114px; }
.cart-line-total { grid-column: 2; grid-row: 1; font-size: 1.1rem; }
.cart-row.is-updating { opacity: .55; pointer-events: none; }
@media (min-width: 750px) {
    .cart-row { grid-template-columns: 1fr 260px 140px; align-items: center; }
    .cart-head span:nth-child(2) { display: block; }
    .cart-qty { grid-column: 2; grid-row: 1; padding-left: 0; }
    .cart-line-total { grid-column: 3; }
    .cart-thumb { width: 130px; height: 130px; }
}
.cart-footer { display: grid; gap: 32px; margin-top: 40px; }
.cart-note textarea { width: 100%; max-width: 520px; }
.cart-summary { text-align: right; justify-self: end; width: 100%; max-width: 420px; }
.cart-summary .summary-line { justify-content: flex-end; gap: 28px; }
.cart-summary .summary-total span { font-size: 1.15rem; }
.cart-summary .summary-total b { font-size: 1.4rem; font-weight: 500; }
.free-ship-note { background: var(--lime-soft); color: var(--green-900); border-radius: var(--radius-sm); padding: 10px 14px; margin: 12px 0; text-align: center; }
.free-ship-note.is-done { display: flex; gap: 8px; justify-content: center; align-items: center; }
.cart-summary .muted a { text-decoration: underline; }
.cod-note { display: flex; justify-content: center; gap: 8px; align-items: center; margin-top: 14px; color: var(--green-800); font-weight: 600; }
@media (min-width: 750px) { .cart-footer { grid-template-columns: 1fr 1fr; } }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"]:not(.search-form input), textarea, select {
    width: 100%; border: 1px solid #cdd6cc; border-radius: var(--radius-sm); padding: 12px 14px; background: #fff; min-height: 50px;
    transition: border-color .2s, box-shadow .2s; font-size: 1rem;
}
.qty input { border: 0; min-height: 0; padding: 0; width: 54px; border-radius: 0; }
textarea { resize: vertical; min-height: 0; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(34, 144, 63, .15); }
input:disabled { background: var(--cream); color: var(--muted); }
.is-invalid, .is-invalid:focus { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(214, 69, 61, .12) !important; }
.field { margin-bottom: 18px; min-width: 0; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 7px; color: var(--ink-2); }
.field-error { color: var(--red); font-size: .88rem; margin: 6px 0 0; font-weight: 500; }
.hint { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.req { color: var(--red); }
.form-grid { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid-3 { grid-template-columns: repeat(3, 1fr); } .field-full { grid-column: 1 / -1; } }
.form-section { font-size: 1.15rem; margin: 18px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 52px; }
.password-wrap .icon-btn { position: absolute; right: 3px; top: 3px; }

/* ---------- Panels / checkout ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
@media (min-width: 750px) { .panel { padding: 28px; } }
.panel h2 { font-size: 1.3rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-head h2, .panel-head h1 { margin: 0; }
.panel-head a { color: var(--green-700); text-decoration: underline; }
.checkout { display: grid; gap: 8px; align-items: start; }
@media (min-width: 990px) { .checkout { grid-template-columns: 1fr 420px; gap: 32px; } .checkout-side { position: sticky; top: calc(var(--header-h) + 20px); } }
.page-checkout main { background: var(--cream); }
.pay-option { display: flex; align-items: center; gap: 14px; padding: 18px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.pay-option.is-selected { border-color: var(--green-600); background: var(--lime-soft); }
.pay-option input { position: absolute; opacity: 0; }
.pay-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--green-700); display: grid; place-items: center; flex-shrink: 0; }
.pay-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green-700); }
.pay-body { flex: 1; display: flex; flex-direction: column; }
.pay-option > .icon { color: var(--green-700); }
.summary-items { list-style: none; padding: 0; margin: 0 0 14px; }
.summary-items li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-name { flex: 1; line-height: 1.35; }
.summary-thumb { position: relative; width: 58px; height: 58px; flex-shrink: 0; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--cream); }
.summary-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.summary-thumb i { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--ink-2); color: #fff; font-style: normal; font-size: .75rem; display: grid; place-items: center; padding: 0 5px; }
.summary-line { display: flex; justify-content: space-between; padding: 6px 0; }
.summary-total { padding: 14px 0; font-size: 1.15rem; }
.summary-total b { color: var(--green-900); font-size: 1.35rem; }
.summary-panel .btn { margin-top: 6px; }
.secure-note { display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; margin: 14px 0 0; }

/* ---------- Success / track ---------- */
.success-card { text-align: center; }
.success-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; margin: 0 auto 22px; box-shadow: 0 0 0 10px var(--lime-soft); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.success-card h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.success-card .panel { text-align: left; }
.success-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 28px 0; }
.success-grid > div { background: var(--cream); border-radius: var(--radius-sm); padding: 14px; display: flex; flex-direction: column; }
@media (min-width: 750px) { .success-grid { grid-template-columns: repeat(4, 1fr); } }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.track-form { display: grid; gap: 0 16px; align-items: end; margin-top: 24px; }
@media (min-width: 750px) { .track-form { grid-template-columns: 1fr 1fr auto; } .track-form .btn { margin-bottom: 18px; } }
.timeline { list-style: none; padding: 0; margin: 8px 0 20px; display: grid; grid-template-columns: repeat(5, 1fr); }
.timeline li { position: relative; text-align: center; font-size: .85rem; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 3px; background: var(--line); }
.timeline li:first-child::before { display: none; }
.timeline li.is-done::before { background: var(--green-600); }
.tl-dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; margin: 0 auto 8px; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; color: #fff; }
.timeline li.is-done .tl-dot { background: var(--green-600); border-color: var(--green-600); }
.timeline li.is-current .tl-dot { box-shadow: 0 0 0 5px var(--lime-soft); }
.timeline li.is-done { color: var(--ink); font-weight: 600; }
@media (max-width: 520px) { .tl-label { font-size: .72rem; display: block; line-height: 1.2; } }

.status { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 20px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.status-pending { background: #fff4d6; color: #8a5a00; }
.status-confirmed { background: #e3efff; color: #1d4f9c; }
.status-packed { background: #efe6ff; color: #5b34a8; }
.status-out_for_delivery { background: #dff4f7; color: #0d6c7a; }
.status-delivered { background: var(--lime-soft); color: var(--green-800); }
.status-failed { background: #ffe9d6; color: #a14b00; }
.status-cancelled { background: var(--red-soft); color: #9b2620; }

/* ---------- Auth ---------- */
.auth { padding: 40px var(--gutter) 70px; background: var(--cream); }
.auth-card { max-width: 1000px; margin: 0 auto; display: grid; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.auth-side { position: relative; min-height: 200px; color: #fff; display: flex; align-items: flex-end; }
.auth-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 36, 20, .1), rgba(8, 36, 20, .85)); }
.auth-side > div { position: relative; z-index: 1; padding: 28px; }
.auth-side h2 { color: #fff; font-size: 1.8rem; }
.auth-side p { margin: 0; color: rgba(255, 255, 255, .85); }
.auth-form { padding: 32px 22px; }
.auth-form h1 { font-size: 2rem; margin-bottom: 6px; }
.auth-form form { margin-top: 24px; }
.auth-switch { text-align: center; margin: 22px 0 0; color: var(--muted); }
.auth-switch a { color: var(--green-700); font-weight: 600; text-decoration: underline; }
@media (min-width: 860px) { .auth-card { grid-template-columns: .9fr 1.1fr; } .auth-form { padding: 52px 48px; } .auth-side { min-height: 560px; } }

/* ---------- Account ---------- */
.account { display: grid; gap: 28px; }
@media (min-width: 900px) { .account { grid-template-columns: 270px 1fr; align-items: start; } .account-nav { position: sticky; top: calc(var(--header-h) + 20px); } }
.account-nav { background: var(--cream); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.account-user { display: flex; gap: 12px; align-items: center; padding: 10px 10px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.account-user b { display: block; }
.account-user .muted { display: block; word-break: break-all; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.account-nav a, .account-nav button { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--radius-sm); border: 0; background: none; width: 100%; text-align: left; font-weight: 500; }
.account-nav a:hover, .account-nav button:hover { background: #fff; }
.account-nav a.is-active { background: #fff; color: var(--green-700); box-shadow: var(--shadow-sm); }
.order-list { display: grid; gap: 12px; }
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.order-row:hover { border-color: var(--green-600); box-shadow: var(--shadow-sm); }
.order-row > div span { display: block; }
.order-row > .icon { display: none; }
@media (min-width: 640px) { .order-row { grid-template-columns: 1fr auto 110px 20px; } .order-row > .icon { display: block; } .order-row > b { text-align: right; } }
.back-link { display: inline-flex; gap: 6px; align-items: center; color: var(--green-700); font-weight: 600; margin-bottom: 14px; }
.two-col { display: grid; gap: 20px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.details { display: grid; grid-template-columns: 100px 1fr; gap: 10px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.cancel-box { margin-top: 22px; }
.cancel-box summary { cursor: pointer; display: inline-flex; }
.cancel-box form { margin-top: 16px; }

/* ---------- Prose / pages ---------- */
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.table-simple { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.table-simple th, .table-simple td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.table-simple th { background: var(--cream); }
.faq-list { margin-bottom: 32px; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { transition: transform .25s; color: var(--green-700); }
.faq[open] .chev { transform: rotate(45deg); }
.faq p { color: var(--ink-2); padding-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgba(255, 255, 255, .75); margin-top: 0; }
.footer-features { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.features-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; padding-top: 32px; padding-bottom: 32px; }
@media (min-width: 990px) { .features-row { grid-template-columns: repeat(4, 1fr); } }
.feature { display: flex; gap: 14px; align-items: center; }
.feature .icon { color: var(--lime); }
.feature b { display: block; color: #fff; font-weight: 600; }
.feature span { font-size: .88rem; }
.footer-grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
@media (min-width: 750px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand p { margin: 18px 0; max-width: 360px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--lime); margin-top: 3px; }
.pay-badge { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #fff; font-size: .88rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: .88rem; }

.whatsapp-float {
    position: fixed; right: 20px; bottom: 22px; z-index: 50; width: 60px; height: 60px; border-radius: 50%;
    background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .45); transition: transform .25s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.2s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
