.ex-page {
    --ex-forest: #163a2d;
    --ex-forest-2: #0f2a20;
    --ex-gold: #c9a96e;
    --ex-gold-2: #e2c890;
    --ex-ink: #17231e;
    --ex-muted: #66706b;
    --ex-cream: #f8f5ee;
    --ex-line: rgba(22, 58, 45, .1);
    --ex-radius: 22px;
    background: var(--ex-cream);
}

/* ---------- Hero ---------- */
.ex-hero {
    position: relative; overflow: hidden;
    padding: 72px 0 132px;
    background:
        radial-gradient(circle at 85% 20%, rgba(201,169,110,.22), transparent 42%),
        linear-gradient(135deg, var(--ex-forest) 0%, var(--ex-forest-2) 100%);
    color: #fff;
}
.ex-hero::after {
    content: ""; position: absolute; right: -140px; top: -160px;
    width: 520px; height: 520px; border-radius: 50%;
    border: 1px solid rgba(226,200,144,.18);
    box-shadow: 0 0 0 60px rgba(226,200,144,.04), 0 0 0 130px rgba(226,200,144,.03);
    pointer-events: none;
}
.ex-hero .container { position: relative; z-index: 1; }
.ex-kicker {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 8px 16px; border-radius: 999px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(226,200,144,.35);
    color: var(--ex-gold-2); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.ex-hero h1 {
    margin: 22px 0 14px; color: #fff;
    font-family: 'Playfair Display', serif; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08;
}
.ex-lead { max-width: 640px; margin: 0; color: rgba(255,255,255,.78); font-size: 1.08rem; line-height: 1.7; }

.ex-jump { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ex-jump a {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 12px 10px 14px; border-radius: 999px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
    color: #fff; font-weight: 600; font-size: .92rem; text-decoration: none;
    transition: background .25s, border-color .25s, transform .25s;
}
.ex-jump a:hover { background: rgba(255,255,255,.18); border-color: var(--ex-gold); transform: translateY(-2px); }
.ex-jump-icon { font-size: 1.1rem; line-height: 1; }
.ex-jump b {
    display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px;
    border-radius: 999px; background: var(--ex-gold); color: var(--ex-forest-2); font-size: .78rem;
}

.ex-legend {
    display: inline-flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px;
    padding: 9px 18px; border-radius: 999px; background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.85); font-size: .88rem;
}
.ex-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Categories ---------- */
.ex-body { position: relative; margin-top: -78px; padding-bottom: 90px; }
.ex-cat {
    scroll-margin-top: 110px;
    margin-bottom: 34px; padding: 34px;
    background: #fff; border: 1px solid var(--ex-line); border-radius: 28px;
    box-shadow: 0 30px 60px -40px rgba(13,36,28,.35);
}
.ex-cat-head {
    display: flex; align-items: center; gap: 18px;
    padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--ex-line);
}
.ex-cat-head > div { flex: 1 1 auto; min-width: 0; }
.ex-cat-icon {
    flex: 0 0 auto; display: grid; place-items: center; width: 62px; height: 62px;
    border-radius: 18px; font-size: 1.8rem;
    background: linear-gradient(135deg, #f6efe0, #efe4cc);
    box-shadow: inset 0 0 0 1px rgba(201,169,110,.35);
}
.ex-cat-head h2 {
    margin: 0; color: var(--ex-ink);
    font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.2;
}
.ex-cat-head p { margin: 5px 0 0; color: var(--ex-muted); font-size: .97rem; }
.ex-cat-count {
    flex: 0 0 auto; padding: 7px 14px; border-radius: 999px;
    background: rgba(22,58,45,.07); color: var(--ex-forest); font-size: .82rem; font-weight: 700;
}
.ex-empty, .ex-empty-all p { margin: 0; color: var(--ex-muted); font-style: italic; }
.ex-empty-all { text-align: center; padding: 70px 30px; }

/* ---------- Product cards ---------- */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.ex-page .product-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--ex-line); border-radius: var(--ex-radius);
    transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, border-color .3s;
}
.ex-page .product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201,169,110,.6);
    box-shadow: 0 26px 46px -28px rgba(13,36,28,.5);
}
.ex-page .product-card form { display: flex; flex-direction: column; height: 100%; }
.ex-page .product-image-container {
    position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #f1ede4;
}
.ex-page .product-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.ex-page .product-card:hover .product-img { transform: scale(1.06); }
.ex-page .product-image-container::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(9,28,21,.35));
}
.ex-page .product-img-placeholder {
    position: absolute; inset: 0; display: grid; place-items: center;
    color: #b9b2a2; font-size: 2.2rem;
}
.ex-page .price-tag {
    position: absolute; left: 14px; bottom: 14px; z-index: 1;
    padding: 7px 13px; border-radius: 999px;
    background: var(--ex-forest); color: #fff;
    font-weight: 800; font-size: .95rem; letter-spacing: .01em;
    box-shadow: 0 10px 22px -10px rgba(0,0,0,.6);
}

.ex-page .product-info { display: flex; flex-direction: column; flex: 1 1 auto; gap: 16px; padding: 18px; }
.ex-page .product-name {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 auto;
    margin: 0; color: var(--ex-ink); font-size: 1.04rem; font-weight: 700; line-height: 1.4;
}

