@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Playfair+Display:wght@400;600;700&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────────── */
:root {
    --bg-primary:     #FDFBF7;
    --bg-secondary:   #F4EFE6;
    --bg-menu:        #fffdf8;
    --text-main:      #2C2621;
    --text-muted:     #594D42;
    --accent-orange:  #C06031;
    --accent-hover:   #A04A20;
    --accent-green:   #6B705C;
    --accent-green-dk:#394b35;
    --accent-gold:    #C8923A;
    --border-color:   rgba(44, 38, 33, 0.13);
    --shadow-sm:      0 4px 16px rgba(44, 32, 19, 0.07);
    --shadow-md:      0 10px 30px rgba(44, 32, 19, 0.10);
    --shadow-lg:      0 20px 48px rgba(44, 32, 19, 0.13);

    --font-heading:   'Playfair Display', serif;
    --font-body:      'Inter', sans-serif;
    --transition:     all 0.25s ease;

    --nav-height:     76px;
    --max-width:      1120px;
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Offset all anchor jump targets by the sticky header height */
[id] { scroll-margin-top: calc(var(--nav-height) + 1rem); }

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.05; color: var(--text-main); }
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: 1.45rem; }

/* ─── Accessibility ──────────────────────────────────────────────── */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; top: -100%; left: 0;
    background: var(--accent-orange); color: #fff;
    padding: 0.5rem 1.5rem; z-index: 2000; font-weight: 600;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ─── Navigation ─────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(var(--max-width), calc(100% - 40px));
    min-height: var(--nav-height);
    margin: 0 auto;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.logo-img {
    object-fit: contain;
    border-radius: 50%;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    white-space: nowrap;
    position: relative;
    transition: var(--transition);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 2px;
    background: var(--accent-orange);
    transition: var(--transition);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.menu-toggle {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 0.4rem;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.menu-toggle span:not(.sr-only) {
    display: block;
    width: 20px; height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn-primary, .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-orange);
    color: #fff;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(192, 96, 49, 0.25);
}
.btn-primary:hover, .nav-cta:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 96, 49, 0.35);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1.4rem;
    border: 0;
    border-radius: 0.45rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn.btn-primary {
    background: var(--accent-orange);
    color: #fff;
    box-shadow: 0 8px 22px rgba(192, 96, 49, 0.26);
    border-radius: 30px;
}
.btn.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 10px 28px rgba(192, 96, 49, 0.35);
}
.btn.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn.btn-secondary:hover { background: #EDE5D8; }

/* Order button on product cards */
.btn-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    min-width: 100px;
    padding: 0 1rem;
    background: var(--accent-green);
    color: #fff;
    border: 0;
    border-radius: 0.4rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-order:hover {
    background: var(--accent-green-dk);
    transform: translateY(-2px);
}

/* Text/link-style buttons */
.ingredients-toggle, .text-button, .cart-item-actions button {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--accent-green-dk);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 0.25rem 0;
    transition: var(--transition);
}
.ingredients-toggle:hover, .text-button:hover, .cart-item-actions button:hover {
    color: var(--accent-orange);
}

/* ─── Section layout utility ─────────────────────────────────────── */
.section {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 7rem) 0;
}

/* Eyebrow label */
.eyebrow {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: calc(100vh - var(--nav-height));
    padding: clamp(5rem, 8vw, 8rem) max(1.25rem, calc((100vw - var(--max-width)) / 2)) 4rem;
    overflow: hidden;
    color: #fffaf1;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(17, 13, 9, 0.84) 0%,
        rgba(17, 13, 9, 0.44) 50%,
        rgba(17, 13, 9, 0.14) 100%
    );
}
.hero-media {
    position: absolute;
    inset: 0;
    background: #110d09;
}
.hero-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 680px;
}
.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    max-width: 13ch;
    color: #fff;
    line-height: 1.0;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero-text {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: rgba(255,250,241,0.88);
    max-width: 540px;
    margin-bottom: 2rem;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* ─── About / Story ──────────────────────────────────────────────── */
.story {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}
.about-image {
    position: relative;
}
.about-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    padding: 5%;
    background: #f4ebdf;
    box-sizing: border-box;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}
.about-image::before {
    content: '';
    position: absolute;
    top: -18px; left: -18px;
    width: 100%; height: 100%;
    border: 2px solid var(--accent-orange);
    border-radius: 16px;
    z-index: -1;
}
.story-copy h2 { margin-bottom: 1.25rem; }
.story-copy p { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 1.05rem; }

