/* ==========================================================================
   Bean Stalker After Dark - Online Ordering Stylesheet
   ========================================================================== */

:root {
    --primary: #12261b;
    --primary-light: #1b3828;
    --primary-dark: #09150e;
    --accent: #a65d44;
    --accent-hover: #8f4b33;
    --accent-light: #f4eae5;
    --gold: #d4af37;
    --cream: #faf7f2;
    --cream-surface: #ffffff;
    --text-main: #181d1a;
    --text-muted: #5e6862;
    --border-color: #e5ded4;
    --border-focus: #a65d44;
    --danger: #d93838;
    --success: #2e7d32;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.14);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --drawer-width: 440px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--cream);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

html {
    scroll-behavior: smooth;
}

#pizzas, #cocktails {
    scroll-margin-top: 88px;
}

/* Universal One-Color SVG Icons */
.svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    vertical-align: -2px;
}

body.modal-open,
body.drawer-open {
    overflow: hidden;
}

/* Container - Unified layout width across Header, Hero, Menu, and Footer */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */
.announcement-bar {
    background-color: var(--primary-dark);
    color: #e4dfd7;
    font-size: 0.825rem;
    padding: 0.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.announcement-bar strong {
    color: var(--gold);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.site-header {
    background-color: var(--primary);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
}

.brand-logo-img {
    height: 44px;
    width: auto;
    border-radius: 6px;
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: #ffffff;
}

.brand-subtitle {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    font-weight: 600;
}

/* Header Menu Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 0 auto 0 2rem;
}

.nav-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-menu-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-menu-link:active {
    transform: scale(0.97);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Event Header Badge */
.event-badge-pill {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.02em;
}

/* Event Notice Box in Checkout */
.event-notice-box {
    background: #fbf6ee;
    border: 1px solid #ebd9c5;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.25rem;
}

.event-notice-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.event-notice-text {
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Pickup Slots Grid (5 Equal Columns on Desktop/Tablet) */
.pickup-slots-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.65rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.slot-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    background: #ffffff;
    transition: all 0.2s ease;
    user-select: none;
    text-align: center;
}

.slot-pill input[type="radio"] {
    display: none;
}

.slot-pill:hover {
    border-color: var(--accent);
    background: #fff8f5;
}

.slot-pill.active {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(166, 93, 68, 0.25);
}

.type-toggle-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s;
}

.type-toggle-btn.active {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Cart Button */
.cart-header-btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s;
}

.cart-header-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.cart-badge {
    background: #ffffff;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #173223 55%, #1a3c2a 100%);
    color: #ffffff;
    padding: 4.5rem 0 4rem;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(#d4af37 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* Background image attached on the far right most */
.hero-bg-pizza {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 55%;
    max-width: 950px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
    z-index: 1;
}

.hero-pizza-bg-img {
    height: 120%;
    max-height: 600px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: right center;
    filter: drop-shadow(0 25px 60px rgba(0, 0, 0, 0.55));
    transition: transform 0.4s ease;
}

@media (min-width: 1600px) {
    .hero-bg-pizza {
        width: 60%;
        max-width: 1100px;
    }
    .hero-pizza-bg-img {
        max-height: 680px;
    }
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 620px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.775rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-desc {
    font-size: 1.1rem;
    color: #c9d5cd;
    max-width: 620px;
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.hero-status-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.status-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    padding: 0.45rem 1rem;
    font-size: 0.825rem;
    color: #e2ede6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
}

/* ==========================================================================
   Promotions Bar / Featured Banner
   ========================================================================== */
.promo-strip {
    margin-top: -1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}

.promo-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.promo-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.promo-img-wrap {
    width: 140px;
    min-height: 110px;
    position: relative;
    background: #f0ebe4;
    flex-shrink: 0;
}

.promo-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promo-content {
    padding: 1rem 1.25rem;
}

.promo-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.promo-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.promo-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Menu Catalog Section
   ========================================================================== */
.menu-section {
    width: 100%;
    padding: 3.5rem 0 4.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 0.925rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.gf-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #eef6f0;
    border: 1px solid #c7e3cc;
    color: #1c5e2d;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    font-weight: 600;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.product-card {
    background: var(--cream-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #d1c4b5;
}

.product-img-wrap {
    width: 100%;
    height: 190px;
    background: #f4eee7;
    position: relative;
    overflow: hidden;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.06);
}

.product-content {
    padding: 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.modal-item-img-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f4eee7;
}

.modal-item-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.product-price {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

.product-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f5efe6;
    color: #725c48;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

.modifier-hint {
    font-size: 0.775rem;
    color: #4b8b5e;
    font-weight: 600;
}

.btn-add-item {
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s;
}

.btn-add-item:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

/* ==========================================================================
   Artisanal Cocktails Section
   ========================================================================== */
.cocktails-section-header {
    margin-top: 4.5rem;
    padding-top: 2.75rem;
    border-top: 1px dashed rgba(27, 43, 34, 0.18);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.cocktails-notice {
    background: rgba(184, 91, 53, 0.08);
    border: 1px solid rgba(184, 91, 53, 0.22);
    border-radius: 9999px;
    padding: 0.5rem 1.15rem;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cocktails-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cocktail-card {
    background: #ffffff;
    border: 1px solid rgba(27, 43, 34, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.cocktail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(27, 43, 34, 0.08);
    border-color: rgba(184, 91, 53, 0.35);
}

.cocktail-card .product-content {
    padding: 1.35rem 1.35rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.cocktail-badge {
    background: rgba(184, 91, 53, 0.1);
    color: var(--accent);
    border: 1px solid rgba(184, 91, 53, 0.2);
    font-size: 0.725rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    display: inline-block;
    margin-bottom: 0.65rem;
}

.btn-add-cocktail {
    background: var(--primary);
    color: #ffffff;
    border: 1px solid transparent;
}

.btn-add-cocktail:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* ==========================================================================
   Modals & Overlays
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 26, 19, 0.7);
    backdrop-filter: blur(4px);
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    max-height: 90dvh;
    max-height: min(90dvh, calc(100% - 2rem));
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    transform: scale(0.96);
    transition: transform 0.25s ease;
    overflow: hidden;
}

.modal-card form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

/* Enhanced Wider Checkout Modal */
.modal-card-checkout {
    max-width: 720px;
}

/* Enhanced Wider Customization Modal */
.modal-card-customize {
    max-width: 640px;
}

.modal-header {
    padding: 1.25rem 1.75rem 1.1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: #ffffff;
}

.modal-close-btn {
    background: #f0ebe4;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
    flex-shrink: 0;
}

.modal-close-btn:hover {
    background: var(--border-color);
    color: var(--text-main);
}

.modal-body {
    padding: 1.4rem 1.75rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #d4cac0;
    border-radius: 99px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-footer {
    padding: 1.15rem 1.75rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: #faf7f2;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

/* Form Groups & Customizer */
.form-group {
    margin-bottom: 1.25rem;
}

/* 2-Column Responsive Form Row */
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
    color: var(--primary);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 16px; /* 16px prevents iOS Safari auto-zoom on mobile */
    color: var(--text-main);
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.4;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(166, 93, 68, 0.15);
}

.modifier-option-box {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.modifier-option-box:hover {
    border-color: var(--accent);
    background: #fffcf9;
}

.modifier-option-box.selected {
    border-color: var(--accent);
    background: var(--accent-light);
}

.mod-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mod-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.mod-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.mod-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.95rem;
}

/* Quantity Stepper */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qty-btn {
    background: transparent;
    border: none;
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: background 0.15s;
}

.qty-btn:hover {
    background: #f0ebe4;
}

.qty-val {
    width: 38px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Order Type Toggle in Checkout */
.checkout-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.type-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.type-card.active {
    border-color: var(--accent);
    background: var(--accent-light);
}

.type-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.type-card-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Slide-out Cart Drawer
   ========================================================================== */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 26, 19, 0.6);
    backdrop-filter: blur(3px);
    z-index: 600;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: var(--drawer-width);
    background: #ffffff;
    z-index: 610;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-drawer-header {
    padding: 1.25rem 1.5rem;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

.cart-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

.cart-item-price {
    font-weight: 700;
    color: var(--accent);
}

.cart-item-modifiers {
    font-size: 0.8rem;
    color: #2e7d32;
    font-weight: 600;
}

.cart-item-note {
    font-size: 0.775rem;
    color: var(--text-muted);
    font-style: italic;
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
}

.btn-remove-item {
    background: transparent;
    border: none;
    color: var(--danger);
    font-size: 0.775rem;
    cursor: pointer;
    text-decoration: underline;
}

.cart-empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}

.cart-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-drawer-footer {
    padding: 1.5rem;
    background: #faf7f2;
    border-top: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.summary-row.total-row {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}

.btn-checkout {
    width: 100%;
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 0.95rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-checkout:hover {
    background: var(--accent-hover);
}

.btn-checkout:disabled {
    background: #c2b6ac;
    cursor: not-allowed;
}

/* ==========================================================================
   Floating Mobile Cart Bar
   ========================================================================== */
.mobile-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 400;
}

@media (max-width: 768px) {
    .mobile-cart-bar.active {
        display: flex;
    }
}

.mobile-cart-info {
    display: flex;
    flex-direction: column;
}

.mobile-cart-count {
    font-size: 0.75rem;
    color: #d1dfd6;
}

.mobile-cart-total {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--gold);
}

.btn-mobile-view-order {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--primary-dark);
    color: #9cad9f;
    padding: 3.5rem 0 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.875rem;
    margin-top: auto;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-col h4 {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--gold);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.775rem;
    color: #6d7e70;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--primary-dark);
    color: #ffffff;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 4px solid var(--accent);
    animation: toastIn 0.3s ease;
}

.toast.error {
    border-left-color: var(--danger);
}

@keyframes toastIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-section {
        padding: 2.5rem 0 2rem;
        min-height: auto;
        display: block;
    }
    .hero-bg-pizza {
        display: none !important;
    }
    .hero-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    #pizzas, #cocktails {
        scroll-margin-top: 105px;
    }

    .container {
        padding: 0 1.25rem;
    }

    /* Mobile 2-Row Stacked Navbar */
    .site-header {
        padding: 0.5rem 0 0.55rem;
    }
    .nav-wrap {
        height: auto;
        flex-wrap: wrap;
        row-gap: 0.5rem;
        column-gap: 0.75rem;
        align-items: center;
        justify-content: space-between;
    }
    .brand-link {
        order: 1;
        flex: 0 0 auto;
    }
    .brand-logo-img {
        height: 36px;
    }
    .nav-actions {
        order: 2;
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .event-badge-pill {
        display: none; /* Hide date on mobile header to avoid clutter */
    }
    .cart-header-btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.825rem;
    }

    /* Header Nav Pills in dedicated full-width 2nd row */
    .nav-menu {
        order: 3;
        width: 100%;
        margin: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding-top: 0.45rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-menu-link {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.825rem;
        font-weight: 600;
        padding: 0.45rem 0.75rem;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: var(--radius-full);
        color: #ffffff;
        text-align: center;
        white-space: nowrap;
        gap: 0.4rem;
        transition: all 0.2s ease;
    }
    .nav-menu-link:hover,
    .nav-menu-link:active {
        background: rgba(255, 255, 255, 0.18);
        border-color: rgba(255, 255, 255, 0.35);
        color: #ffffff;
    }
    .nav-menu-link .svg-icon {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    .hero-section {
        padding: 2rem 0 1.75rem;
    }
    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        line-height: 1.15;
        margin-bottom: 0.65rem;
    }
    .hero-desc {
        font-size: 0.925rem;
        line-height: 1.5;
        margin-bottom: 1.15rem;
    }
    .hero-status-pills {
        gap: 0.45rem;
    }
    .status-pill {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }
    .menu-section {
        padding: 2rem 0 3.5rem;
    }
    .section-header {
        margin-bottom: 1.5rem;
        gap: 0.75rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .gf-notice {
        font-size: 0.775rem;
        padding: 0.45rem 0.85rem;
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .product-img-wrap {
        height: 180px;
    }
    .product-content {
        padding: 1.15rem;
    }
    .btn-add-item {
        min-height: 44px;
        padding: 0.65rem 1.15rem;
        font-size: 0.875rem;
    }
    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .site-footer {
        padding-bottom: calc(2.5rem + 75px + env(safe-area-inset-bottom, 0px));
    }
    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 5.5rem;
    }
}

/* Mobile Bottom Sheet Modals & Touch Screen Layout (< 640px) */
@media (max-width: 640px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
        background: rgba(10, 20, 14, 0.75);
        overflow: hidden;
    }

    .modal-card {
        max-width: 100%;
        width: 100%;
        /* Safe max height calculation for iOS Safari address/nav bars */
        max-height: 86vh;
        max-height: calc(100dvh - env(safe-area-inset-top, 20px) - 20px);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        margin: 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .modal-card form {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .modal-overlay.active .modal-card {
        transform: translateY(0);
    }

    .modal-card::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #d5cbbf;
        border-radius: 99px;
        margin: 8px auto 2px;
        flex-shrink: 0;
    }

    .modal-header {
        padding: 0.7rem 1.15rem 0.75rem;
        background: #ffffff;
        flex-shrink: 0;
    }

    .modal-close-btn {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 0.85rem 1.15rem 1rem;
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }

    .modal-footer {
        padding: 0.85rem 1.15rem calc(0.85rem + env(safe-area-inset-bottom, 16px));
        border-radius: 0;
        background: #ffffff;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
        flex-shrink: 0;
        position: relative;
        z-index: 10;
    }

    .pickup-slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.45rem;
    }

    .slot-pill {
        padding: 0.65rem 0.25rem;
        font-size: 0.825rem;
        min-height: 40px;
    }

    .brand-logo-img {
        height: 34px;
    }

    .cart-header-btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
    }

    .mobile-cart-bar {
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 420px) {
    .pickup-slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.35rem;
    }
    .slot-pill {
        padding: 0.6rem 0.15rem;
        font-size: 0.775rem;
    }
    .modal-header .product-name {
        font-size: 1.15rem;
    }
    .modal-header .section-subtitle {
        font-size: 0.775rem;
    }
    .event-notice-box {
        padding: 0.65rem 0.75rem;
        margin-bottom: 0.75rem;
    }
    .event-notice-title {
        font-size: 0.825rem;
    }
    .event-notice-text {
        font-size: 0.775rem;
    }
    .form-group {
        margin-bottom: 0.85rem;
    }
}