.item-diet-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%;
    color: #fff; font-size: .7rem; cursor: help; box-shadow: 0 2px 5px rgba(0,0,0,.15);
}
.item-diet-badge.vegan { background: #4caf50; }
.item-diet-badge.vegetarian { background: #f57c00; }

.ex-page .product-actions { display: flex; align-items: center; gap: 10px; }
.ex-page .qty-selector {
    display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto;
    padding: 4px; border-radius: 999px; background: #f3efe6;
}
.ex-page .qty-selector button {
    display: grid; place-items: center; width: 32px; height: 32px;
    border: 0; border-radius: 50%; background: #fff; color: var(--ex-ink);
    font-size: 1.05rem; font-weight: 800; cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.06); transition: background .2s, color .2s;
}
.ex-page .qty-selector button:hover { background: var(--ex-gold); color: #fff; }
.ex-page .qty-selector input {
    width: 30px; height: 32px; padding: 0; margin: 0;
    border: 0; background: transparent; text-align: center;
    color: var(--ex-ink); font: 800 1rem 'Inter', sans-serif;
    -moz-appearance: textfield; appearance: textfield;
}
.ex-page .qty-selector input::-webkit-outer-spin-button,
.ex-page .qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.ex-page .btn-add-cart {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1 1 auto;
    height: 40px; padding: 0 14px; border: 0; border-radius: 999px;
    background: var(--ex-forest); color: #fff; font-weight: 700; font-size: .88rem;
    cursor: pointer; transition: background .25s, transform .25s;
}
.ex-page .btn-add-cart:hover { background: var(--ex-gold); color: var(--ex-forest-2); }
.ex-page .btn-add-cart:active { transform: scale(.97); }
.ex-page .btn-add-cart.success { background: #2e8b47 !important; color: #fff !important; }
.ex-page .btn-add-cart:focus-visible,
.ex-page .qty-selector button:focus-visible,
.ex-jump a:focus-visible { outline: 3px solid var(--ex-gold); outline-offset: 2px; }

/* ---------- CTA ---------- */
.ex-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
    margin-top: 10px; padding: 36px 40px; border-radius: 28px;
    background: linear-gradient(135deg, var(--ex-forest), var(--ex-forest-2)); color: #fff;
}
.ex-cta h2 { margin: 0 0 8px; color: #fff; font-family: 'Playfair Display', serif; font-size: 1.6rem; }
.ex-cta p { margin: 0; max-width: 620px; color: rgba(255,255,255,.75); line-height: 1.65; }
.ex-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: 0 0 auto; }
.ex-btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
    transition: transform .25s, background .25s;
}
.ex-btn:hover { transform: translateY(-2px); }
.ex-btn--gold { background: var(--ex-gold); color: var(--ex-forest-2); }
.ex-btn--gold:hover { background: var(--ex-gold-2); }
.ex-btn--ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.ex-btn--ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .ex-cta { flex-direction: column; align-items: flex-start; padding: 30px; }
}
@media (max-width: 640px) {
    .ex-hero { padding: 48px 0 110px; }
    .ex-body { margin-top: -70px; padding-bottom: 60px; }
    .ex-cat { padding: 20px 16px; border-radius: 22px; }
    .ex-cat-head { flex-wrap: wrap; gap: 14px; }
    .ex-cat-icon { width: 52px; height: 52px; font-size: 1.5rem; }
    .ex-cat-count { order: 3; }
    .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .ex-page .product-info { padding: 12px; gap: 12px; }
    .ex-page .product-name { font-size: .92rem; }
    .ex-page .price-tag { left: 10px; bottom: 10px; padding: 5px 10px; font-size: .82rem; }
    .ex-page .product-actions { flex-direction: column; align-items: stretch; gap: 8px; }
    .ex-page .qty-selector { justify-content: space-between; }
    .ex-page .btn-add-cart { flex: 0 0 auto; }
    .ex-cta { padding: 26px 22px; }
    .ex-cta-actions, .ex-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .ex-page .product-card, .ex-page .product-img, .ex-jump a, .ex-btn { transition: none; }
}

.ex-page .dish-info-bar {
    margin: 0 0 14px;
    padding: 8px 12px 8px;
    background: #fff;
    border: 1px solid rgba(22, 58, 45, .09);
    border-radius: 12px;
    text-align: left;
}
.ex-page .dish-info-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 6px; }
.ex-page .dish-info-top strong { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #163a2d; }
.ex-page .dish-info-note { color: #6b7570; font-size: .68rem; }
.ex-page .dish-legend { display: flex; flex-wrap: wrap; gap: 3px 8px; margin-bottom: 6px; }
.ex-page .dish-leg-item { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; color: #4c5551; }
.ex-page .dish-filters { display: flex; flex-wrap: wrap; gap: 4px; }
.ex-page .dish-filter {
    border: 1px solid rgba(22, 58, 45, .14);
    background: #f7f3ea;
    color: #163a2d;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: .68rem;
    font-weight: 700;
    cursor: pointer;
}
.ex-page .dish-filter.is-on { background: #163a2d; color: #fff; border-color: #163a2d; }
.ex-page .dish-allergens { display: flex; flex-wrap: wrap; gap: 3px; margin: 4px 0 2px; }
.ex-page .dish-alg {
    display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 999px; background: #163a2d; color: #f6e7c6; font-size: .62rem; font-weight: 800;
}
.ex-page .dish-contents { display: block; color: #66706b; font-size: .78rem; line-height: 1.35; margin-bottom: 8px; }
.ex-page .dish-filtered-out { display: none !important; }

/* Touch screens: allergen filter buttons big enough to tap. */
@media (pointer: coarse) {
    .ex-page .dish-filter { padding: 7px 12px; }
}
