/* =========================================================
   Xutan — Gumboot World
   Deep rubber green + safety yellow. Bootstrap 5.3 base.
   ========================================================= */

:root {
    --ink: #10201a;
    --ink-2: #3c4d45;
    --muted: #6b7a72;
    --line: #e2e8e3;
    --surface: #ffffff;
    --bg: #f4f6f1;
    --bg-2: #eaeee6;

    --forest: #0d2a1f;
    --forest-2: #123a2b;
    --brand: #17603f;
    --brand-2: #1f7a52;
    --brand-soft: #e3f1e9;
    --accent: #f6c419;
    --accent-2: #ffd84d;
    --accent-ink: #2b2200;
    --danger: #c0392b;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(16, 32, 26, .06), 0 2px 8px rgba(16, 32, 26, .05);
    --shadow: 0 10px 30px -12px rgba(16, 32, 26, .25);
    --shadow-lg: 0 30px 60px -25px rgba(8, 28, 20, .45);
    --header-h: 68px;

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Outfit", var(--font);

    --bs-body-font-family: var(--font);
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--bg);
    --bs-link-color-rgb: 23, 96, 63;
    --bs-link-hover-color-rgb: 13, 42, 31;
    --bs-border-radius: var(--radius-sm);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); letter-spacing: -.01em; }
