:root {
    --primary: #9d272e;
    /* D'Moly Red */
    --secondary: #748e51;
    /* D'Moly Green */
    --accent: #cba41a;
    /* D'Moly Gold */
    --light: #FFFFFF;
    --bg: #f8f9fa;
    /* Light Greyish for a clean look */
    --text: #2d3436;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: white;
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-item {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-item:hover {
    background: #f0f7ff;
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-item i {
    font-size: 1.1rem;
    color: var(--primary);
}

.nav-item.relative {
    position: relative;
}

.cart-count {
    background: #ff4444;
    color: white;
    font-size: 0.75rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    top: 5px;
    right: 5px;
    font-weight: 800;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: var(--primary);
    color: white;
}

@media (max-width: 768px) {
    .navbar-flex {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .nav-toggle {
        display: block;
        margin-top: 0;
    }

    .nav-links-container {
        display: none;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        border-top: 1px solid #eee;
    }

    .nav-links-container.active {
        display: flex;
    }

    .nav-links nav {
        flex-direction: column;
        width: 100%;
        gap: 5px;
    }

    .nav-item {
        width: 90%;
        justify-content: center;
        padding: 15px;
        border-radius: 15px;
    }

    .selected-day-pill {
        margin: 10px 0 20px 0;
        width: 90%;
        justify-content: center;
    }
}

.selected-day-pill {
    background: #fff9f5;
    border: 2px solid var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent);
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(203, 164, 26, 0.15);
    margin: 0 15px;
}

.selected-day-pill i {
    color: var(--accent);
    font-size: 1.1rem;
}

.selected-day-pill .change-day {
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.selected-day-pill .change-day:hover {
    background: var(--primary);
    transform: scale(1.05);
}

.btn-navbar-cart {
    background: var(--primary) !important;
    color: var(--light) !important;
    border-radius: 50px;
    padding: 10px 25px !important;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulse-primary 2s infinite;
}

.badge {
    background: var(--light);
    color: var(--primary);
    font-size: 0.9rem;
    padding: 2px 8px;
    border-radius: 50%;
    font-weight: 900;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: badge-pulse 1s infinite alternate;
}

@keyframes badge-pulse {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.3);
    }
}

.pulse-primary {
    animation: pulse-primary 2s infinite !important;
}

@keyframes pulse-primary {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 119, 182, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 25px rgba(0, 119, 182, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 119, 182, 0.4);
    }
}

.product-card {
    background: var(--light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.product-price-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.product-img {
    height: 200px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 700;
}

.product-info p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0;
    line-height: 1.4;
}

.product-card .btn {
    pointer-events: none;
    margin-top: 15px;
}

/* Custom Styled Checkboxes for Extras */
.extras-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 15px;
}

.extra-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #fdfdfd;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.extra-item:hover {
    background: #fff9f5;
    border-color: #ffd4b3;
}

.extra-item input[type="checkbox"] {
    display: none;
}

.extra-item.selected {
    background: #fff1e6;
    border-color: var(--primary);
}

.extra-check-ui {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.extra-item.selected .extra-check-ui {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.extra-check-ui i {
    color: white;
    font-size: 14px;
    display: none;
}

.extra-item.selected .extra-check-ui i {
    display: block;
}

.extra-info {
    display: flex;
    align-items: center;
}

.extra-price {
    font-weight: 700;
    color: var(--primary);
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 15px 0;
}

.logo {
    color: var(--primary);
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
}

.logo span {
    color: var(--primary);
}

/* Floating Cart Button */
/* Botón Flotante y Barra de Checkout */
.cart-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: var(--light);
    padding: 18px 35px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.4rem;
    font-weight: 900;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid white;
    text-transform: uppercase;
    animation: scale-pulse 2s infinite;
}

@keyframes scale-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Install App Modal */
.install-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.install-card {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
}

.install-card .icon-circle {
    width: 120px;
    height: 120px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 30px rgba(157, 39, 46, 0.2);
    animation: scale-pulse 2s infinite;
    overflow: hidden;
}

.install-card h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--secondary);
    font-weight: 800;
}

.install-card p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
}

.install-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-install-now {
    background: var(--primary);
    color: white;
    padding: 15px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-later {
    color: #888;
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}


.checkout-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--secondary);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9998;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    border-top: 3px solid var(--primary);
}

.checkout-bar button {
    animation: scale-pulse 2s infinite;
}

.checkout-info {
    font-weight: 700;
    font-size: 1.2rem;
}

.checkout-info span {
    color: var(--primary);
    font-size: 1.5rem;
    margin-left: 10px;
}

.cart-floating-btn::after {
    display: none;
}

@media (max-width: 600px) {
    .cart-floating-btn::after {
        content: '';
    }

    .cart-floating-btn {
        width: 70px;
        padding: 0;
        border-radius: 50%;
    }
}

.cart-floating-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background: #E65C00;
}

#cart-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--secondary);
    color: var(--light);
    font-size: 0.85rem;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    border: 2px solid var(--light);
}

/* Modal Pricing */
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Pricing Grid in Cart */
.summary-row {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    font-size: 1.1rem;
    color: #444;
}

.summary-row.total {
    margin-top: 20px;
    padding: 20px;
    background: #000;
    color: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.summary-row.total span:last-child {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    background: rgba(255, 107, 0, 0.1);
    padding: 0 15px;
    border-radius: 8px;
}

.cart-summary {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.btn-primary.w-100 {
    width: 100%;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.qr-container {
    background: var(--light);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    max-width: 300px;
}

.qr-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light);
}

.btn-primary:hover {
    background-color: #E65C00;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--light);
}

.footer {
    background-color: var(--secondary);
    color: var(--light);
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

/* Dining Option Selection */
.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 500px;
}

.option-card {
    background: var(--light);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.option-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.option-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.option-card h3 {
    font-weight: 600;
}

/* Modal Base Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: var(--light);
    width: 95%;
    max-width: 550px;
    border-radius: 25px;
    padding: 30px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f5f5f5;
    padding: 10px 20px;
    border-radius: 50px;
}

.quantity-control button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--light);
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.quantity-control input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    font-weight: 800;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
}