/* =========================================================
   Cascais Cooks — wireframe stylesheet
   Warm-tone palette aligned to cascaisconnect.com
   (cream / stone / amber) with a terracotta CTA for food warmth.
   ========================================================= */

:root {
    /* --- core warm palette ----------------------------------- */
    --bg:           #faf3ef;   /* page background — same cream as parent site */
    --bg-alt:       #f3e9df;   /* warmer section bg */
    --bg-soft:      #fbf6f1;   /* subtle */
    --surface:      #ffffff;
    --line:         #e7dfd3;
    --line-soft:    #efe7db;

    --text:         #1c1917;   /* stone-900 */
    --text-2:       #44403c;   /* stone-700 */
    --muted:        #78716c;   /* stone-500 */

    --primary:      #b85542;   /* terracotta */
    --primary-700:  #983f30;
    --accent:       #eab308;   /* amber — from cascaisconnect.com */
    --accent-700:   #c79a07;

    --pt-green:     #2e8540;
    --pt-red:       #b85542;   /* re-aliased to terracotta */

    /* --- shape ---------------------------------------------- */
    --radius:       12px;
    --radius-sm:    8px;
    --radius-lg:    18px;
    --radius-pill:  999px;

    --shadow-sm:    0 1px 2px rgba(28, 25, 23, 0.05);
    --shadow:       0 6px 18px rgba(28, 25, 23, 0.08);
    --shadow-lg:    0 18px 40px rgba(28, 25, 23, 0.12);

    --container:    1180px;
    --gap:          24px;

    --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--primary-700); }

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--text);
    margin: 0 0 0.4em;
    line-height: 1.2;
    font-weight: 600;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }

p  { margin: 0 0 1em; color: var(--text-2); }

.muted    { color: var(--muted); }
.eyebrow  { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; font-weight: 700; color: var(--primary); }

/* ---------- Layout ---------- */

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 48px 0; }
.section-tight { padding: 24px 0; }

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

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(120%) blur(6px);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
}
.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}
.brand-text small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}
.parent-link {
    font-size: 0.85rem;
    color: var(--muted);
}
.parent-link a { color: var(--text-2); font-weight: 500; }
.parent-link a:hover { color: var(--primary); }

.cart-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--surface);
    border: 0;
    padding: 9px 16px 9px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}
.cart-pill:hover { background: var(--primary-700); color: var(--surface); }
.cart-pill svg { width: 18px; height: 18px; }
.cart-pill .sep { opacity: 0.55; padding: 0 2px; }

.site-footer {
    background: var(--text);
    color: var(--bg);
    padding: 40px 0 28px;
    margin-top: 64px;
    font-size: 0.9rem;
}
.site-footer a { color: var(--bg); }
.site-footer a:hover { color: var(--accent); }
.site-footer .row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--primary);
    color: var(--surface);
}
.btn-primary:hover { background: var(--primary-700); color: var(--surface); }
.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--text-2); color: var(--text); }
.btn-block { width: 100%; }

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

.hero {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: 2.8rem; max-width: 760px; }
.hero .lede { font-size: 1.15rem; color: var(--text-2); max-width: 640px; }
.hero-search {
    margin-top: 24px;
    display: flex;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 6px 6px 6px 18px;
    max-width: 560px;
    box-shadow: var(--shadow-sm);
}
.hero-search input {
    flex: 1;
    border: 0;
    padding: 12px 4px;
    font-size: 1rem;
    background: transparent;
    color: var(--text);
    outline: none;
}

/* ---------- Filter chips ---------- */

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 20px 0;
}
.chip {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.chip:hover { border-color: var(--text-2); }
.chip.is-active {
    background: var(--text);
    color: var(--surface);
    border-color: var(--text);
}

/* ---------- Grid ---------- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--gap);
}
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ---------- Cook card ---------- */

.cook-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.05s ease;
    display: block;
    color: inherit;
}
.cook-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    color: inherit;
}
.cook-card .cover {
    aspect-ratio: 4 / 3;
    background: var(--bg-alt);
    background-size: cover;
    background-position: center;
    position: relative;
}
.cook-card .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}
.cook-card .body { padding: 16px 18px 20px; }
.cook-card h3 { font-size: 1.1rem; margin: 0 0 6px; }
.cook-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 10px;
}
.cook-card .cuisine { font-size: 0.85rem; color: var(--text-2); }

/* ---------- Cook profile ---------- */

.profile-cover {
    height: 240px;
    background: var(--bg-alt);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--line);
}
.profile-head {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 24px;
    align-items: end;
    padding: 0 0 28px;
    margin-top: -64px;
}
.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--surface);
    border: 4px solid var(--surface);
    box-shadow: var(--shadow);
    background-size: cover;
    background-position: center;
}
.profile-meta { padding-bottom: 8px; }
.profile-meta h1 { margin: 0 0 6px; font-size: 2rem; }
.profile-meta .location { color: var(--muted); }
.profile-actions { padding-bottom: 8px; }

.profile-body {
    max-width: 920px;
    padding-top: 8px;
}
.profile-main h2 { margin-top: 0; }