img { max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.skip-link { position: absolute; top: 8px; left: 8px; z-index: 2000; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn { font-weight: 600; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .6rem 1.25rem; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.02rem; }
.btn-sm { padding: .4rem .9rem; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-brand { background: var(--brand); color: #fff; border: 0; box-shadow: 0 8px 20px -10px rgba(23, 96, 63, .8); }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--forest-2); color: #fff; transform: translateY(-1px); }
.btn-brand:disabled { background: #b7c6bd; color: #fff; box-shadow: none; opacity: 1; }
.btn-accent { background: var(--accent); color: var(--accent-ink); border: 0; box-shadow: 0 10px 24px -10px rgba(246, 196, 25, .9); }
.btn-accent:hover, .btn-accent:focus-visible { background: var(--accent-2); color: var(--accent-ink); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-ghost-dark { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost-dark:hover { border-color: var(--brand); color: var(--brand); }
.btn-link { color: var(--brand); font-weight: 600; text-decoration: none; padding-left: 0; padding-right: 0; }
.btn-icon { border: 0; background: transparent; width: 38px; height: 38px; border-radius: 50%; color: var(--muted); display: inline-grid; place-items: center; transition: background .2s, color .2s; }
.btn-icon:hover { background: #fdecea; color: var(--danger); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(13, 42, 31, .92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); transition: box-shadow .25s ease, background .25s ease; }
.site-header.is-scrolled { background: rgba(13, 42, 31, .97); box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .6); }
.site-header .navbar { min-height: var(--header-h); padding: .5rem 0; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: #fff; margin-right: 1rem; }
.brand img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; background: #fff; box-shadow: 0 0 0 2px rgba(246, 196, 25, .55); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: .12em; }
.brand-text small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-top: 3px; }
.brand:hover { color: #fff; }

.site-header .nav-link { color: rgba(255, 255, 255, .78); font-weight: 500; display: flex; align-items: center; gap: .45rem; padding: .55rem .9rem !important; border-radius: 999px; transition: color .2s, background .2s; }
.site-header .nav-link:hover, .site-header .nav-link:focus-visible { color: #fff; background: rgba(255, 255, 255, .07); }
.site-header .nav-link.active { color: var(--accent-ink); background: var(--accent); }
.site-header .nav-link .bi { font-size: 1rem; }
.account-link span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-menu { border: 0; border-radius: 14px; box-shadow: var(--shadow); padding: .4rem; }
.dropdown-item { border-radius: 10px; padding: .55rem .8rem; display: flex; gap: .55rem; align-items: center; }
.dropdown-item:active { background: var(--brand); }

.navbar-toggler { border: 0; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; background: rgba(255, 255, 255, .08); }
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.cart-pill { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--accent-ink); background: var(--accent); padding: .45rem .9rem .45rem .75rem; border-radius: 999px; font-weight: 700; font-size: .92rem; transition: transform .2s; }
.cart-pill:hover { color: var(--accent-ink); transform: translateY(-1px); }
.cart-pill .bi { font-size: 1.1rem; }
.cart-count { background: var(--forest); color: #fff; min-width: 22px; height: 22px; border-radius: 999px; display: inline-grid; place-items: center; font-size: .75rem; padding: 0 6px; }
.cart-amt.is-zero { display: none !important; }
.cart-pill.bump { animation: bump .5s ease; }
@keyframes bump { 30% { transform: scale(1.15); } 60% { transform: scale(.96); } }

@media (max-width: 991.98px) {
    .site-header .navbar-collapse { padding: .75rem 0 1rem; }
    .site-header .navbar-nav { gap: .15rem; }
    .site-header .nav-link { padding: .75rem 1rem !important; }
    .site-header .dropdown-menu { background: rgba(255, 255, 255, .06); box-shadow: none; }
    .site-header .dropdown-item { color: #fff; }
    .site-header .dropdown-item:hover { background: rgba(255, 255, 255, .08); }
    .site-header .dropdown-item-text { color: rgba(255, 255, 255, .6) !important; }
    .site-header .dropdown-divider { border-color: rgba(255, 255, 255, .12); }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); background:
    radial-gradient(1200px 600px at 85% 10%, rgba(246, 196, 25, .16), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(31, 122, 82, .55), transparent 60%),
    linear-gradient(160deg, #0b231a 0%, #0f3324 55%, #0b261b 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: var(--bg); clip-path: ellipse(75% 100% at 50% 100%); }
.hero-rain { position: absolute; inset: 0; pointer-events: none; opacity: .35;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    background-repeat: repeat; background-size: 140px 140px, 90px 110px, 210px 180px; background-image:
    radial-gradient(1px 18px at 20px 20px, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 14px at 60px 70px, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 22px at 140px 40px, rgba(255,255,255,.35), transparent);
    animation: rain 1.6s linear infinite; }
@keyframes rain { to { background-position: -30px 140px, -20px 110px, -45px 180px; } }

.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); background: rgba(246, 196, 25, .1); border: 1px solid rgba(246, 196, 25, .3); padding: .35rem .8rem; border-radius: 999px; }
.eyebrow-dark { color: var(--brand); background: var(--brand-soft); border-color: rgba(23, 96, 63, .15); }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; line-height: 1.02; margin: 1.1rem 0 1rem; }
.hero-title span { display: block; background: linear-gradient(90deg, var(--accent), #fff3b0 60%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .78); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2rem; }


.offer-stage { position: relative; }
.offer-stage::before { content: ""; position: absolute; inset: 8% 6%; border-radius: 50%; background: radial-gradient(circle, rgba(246, 196, 25, .35), transparent 65%); filter: blur(30px); z-index: 0; }
.offer-card { position: relative; z-index: 1; background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: 28px; padding: 1.5rem; box-shadow: var(--shadow-lg); }
.offer-badge { position: absolute; top: 1.1rem; left: 1.1rem; z-index: 2; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .75rem; border-radius: 999px; }
.offer-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; background: linear-gradient(180deg, #f6f8f4, #eef2ec); overflow: hidden; }
.offer-photo img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; border-radius: 14px; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.offer-name { font-size: 1.5rem; font-weight: 800; margin: 1.1rem 0 .6rem; }
.offer-fallback img { position: relative; z-index: 1; border-radius: 28px; box-shadow: var(--shadow-lg); width: 100%; }
.offer-stage .carousel-control-prev, .offer-stage .carousel-control-next { width: 44px; height: 44px; top: 35%; border-radius: 50%; background: var(--forest); opacity: .85; z-index: 3; }
.offer-stage .carousel-control-prev { left: -10px; }
.offer-stage .carousel-control-next { right: -10px; }

/* spec chips */
.spec-list { margin: 0; }
.spec-list dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin: .75rem 0 .4rem; }
.spec-list dt span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 600; background: var(--bg); border: 1px solid var(--line); padding: .25rem .6rem; border-radius: 999px; }
.chip small { color: var(--brand); font-weight: 700; background: var(--brand-soft); border-radius: 999px; padding: 0 .4rem; }

/* colour swatches (colour set by app.js from the name) */
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--sw, #c9d1cc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); flex-shrink: 0; vertical-align: -1px; }

/* ---------- sections ---------- */
.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin: .75rem 0 .5rem; }
.section-sub { color: var(--muted); max-width: 44rem; font-size: 1.05rem; }

.search-section { padding-top: 1rem; }
.search-panel { display: grid; grid-template-columns: 1fr minmax(280px, 520px); gap: 1.5rem; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 1.75rem 2rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.search-panel .section-title { margin-top: 0; }
.search-form { position: relative; display: flex; gap: .5rem; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .35rem .35rem 2.6rem; transition: border-color .2s, box-shadow .2s; }
.search-form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(23, 96, 63, .12); }
.search-form > .bi { position: absolute; left: 1rem; color: var(--muted); }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: .45rem 0; font-size: 1rem; }
.search-form-light { background: var(--surface); }
.search-results { margin-top: 2rem; }
.results-count { color: var(--muted); font-weight: 600; }

.product-tile { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 100%; transition: transform .25s ease, box-shadow .25s ease; }
.product-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile-photo { position: relative; display: block; width: 100%; border: 0; padding: 0; background: linear-gradient(180deg, #f8faf6, #edf1ea); aspect-ratio: 4 / 3; cursor: zoom-in; overflow: hidden; }
.tile-photo img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.tile-photo:hover img { transform: scale(1.05); }
.zoom-hint { position: absolute; right: .6rem; bottom: .6rem; width: 34px; height: 34px; border-radius: 10px; background: rgba(13, 42, 31, .75); color: #fff; display: grid; place-items: center; font-size: .85rem; opacity: 0; transition: opacity .2s; }
.tile-photo:hover .zoom-hint, .tile-photo:focus-visible .zoom-hint { opacity: 1; }
.tile-body { padding: 1.1rem 1.25rem 1.35rem; }
.tile-body h3 { font-size: 1.15rem; font-weight: 700; margin: 0; }

.empty-state { text-align: center; background: var(--surface); border: 1px dashed #cdd6cf; border-radius: var(--radius); padding: 3rem 1.5rem; }
.empty-state > .bi { font-size: 2.6rem; color: var(--brand); display: inline-grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--brand-soft); margin-bottom: 1rem; }
.empty-state h3 { font-weight: 800; }
.empty-state p { color: var(--muted); }


.contact-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); overflow: hidden; color: #fff; border-radius: 28px; background: radial-gradient(700px 380px at 0% 0%, rgba(246, 196, 25, .16), transparent 60%), linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 100%); box-shadow: var(--shadow-lg); }
.contact-info { padding: clamp(1.75rem, 4vw, 3.25rem); display: flex; flex-direction: column; align-items: flex-start; }
.contact-info h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1; margin: 1rem 0 1.75rem; }
.contact-address { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 2rem; }
.contact-pin { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; color: var(--accent-ink); background: var(--accent); box-shadow: 0 0 0 8px rgba(246, 196, 25, .14); }
.contact-address address { font-style: normal; line-height: 1.65; color: rgba(255, 255, 255, .75); font-size: 1.02rem; }
.contact-address address strong { display: block; color: #fff; font-size: 1.15rem; }
.contact-actions { display: grid; gap: .75rem; width: 100%; max-width: 440px; margin-top: auto; }
.contact-action { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border-radius: 18px; text-decoration: none; color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); transition: transform .2s, background .2s, border-color .2s; }
.contact-action:hover { color: #fff; background: rgba(255, 255, 255, .13); border-color: rgba(246, 196, 25, .55); transform: translateX(4px); }
.contact-action > .bi:first-child { width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; font-size: 1.15rem; background: rgba(255, 255, 255, .1); color: var(--accent); }
.contact-action span { flex: 1; min-width: 0; }
.contact-action small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: rgba(255, 255, 255, .55); }
.contact-action strong { display: block; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .01em; overflow-wrap: anywhere; }
.contact-action .go { color: rgba(255, 255, 255, .45); transition: color .2s, transform .2s; }
.contact-action:hover .go { color: var(--accent); transform: translate(2px, -2px); }
.contact-action.is-call { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.contact-action.is-call:hover { background: var(--accent-2); color: var(--accent-ink); }
.contact-action.is-call > .bi:first-child { background: rgba(13, 42, 31, .12); color: var(--forest); }
.contact-action.is-call small { color: rgba(43, 34, 0, .65); }
.contact-action.is-call .go, .contact-action.is-call:hover .go { color: var(--accent-ink); }
.contact-map { position: relative; min-height: 420px; background: var(--forest-2); }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85) contrast(1.05); }
.contact-map::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 24px; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--forest-2), transparent); }
.map-tag { position: absolute; left: 1.25rem; bottom: 1.25rem; z-index: 2; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; background: var(--forest); color: #fff; font-weight: 600; font-size: .88rem; box-shadow: var(--shadow); }
.map-tag .bi { color: var(--accent); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(160deg, #0b231a, #123a2b); color: #fff; padding: 2.25rem 0 3.25rem; position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; background: var(--bg); border-radius: 26px 26px 0 0; }
.page-hero-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin: .7rem 0 .3rem; }
.page-hero p { color: rgba(255, 255, 255, .72); margin: 0; max-width: 40rem; }
.page-hero p strong { color: #fff; }
.page-hero .search-form { width: min(100%, 440px); }

/* ---------- order form ---------- */
/* category bar: sticks under the header; chips scroll sideways on small screens */
.cat-bar { position: sticky; top: var(--header-h); z-index: 1010; margin: 0 0 1.25rem; padding: .6rem 0; background: var(--bg); }
.cat-chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .92rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .95rem; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.cat-chip span { font-size: .75rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 0 .45rem; }
.cat-chip:hover { border-color: var(--brand); color: var(--brand); }
.cat-chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.cat-chip.is-active span { background: rgba(255, 255, 255, .18); color: #fff; }
.cat-group + .cat-group { margin-top: 2.5rem; }
.cat-heading { display: flex; align-items: center; gap: .6rem; font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 800; margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--line); }
.cat-heading span { font-family: var(--font); font-size: .8rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: .1rem .55rem; }
.cat-group[data-cat-group] { scroll-margin-top: calc(var(--header-h) + 70px); }

.product-list { display: grid; gap: 1.5rem; }
.order-card { display: grid; grid-template-columns: 300px minmax(0, 1fr); background: var(--surface); border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.order-card:hover { box-shadow: var(--shadow); }
.order-card.is-dirty { border-color: rgba(246, 196, 25, .9); box-shadow: 0 0 0 4px rgba(246, 196, 25, .18), var(--shadow); }
.order-photo { background: linear-gradient(180deg, #f8faf6, #e9eee6); padding: 1rem; display: flex; align-items: center; }
.order-photo .tile-photo { background: transparent; border-radius: 16px; aspect-ratio: 1 / 1; }
/* wide screens: products with up to 3 colours sit two per row */
@media (min-width: 1200px) {
    .product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .order-card.is-wide { grid-column: 1 / -1; }
    .order-card:not(.is-wide) { grid-template-columns: 190px minmax(0, 1fr); }
    .order-card:not(.is-wide) .order-photo { padding: .75rem; }
    .order-card:not(.is-wide) .order-main { padding: 1.1rem 1.25rem; }
}
.order-main { padding: 1.25rem 1.5rem; min-width: 0; display: flex; flex-direction: column; }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.order-head h2 { font-size: 1.35rem; font-weight: 800; margin: 0; }
.colour-dots { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.colour-dots .swatch { width: 16px; height: 16px; }

.matrix-wrap { overflow-x: auto; margin: 0 -.25rem; padding: 0 .25rem .25rem; -webkit-overflow-scrolling: touch; }
.matrix { --cols: 1; display: grid; min-width: max-content; }
.mx-head, .mx-row { display: grid; grid-template-columns: minmax(64px, 1fr) minmax(64px, auto) minmax(40px, auto) repeat(var(--cols), 120px); align-items: center; gap: .5rem; }
.mx-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 0 .5rem .5rem; border-bottom: 1px solid var(--line); }
.mx-colhead { display: inline-flex; align-items: center; gap: .35rem; justify-content: center; }
.mx-row { padding: .45rem .5rem; border-radius: 12px; transition: background .2s; }
.mx-row:nth-child(even) { background: #f7f9f6; }
.mx-row:hover { background: var(--brand-soft); }
.mx-size small, .mx-price small, .mx-pack small, .mx-clabel { display: none; }
.mx-size strong { font-weight: 700; }
.mx-price { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-2); }
.mx-pack { color: var(--muted); font-variant-numeric: tabular-nums; }
.mx-cell { display: flex; justify-content: center; }
.mx-cell .na { color: #b2bdb6; font-size: .8rem; font-weight: 600; }

.stepper { display: inline-flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px; transition: border-color .2s, box-shadow .2s, background .2s; }
.stepper:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 96, 63, .12); }
.mx-cell.has-qty .stepper { background: #fff8db; border-color: var(--accent); }
.stepper .step { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); display: grid; place-items: center; transition: background .15s, color .15s; }
.stepper .step:hover { background: var(--brand); color: #fff; }
.stepper input { width: 42px; border: 0; background: transparent; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; outline: none; padding: 0; font-size: .95rem; }
.stepper input::placeholder { color: #c0c9c3; font-weight: 500; }

.order-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--line); }
.item-total { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; }
.item-total > span { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.item-total strong { font-family: var(--font-display); font-size: 1.15rem; }
.item-total .amt { color: var(--brand); }
.unsaved-note { display: none; font-style: normal; font-size: .78rem; font-weight: 700; color: #8a6d00; background: #fff4c2; border-radius: 999px; padding: .15rem .6rem; }
.order-card.is-dirty .unsaved-note { display: inline-block; }
.add-cart { min-width: 160px; }
.add-cart.is-saving { pointer-events: none; opacity: .8; }
.add-cart.is-saved { background: var(--brand-2); }


.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; padding: .6rem 0 calc(.6rem + env(safe-area-inset-bottom)); background: rgba(13, 42, 31, .96); backdrop-filter: blur(12px); color: #fff; transform: translateY(110%); transition: transform .35s cubic-bezier(.2, .9, .3, 1.2); box-shadow: 0 -10px 30px -15px rgba(0, 0, 0, .5); }
.cart-bar.is-visible { transform: none; }
.cart-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cart-bar-info { display: flex; align-items: center; gap: .8rem; }
.cart-bar-info > .bi { font-size: 1.5rem; color: var(--accent); }
.cart-bar-info small { display: block; color: rgba(255, 255, 255, .65); font-size: .78rem; }
.cart-bar-info strong { font-family: var(--font-display); font-size: 1.2rem; }
.page-order .site-footer { padding-bottom: 6rem; }

/* ---------- cart ---------- */
.cart-group { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; margin-bottom: 1.25rem; }
.cart-group header { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: linear-gradient(90deg, var(--brand-soft), transparent); }
.cart-group header img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.cart-group h2 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.ct-row { display: grid; grid-template-columns: minmax(0, 2fr) 90px 60px 90px 110px 46px; gap: .5rem; align-items: center; padding: .65rem 1.25rem; border-top: 1px solid var(--line); transition: opacity .3s, transform .3s, background .2s; }
.ct-row:hover { background: #fafbf9; }
.ct-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; background: transparent !important; }
.ct-num { text-align: right; font-variant-numeric: tabular-nums; }
.ct-head span:nth-child(n+2):nth-child(-n+5) { text-align: right; }
.ct-num small { color: var(--muted); }
.ct-amt { font-weight: 700; }
.ct-item { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.ct-act { text-align: right; }
.ct-row.is-removing { opacity: 0; transform: translateX(20px); }

.summary-card { position: sticky; top: calc(var(--header-h) + 1rem); background: var(--surface); border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 1.5rem; }
.summary-card h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; }
.summary-card dl { margin: 0 0 1.25rem; }
.summary-card dl > div { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.summary-card dt { font-weight: 500; color: var(--muted); }
.summary-card dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.summary-card .total { border-bottom: 0; padding-top: .9rem; }
.summary-card .total dt { color: var(--ink); font-weight: 700; }
.summary-card .total dd { font-family: var(--font-display); font-size: 1.5rem; color: var(--brand); }
.summary-card textarea { border-radius: 14px; resize: vertical; }
.summary-note { font-size: .85rem; color: var(--muted); margin: .8rem 0 0; display: flex; gap: .4rem; align-items: center; }

/* ---------- status ---------- */
.status-list { display: grid; gap: 1.25rem; }
.status-card { background: var(--surface); border-radius: 22px; border: 1px solid var(--line); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.status-card.is-new { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(246, 196, 25, .2), var(--shadow); }
.status-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.status-card header small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.status-card h2 { font-size: 1.6rem; font-weight: 800; margin: 0; }
.status-amt { text-align: right; }
.status-amt strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--brand); display: block; }

.timeline { --done: 0; list-style: none; padding: 0; margin: 1.5rem 0 .5rem; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 21px; left: 12.5%; height: 4px; border-radius: 4px; }
.timeline::before { right: 12.5%; background: var(--line); }
.timeline::after { width: calc(75% * var(--done) / 3); background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width 1s ease; }
.timeline li { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.timeline .dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 3px solid var(--line); color: #a5b1aa; font-size: 1.1rem; }
.timeline li.is-done .dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(23, 96, 63, .8); }
.timeline li strong { font-size: .9rem; }
.timeline time { font-size: .78rem; color: var(--muted); }
.status-remark { background: var(--bg); border-radius: 12px; padding: .75rem 1rem; color: var(--ink-2); margin: 1rem 0 0; display: flex; gap: .5rem; }
.details-toggle { margin-top: .5rem; }
.order-details { margin-top: .5rem; }
.details-table { width: 100%; font-size: .9rem; border-collapse: collapse; }
.details-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .5rem; border-bottom: 1px solid var(--line); }
.details-table td { padding: .55rem .5rem; border-bottom: 1px solid var(--line); }
.details-table .n { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- auth ---------- */
.page-auth main { background: radial-gradient(800px 400px at 0% 0%, rgba(31, 122, 82, .12), transparent 60%), radial-gradient(700px 400px at 100% 100%, rgba(246, 196, 25, .14), transparent 60%); }
.auth-wrap { padding: clamp(2rem, 6vw, 4.5rem) 1rem; display: flex; justify-content: center; }
.auth-card { width: min(100%, 980px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--surface); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.auth-card-wide { width: min(100%, 1120px); grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
.auth-card-narrow { width: min(100%, 560px); grid-template-columns: 1fr; }
.auth-side { position: relative; color: #fff; padding: 2.5rem; background: radial-gradient(500px 300px at 100% 0%, rgba(246, 196, 25, .2), transparent 60%), linear-gradient(160deg, var(--forest), var(--forest-2)); display: flex; flex-direction: column; overflow: hidden; }
.auth-side .eyebrow { align-self: flex-start; }
.auth-side h2 { font-size: 2rem; font-weight: 800; margin: 1rem 0 .6rem; }
.auth-side p { color: rgba(255, 255, 255, .72); }
.auth-art { margin-top: auto; border-radius: 20px; width: 100%; max-height: 260px; object-fit: cover; box-shadow: var(--shadow-lg); }
.auth-points { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.auth-points li { display: flex; gap: .6rem; align-items: center; color: rgba(255, 255, 255, .88); }
.auth-points .bi { color: var(--accent); font-size: 1.15rem; }
.auth-form { padding: clamp(1.75rem, 4vw, 2.75rem); }
.auth-form h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 1.25rem; }
.auth-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 1.6rem; margin-bottom: 1rem; }
.auth-links { margin-top: 1.25rem; font-size: .92rem; color: var(--muted); }
.auth-links p { margin: .3rem 0; }
.auth-links a { font-weight: 600; }
fieldset { margin-bottom: 1.5rem; }
legend { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); font-weight: 800; margin-bottom: .75rem; }

.field { margin-bottom: 1rem; }
.row > .field { margin-bottom: 0; }
.field label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; display: block; }
.field .req { color: var(--danger); }
.field .opt { color: var(--muted); font-weight: 500; font-size: .8rem; }
.input-icon { position: relative; }
.input-icon > .bi { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; transition: color .2s; }
.input-icon input, .input-icon select { width: 100%; border: 1.5px solid var(--line); background: var(--bg); border-radius: 14px; padding: .8rem 1rem .8rem 2.7rem; font-size: 1rem; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; appearance: none; }
.input-icon select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7a72' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 14px; }
.input-icon input:focus, .input-icon select:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(23, 96, 63, .12); }
.input-icon:focus-within > .bi { color: var(--brand); }
.pwd-toggle { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; width: 38px; height: 38px; border-radius: 10px; color: var(--muted); }
.pwd-toggle:hover { color: var(--brand); background: var(--brand-soft); }
.input-icon:has(.pwd-toggle) input { padding-right: 3rem; }
.field-hint, .field-error { display: block; margin-top: .35rem; font-size: .8rem; }
.field-hint { color: var(--muted); }
.field-hint[data-match-hint] { display: none; color: var(--danger); }
.field-hint[data-match-hint].is-shown { display: block; }
.field-error { color: var(--danger); font-weight: 600; }
.field.has-error input, .field.has-error select, .was-checked input:invalid { border-color: var(--danger); background: #fff7f6; }
.form-alert { display: flex; gap: .6rem; align-items: flex-start; background: #fdecea; color: #8e2a1f; border-radius: 14px; padding: .85rem 1rem; margin-bottom: 1.25rem; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--forest); color: rgba(255, 255, 255, .7); padding: 3rem 0 1.5rem; margin-top: 2rem; }
.site-footer h6 { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; margin-bottom: .8rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; margin-bottom: .4rem; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--accent); }
.site-footer address { font-style: normal; }
.brand-footer { margin: 0; }
.footer-note { color: rgba(255, 255, 255, .6); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.footer-bottom .credit a { margin: 0; color: var(--accent); font-weight: 600; }
.footer-bottom .credit a:hover { color: #fff; }
@media (max-width: 575.98px) { .footer-bottom { justify-content: center; text-align: center; } }

/* ---------- toasts ---------- */
.toast-stack { position: fixed; top: calc(var(--header-h) + 12px); right: 16px; z-index: 1090; display: grid; gap: .6rem; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.app-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: .7rem; background: var(--surface); border-radius: 14px; padding: .85rem .9rem .85rem 1rem; box-shadow: var(--shadow-lg); border-left: 5px solid var(--brand); font-weight: 500; animation: toastIn .4s cubic-bezier(.2, .9, .3, 1.2); }
.app-toast span { flex: 1; }
.app-toast > .bi { font-size: 1.2rem; color: var(--brand); }
.app-toast > .bi::before { content: "\f26b"; }
.app-toast.is-error { border-left-color: var(--danger); }
.app-toast.is-error > .bi { color: var(--danger); }
.app-toast.is-error > .bi::before { content: "\f333"; }
.app-toast.is-info { border-left-color: var(--accent); }
.app-toast.is-info > .bi { color: #b38900; }
.app-toast.is-info > .bi::before { content: "\f430"; }
.app-toast .btn-close { font-size: .7rem; margin-top: 4px; }
.app-toast.is-leaving { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------- modals ---------- */
.modal-content { border: 0; border-radius: 22px; overflow: hidden; }
.modal-dark { background: #07160f; color: #fff; }
.modal-dark .modal-header { border-color: rgba(255, 255, 255, .1); }
.zoom-body { background: #f6f8f4; display: grid; place-items: center; min-height: 50vh; }
.zoom-body img { max-height: 78vh; max-width: 100%; object-fit: contain; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-delay { transition-delay: .12s; }
.js .reveal-delay-2 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
    .search-panel { grid-template-columns: 1fr; padding: 1.5rem; }
    .contact-card { grid-template-columns: 1fr; }
    .contact-map { min-height: 300px; }
    .contact-map::before { display: none; }
    .contact-actions { max-width: none; }
    .auth-card, .auth-card-wide { grid-template-columns: 1fr; }
    .auth-side { padding: 2rem; }
    .auth-art { display: none; }
    .order-card { grid-template-columns: 220px minmax(0, 1fr); }
}

@media (max-width: 767.98px) {
    :root { --header-h: 62px; }
    .hero-actions .btn { flex: 1 1 auto; }
    .offer-stage .carousel-control-prev { left: 4px; }
    .offer-stage .carousel-control-next { right: 4px; }

    /* order card: photo on top, matrix becomes stacked size cards */
    .order-card { grid-template-columns: 1fr; border-radius: 20px; }
    .order-photo { padding: .75rem; }
    .order-photo .tile-photo { aspect-ratio: 16 / 10; }
    .order-main { padding: 1rem; }
    .matrix-wrap { overflow: visible; margin: 0; padding: 0; }
    .matrix { min-width: 0; gap: .75rem; }
    .mx-head { display: none; }
    .mx-row, .mx-row:nth-child(even) { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: .75rem; }
    .mx-row:hover { background: var(--bg); }
    .mx-size, .mx-price, .mx-pack { display: flex; flex-direction: column; }
    .mx-size small, .mx-price small, .mx-pack small { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
    .mx-size strong { font-size: 1.05rem; }
    .mx-price, .mx-pack { text-align: left; }
    .mx-cell { grid-column: span 3; display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: var(--surface); border-radius: 12px; padding: .4rem .4rem .4rem .75rem; border: 1px solid var(--line); }
    .mx-cell.has-qty { border-color: var(--accent); background: #fffbea; }
    .mx-clabel { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .9rem; }
    .mx-cell.is-na { opacity: .6; }
    .stepper .step { width: 38px; height: 38px; font-size: 1.1rem; }
    .stepper input { width: 46px; font-size: 1.05rem; }
    .order-foot { margin-top: 1rem; padding-top: .85rem; }
    .add-cart { width: 100%; }

    .ct-row { grid-template-columns: 1fr 1fr 1fr; padding: .8rem 1rem; }
    .ct-head { display: none; }
    .ct-item { grid-column: 1 / span 2; }
    .ct-act { grid-column: 3; grid-row: 1; }
    .ct-num { text-align: left; display: flex; flex-direction: column; font-size: .92rem; }
    .ct-num::before { content: attr(data-label); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
    .ct-amt { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: .4rem; }
    .ct-row .ct-num:nth-child(4) { display: flex; }

    .timeline { grid-template-columns: 1fr; gap: .9rem; margin-top: 1.25rem; }
    .timeline::before, .timeline::after { top: 23px; bottom: 23px; left: 21px; right: auto; width: 4px; height: auto; }
    .timeline::after { height: calc((100% - 46px) * var(--done) / 3); bottom: auto; }
    .timeline li { flex-direction: row; text-align: left; gap: .9rem; }
    .timeline li strong { min-width: 80px; }
    .status-card { padding: 1.15rem; }
    .details-table .hide-sm { display: none; }
}

@media (max-width: 575.98px) {
    .contact-action { gap: .75rem; padding: .8rem .9rem; }
    .contact-action strong { font-size: .95rem; }
    .brand-text small { display: none; }
    .cart-pill { padding: .4rem .7rem .4rem .6rem; }
    .page-hero-inner > .btn { width: 100%; }
}
