/* Clean & Robust CSS Repair */
:root {
    --ph-red: #E81932;
    /* Standard bright Pizza Hut red */
    --ph-dark: #C8102E;
    --text-black: #121212;
    --text-gray: #555555;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-black);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.main-header {
    background-color: var(--ph-red);
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.logo-container {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    /* Reduced specific height for better fit */
    object-fit: contain;
}

.header-utilities {
    display: flex;
    gap: 20px;
    color: var(--white);
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
}

.utility-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
}

/* Hero Section */
/* Hero Section - Rich Red & Texture */
.hero-section {
    background-color: var(--ph-dark);
    /* Official Brand Red Background - Cinematic Masterpiece */
    /* Official Brand Red Background - Heart Frame */
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%),
        url("../assets/hero_pizza_heart_red_1768064871059.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 20px 180px;
    /* Adjust padding for heart spacing */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 750px;
    position: relative;
    overflow: hidden;
}

/* Accent lines top/bottom of hero */
.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.2);
}

.hero-section::before {
    top: 0;
}

.hero-section::after {
    bottom: 0;
}

.centered-hero {
    text-align: center;
    color: var(--white);
}

.main-offer-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.offer-line-1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    letter-spacing: 4px;
    font-weight: 400;
    margin-bottom: 0;
    opacity: 0.9;
}

.offer-huge {
    font-family: 'Oswald', sans-serif;
    font-size: 10rem;
    font-weight: 700;
    line-height: 0.9;
    color: #fff;
    /* Layered text-shadow for 3D Pop */
    text-shadow:
        1px 1px 0 #c8102e,
        2px 2px 0 #b00e23,
        3px 3px 0 #980c1e,
        4px 4px 0 #800a19,
        6px 10px 20px rgba(0, 0, 0, 0.4);
    margin: 15px 0;
    transform: rotate(-2deg);
}

.offer-line-2 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background-color: var(--white);
    color: var(--ph-dark);
    padding: 10px 40px;
    transform: skew(-15deg) rotate(-2deg);
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.3),
        inset 0 -4px 0 rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Order Section Replica */