.info-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 6px 0 4px;
    color: var(--text-2);
    font-size: 0.92rem;
}
.info-row .info-pill {
    background: var(--bg-alt);
    color: var(--text-2);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
}

.seasonal-note {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    color: var(--text-2);
    margin: 18px 0 28px;
    font-size: 0.92rem;
}
.seasonal-note strong { color: var(--text); }

/* ---------- Meal card ---------- */

.meal-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    color: inherit;
    transition: box-shadow 0.15s ease, transform 0.05s ease;
}
.meal-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    color: inherit;
}
.meal-card .photo {
    aspect-ratio: 4 / 3;
    background: var(--bg-alt);
    background-size: cover;
    background-position: center;
    position: relative;
}
.meal-card .body { padding: 14px 16px 18px; }
.meal-card h3 { font-size: 1rem; margin-bottom: 4px; }
.meal-card .price { font-weight: 700; color: var(--primary); }
.meal-card .desc { font-size: 0.85rem; color: var(--muted); margin: 6px 0 0; }

/* ---------- Availability badge (overlay on photo) ---------- */

.availability-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line-soft);
}
.availability-pill.is-now    { color: var(--pt-green); }
.availability-pill.is-pre    { color: var(--text-2); }
.availability-pill.is-batch  { color: var(--accent-700); }
.availability-pill .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: currentColor;
}

.meal-card .photo .availability-pill {
    position: absolute;
    left: 10px;
    bottom: 10px;
}
.gallery-availability {
    position: absolute;
    left: 16px;
    bottom: 16px;
}

/* ---------- Meal detail ---------- */

.meal-detail {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    padding-top: 28px;
}
.meal-detail .gallery {
    aspect-ratio: 4 / 3;
    min-width: 0;          /* prevent aspect-ratio from overriding fr allocation */
    align-self: start;     /* size from width→height, not row-height→width */
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    position: relative;
}
.meal-detail .info {
    min-width: 0;
}
.meal-detail .info h1 { font-size: 2rem; margin-bottom: 8px; }
.meal-detail .price-line {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin: 4px 0 18px;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 20px;
}
.tag {
    background: var(--bg-alt);
    color: var(--text-2);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-weight: 500;
}

/* ---------- Special instructions ---------- */

.instructions {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin: 18px 0 18px;
}
.instructions .label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.instructions label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}
.instructions .optional {
    background: var(--bg-alt);
    color: var(--muted);
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}
.instructions textarea {
    width: 100%;
    min-height: 96px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text);
    resize: vertical;
    outline: none;
}
.instructions textarea:focus { border-color: var(--text-2); }
.instructions textarea::placeholder { color: var(--muted); }

/* ---------- Quantity stepper + Add to cart row ---------- */

.add-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: stretch;
    margin-top: 8px;
}
.qty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 4px;
}
.qty button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: var(--bg-alt);
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.qty button:hover { background: var(--line); }
.qty button.plus  { background: var(--text); color: var(--surface); }
.qty button.plus:hover { background: var(--text-2); }
.qty .count {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

/* ---------- Detail blocks ---------- */

.detail-block {
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin-top: 16px;
}
.detail-block h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; font-family: var(--font-body); font-weight: 700; }
.detail-block p { margin: 0; color: var(--text-2); }

.cook-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    margin-top: 18px;
}
.cook-mini .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-alt);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.cook-mini .name { font-weight: 600; color: var(--text); }
.cook-mini .role { font-size: 0.8rem; color: var(--muted); }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 16px 0 0;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .sep { padding: 0 6px; }

/* ---------- WhatsApp button ---------- */

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    border-color: transparent;
}
.btn-whatsapp:hover { background: #1ebe5d; color: #fff; }
.btn-whatsapp svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Pickup info bar ---------- */

.pickup-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin: 20px 0 28px;
    flex-wrap: wrap;
}
.pickup-info > svg {
    width: 20px; height: 20px;
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 2px;
}
.pickup-info > div:first-of-type {
    flex: 1;
    min-width: 180px;
}
.pickup-info__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 2px;
}
.pickup-info__value {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}
.pickup-info__days {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.pickup-day-chip {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text-2);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

/* ---------- Meal card — cart footer ---------- */

.meal-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: inherit;
    transition: box-shadow 0.15s ease, transform 0.05s ease;
}
.meal-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.meal-card__photo-link { display: block; }
.meal-card__title-link { color: inherit; text-decoration: none; }
.meal-card__title-link:hover h3 { color: var(--primary); }
.meal-card .body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.meal-card__footer {
    margin-top: auto;
    padding-top: 12px;
}
.btn-cart {
    width: 100%;
    background: var(--text);
    color: var(--surface);
    border-color: transparent;
    font-size: 0.88rem;
    padding: 10px 14px;
    gap: 7px;
}
.btn-cart svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-cart:hover { background: var(--text-2); color: var(--surface); }
.btn-soldout {
    background: var(--bg-alt);
    color: var(--muted);
    border-color: var(--line);
    cursor: not-allowed;
}
.btn-soldout:hover { transform: none; background: var(--bg-alt); }

