:root {
    --primary-color: #C62828; /* Professional Deep Red */
    --primary-hover: #B71C1C;
    --secondary-color: #111111; /* Stark Black */
    --accent-color: #2E7D32; /* Classic Italian Green */
    --bg-color: #FFFFFF; /* Pure White */
    --bg-light: #F5F5F5;
    --text-main: #111111; /* Black */
    --text-muted: #555555;
    --white: #FFFFFF;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--secondary-color);
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(230, 57, 70, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.23);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #000000;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--white);
}

.btn-outline-white {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--text-main);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 54px;
    width: auto;
    display: block;
    border-radius: 6px;
}

.nav-links {
    display: none;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-buttons-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    margin-right: 12px;
}

.nav-buttons {
    display: none;
    gap: 16px;
}

.halal-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.halal-badge:hover {
    transform: scale(1.08);
}

.halal-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-toggle:hover {
    background-color: var(--bg-light);
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    margin: 4px 0;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 8px 20px 24px;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-top: 2px solid var(--primary-color);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Nav links inside mobile menu */
.mobile-menu > a:not(.btn) {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 14px 8px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
}

.mobile-menu > a:not(.btn):hover {
    color: var(--primary-color);
    padding-left: 16px;
}

/* Buttons inside mobile menu */
.mobile-menu > .btn {
    width: 100%;
    margin-top: 10px;
    justify-content: center;
    font-size: 1rem;
}

.mobile-menu > .btn-outline {
    margin-top: 16px;
}

.mobile-menu > .btn-primary {
    margin-top: 10px;
}

/* PWA Install Banner */
.pwa-banner {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    z-index: 998;
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    color: var(--white);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.pwa-banner[hidden] {
    display: none;
}

.pwa-banner-text {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
}

.pwa-install-btn {
    flex-shrink: 0;
    padding: 9px 22px;
    font-size: 0.9rem;
    background-color: var(--white);
    color: #2E7D32;
    border-color: var(--white);
    box-shadow: none;
}

.pwa-install-btn:hover {
    background-color: #f0f0f0;
    color: #1B5E20;
    transform: none;
    box-shadow: none;
}

.pwa-dismiss-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px 8px;
    flex-shrink: 0;
    line-height: 1;
    transition: var(--transition);
}

.pwa-dismiss-btn:hover {
    color: var(--white);
}

/* Push hero down when banner is visible */
.pwa-banner-visible .hero {
    padding-top: 190px;
}

@media (max-width: 480px) {
    .pwa-banner {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 8px 10px;
        padding: 12px 14px;
        align-items: center;
    }

    .pwa-banner-text {
        grid-column: 1;
        grid-row: 1;
        font-size: 0.875rem;
    }

    .pwa-dismiss-btn {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }

    .pwa-install-btn {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .pwa-banner-visible .hero {
        padding-top: 220px;
    }
}

/* Mobile PWA Install Banner */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 999;
    backdrop-filter: blur(2px);
}

.mobile-overlay.active {
    display: block;
}

/* Small screen logo sizing */
@media (max-width: 360px) {
    .logo {
        font-size: 1.2rem;
    }
    .nav-container {
        padding: 14px 14px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    background-image: url('../img/hero-pizza.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 900px;
    width: 100%;
}

.hero-content p {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

.address-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Menu Grid & Categories */
.menu-category {
    margin-top: 60px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--secondary-color);
    font-size: 2rem;
}


.menu-notice {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-weight: 600;
}

.menu-subcategory {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.menu-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(230, 57, 70, 0.2);
}

.menu-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.menu-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-card h3 {
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.menu-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
    flex: 1;
}

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

.menu-cta {
    text-align: center;
    margin-top: 40px;
}

.meals-pickup-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.meal-order-btn {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 10px 16px;
    font-size: 0.95rem;
}

/* Coupons Section */
.coupon-display {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.coupon-img {
    max-width: 720px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--primary-color);
    display: block;
}

.coupon-download {
    text-align: center;
}

.coupon-download p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 16px;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-info {
    padding: 20px;
}

.info-item {
    margin-bottom: 24px;
}

.info-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.info-item a {
    color: var(--primary-color);
    font-weight: 600;
}

.info-item a:hover {
    text-decoration: underline;
}

.contact-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.contact-map {
    height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 80px;
    width: auto;
    border-radius: 10px;
    margin-bottom: 12px;
    display: block;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
}

.footer-links, .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 8px;
    color: var(--white);
}

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .nav-links {
        display: flex;
    }
    
    .nav-buttons-container {
        margin-left: 0;
        margin-right: 0;
    }
    
    .nav-buttons {
        display: flex;
    }
    
    .mobile-toggle {
        display: none;
    }
    
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Menu Sidebar Layout */
.menu-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}

.menu-sidebar {
    width: 100%;
    position: sticky;
    top: 70px;
    z-index: 90;
    background-color: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.nav-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-right: 25px;
}

.nav-group-title {
    background-color: #0A4D0A; /* Dark green */
    border: 3px solid #D4AF37; /* Gold */
    border-radius: 12px;
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    padding: 8px 16px;
    background-image: linear-gradient(180deg, #115911 0%, #063806 100%);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    font-size: 1rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

.nav-group-items {
    display: flex;
    gap: 10px;
}

.menu-nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 15px;
    scrollbar-width: none;
}

.menu-nav::-webkit-scrollbar {
    display: none;
}

.menu-nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background-color: var(--bg-light);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.menu-nav-link:hover {
    background-color: rgba(46, 125, 50, 0.1);
    color: var(--accent-color);
}

.menu-nav-link.active {
    background-color: #2E7D32; /* Italian Green */
    color: var(--white);
    border-color: #1B5E20;
}

.menu-content {
    width: 100%;
}

.menu-section-target {
    scroll-margin-top: 140px; /* Offset for fixed header + sticky nav */
}

@media (min-width: 992px) {
    .menu-layout {
        flex-direction: row;
        gap: 40px;
    }
    
    .menu-sidebar {
        width: 250px;
        flex-shrink: 0;
        top: 100px;
        border-bottom: none;
        padding-right: 20px;
        border-right: 1px solid #eee;
    }

    .nav-group {
        flex-direction: column;
        align-items: stretch;
        margin-right: 0;
        margin-bottom: 25px;
    }
    
    .nav-group-title {
        padding: 12px 15px;
        font-size: 1.1rem;
    }

    .nav-group-items {
        flex-direction: column;
        margin-left: 15px;
        margin-top: 8px;
    }
    
    .menu-nav {
        flex-direction: column;
        overflow-x: visible;
        white-space: normal;
    }
    
    .menu-nav-link {
        border-radius: var(--radius-sm);
        padding: 10px 16px;
        background-color: transparent;
        border-left: 3px solid transparent;
        border-top: none;
        border-right: none;
        border-bottom: none;
        white-space: normal;
    }
    
    .menu-nav-link:hover {
        background-color: rgba(46, 125, 50, 0.05);
        color: var(--accent-color);
    }
    
    .menu-nav-link.active {
        background-color: rgba(46, 125, 50, 0.1);
        color: var(--accent-color);
        border: none;
        border-left: 4px solid var(--accent-color);
    }
}


/* ───────────────────────── Cart & Checkout ───────────────────────── */

/* Navbar cart button */
.btn-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0.55rem 0.8rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}
.btn-cart:hover { background: #000; transform: translateY(-1px); }
.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}
.cart-count.pulse { animation: cartPulse 0.4s ease; }
@keyframes cartPulse { 0% { transform: scale(1); } 50% { transform: scale(1.4); } 100% { transform: scale(1); } }

/* Add-to-cart controls on each menu card */
.card-cart-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.75rem;
}
.card-size-select {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.45rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    background: var(--white);
    color: var(--text-main);
}
.btn-add-cart {
    flex: 0 0 auto;
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-add-cart:hover { background: #1B5E20; transform: translateY(-1px); }

/* Cart overlay + slide-out panel */
.cart-overlay,
.checkout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}
.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 400px;
    max-width: 90vw;
    background: var(--white);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 24px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.cart-panel.open { transform: translateX(0); }
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eee;
}
.cart-header h2 { font-size: 1.3rem; color: var(--secondary-color); }
.cart-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}
.cart-ordertype {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}
.cart-ordertype label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-weight: 600;
}
.cart-items {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}
.cart-empty { color: var(--text-muted); text-align: center; margin-top: 2rem; }
.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.cart-item-info { display: flex; flex-direction: column; }
.cart-item-name { font-weight: 600; font-size: 0.92rem; }
.cart-item-size { font-size: 0.78rem; color: var(--text-muted); }
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.qty-btn {
    width: 26px;
    height: 26px;
    border: 1px solid #ddd;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}
.qty-btn:hover { background: #ececec; }
.cart-item-price { font-weight: 700; font-size: 0.9rem; min-width: 58px; text-align: right; }
.cart-item-remove {
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    font-size: 0.85rem;
}
.cart-item-remove:hover { color: var(--primary-color); }
.cart-summary {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #eee;
    background: var(--bg-light);
}
.cart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}
.cart-row.cart-total {
    color: var(--secondary-color);
    font-weight: 800;
    font-size: 1.15rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #ddd;
}
.btn-checkout { width: 100%; margin-top: 0.75rem; }

/* Checkout modal */
.checkout-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 1rem;
}
.checkout-modal {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 440px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}
.checkout-modal h2 { margin-bottom: 1.25rem; color: var(--secondary-color); }
.checkout-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-muted);
}
.checkout-modal .field { margin-bottom: 1rem; }
.checkout-modal label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}
.checkout-modal input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
}
.checkout-modal input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(198,40,40,0.12);
}
.checkout-total-line {
    margin: 1rem 0;
    font-size: 1.1rem;
    text-align: right;
}
.checkout-total-line strong { color: var(--primary-color); }
.checkout-error {
    background: #FDECEA;
    color: #B71C1C;
    border: 1px solid #F5C6C0;
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.8rem;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}
.checkout-secure {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 0.85rem;
}

@media (max-width: 600px) {
    .cart-panel { width: 100%; max-width: 100vw; }
}

/* Shift4 card field container (inside the checkout modal) */
.card-element {
    padding: 0.65rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    background: var(--white);
    min-height: 44px;
}
.card-element.shift4-focused,
.card-element:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(198,40,40,0.12);
}
