/* Tazza Tokri storefront. Warm, editorial, mobile first. No build step. */

:root {
    --cream: #faf6ee;
    --cream-2: #f3ecdc;
    --paper: #ffffff;
    --ink: #1d2a1f;
    --muted: #6b7468;
    --line: #e8e1d3;
    --forest: #1f4a33;
    --forest-deep: #14301f;
    --leaf: #3d7a4f;
    --mint: #e6efe3;
    --tomato: #d4452a;
    --turmeric: #e9a928;
    --red: #b3261e;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(29, 42, 31, 0.05), 0 6px 20px rgba(29, 42, 31, 0.06);
    --shadow-lift: 0 14px 34px rgba(31, 74, 51, 0.14);
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    color: var(--ink);
    background: radial-gradient(1100px 480px at 88% -8%, #f2e8d0 0%, transparent 62%), var(--cream);
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }

a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5rem; color: var(--forest-deep); }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 0.8rem; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid #9bc9a7; outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 18px; padding-right: 18px; }
.page-wide { width: 100%; max-width: none; padding: 0; margin: 0; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Announcement + header ---------- */

.announce { background: var(--forest-deep); color: #e7efe3; text-align: center; font-size: 0.82rem; padding: 7px 14px; letter-spacing: 0.01em; }
.announce:empty { display: none; }
.announce strong { color: #fff; font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(250, 246, 238, 0.9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }

.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--forest-deep); font-family: var(--serif); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo .icon { width: 26px; height: 26px; color: var(--leaf); stroke-width: 1.7; }

.search { flex: 1 1 100%; order: 3; position: relative; display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; transition: border-color 0.2s, box-shadow 0.2s; }
.search:focus-within { border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(61, 122, 79, 0.14); }
.search .icon { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 8px 12px 46px; font: inherit; color: var(--ink); outline: none; border-radius: 999px; }
.search button { border: 0; background: var(--forest); color: #fff; margin: 4px; padding: 8px 20px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.search button:hover { background: var(--forest-deep); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.header-link { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 0.93rem; font-weight: 500; cursor: pointer; }
.header-link:hover { background: var(--cream-2); text-decoration: none; }
.header-link[hidden] { display: none; }
.header-link .label { display: none; }
.cart-link { background: var(--forest); color: #fff; padding-left: 14px; padding-right: 14px; }
.cart-link:hover { background: var(--forest-deep); }
.cart-count { background: var(--tomato); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; font-size: 0.72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.cart-count[hidden] { display: none; }

.category-bar { border-bottom: 1px solid var(--line); background: var(--cream); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.category-bar::-webkit-scrollbar { display: none; }
.category-bar .container { display: flex; gap: 6px; padding-top: 0; padding-bottom: 0; }
.category-bar a { position: relative; padding: 12px 12px; color: var(--muted); font-size: 0.93rem; font-weight: 500; }
.category-bar a:hover { color: var(--forest-deep); text-decoration: none; }
.category-bar a.active { color: var(--forest-deep); font-weight: 700; }
.category-bar a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--tomato); }

main { min-height: 62vh; padding: 26px 0 56px; outline: none; }
main:has(> .page-wide) { padding-top: 0; }

/* ---------- Buttons & forms ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 24px; font: inherit; font-size: 0.97rem; font-weight: 600; cursor: pointer; background: var(--forest); color: #fff; transition: background 0.18s, color 0.18s, transform 0.12s, box-shadow 0.18s; }
.btn:hover { background: var(--forest-deep); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn[aria-disabled="true"] { background: #c9cfc4; color: #f7f7f2; cursor: not-allowed; transform: none; }
.btn-outline { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--forest); }
.btn-outline:hover { background: var(--mint); color: var(--forest-deep); }
.btn-add { background: var(--mint); color: var(--forest-deep); }
.btn-add:hover { background: var(--forest); color: #fff; }
.btn-add:disabled { background: #eceae1; color: #a4a99b; }
.btn-cream { background: var(--cream); color: var(--forest-deep); }
.btn-cream:hover { background: #fff; }
.btn-danger { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.btn-danger:hover { background: #fdecea; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.88rem; }
.link-btn { background: none; border: 0; color: var(--forest); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 5px; }
.field input, .field select, .field textarea, .textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus, .textarea:focus { border-color: var(--leaf); outline: none; box-shadow: 0 0 0 4px rgba(61, 122, 79, 0.14); }
.field-error, .form-error { color: var(--red); font-size: 0.86rem; margin-top: 4px; }
.form-error { margin: 0 0 12px; }

/* ---------- Cards, grid, product cards ---------- */

.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); padding: 22px; }
.panel h2 { font-size: 1.35rem; }
main h1 { margin-bottom: 20px; }
.page-head h1, .product-page h1 { margin-bottom: 6px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }

.product-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s; }
.product-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); border-color: transparent; }
.card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--cream-2); overflow: hidden; }
.card-media:hover { text-decoration: none; }
.thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.product-card:hover .thumb { transform: scale(1.06); }
.thumb.placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f0e9d8, #e6dec8); color: #a5ad97; }
.thumb.placeholder .icon { width: 34%; height: 34%; stroke-width: 1.2; }
.card-body { padding: 14px 14px 4px; flex: 1; }
.card-title { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; line-height: 1.25; }
.card-title:hover { color: var(--forest); text-decoration: none; }
.card-sub { color: var(--muted); font-size: 0.85rem; margin: 0 0 8px; }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price { font-size: 1.15rem; font-weight: 700; color: var(--forest-deep); }
.mrp { color: #9aa092; text-decoration: line-through; font-size: 0.9rem; }
.card-actions { padding: 10px 14px 14px; }
.card-actions .btn { width: 100%; padding: 10px 14px; }

.badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; color: #fff; letter-spacing: 0.01em; }
.badge-sale { background: var(--tomato); }
.badge-out { background: rgba(29, 42, 31, 0.78); left: auto; right: 10px; }
.stock-note { font-size: 0.84rem; color: var(--tomato); font-weight: 600; margin: 4px 0 0; }

.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: var(--mint); color: var(--forest-deep); }
.pill-placed, .pill-confirmed { background: #e4eefb; color: #0f3d82; }
.pill-packed, .pill-out_for_delivery { background: #fdf0d9; color: #8a5200; }
.pill-delivered { background: var(--mint); color: var(--forest-deep); }
.pill-cancelled { background: #fbe6e3; color: var(--red); }

.stepper { display: flex; align-items: center; justify-content: space-between; background: var(--mint); border-radius: 999px; padding: 3px; }
.stepper button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--forest); color: #fff; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.stepper button:hover { background: var(--forest-deep); }
.stepper button:disabled { background: #c9cfc4; cursor: not-allowed; }
.stepper span { flex: 1; text-align: center; font-weight: 700; }

/* ---------- Hero carousel ---------- */

.carousel { position: relative; overflow: hidden; background: var(--forest-deep); }
.slide { display: none; position: relative; min-height: clamp(400px, 66vh, 580px); align-items: flex-end; color: #fff; background-size: cover; background-position: center; }
.slide:hover { text-decoration: none; }
.slide.active { display: flex; animation: slide-in 0.7s ease both; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 28, 19, 0.12) 0%, rgba(14, 28, 19, 0.82) 100%); }
.slide-inner { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 18px 70px; }
.slide-text { max-width: 580px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem; font-weight: 700; color: #f4d58c; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: #f4d58c; }
.slide h2 { color: #fff; font-size: clamp(2.2rem, 6vw, 3.9rem); line-height: 1.03; margin-bottom: 14px; text-wrap: balance; }
.slide p { font-size: 1.1rem; color: #e7efe3; max-width: 460px; margin-bottom: 22px; }
.theme-green { background-color: var(--forest); }
.theme-orange { background-color: #a8541a; }
.theme-red { background-color: #8e2a1b; }
.theme-yellow { background-color: #8a6a12; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 24px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.carousel-dots button { width: 28px; height: 4px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, 0.4); cursor: pointer; padding: 0; transition: background 0.2s, width 0.2s; }
.carousel-dots button.active { background: #fff; width: 44px; }
.carousel-arrow { display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.carousel-arrow:hover { background: rgba(255, 255, 255, 0.3); }
.carousel-arrow.prev { left: 18px; }
.carousel-arrow.next { right: 18px; }
@keyframes slide-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Home sections ---------- */

.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: 1fr; }
.trust-item { display: flex; gap: 14px; align-items: center; padding: 18px 4px; }
.trust-item + .trust-item { border-top: 1px solid var(--line); }
.trust-item .icon { width: 30px; height: 30px; color: var(--leaf); stroke-width: 1.4; }
.trust-item strong { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--forest-deep); }
.trust-item span { color: var(--muted); font-size: 0.9rem; }

.section { padding-top: 52px; padding-bottom: 6px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.section-head p { margin: 0; color: var(--muted); }
.see-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }

.tiles { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; color: #fff; background: var(--forest); }
.tile:hover { text-decoration: none; }
.tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tile:hover .tile-img { transform: scale(1.07); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 28, 19, 0) 35%, rgba(14, 28, 19, 0.82) 100%); }
.tile-label { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.tile-label strong { font-family: var(--serif); font-size: 1.15rem; line-height: 1.15; }
.tile-label span { font-size: 0.8rem; opacity: 0.88; white-space: nowrap; }

.story { position: relative; margin-top: 56px; color: #fff; background: var(--forest-deep) center / cover no-repeat; }
.story::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 28, 19, 0.88), rgba(14, 28, 19, 0.4)); }
.story .container { position: relative; padding-top: 72px; padding-bottom: 72px; }
.story h2 { color: #fff; font-size: clamp(1.8rem, 4.4vw, 2.9rem); max-width: 560px; margin-bottom: 14px; }
.story p { max-width: 480px; color: #e1ebde; font-size: 1.05rem; margin-bottom: 22px; }

.steps { display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: step; }
.step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 22px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--tomato); margin-bottom: 6px; }
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Catalog ---------- */

.page-head { margin-bottom: 18px; }
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--forest); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 14px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.toolbar select { padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 0.9rem; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--leaf); text-decoration: none; }
.chip.active { background: var(--forest); border-color: var(--forest); color: #fff; }
.chip:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 30px; }

.empty { text-align: center; padding: 56px 18px; }
.empty .big { display: inline-flex; width: 72px; height: 72px; align-items: center; justify-content: center; border-radius: 50%; background: var(--mint); color: var(--leaf); margin-bottom: 14px; }
.empty .big .icon { width: 32px; height: 32px; stroke-width: 1.5; }

/* ---------- Product page ---------- */

.product-page { display: grid; gap: 26px; grid-template-columns: 1fr; margin-bottom: 8px; }
.product-page .card-media { border-radius: 22px; box-shadow: var(--shadow); }
.product-page .thumb.placeholder .icon { width: 28%; height: 28%; }
.product-page .price { font-size: 2rem; }
.product-page h1 { margin-bottom: 4px; }
.product-buy { max-width: 280px; margin: 18px 0; }
.product-buy .btn { width: 100%; padding: 14px 24px; }
.facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 0.93rem; }
.facts .icon { color: var(--leaf); }
.save-note { display: inline-block; background: #fbe9e4; color: var(--tomato); font-weight: 700; font-size: 0.85rem; padding: 3px 12px; border-radius: 999px; margin: 6px 0 2px; }

/* ---------- Cart, checkout, orders ---------- */

.layout-2 { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
.cart-line { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .thumb { width: 76px; height: 76px; border-radius: 14px; }
.cart-line-controls { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.cart-line .stepper { width: 126px; }
.line-total { margin-left: auto; font-weight: 700; color: var(--forest-deep); }
.unavailable { color: var(--red); font-size: 0.86rem; font-weight: 600; margin: 6px 0 0; }

.summary-row { display: flex; justify-content: space-between; padding: 7px 0; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.2rem; font-weight: 700; color: var(--forest-deep); }
.free { color: var(--leaf); font-weight: 700; }
.notice { background: #fff6e0; border: 1px solid #f3dca0; color: #6b4d00; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; margin: 12px 0; }
.notice.good { background: var(--mint); border-color: #c5dcc0; color: var(--forest-deep); }
.notice.bad { background: #fbe6e3; border-color: #efb9b3; color: var(--red); }
.progress { height: 8px; background: var(--mint); border-radius: 999px; overflow: hidden; margin: 6px 0 4px; }
.progress > div { height: 100%; background: var(--leaf); border-radius: 999px; transition: width 0.4s; }

.choice-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.choice { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer; background: #fff; text-align: left; font: inherit; color: inherit; transition: border-color 0.15s, background 0.15s; }
.choice.selected { border-color: var(--forest); background: var(--mint); box-shadow: 0 0 0 3px rgba(61, 122, 79, 0.16); }
.choice:hover { border-color: var(--leaf); }
.step-title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-title h2 { margin: 0; font-size: 1.25rem; }
.step-title .num { background: var(--forest); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; flex: none; font-family: var(--sans); }
.stack > * + * { margin-top: 16px; }

.order-card { display: block; color: var(--ink); padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow 0.2s, transform 0.2s; }
.order-card:hover { text-decoration: none; box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: transparent; }
.order-card + .order-card { margin-top: 12px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.timeline { list-style: none; padding: 0; margin: 14px 0 0; }
.timeline li { position: relative; padding: 0 0 18px 30px; color: var(--muted); font-size: 0.95rem; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #d7dccf; }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 20px; bottom: -2px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--leaf); }
.timeline li.current { font-weight: 700; }
.timeline li.current::before { box-shadow: 0 0 0 5px rgba(61, 122, 79, 0.2); }

/* ---------- Credits ---------- */

.credit-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.credit-list li { display: grid; gap: 2px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 0.9rem; }
.credit-list strong { font-weight: 600; }

/* ---------- Modal, toasts, loading ---------- */

.overlay { position: fixed; inset: 0; background: rgba(14, 28, 19, 0.55); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; z-index: 70; }
.modal { position: relative; background: var(--cream); width: 100%; max-width: 460px; border-radius: 24px 24px 0 0; padding: 28px 22px 30px; max-height: 92vh; overflow-y: auto; animation: rise 0.28s ease both; }
.modal-close { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); }
.auth h2 { margin-right: 28px; }
.code-input { text-align: center; letter-spacing: 0.5em; font-size: 1.5rem; }
.dev-hint { background: #fff6e0; border: 1px dashed var(--turmeric); border-radius: var(--radius-sm); padding: 9px 12px; font-size: 0.88rem; margin-bottom: 12px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

#toasts { position: fixed; left: 0; right: 0; bottom: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 90; pointer-events: none; padding: 0 14px; }
.toast { background: var(--forest-deep); color: #fff; padding: 11px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); font-size: 0.92rem; max-width: 440px; transition: opacity 0.35s; }
.toast-error { background: var(--red); }
.toast.hide { opacity: 0; }

.loading { display: flex; justify-content: center; padding: 80px 0; }
.spinner { width: 38px; height: 38px; border: 4px solid var(--mint); border-top-color: var(--leaf); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */

.site-footer { background: var(--forest-deep); color: #c9d8c6; font-size: 0.93rem; }
.site-footer a { color: #e6efe3; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 36px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand .logo { color: #fff; }
.footer-brand .logo .icon { color: #8fcf9f; }
.footer-brand p { margin-top: 12px; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 18px; padding-bottom: 22px; font-size: 0.85rem; }

/* ---------- Reveal on scroll ---------- */

.reveal-ready .reveal:not(.in) { opacity: 0; transform: translateY(18px); }
.reveal { transition: opacity 0.7s ease, transform 0.7s ease; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .slide.active, .modal { animation: none; }
    .reveal, .thumb, .tile-img, .product-card { transition: none; }
    .reveal-ready .reveal:not(.in) { opacity: 1; transform: none; }
    .spinner { animation-duration: 2s; }
}

/* ---------- Small phones ---------- */

@media (max-width: 639px) {
    .logo { font-size: 1.3rem; }
    .header-link { padding: 9px 10px; }
    .header-link span:not(.cart-count) { display: none; }
    .cart-link .cart-count { margin-left: -2px; }
}

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
    .container { padding-left: 24px; padding-right: 24px; }
    .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .tiles { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .trust-grid { grid-template-columns: repeat(3, 1fr); }
    .trust-item { padding: 22px 18px; }
    .trust-item + .trust-item { border-top: 0; border-left: 1px solid var(--line); }
    .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .choice-grid { grid-template-columns: 1fr 1fr; }
    .overlay { align-items: center; padding: 18px; }
    .modal { border-radius: 24px; }
    .header-link .label { display: inline; }
    .slide-inner { padding-bottom: 84px; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 960px) {
    .header-row { flex-wrap: nowrap; gap: 24px; }
    .search { flex: 1; order: 0; max-width: 560px; margin: 0 auto; }
    .grid { grid-template-columns: repeat(4, 1fr); }
    .tiles { grid-template-columns: repeat(4, 1fr); }
    .product-page { grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
    .layout-2 { grid-template-columns: 1fr 380px; gap: 28px; }
    .layout-2 .sticky { position: sticky; top: 100px; }
    .slide { align-items: center; }
    .slide::before { background: linear-gradient(90deg, rgba(14, 28, 19, 0.86) 0%, rgba(14, 28, 19, 0.5) 46%, rgba(14, 28, 19, 0.04) 100%); }
    .slide-inner { padding-bottom: 20px; }
    .carousel-arrow { display: inline-flex; }
    .carousel-dots { bottom: 28px; }
    main { padding-top: 38px; }
    .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
