:root {
    --ink: #171a17;
    --muted: #5d655f;
    --paper: #fbf8f1;
    --line: rgba(23, 26, 23, 0.12);
    --leaf: #2f6d3a;
    --tomato: #d9432f;
    --gold: #e1aa3f;
    --cream: #fffdf8;
    --shadow: 0 18px 50px rgba(23, 26, 23, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

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

button,
input,
textarea {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(18px, 4vw, 52px);
    background: rgba(251, 248, 241, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand,
.main-nav a {
    color: inherit;
    text-decoration: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 8px;
    background: var(--ink);
    color: var(--cream);
    font-size: 0.82rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 3vw, 28px);
    font-size: 0.94rem;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 88svh;
    display: grid;
    align-items: end;
    padding: 112px clamp(20px, 6vw, 78px) 72px;
    isolation: isolate;
    overflow: hidden;
    color: white;
    background: #141714 url("../img/global-food-hero.png") center / cover fixed;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(90deg, rgba(12, 14, 12, 0.9), rgba(12, 14, 12, 0.42) 52%, rgba(12, 14, 12, 0.12));
}

.parallax {
    position: absolute;
    inset: auto auto 8% 6%;
    z-index: -1;
    width: 38vw;
    max-width: 430px;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.24);
    transform: translateY(calc(var(--scroll, 0) * -0.04px)) rotate(8deg);
}

.layer-two {
    inset: 18% 8% auto auto;
    width: 22vw;
    border-color: rgba(225, 170, 63, 0.42);
    transform: translateY(calc(var(--scroll, 0) * 0.06px)) rotate(-12deg);
}

.hero-copy {
    max-width: 740px;
}

.eyebrow,
.tile-kicker,
.product-category {
    display: inline-block;
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.86;
}

.hero p {
    max-width: 620px;
    margin: 24px 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2vw, 1.28rem);
}

.primary-action,
.whatsapp-action,
.add-button,
.mode-button,
.category-pill,
.stepper {
    border: 0;
    cursor: pointer;
}

.primary-action,
.whatsapp-action,
.add-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0 18px;
    background: var(--tomato);
    color: white;
    font-weight: 900;
    text-decoration: none;
}

.primary-action.full {
    width: 100%;
}

.whatsapp-action {
    width: 100%;
    background: #1e7e45;
}

.hero-stats {
    position: absolute;
    right: clamp(20px, 6vw, 78px);
    bottom: 48px;
    display: grid;
    gap: 4px;
    min-width: 156px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

.hero-stats strong {
    font-size: 2.6rem;
    line-height: 1;
}

.bento,
.catalog-shell,
.site-footer {
    width: min(1480px, calc(100% - 36px));
    margin-inline: auto;
}

.bento {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 14px;
    padding: 24px 0 70px;
}

.bento-tile {
    min-height: 190px;
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--cream);
    box-shadow: var(--shadow);
}

.bento-tile.wide {
    min-height: 250px;
    background: var(--ink);
    color: white;
}

.bento-tile.accent {
    background: var(--gold);
}

.bento-tile h2,
.section-heading h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 3rem);
    line-height: 1;
}

.catalog-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
    padding-bottom: 72px;
}

.section-heading {
    margin-bottom: 18px;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid var(--line);
    background: var(--cream);
}

.segmented {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    min-width: 250px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ece5d9;
}

.mode-button {
    min-height: 38px;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-weight: 900;
}

.mode-button.active {
    background: var(--ink);
    color: white;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: min(100%, 320px);
    color: var(--muted);
    font-weight: 800;
}

.search-field input,
.quote-form input,
.quote-form textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: white;
    color: var(--ink);
}

.quote-form textarea {
    min-height: 84px;
    resize: vertical;
}

.category-filter {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 16px 0;
}

.category-pill {
    flex: 0 0 auto;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 14px;
    background: var(--cream);
    color: var(--ink);
    font-weight: 800;
}

.category-pill.active {
    background: var(--leaf);
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.product-card {
    display: grid;
    border: 1px solid var(--line);
    background: var(--cream);
    box-shadow: 0 10px 28px rgba(23, 26, 23, 0.08);
}

.product-card[hidden] {
    display: none;
}

.product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #ede6d8;
}

.product-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.product-body h3,
.product-body p {
    margin: 0;
}

.product-body p {
    min-height: 3em;
    color: var(--muted);
    font-size: 0.94rem;
}

.price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.product-price {
    font-size: 1.45rem;
}

.product-min {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.quantity-row {
    display: grid;
    grid-template-columns: 36px minmax(54px, 1fr) 36px auto;
    gap: 8px;
    align-items: center;
}

.stepper {
    width: 36px;
    height: 40px;
    border-radius: 8px;
    background: #ece5d9;
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 900;
}

.quantity-input {
    width: 100%;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
}

.quote-sidebar {
    position: sticky;
    top: 82px;
    display: grid;
    gap: 14px;
    max-height: calc(100svh - 98px);
    overflow: auto;
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--ink);
    color: white;
    box-shadow: var(--shadow);
}

.quote-header,
.cart-total,
.cart-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.quote-header .eyebrow {
    margin: 0;
}

.cart-items {
    display: grid;
    gap: 10px;
}

.empty-state,
.form-status {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.cart-line {
    align-items: start;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.cart-line h4 {
    margin: 0;
}

.cart-line small {
    color: rgba(255, 255, 255, 0.68);
}

.remove-item {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: transparent;
    color: white;
    cursor: pointer;
}

.cart-total {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.cart-total strong {
    font-size: 1.6rem;
}

.quote-form {
    display: grid;
    gap: 10px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

@media (max-width: 980px) {
    .hero {
        min-height: 82svh;
        background-attachment: scroll;
    }

    .hero-stats {
        position: static;
        width: fit-content;
        margin-top: 28px;
    }

    .bento {
        grid-template-columns: 1fr;
    }

    .catalog-shell {
        grid-template-columns: 1fr;
    }

    .quote-sidebar {
        position: sticky;
        bottom: 0;
        top: auto;
        z-index: 15;
        max-height: 72svh;
    }
}

@media (max-width: 620px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .main-nav {
        width: 100%;
        justify-content: space-between;
    }

    .hero {
        padding-top: 88px;
    }

    .toolbar,
    .search-field {
        align-items: stretch;
        flex-direction: column;
    }

    .segmented {
        width: 100%;
        min-width: 0;
    }

    .quantity-row {
        grid-template-columns: 36px 1fr 36px;
    }

    .add-button {
        grid-column: 1 / -1;
    }

    .site-footer {
        flex-direction: column;
    }
}