/* ─── Products / Menu Section ────────────────────────────────────── */
.menu-section {
    width: 100%;
    max-width: none;
    background: var(--bg-menu);
    padding: clamp(4rem, 8vw, 7rem) max(1.25rem, calc((100vw - var(--max-width)) / 2));
}
.section-heading {
    display: grid;
    grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: start;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-copy { display: grid; gap: 0.9rem; }
.section-copy p { color: var(--text-muted); margin: 0; max-width: 780px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
}
.card {
    display: grid;
    grid-template-rows: auto 1fr;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-md);
}
.card-featured {
    border-color: rgba(192, 96, 49, 0.45);
}
.card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
#product-italian-herb .card-img {
    object-position: center 8%;
}
.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.4rem;
}
.card-title { font-size: 1.4rem; margin-bottom: 0.4rem; }
.card-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.75rem; }
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.card-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
}

/* Ingredients toggle */
.ingredients {
    margin-top: 0.5rem;
    padding: 0.65rem 0.85rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ─── Checkout CTA Section (Snipcart) ───────────────────────────── */
.checkout-cta-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: clamp(4rem, 8vw, 7rem) max(1.25rem, calc((100vw - var(--max-width)) / 2));
}
.checkout-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}
.checkout-cta-copy h2 { margin-bottom: 1rem; }
.checkout-cta-copy p  { color: var(--text-muted); margin-bottom: 1.75rem; font-size: 1.05rem; }
.checkout-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}
.checkout-cta-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.checkout-cta-meta {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: var(--shadow-sm);
}
.cart-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
}
.cart-meta-row:last-of-type { border-bottom: 0; }
.cart-meta-row strong { font-size: 1.25rem; }
.cart-meta-note {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ─── Snipcart Overrides ─────────────────────────────────────────── */
.snipcart-item-quantity__quantity {
    border: none !important;
}

/* Remove blue glow on quantity widget — buttons, wrapper, and inner input */
.snipcart-item-quantity,
.snipcart-item-quantity:focus,
.snipcart-item-quantity:focus-within,
.snipcart-item-quantity__quantity,
.snipcart-item-quantity__quantity:focus,
.snipcart-item-quantity__button,
.snipcart-item-quantity__button:focus,
.snipcart-item-quantity__button:focus-visible,
.snipcart-item-quantity__button:active,
.snipcart-item-quantity__button:hover,
.snipcart-item-quantity input,
.snipcart-item-quantity input:focus {
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    border-color: transparent !important;
}

/* ─── Snipcart floating cart button ─── */
.snipcart-cart-btn {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.1rem;
    background: var(--text-main);
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}
.snipcart-cart-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.snipcart-cart-btn.is-visible:hover {
    background: var(--accent-orange);
    transform: translateY(-2px);
}
.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    background: var(--accent-orange);
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 800;
}

/* ─── How It Works ───────────────────────────────────────────────── */
.how-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
    border-top: 1px solid var(--border-color);
}
.step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.step-grid article {
    padding: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}
.step-grid span {
    display: grid;
    width: 36px; height: 36px;
    place-items: center;
    background: var(--accent-green);
    color: #fff;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
}
.step-grid h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.step-grid p { color: var(--text-muted); font-size: 0.92rem; }
.weekly-limit {
    grid-column: 2;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.92rem;
}

/* ─── Trust / Compliance ─────────────────────────────────────────── */
.trust-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
    border-top: 1px solid var(--border-color);
}
.trust-card {
    padding: clamp(1.25rem, 3vw, 1.75rem);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}
.trust-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    line-height: 1.15;
    margin-bottom: 0.85rem;
}
.trust-card p { color: var(--text-muted); }

/* ─── Delivery Pricing ───────────────────────────────────────────── */
.delivery-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}
.delivery-card {
    padding: clamp(1.25rem, 3vw, 1.75rem);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}
.delivery-card p { color: var(--text-muted); margin-bottom: 0.75rem; }
.delivery-card strong { color: var(--text-main); }
.ri-notice {
    background: rgba(192, 96, 49, 0.08);
    border: 1px solid rgba(192, 96, 49, 0.25);
    border-radius: 0.4rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.92rem;
    color: var(--text-main) !important;
    margin-bottom: 1rem !important;
}
.delivery-late-note {
    margin-top: 0.85rem;
    font-size: 0.88rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 0 !important;
}
.delivery-table {
    display: grid;
    border: 1px solid var(--border-color);
    border-radius: 0.45rem;
    overflow: hidden;
    background: #fff;
}
.delivery-table > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.92rem;
}
.delivery-table > div:first-child {
    border-top: 0;
    background: var(--bg-secondary);
    font-weight: 700;
}