/* ---------- Cart pill — active / flash ---------- */

.cart-pill--has-items {
    background: var(--primary);
}
@keyframes pill-flash {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}
.cart-pill--flash { animation: pill-flash 0.3s ease; }

/* ---------- Modal ---------- */

.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.55);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(2px);
}
.modal-backdrop.is-open { display: flex; }

body.modal-open { overflow: hidden; }

.modal {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px 28px 28px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modal-in 0.18s ease;
}
@keyframes modal-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--text);
    color: var(--surface);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.modal__close:hover { background: var(--text-2); }
.modal__close svg { width: 14px; height: 14px; }

.modal__title {
    font-size: 1.3rem;
    margin: 0 32px 4px 0;
}
.modal__meal-name {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0 0 20px;
}

.modal__field { margin-bottom: 14px; }
.modal__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 6px;
}

.modal__select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.modal__select-wrap select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 13px 42px 13px 18px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
}
.modal__select-wrap select:focus { border-color: var(--text); }
.modal__chevron {
    position: absolute;
    right: 14px;
    width: 18px;
    height: 18px;
    color: var(--muted);
    pointer-events: none;
}

.modal__qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 10px;
}
.modal__qty-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.modal__price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--line-soft);
    margin-bottom: 18px;
}
.modal__price-label { font-size: 0.9rem; color: var(--muted); }
.modal__price { font-size: 1.1rem; font-weight: 700; color: var(--primary); }

.modal__confirm {
    width: 100%;
    background: var(--text);
    color: var(--surface);
    border-color: transparent;
    font-size: 1rem;
    padding: 15px;
    border-radius: var(--radius-pill);
}
.modal__confirm:hover { background: var(--text-2); color: var(--surface); transform: none; }

/* ---------- Checkout page ---------- */

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    padding: 40px 0 80px;
    align-items: start;
}
.checkout-form-section h2 { margin-bottom: 24px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.97rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    outline: none;
    transition: border-color 0.15s;
}
.form-group input:focus { border-color: var(--text); }
.form-group input::placeholder { color: var(--muted); }
.form-group .hint { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

/* Order summary panel */
.order-summary {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: 80px;
}
.order-summary h3 { font-size: 1.1rem; margin-bottom: 16px; }
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.92rem;
}
.summary-item:last-of-type { border-bottom: 0; }
.summary-item__name { font-weight: 600; color: var(--text); }
.summary-item__meta { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.summary-item__price { font-weight: 700; color: var(--text); white-space: nowrap; }
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 0;
    border-top: 2px solid var(--text);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 4px;
}
.summary-cook {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-soft);
}

.checkout-submit { margin-top: 28px; }
.checkout-submit .btn { width: 100%; font-size: 1rem; padding: 15px; }
.checkout-notice {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    margin-top: 10px;
}

/* Empty cart notice */
.empty-cart {
    text-align: center;
    padding: 80px 0;
}
.empty-cart h2 { margin-bottom: 12px; }
.empty-cart p  { color: var(--muted); margin-bottom: 24px; }

/* Order confirmation */
.confirm-box {
    max-width: 560px;
    margin: 60px auto 80px;
    text-align: center;
}
.confirm-icon {
    width: 72px;
    height: 72px;
    background: #e6f9ed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--pt-green);
}
.confirm-icon svg { width: 36px; height: 36px; }
.confirm-box h1 { font-size: 1.9rem; margin-bottom: 12px; }
.confirm-box p  { color: var(--muted); font-size: 1.05rem; }
.confirm-details {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 28px 0;
    text-align: left;
}
.confirm-details dt { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.confirm-details dd { margin: 2px 0 14px; font-weight: 600; color: var(--text); }
.confirm-details dd:last-child { margin-bottom: 0; }

/* Admin dashboard */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 20px; }
.admin-table th { text-align: left; padding: 10px 14px; background: var(--bg-alt); border-bottom: 2px solid var(--line); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: var(--bg-soft); }
.order-status { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 600; }
.order-status--new      { background: #e6f9ed; color: var(--pt-green); }
.order-status--pending  { background: var(--bg-alt); color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
    .profile-head {
        grid-template-columns: 100px 1fr;
        margin-top: -48px;
    }
    .profile-avatar { width: 100px; height: 100px; }
    .profile-actions { grid-column: 1 / -1; padding-top: 0; }
    .meal-detail { grid-template-columns: 1fr; gap: 24px; }
    .hero h1 { font-size: 2rem; }
    .checkout-layout { grid-template-columns: 1fr; }
    .order-summary { position: static; }
}
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .site-header .container { flex-direction: column; align-items: flex-start; gap: 8px; }
    .header-right { width: 100%; justify-content: space-between; }
    .parent-link { border-left: 0; padding-left: 0; }
    h1 { font-size: 1.8rem; }
    .modal { padding: 24px 18px 20px; }
    .pickup-info { flex-direction: column; gap: 10px; }
}
