:root {
    --primary-color: #e84118;
    --dark-color: #1e272e;
    --text-muted: #808e9b;
    --bg-color: #f5f6fa;
    --green-accent: #27ae60;
    --white: #ffffff;
    --shadow: 0 10px 25px rgba(0,0,0,0.03);
    --radius-lg: 28px;
    --radius-md: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--dark-color);
    overflow-x: hidden;
}

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

header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav { display: flex; justify-content: center; align-items: center; }

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    color: var(--dark-color) !important;
}

.logo-img { height: 35px; }

.logo-text { 
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: -1px;
}

.section-title { margin: 45px 0 15px; font-size: 1.8rem; font-weight: 900; }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }

.product-card img { 
    width: 100%; 
    height: 220px; 
    object-fit: cover; 
    background-color: #f0f0f0; 
}

.pcs-badge {
    position: absolute; top: 15px; right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 10px; border-radius: 8px;
    font-size: 0.75rem; font-weight: 700; z-index: 10;
}

.badge.hot {
    position: absolute; top: 15px; left: 15px;
    background: var(--primary-color); color: white;
    padding: 5px 12px; border-radius: 50px;
    font-size: 0.7rem; font-weight: 800; z-index: 10;
}

.card-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.card-info h3 { margin: 0; font-size: 1.25rem; font-weight: 700; }
.card-info p { margin: 10px 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; min-height: 45px; flex-grow: 1; }

.bonus-info { 
    font-size: 0.65rem; color: var(--green-accent); font-weight: 700; 
    text-transform: uppercase; background: rgba(39, 174, 96, 0.1);
    padding: 4px 10px; border-radius: 8px; display: inline-block;
    align-self: flex-start;
}

.card-footer { padding: 0 20px 20px; display: flex; justify-content: space-between; align-items: center; }
.price { font-size: 1.4rem; font-weight: 900; }

button.add-to-cart {
    background: var(--dark-color); color: white; border: none;
    padding: 10px 20px; border-radius: 12px;
    cursor: pointer; font-weight: 700; transition: all 0.3s ease;
}

button.add-to-cart:hover { background: #000; transform: scale(1.05); }

.floating-cart {
    position: fixed;
    bottom: 25px; right: 25px;
    background-color: var(--dark-color);
    width: 60px; height: 60px;
    border-radius: 20px;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    cursor: pointer; z-index: 2000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart svg { width: 28px; height: 28px; stroke: white; stroke-width: 2; }
.floating-cart.empty { opacity: 0.3; transform: scale(0.85); pointer-events: none; }

#cart-count {
    position: absolute; top: -10px; right: -10px;
    background: var(--primary-color); color: white;
    font-size: 0.75rem; font-weight: 900;
    min-width: 22px; height: 22px; border-radius: 50%;
    display: none; justify-content: center; align-items: center;
    border: 2px solid var(--dark-color);
}
.floating-cart:not(.empty) #cart-count { display: flex; }

.cart-modal {
    display: none; 
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); 
    backdrop-filter: blur(8px); 
    z-index: 3000;
    padding: 10px;
    box-sizing: border-box;
    overflow-y: auto;
}

.modal-content {
    background: white; 
    width: 100%; 
    max-width: 480px;
    margin: 20px auto; 
    border-radius: var(--radius-lg); 
    padding: 25px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

.modal-header { 
    display: flex; 
    flex-direction: row-reverse; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 25px; 
}
.modal-header h2 { margin: 0; font-size: 1.6rem; font-weight: 900; }

.back-btn {
    display: flex; align-items: center; gap: 5px; background: #f0f0f0; border: none;
    padding: 8px 15px; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
    color: var(--dark-color); cursor: pointer; transition: all 0.2s ease;
}
.back-btn svg { width: 20px; height: 20px; }

.cart-delivery-info {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px;
}
.info-item {
    background: #f8f9fa; padding: 10px; border-radius: var(--radius-md);
    display: flex; align-items: center; gap: 8px; min-width: 0;
}
.info-item .icon { font-size: 1.2rem; }
.info-item .label { font-size: 0.7rem; color: var(--text-muted); margin: 0; }
.info-item .value { font-weight: 700; margin: 0; font-size: 0.85rem; }

.cart-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; border-bottom: 1px solid #f1f1f1;
}
.item-controls {
    display: flex; align-items: center; gap: 10px;
    background: #f8f9fa; padding: 4px 8px; border-radius: 10px;
}
.qty-btn {
    background: white; border: 1px solid #ddd; border-radius: 6px;
    width: 24px; height: 24px; cursor: pointer; font-weight: bold;
}