.order-section {
    background-color: var(--white);
    padding: 0 20px 80px;
    margin-top: -100px;
    /* Overlap hero */
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.order-container {
    background-color: var(--white);
    /* Or transparent if purely floating, but usually white card */
    width: 100%;
    max-width: 600px;
    /* Tighter width */
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Distressed Title Effect */
.order-title {
    font-family: 'Oswald', sans-serif;
    color: var(--ph-dark);
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
    border: none;
    padding: 0;
    text-align: center;

    /* Grunge texture simulation via mask if possible, else simple bold style */
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Fallback will be handled by background-color if background-clip fails in old browsers, but for modern web: */
    background-color: #C8102E;
    /* The red color */
    /* Add a stroke to ensure visibility */
    -webkit-text-stroke: 1px #C8102E;
}

/* Toggle Switch - Screenshot Replica */
.delivery-toggle-container {
    background-color: #f2f2f2;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    /* Slight radius, not full pill */
    padding: 4px;
    display: flex;
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 50px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.toggle-switch {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 2;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: color 0.2s;
}

.toggle-btn i {
    font-size: 18px;
}

.toggle-btn.active {
    color: #000;
    font-weight: 700;
}

/* The Sliding White Box */
.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background-color: var(--white);
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-out;
    z-index: 1;
    border: 1px solid #ddd;
}

/* Address Input Group */
.address-input-group {
    width: 100%;
    max-width: 450px;
    display: flex;
    height: 50px;
    position: relative;
    /* For autocomplete positioning */
}

.address-input {
    flex: 1;
    padding: 0 15px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
    color: #333;
}

.address-input::placeholder {
    color: #777;
}

/* Autocomplete Dropdown */
.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    top: 100%;
    /* Bottom of input */
    left: 0;
    right: 0;
    width: 100%;
    /* Match input width */
    max-width: 450px;
    /* Match input max-width */
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
    font-size: 14px;
    text-align: left;
    color: #333;
}

.autocomplete-items div:hover {
    background-color: #e9e9e9;
}

.autocomplete-active {
    background-color: DodgerBlue !important;
    color: #ffffff;
}

.btn-view-deals {
    background-color: #C8102E;
    color: var(--white);
    border: none;
    padding: 0 25px;
    font-family: 'Roboto', sans-serif;
    /* Screenshot looked more Roboto than Oswald */
    font-weight: 700;
    font-size: 15px;
    text-transform: capitalize;
    /* "View Deals" not ALL CAPS in typical web forms usually, but keeping match */
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-view-deals:hover {
    background-color: #a00d25;
}

/* Location Link */
.geo-link {
    margin-top: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.geo-link a {
    color: #C8102E;
    font-weight: 700;
    text-decoration: none;
}

.geo-link a:hover {
    text-decoration: underline;
}

.geo-link i {
    font-size: 10px;
    /* Small arrow */
    transform: rotate(45deg);
    /* Arrow usually points distinctively */
}

.valid-address-msg {
    display: block;
    width: 100%;
    max-width: 450px;
    text-align: left;
    font-size: 12px;
    color: #666;
    margin-top: -15px;
    /* Pull up closer to input */
    margin-bottom: 5px;
}

/* Mobile Styling */
@media (max-width: 768px) {
    .offer-huge {
        font-size: 5rem;
    }

    .offer-line-2 {
        font-size: 1.5rem;
    }

    .order-section {
        margin-top: -20px;
        padding: 0 10px 40px;
    }

    .order-container {
        padding: 20px;
    }

    .address-input-group {
        flex-direction: column;
        height: auto;
        gap: 10px;
        position: relative;
        /* Ensure relative for dropdown */
    }

    .address-input {
        box-sizing: border-box !important;
        height: 50px !important;
        width: 100% !important;
        background-color: #ffffff !important;
        border: 1px solid #ced4da !important;
        /* Standard smooth grey */
        border-radius: 6px !important;
        /* Slightly softer corners */
        padding: 10px 15px !important;
        font-size: 16px !important;
        /* Readable size */
        color: #495057 !important;
        line-height: normal !important;
        box-shadow: none !important;
        -webkit-appearance: none !important;
        margin-bottom: 0 !important;
        outline: none !important;
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    }

    .address-input:focus {
        border-color: #C8102E !important;
        /* Brand color on focus */
        box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.25) !important;
        /* Focus ring */
    }

    .btn-view-deals {
        height: 50px;
        width: 100%;
        border-radius: 4px;
        margin-left: 0;
        /* Reset desktop margins if any */
    }
}

/* =========================================
   MENU PAGE STYLES
   ========================================= */

/* Body & Layout */
.menu-page {
    background-color: #ffffff;
    font-family: 'Roboto', sans-serif;
}

/* 1. Menu Header Base */
.menu-header {
    width: 100%;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 2. Top Red Bar */
.menu-top-bar {
    background-color: #C8102E;
    /* Brand Red */
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.menu-brand-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-logo-circle {
    background-color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.menu-logo-circle img {
    width: 35px;
    height: auto;
}

.delivery-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.asap-badge {
    background-color: #A00C22;
    /* Darker red */
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
}

.menu-auth-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-login-header {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.btn-login-header:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-link {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

/* 3. Navigation Bar */
.menu-nav-bar {
    background-color: white;
    height: 50px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    padding: 0 40px;
    position: relative;
    /* For arrows */
}

/* Hide scrollbar by default for cleaner look */
.nav-scroller {
    display: flex;
    gap: 30px;
    height: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    width: 100%;
    padding: 0 10px;
}

.nav-scroller::-webkit-scrollbar {
    display: none;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2;
    color: #333;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s, visibility 0.2s;
}

.nav-arrow.left {
    left: 10px;
}

.nav-arrow.right {
    right: 10px;
}

.nav-arrow:hover {
    background-color: #f5f5f5;
    color: #C8102E;
}

/* Hidden state class */
.nav-arrow.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.nav-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 14px;
    text-transform: capitalize;
    /* Or uppercase if preferred */
    height: 100%;
    position: relative;
    white-space: nowrap;
}

.nav-item:hover {
    color: #C8102E;
}

.nav-item.active {
    background-color: #C8102E;
    color: white;
    padding: 0 15px;
}

/* 4. Sub-header Link */
.sub-header-link {
    background-color: #f9f9f9;
    padding: 10px 40px;
    border-bottom: 1px solid #eee;
}

.sub-header-link a {
    color: #0078d7;
    /* Standard link blue or similar */
    font-size: 13px;
    text-decoration: none;
}

.sub-header-link a:hover {
    text-decoration: underline;
}

/* 5. Promo Banner */
.promo-banner {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.text-banner-inner {
    /* Image Background with Gradient Overlay */
    background: linear-gradient(to right, rgba(200, 16, 46, 1) 0%, rgba(200, 16, 46, 0.8) 50%, rgba(0, 0, 0, 0) 100%), url('../assets/banner_bg_final.png');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding: 30px 40px;
    /* Reduced vertical padding (height) */
    text-align: left;
    /* Align text to left where the red is */
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align content to left */
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 250px;
    /* Specific concise height */
}

/* Shine effect removed or subtle */
.text-banner-inner::after {
    display: none;
}


.text-banner-title,
.text-banner-subtitle,
.text-banner-note,
.banner-timer {
    position: relative;
    z-index: 1;
}

.text-banner-title {
    font-family: 'Oswald', sans-serif;
    font-size: 90px;
    font-weight: 700;
    line-height: 0.9;
    text-transform: uppercase;
    font-style: italic;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.4);
    margin-bottom: 5px;
    letter-spacing: -2px;
}

.text-banner-subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Timer Styles */
.banner-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.timer-box {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.timer-number {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.timer-label {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    color: #ccc;
    margin-top: 2px;
}

.timer-separator {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
}

.text-banner-note {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    background-color: #fff;
    color: #C8102E;
    padding: 8px 25px;
    border-radius: 30px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Hide old image banner styles if present or keep for fallback */
.banner-inner img {
    display: none;
}

.banner-img {
    display: none;
}


.banner-inner {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-overlay-content {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
}

.btn-order-now-banner {
    background-color: white;
    color: #C8102E;
    border: none;
    padding: 10px 30px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-order-now-banner:hover {
    transform: scale(1.05);
}

/* 6. Deals Grid */
.deals-section {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.deals-grid {
    display: grid;
    /* Allow 4 items per row by reducing minmax width slightly if needed or just using auto-fit */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.deal-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.deal-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.deal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deal-labels {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
}

.label-new {
    background-color: #FFD700;
    /* Yellow */
    color: #333;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}

.deal-content {
    padding: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Key: makes this container fill the card height */
    gap: 10px;
}

.deal-title {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    margin: 0;
    color: #333;
}

.deal-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    flex-grow: 1;
    /* Push button down */
}

/* Pricing Styles */
.price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.current-price {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #C8102E;
}

.old-price {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
}

.btn-add-coupon {
    background-color: #C8102E;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    width: 100%;
    margin-top: 10px;
}

.btn-add-coupon:hover {
    background-color: #a00d25;
}

/* Menu Mobile adjustments */
@media (max-width: 768px) {
    .menu-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #fff;
        height: auto;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .menu-top-bar {
        padding: 10px 15px;
        height: auto;
        flex-direction: column;
        /* Stack logo and auth */
        gap: 10px;
        align-items: center;
    }

    .menu-brand-section {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
    }

    .menu-logo-circle {
        margin: 0 auto;
    }

    .delivery-info {
        display: flex;
        /* Show it but simplified if needed */
        font-size: 14px;
        justify-content: center;
    }

    .menu-nav-bar {
        padding: 0;
        /* Arrows take space */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* Momentum scroll */
        scrollbar-width: none;
        /* Firefox */
    }

    .menu-nav-bar::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    /* Force arrows to be visible and useful on mobile if needed, 
       though purely touch scroll is often better. 
       User requested arrows specifically. */
    .nav-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
        background: rgba(255, 255, 255, 0.95);
    }

    .nav-scroller {
        padding: 0 50px;
        /* Space for arrows */
        gap: 20px;
        /* More space between items */
    }

    .nav-item {
        font-size: 16px;
    }

    .promo-banner {
        padding: 0 10px;
        margin: 15px auto;
    }

    /* Mobile Banner Styles */
    .text-banner-inner {
        padding: 30px 15px;
    }

    .text-banner-title {
        font-size: 40px;
        /* Scale down from 80 */
        line-height: 1;
    }

    .text-banner-subtitle {
        font-size: 18px;
        /* Scale down from 30 */
    }

    /* Mobile Timer styling */
    .banner-timer {
        gap: 5px;
        margin: 15px 0;
    }

    .timer-box {
        min-width: 50px;
        padding: 5px 10px;
    }

    .timer-number {
        font-size: 20px;
    }

    .timer-separator {
        font-size: 20px;
    }

    .timer-label {
        font-size: 8px;
    }

    .text-banner-note {
        font-size: 14px;
        padding: 5px 15px;
    }

    /* Grid Mobile */
    .deals-grid {
        grid-template-columns: 1fr;
        /* Single column on small screens */
    }
}

/* Pizza Card Specifics */
.pizza-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.pizza-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-customize {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white;
    color: #333;
    border: 1px solid #ccc;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-customize:hover {
    background-color: #f9f9f9;
}

.pizza-meta {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.pizza-options {
    margin-top: auto;
    margin-bottom: 10px;
}

.size-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #333;
    background-color: white;
}

.pizza-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.btn-add {
    background-color: #C8102E;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-add:hover {
    background-color: #a00d25;
}

/* Footer Styles */
.main-footer {
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    padding: 60px 20px 40px;
    margin-top: 50px;
    font-family: 'Roboto', sans-serif;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-social h3,
.link-column h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: #333;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: #C8102E;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.link-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-column a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.link-column a:hover {
    color: #C8102E;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.app-links {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.app-links img {
    height: 40px;
    width: auto;
}

.copyright {
    color: #999;
    font-size: 12px;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: #999;
    text-decoration: none;
    font-size: 12px;
}

.legal-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        gap: 40px;
        width: 100%;
    }
}

/* Melt Card Specifics */
.melt-card .deal-content {
    text-align: center;
    padding: 0 15px 15px;
    /* Adjust padding if needed */
}

/* Mobile adjustments for Melts */
@media (max-width: 768px) {
    .melt-card .deal-content {
        justify-content: center;
        /* Vertically center content if flex direction is column */
    }

    .melt-card .deal-title {
        font-size: 18px;
        /* Smaller title */
        padding: 0 10px;
        /* Side padding */
        margin-top: 10px;
    }

    .melt-card .deal-desc {
        padding: 0 10px;
        margin-bottom: 5px;
    }

    .melt-card .pizza-options {
        margin-top: 10px;
        margin-bottom: 5px;
        text-align: center;
    }

    .melt-card .size-select {
        text-align: center;
    }
}

/* Toast Notification */
.cart-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-toast::before {
    content: '\f00c';
    /* FontAwesome Check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #4CAF50;
}

.cart-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}


/* =========================================
   SHOPPING CART STYLES
   ========================================= */

/* Header Cart Icon */
.cart-trigger {
    position: relative;
    color: white;
    cursor: pointer;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.2s;
}

.cart-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cart-trigger i {
    font-size: 18px;
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #fdb913;
    /* Pizza Hut Yellow/Gold */
    color: #333;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #C8102E;
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    /* Hidden start */
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: white;
    z-index: 2000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transition: right 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

/* Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    backdrop-filter: blur(2px);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Drawer Content */
.cart-header {
    padding: 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    margin: 0;
    font-size: 24px;
    color: #333;
}

.btn-close-cart {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-close-cart:hover {
    color: #C8102E;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
}

.empty-cart-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    background-color: #f5f5f5;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-title {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.2;
}

.cart-item-meta {
    font-size: 12px;
    color: #777;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f5f5f5;
    border-radius: 20px;
    padding: 2px 10px;
}

.btn-qty {
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 700;
    color: #555;
    padding: 2px 5px;
}

.qty-val {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 14px;
    min-width: 15px;
    text-align: center;
}

.cart-item-price {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: #C8102E;
}

/* Cart Footer */
.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #fff;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.cart-summary-row.total {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-top: 15px;
    margin-bottom: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.btn-checkout-cart {
    width: 100%;
    background-color: #C8102E;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;

    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-checkout-cart:hover {
    background-color: #a00d25;
}

/* Mobile FAB */
.fab-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #C8102E;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.4);
    z-index: 1000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.2s;
}

.fab-cart:active {
    transform: scale(0.95);
}

.fab-cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #fdb913;
    color: #333;
    font-size: 12px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

@media (min-width: 769px) {
    .fab-cart {
        display: none;
    }
}


/* =========================================
   CART ENHANCEMENTS (Mobile Bar & Desktop Sidebar)
   ========================================= */

/* Promo Notice */
.cart-promo-notice {
    background-color: #d4edda;
    color: #155724;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #c3e6cb;
}

.cart-promo-notice i {
    color: #C8102E;
}

/* Mobile Bottom Bar */
.mobile-cart-bar-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 10px 15px 15px;
    /* Extra bottom padding for safe area */
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    /* Hidden by default, shown on mobile */
    cursor: pointer;
    border-radius: 12px 12px 0 0;
}

.mobile-cart-btn {
    background-color: #C8102E;
    color: white;
    border-radius: 6px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s;
}

.mobile-cart-btn:hover {
    background-color: #a00d25;
}

.mobile-cart-count {
    background-color: white;
    color: #C8102E;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.mobile-cart-label {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-cart-total {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .mobile-cart-bar-container {
        display: block;
    }

    .fab-cart {
        display: none !important;
        /* Force hide old FAB */
    }

    /* Adjust footer margin to not be covered */
    .main-footer {
        padding-bottom: 100px;
    }
}

/* Desktop Persistent Sidebar */
@media (min-width: 1200px) {
    body {
        padding-right: 0;
        /* Header spans full width */
        overflow-x: hidden;
    }

    /* Content Spacing for Sidebar */
    .menu-container,
    .main-footer,
    .hero-section,
    .order-section,
    .menu-nav-bar {
        padding-right: 360px;
        /* Push content left of sidebar */
    }

    .main-header {
        width: 100%;
        z-index: 1001;
        /* Above sidebar */
        position: relative;
        /* Ensure z-index works */
    }

    .cart-drawer {
        top: 70px !important;
        /* Start below header */
        height: calc(100% - 70px) !important;
        right: 0 !important;
        width: 360px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.05);
        /* Softer shadow */
        border-left: 1px solid #e0e0e0;
        z-index: 900;
        /* Below header */
        /* Make it behave like a sidebar */
        transition: none;
        padding-bottom: 20px;
    }

    .cart-overlay {
        display: none !important;
        /* No overlay on desktop */
    }

    .btn-close-cart {
        display: none;
        /* Can't close permanent sidebar */
    }

    /* Hide header cart trigger since it's always open */
    .cart-trigger {
        display: none;
    }
}


/* Marketing / Upsell in Cart */
.cart-marketing-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed #eee;
}

.cart-marketing-section h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 15px;
}

.marketing-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.marketing-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.marketing-card img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
}

.marketing-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.marketing-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.marketing-price {
    font-size: 14px;
    font-weight: 700;
    color: #666;
    margin: 0 10px;
}

.btn-marketing-add {
    background-color: white;
    border: 1px solid #C8102E;
    color: #C8102E;
    /* Red text */
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-marketing-add:hover {
    background-color: #C8102E;
    color: white;
}


/* Cart Item Price Group */
.cart-price-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cart-item-old-price {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

/* CHECKOUT PAGE STYLES */
.checkout-page {
    background-color: #f4f4f4;
}

.checkout-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    padding-bottom: 100px;
    /* Space for mobile */
}

.checkout-container h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

.checkout-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.checkout-section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Payment Tabs */
.payment-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.payment-tab {
    flex: 1;
    padding: 15px;
    border: 2px solid #eee;
    background: white;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    color: #555;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.payment-tab:hover {
    border-color: #ddd;
}

.payment-tab.active {
    border-color: #C8102E;
    background-color: #fff5f5;
    color: #C8102E;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.checkout-section input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.checkout-section input:focus {
    border-color: #C8102E;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-icon-wrap input {
    padding-left: 45px;
}

.interac-info {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* Tip Options */
.tip-options {
    display: flex;
    gap: 10px;
}

.tip-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Roboto', sans-serif;
}

.tip-btn:hover {
    background-color: #f0f0f0;
}

.tip-btn.active {
    background-color: #C8102E;
    color: white;
    border-color: #C8102E;
}

/* Order Summary */
.order-summary-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 90px;
}

.order-summary-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.checkout-items-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 5px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
}

.ci-title {
    font-weight: 700;
    font-size: 14px;
    color: #333;
}

.ci-meta {
    font-size: 12px;
    color: #888;
}

.checkout-totals .total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}

.checkout-totals .highlight {
    color: #28a745;
    font-weight: 700;
}

.total-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 15px 0;
}

.total-row.final {
    font-size: 20px;
    font-weight: 900;
    color: #333;
    font-family: 'Oswald', sans-serif;
}

.btn-place-order {
    width: 100%;
    background-color: #C8102E;
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s;
}

.btn-place-order:hover {
    background-color: #a00d25;
}

.secure-badge {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


/* CHECKOUT ITEM ENHANCEMENT */
.checkout-item {
    align-items: center;
    gap: 15px;
}

.ci-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.ci-info {
    flex: 1;
}


/* NUCLEAR FIX FOR HOMEPAGE LAYOUT */
@media (min-width: 1200px) {

    body:not(.has-sidebar) .menu-container,
    body:not(.has-sidebar) .main-footer,
    body:not(.has-sidebar) .hero-section,
    body:not(.has-sidebar) .order-section,
    body:not(.has-sidebar) .menu-nav-bar {
        padding-right: 0 !important;
    }
}