/* ─── Order Confirmation ─────────────────────────────────────────── */
.confirmation {
    padding: clamp(4rem, 8vw, 6rem) 1rem;
    background: var(--accent-green-dk);
}
.confirmation-card {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}
.confirmation-card h2 { margin-bottom: 0.75rem; }
.confirmation-card p:not(.eyebrow) { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ─── Product Modal ──────────────────────────────────────────────── */
.product-modal[hidden] { display: none; }
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 1rem;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(33, 27, 21, 0.58);
}
.modal-card {
    position: relative;
    z-index: 1;
    width: min(540px, 100%);
    max-height: min(780px, calc(100vh - 2rem));
    overflow: auto;
    padding: clamp(1.5rem, 4vw, 2rem);
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}
.modal-card h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0.4rem 0 0.5rem; }
.modal-desc { color: var(--text-muted); margin-bottom: 0.5rem; }
.modal-close {
    position: absolute;
    top: 0.85rem; right: 0.85rem;
    width: 40px; height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.4rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}
.modal-close:hover { background: var(--bg-primary); }
.modal-form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.field-hint { font-weight: 400; color: var(--text-muted); font-size: 0.85rem; }
.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}
.helper-text { color: var(--text-muted); font-size: 0.88rem; }
.modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}
.ri-field-note {
    padding: 0.6rem 0.85rem;
    background: rgba(192, 96, 49, 0.08);
    border: 1px solid rgba(192, 96, 49, 0.3);
    border-radius: 0.4rem;
    color: var(--accent-hover);
    font-size: 0.88rem;
    font-weight: 600;
}


/* ─── Toast notification ─────────────────────────────────────────── */
#order-toast {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%) translateY(1rem);
    z-index: 300;
    max-width: min(420px, calc(100vw - 2rem));
    padding: 0.8rem 1.2rem;
    background: var(--text-main);
    color: #fffaf1;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
#order-toast.order-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
#order-toast.order-toast--warn {
    background: var(--accent-hover);
}

/* ─── Delivery Date Picker Modal ─────────────────────────────────── */
.delivery-picker {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: flex-start;       /* mobile: top-align so overflow scrolls downward */
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;              /* mobile: overlay scrolls if card is taller than screen */
    -webkit-overflow-scrolling: touch;
}
.delivery-picker[hidden] { display: none; }

.delivery-picker-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 38, 33, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.delivery-picker-card {
    position: relative;
    z-index: 1;
    width: min(480px, 100%);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-primary);
    border-radius: 18px;
    padding: clamp(1rem, 4vw, 1.75rem);
    box-shadow: var(--shadow-lg);
    animation: pickerSlideIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: auto 0;
}

/* ── Desktop: vertically centre, no scroll needed ─────────────────── */
@media (min-width: 600px) {
    .delivery-picker {
        align-items: center;        /* vertically centre the card */
        overflow-y: hidden;         /* no outer scroll on desktop */
        padding: 1.5rem;
    }
    .delivery-picker-card {
        max-height: none;           /* let it size to content */
        overflow-y: visible;
        padding: 1.25rem 1.5rem;
    }
    /* Compact calendar on desktop so it fits without scrolling */
    .cal-header    { padding: 0.35rem 0.6rem; }
    .cal-weekdays  { padding: 0.25rem 0.4rem 0.05rem; }
    .cal-days      { padding: 0.15rem 0.4rem 0.35rem; gap: 2px; }
    .cal-day       { font-size: 0.82rem; max-height: 36px; }
    .cal-selected-display { padding: 0.3rem 0.6rem 0.4rem; font-size: 0.82rem; }
    .picker-note   { margin-bottom: 0.75rem; }
    .picker-fields { gap: 0.65rem; }
    .picker-actions { margin-top: 0.85rem; }
    .delivery-picker-card h3 { font-size: 1.3rem; margin: 0.15rem 0 0.3rem; }
    .picker-field textarea { min-height: 48px; }
}
@keyframes pickerSlideIn {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.delivery-picker-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 32px; height: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.delivery-picker-close:hover { background: var(--text-main); color: #fff; }

.delivery-picker-card h3 {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    margin: 0.25rem 0 0.5rem;
}
.picker-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.4rem;
}

.picker-fields { display: grid; gap: 1rem; }

.picker-field { display: flex; flex-direction: column; gap: 0.35rem; }
.picker-field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
}
.picker-required { color: var(--accent-orange); margin-left: 2px; }
.picker-optional { font-weight: 400; color: var(--text-muted); font-size: 0.82rem; }

.picker-field input[type="hidden"] { display: none; }