.sauces-section, .utensils-section { margin: 20px 0; }
.sauces-section h3, .utensils-section h3 { font-size: 1rem; margin-bottom: 12px; }
.sauce-options { display: flex; flex-wrap: wrap; gap: 8px; }

.sauce-chip {
    background: #f0f0f0; padding: 6px 12px; border-radius: 50px;
    font-size: 0.8rem; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}

.person-selector {
    display: flex; align-items: center; gap: 15px; background: #f8f9fa;
    padding: 10px 15px; border-radius: 16px; width: fit-content;
}
.person-selector #person-count { font-weight: 800; font-size: 1.1rem; min-width: 20px; text-align: center; }
.utensils-label { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }

.select-wrapper { 
    position: relative; 
    margin-bottom: 15px; 
}

#location-select, #payment-method-select {
    width: 100%; 
    padding: 14px; 
    border-radius: 14px; 
    border: 2px solid #f0f0f0;
    background-color: #f8f9fa; 
    -webkit-appearance: none; 
    appearance: none;
    font-size: 16px; 
    font-family: inherit; 
    cursor: pointer; 
    box-sizing: border-box;
    font-weight: 600;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

#location-select:focus, #payment-method-select:focus {
    border-color: var(--dark-color);
    background-color: white;
    outline: none;
}

.select-wrapper::after { 
    content: '▼'; 
    position: absolute; 
    right: 15px; 
    top: 50%; 
    transform: translateY(-50%); 
    font-size: 10px; 
    pointer-events: none; 
    color: var(--text-muted); 
}

.payment-section { margin: 20px 0; }
.payment-section h3 { font-size: 1rem; margin-bottom: 12px; }

#paypal-button-container {
    width: 100%;
    margin-top: 20px;
    animation: fadeIn 0.3s ease-in;
}

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

.summary-section { background: #f8f9fa; padding: 15px; border-radius: var(--radius-md); margin: 20px 0; }
.total-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.95rem; }
.total-row.final { margin-top: 10px; padding-top: 10px; border-top: 1px solid #ddd; font-weight: 900; font-size: 1.2rem; }

.checkout-form input {
    width: 100%; padding: 14px; margin-bottom: 12px; border-radius: 14px;
    border: 2px solid #f0f0f0; background: #f8f9fa; box-sizing: border-box; font-size: 16px; font-family: inherit;
}
.checkout-form input:focus { border-color: var(--dark-color); background: white; outline: none; }
.address-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.order-btn {
    width: 100%; background: var(--dark-color); color: white; padding: 16px;
    border: none; border-radius: 16px; font-weight: 800; font-size: 1.1rem; cursor: pointer;
    transition: background 0.3s ease;
}
.order-btn:hover { background: #000; }

.main-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
    border-radius: 40px 40px 0 0; 
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.brand-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 15px;
    font-size: 0.95rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

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

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-icon {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #d1d1d1;
}

.hours-list li.closed {
    color: var(--primary-color);
    font-weight: 700;
}

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

@media (max-width: 480px) {
    .cart-modal { padding: 0; }
    .modal-content { margin: 0; width: 100%; min-height: 100vh; border-radius: 0; padding: 20px 15px; }
    .address-row { grid-template-columns: 1fr; }
    .cart-delivery-info { grid-template-columns: 1fr; }
    .back-btn { padding: 6px 12px; font-size: 0.8rem; }
    
    .main-footer {
        border-radius: 20px 20px 0 0;
        padding: 40px 0 20px;
    }
    .footer-content {
        text-align: center;
    }
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-link {
        justify-content: center;
    }
    .hours-list li {
        justify-content: center;
        gap: 10px;
    }
}