/* ─── Delivery Window dynamic field ─────────────────────────────── */
.picker-window-container {
    min-height: 2.4rem;
    display: flex;
    align-items: center;
}
.picker-window-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}
.picker-fixed-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 0.55rem 0.75rem;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    width: 100%;
}
.picker-window-select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-main);
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23594D42' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    cursor: pointer;
}
.picker-window-select:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(192, 96, 49, 0.12);
}

/* ─── Custom Calendar Widget ─────────────────────────────────────── */
.cal-widget {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    user-select: none;
    -webkit-user-select: none;
}
.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
}
.cal-month-label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}
.cal-nav {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0 0.3rem;
    color: var(--text-main);
    transition: color 0.15s;
    touch-action: manipulation;
}
.cal-nav:disabled { color: var(--border-color); cursor: default; }
.cal-nav:not(:disabled):hover { color: var(--accent-orange); }

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 0.4rem 0.5rem 0.1rem;
    gap: 2px;
}
.cal-weekdays span {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 0.25rem 0.5rem 0.5rem;
    gap: 3px;
}
.cal-day {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 50%;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--text-main);
    transition: background 0.15s, color 0.15s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.cal-day.is-empty { pointer-events: none; }
.cal-day.is-disabled {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}
.cal-day.is-sold-out {
    color: #b0a8a4;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    background: rgba(192, 96, 49, 0.06);
    cursor: not-allowed;
    pointer-events: none;
}
.cal-day:not(.is-disabled):not(.is-empty):hover {
    background: rgba(192, 96, 49, 0.12);
    color: var(--accent-orange);
}
.cal-day.is-selected {
    background: var(--accent-orange);
    color: #fff;
    font-weight: 700;
}
.cal-day.is-today {
    outline: 1.5px solid var(--accent-orange);
    outline-offset: -1px;
}

.cal-selected-display {
    padding: 0.4rem 0.75rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-orange);
    border-top: 1px solid var(--border-color);
    min-height: 2rem;
}

.picker-field select:focus,
.picker-field textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(192, 96, 49, 0.12);
}
.picker-field textarea { resize: vertical; min-height: 60px; }

.picker-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.picker-actions .btn { flex: 1; justify-content: center; }

/* ─── Footer ─────────────────────────────────────────────────────── */

.footer {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1.5rem;
    align-items: end;
    padding: 2.5rem max(1.25rem, calc((100vw - var(--max-width)) / 2));
    background: var(--text-main);
    color: #fffaf1;
}
.footer-brand-block .brand { color: #fffaf1; }
.footer-brand-block .brand img { border-radius: 50%; }
.footer-brand-block p { margin-top: 0.4rem; color: rgba(255,250,241,0.68); font-size: 0.92rem; }
.footer-social {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fffaf1;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--accent-orange); }
.footer-address {
    font-style: normal;
    text-align: right;
    display: grid;
    gap: 0.35rem;
}
.footer-address a {
    color: rgba(255,250,241,0.78);
    font-size: 0.92rem;
    transition: var(--transition);
}
.footer-address a:hover { color: #fff; }
.copyright {
    grid-column: 1 / -1;
    font-size: 0.82rem;
    color: rgba(255,250,241,0.45);
}

/* ─── Animations ─────────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive: Tablet ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: var(--nav-height);
        right: 1rem; left: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: var(--shadow-lg);
        padding: 0.75rem 1rem;
        display: none;
    }
    .nav-links.is-open { display: flex; }
    .nav-links li { border-bottom: 1px solid var(--border-color); }
    .nav-links li:last-child { border-bottom: 0; }
    .nav-links a { display: block; padding: 0.65rem 0; opacity: 1; }
    .nav-cta { display: none; }

    .story,
    .how-section,
    .trust-section,
    .delivery-section,
    .checkout-cta-inner { grid-template-columns: 1fr; }

    .section-heading { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .step-grid { grid-template-columns: 1fr; }
    .weekly-limit { grid-column: auto; }

    .footer { grid-template-columns: 1fr; }
    .footer-address { text-align: left; }
}

/* ─── Responsive: Mobile ─────────────────────────────────────────── */
@media (max-width: 580px) {
    .hero { min-height: 680px; padding-top: 6rem; }
    .hero::after {
        background: linear-gradient(
            180deg,
            rgba(17,13,9,0.75) 0%,
            rgba(17,13,9,0.55) 50%,
            rgba(17,13,9,0.85) 100%
        );
    }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }

    .product-grid { grid-template-columns: 1fr; }
    .field-grid { grid-template-columns: 1fr; }
    .modal-actions { grid-template-columns: 1fr; }
    .about-image::before { display: none; }

    .snipcart-cart-btn {
        bottom: 0.75rem;
        right: 0.75rem;
    }
}
