﻿* {
    box-sizing: border-box;
}

:root {
    --header-height: 80px;
    --bg-color: #fbf1d3;
}

/* Global Reset */
body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background-color: var(--bg-color);
}

/* ================= HEADER BASE ================= */
#main-header {
    background-color: #fbf1d3;
    padding: 5px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 3000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
}

#scramble-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: darkred;
    text-transform: uppercase;
    white-space: nowrap;
}

.header-logo {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .header-logo img {
        max-height: 70px;
        width: auto;
        display: block;
        border-radius: 50%;
    }

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

    .header-right ul {
        list-style: none;
        display: flex;
        gap: 14px;
        margin: 0;
        padding: 0;
    }

        .header-right ul li a {
            text-decoration: none;
            color: red;
            padding: 6px 12px;
            border-radius: 5px;
            font-size: clamp(12px, 0.9vw, 15px);
            font-weight: 400;
            transition: color 0.2s, background 0.2s;
        }

            .header-right ul li a.active {
                background-color: #ff7300;
                color: #fff;
            }

            .header-right ul li a:hover {
                color: darkgoldenrod;
            }

.user-location {
    text-decoration: none;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: clamp(12px, 0.9vw, 15px);
    font-weight: 400;
    transition: all 0.3s ease;
    border: 0.5px solid red;
    background-color: #e6ac00;
    display: inline-block;
    cursor: pointer;
}

    .user-location:hover {
        background-color: #cc9900;
        border-color: darkred;
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(230, 172, 0, 0.4);
    }

.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

/* =================== RESPONSIVE HEADER =================== */
@media (max-width: 1023px) {
    #scramble-text {
        font-size: 0.45rem;
        letter-spacing: 0.2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }

    .header-left {
        min-width: 0;
    }

    .header-container {
        display: grid;
        grid-template-columns: auto auto 1fr auto auto;
        gap: 8px;
        align-items: center;
    }

    .header-logo {
        grid-column: 1;
        display: flex;
    }

        .header-logo img {
            max-height: 35px;
            border-radius: 50%;
        }

    .header-left {
        grid-column: 2;
        flex: 0 1 auto;
    }

    .user-location {
        grid-column: 4;
        font-size: 9px;
        padding: 3px 6px;
        white-space: nowrap;
    }

    .hamburger {
        grid-column: 5;
        display: block;
        font-size: 22px;
    }

    .header-right {
        display: none;
        position: absolute;
        top: 80px;
        right: 20px;
        background: #FFEBA4;
        padding: 15px;
        border-radius: 8px;
        width: 220px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.25);
        flex-direction: column;
        z-index: 4000;
        order: 5;
    }

        .header-right.active {
            display: flex;
        }

        .header-right ul {
            flex-direction: column;
            gap: 10px;
            width: 100%;
        }

            .header-right ul li a {
                display: block;
                text-align: center;
                background-color: #ff7300;
                color: #fff;
                border-radius: 6px;
                padding: 10px;
            }
}

@media (max-width: 1023px) and (min-width: 768px) {
    #scramble-text {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    .header-logo img {
        max-height: 75px;
    }

    .user-location {
        font-size: 11px;
        padding: 5px 10px;
    }
}

@media (min-width: 1024px) {
    .header-container {
        display: flex;
    }

    .header-right {
        display: flex !important;
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
        width: auto;
    }

        .header-right ul {
            flex-direction: row;
        }

    .hamburger {
        display: none !important;
    }
}

/* ===============================================
               GLOBAL MODAL STYLES
   =============================================== */
.custom-modal,
.custom-modal2 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.custom-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    margin: 60px auto;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    animation: slideUp 0.3s ease-in-out;
    z-index: 10000;
}

.custom-close,
.custom-close2 {
    position: absolute;
    top: 15px;
    right: 20px;
    background: red !important;
    border: none;
    font-size: 30px;
    font-weight: bold;
    color: #444;
    cursor: pointer;
    z-index: 999999 !important;
    transition: color 0.2s;
    pointer-events: auto !important;
}

    .custom-close:hover,
    .custom-close2:hover {
        color: #e74c3c;
    }

.modal-left {
    flex: 1;
    min-width: 45%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
    border: 2px darkgoldenrod dotted;
}

    .modal-left img {
        max-width: 100%;
        max-height: 350px;
        object-fit: contain;
        border-radius: 8px;
    }

.modal-right {
    flex: 1;
    padding: 25px;
    padding-top: 0px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    max-height: 100%;
    scrollbar-width: thin;
    background-color: #ffff;
}

    .modal-right::-webkit-scrollbar {
        width: 6px;
    }

    .modal-right::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

    .modal-right h2 {
        font-size: 24px;
        font-weight: 600;
        margin: 0;
    }

    .modal-right .modal-price {
        font-size: 20px;
        font-weight: 500;
        color: #000;
    }

    .modal-right h3 {
        font-size: 18px;
        color: #333;
    }

.custom-modal2 .custom-modal-content {
    align-items: stretch;
}

.custom-modal2 .modal-left {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

    .custom-modal2 .modal-left img {
        max-height: 300px;
        object-fit: contain;
    }

.options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .options-list label {
        display: flex;
        justify-content: space-between;
        font-size: 15px;
        cursor: pointer;
        border-bottom: 1px dotted #ccc;
    }

#wrapOptions label:last-child {
    border-bottom: none;
}

.options-list input {
    margin-right: 8px;
}

.quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
}

    .quantity button {
        width: 35px;
        height: 35px;
        border: 1px solid #ddd;
        background: #f3f3f3;
        font-size: 20px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s;
    }

        .quantity button:hover {
            background: #27ae60;
            color: #fff;
        }

    .quantity span {
        font-size: 18px;
        font-weight: 600;
    }

.add-cart-btn {
    background: rgb(255, 106, 0);
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.25s;
}

    .add-cart-btn:hover {
        background: #219150;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .custom-modal-content {
        flex-direction: column;
        max-width: 95%;
        height: 85vh;
    }

    .modal-left {
        min-width: 100%;
        padding: 15px;
    }

        .modal-left img {
            max-height: 250px;
        }
}

/* ================= WATERMARK ================= */
.watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) rotate(0deg);
    width: 80vw;
    height: 70vw;
    max-width: 1500px;
    max-height: 1500px;
    background: url('/images/watermark.png') no-repeat center center;
    background-size: contain;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 992px) {
    .watermark {
        width: 200vw;
        height: 200vw;
    }
}

@media (max-width: 768px) {
    .watermark {
        width: 200vw;
        height: 200vw;
    }
}

@media (max-width: 480px) {
    .watermark {
        width: 200vw;
        height: 200vw;
    }
}

/* ================= FOOTER ================= */
footer {
    background-color: rgba(0,0,0,10);
    color: #FFEBA4;
    padding: 25px 40px;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* ensures content wraps on small screens */
    gap: 15px;
}

.footer-contact {
    font-size: 14px;
    text-align: left;
}

    .footer-contact a {
        color: #ff7300;
        text-decoration: none;
        font-weight: bold;
    }

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

    .footer-social a {
        color: #FFEBA4;
        text-decoration: none;
        font-size: 20px;
        transition: color 0.3s ease;
    }

        .footer-social a:hover {
            color: #ff7300;
        }

/* ================= RESPONSIVE STYLES ================= */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column; /* Stack vertically */
        align-items: center; /* Center horizontally */
        text-align: center;
        gap: 10px;
    }

    .footer-contact {
        text-align: center;
    }

    .footer-social {
        justify-content: center; /* Center social icons */
    }
}

@media (max-width: 480px) {
    footer {
        padding: 20px; /* Slightly reduce padding for small screens */
    }

    .footer-social a {
        font-size: 18px;
    }

    .footer-contact {
        font-size: 13px;
    }
}
}

/*=========================== CART DRAWER ================================*/

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 7000;
}

    .cart-overlay.show {
        opacity: 1;
        visibility: visible;
    }

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: calc(var(--header-height) + 20px); /* 80px + 20px = 100px */
    right: -400px;
    width: 400px;
    max-width: 90%;
    height: calc(100vh - var(--header-height) - 20px);
    background: #fff;
    box-shadow: -4px 0 12px rgba(0,0,0,0.2);
    transition: right 0.3s ease-in-out;
    z-index: 8000;
    display: flex;
    flex-direction: column;
}

    .cart-drawer.open {
        right: 0;
    }

/* Cart Header */
.cart-header {
    padding: 1rem 1rem;
    background: #ff7300;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

    .cart-header h2 {
        margin: 0;
        font-size: 1.2rem;
    }

.close-cart-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .close-cart-btn:hover {
        opacity: 0.8;
    }

/* Cart Items Container */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f9f9f9;
}

.empty-cart {
    text-align: center;
    color: #999;
    padding: 2rem 1rem;
    font-size: 14px;
}

/* Cart Item Row */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.cart-item-count {
    font-weight: bold;
    color: #ff7300;
    min-width: 20px;
    flex-shrink: 0;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    color: #333;
    word-wrap: break-word;
}

.cart-item-qty {
    font-size: 12px;
    color: #666;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cart-item-price {
    font-weight: bold;
    color: #222;
    white-space: nowrap;
}

.remove-item {
    background: transparent;
    border: none;
    color: red;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .remove-item:hover {
        color: #b30000;
    }

/* Cart Footer */
.cart-footer {
    padding: 1rem;
    border-top: 2px solid #ddd;
    background: #fff;
    flex-shrink: 0;
}

#cartSummary {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
}

#proceedToCheckoutBtn {
    width: 100%;
    padding: 12px;
    background: #ff7300;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

    #proceedToCheckoutBtn:hover {
        background: #e56700;
    }

/* Floating Cart Button */
.floating-cart-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #e60000;
    color: #fff;
    font-size: 22px;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5000;
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.3);
    transition: all 0.3s ease;
}

    .floating-cart-btn:hover {
        background: #c20000;
        transform: scale(1.1);
    }

    .floating-cart-btn.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

/* Mobile Cart */
@media (max-width: 768px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
        max-width: 100%;
        top: calc(var(--header-height) + 20px);
        height: calc(100vh - var(--header-height) - 20px);
    }

        .cart-drawer.open {
            right: 0;
        }

    .floating-cart-btn {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .cart-item {
        padding: 0.6rem;
        font-size: 13px;
    }

    .cart-item-name {
        font-size: 13px;
    }

    .cart-item-qty {
        font-size: 11px;
    }

    .cart-footer {
        padding: 0.8rem;
    }

    #cartSummary {
        font-size: 14px;
    }
}

/* ==================== PROFESSIONAL CHECKOUT MODAL ==================== */
.checkout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto; /* Allow scrolling on mobile */
}

    .checkout-modal.show {
        display: flex;
        animation: fadeInModal 0.3s ease-out;
    }

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.checkout-modal-content {
    background: #fff;
    width: 100%;
    max-width: 550px;
    max-height: 90vh; /* Ensure it fits on screen */
    border-radius: 16px;
    padding: 0;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Hide overflow to control scrolling */
    animation: slideUpModal 0.4s ease-out;
}

@keyframes slideUpModal {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.checkout-modal-content h2 {
    margin: 0;
    padding: 24px 30px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #ff7300 0%, #ff8c1a 100%);
    color: #fff;
    border-radius: 16px 16px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Close Button */
.checkout-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 11;
    line-height: 1;
}

    .checkout-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

/* Checkout Summary Section */
.checkout-summary {
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    max-height: 200px;
    overflow-y: auto;
}

    .checkout-summary h3 {
        margin: 0 0 15px 0;
        font-size: 18px;
        font-weight: 600;
        color: #333;
    }

#checkoutCartList {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

    #checkoutCartList li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #e8e8e8;
        font-size: 14px;
        color: #555;
    }

        #checkoutCartList li:last-child {
            border-bottom: none;
        }

.checkout-summary .total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 2px solid #ff7300;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* Form Section - Scrollable */
#checkoutForm {
    padding: 25px 30px 30px;
    overflow-y: auto;
    max-height: calc(90vh - 320px); /* Adjust based on header and summary */
    flex: 1;
}

    /* Custom Scrollbar */
    #checkoutForm::-webkit-scrollbar,
    .checkout-summary::-webkit-scrollbar {
        width: 8px;
    }

    #checkoutForm::-webkit-scrollbar-track,
    .checkout-summary::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    #checkoutForm::-webkit-scrollbar-thumb,
    .checkout-summary::-webkit-scrollbar-thumb {
        background: #c4c4c4;
        border-radius: 10px;
    }

        #checkoutForm::-webkit-scrollbar-thumb:hover,
        .checkout-summary::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }

    /* Form Inputs */
    #checkoutForm input,
    #checkoutForm textarea {
        width: 100%;
        padding: 12px 16px;
        margin-bottom: 16px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 15px;
        font-family: inherit;
        background: #fff;
        color: #333;
        transition: all 0.3s ease;
        box-sizing: border-box;
    }

        #checkoutForm input:focus,
        #checkoutForm textarea:focus {
            border-color: #ff7300;
            outline: none;
            box-shadow: 0 0 0 3px rgba(255, 115, 0, 0.1);
        }

        #checkoutForm input::placeholder,
        #checkoutForm textarea::placeholder {
            color: #999;
        }

    #checkoutForm textarea {
        min-height: 100px;
        resize: vertical;
    }

/* Submit Button */
.checkout-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff7300 0%, #ff8c1a 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 115, 0, 0.3);
}

    .checkout-submit:hover {
        background: linear-gradient(135deg, #e56700 0%, #ff7300 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(255, 115, 0, 0.4);
    }

    .checkout-submit:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(255, 115, 0, 0.3);
    }

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablets */
@media (max-width: 768px) {
    .checkout-modal {
        padding: 15px;
    }

    .checkout-modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 12px;
    }

        .checkout-modal-content h2 {
            padding: 20px 24px;
            font-size: 22px;
            border-radius: 12px 12px 0 0;
        }

    .checkout-close {
        top: 16px;
        right: 16px;
        width: 32px;
        height: 32px;
        font-size: 24px;
    }

    .checkout-summary {
        padding: 18px 24px;
    }

        .checkout-summary h3 {
            font-size: 17px;
        }

    #checkoutCartList li {
        font-size: 13px;
        padding: 8px 0;
    }

    .checkout-summary .total {
        font-size: 17px;
    }

    #checkoutForm {
        padding: 20px 24px 25px;
        max-height: calc(95vh - 300px);
    }

        #checkoutForm input,
        #checkoutForm textarea {
            padding: 11px 14px;
            font-size: 14px;
            margin-bottom: 14px;
        }

    .checkout-submit {
        padding: 13px;
        font-size: 16px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .checkout-modal {
        padding: 10px;
        align-items: flex-start; /* Allow scrolling from top */
    }

    .checkout-modal-content {
        max-height: 100vh;
        margin: 10px 0;
        border-radius: 10px;
    }

        .checkout-modal-content h2 {
            padding: 18px 20px;
            font-size: 20px;
            border-radius: 10px 10px 0 0;
        }

    .checkout-close {
        top: 14px;
        right: 14px;
        width: 30px;
        height: 30px;
        font-size: 22px;
    }

    .checkout-summary {
        padding: 16px 20px;
        max-height: 180px;
    }

        .checkout-summary h3 {
            font-size: 16px;
            margin-bottom: 12px;
        }

    #checkoutCartList li {
        font-size: 12px;
        padding: 7px 0;
    }

    .checkout-summary .total {
        font-size: 16px;
        padding-top: 12px;
    }

    #checkoutForm {
        padding: 18px 20px 22px;
        max-height: calc(100vh - 280px);
    }

        #checkoutForm input,
        #checkoutForm textarea {
            padding: 10px 12px;
            font-size: 14px;
            margin-bottom: 12px;
            border-radius: 6px;
        }

        #checkoutForm textarea {
            min-height: 80px;
        }

    .checkout-submit {
        padding: 12px;
        font-size: 15px;
    }
}

/* Small devices in landscape */
@media (max-height: 600px) and (orientation: landscape) {
    .checkout-modal-content {
        max-height: 95vh;
    }

        .checkout-modal-content h2 {
            padding: 15px 20px;
            font-size: 18px;
        }

    .checkout-summary {
        max-height: 120px;
        padding: 12px 20px;
    }

    #checkoutForm {
        padding: 15px 20px;
        max-height: calc(95vh - 220px);
    }

        #checkoutForm input,
        #checkoutForm textarea {
            padding: 8px 12px;
            margin-bottom: 10px;
        }

        #checkoutForm textarea {
            min-height: 60px;
        }

    .checkout-submit {
        padding: 10px;
        font-size: 14px;
    }
}
/* ==================== LOCATION MODAL ==================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    padding: 25px 30px;
    border-radius: 14px;
    width: 380px;
    max-width: 95%;
    text-align: center;
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(-120px) scale(0.95);
}

.modal.show {
    display: flex;
    animation: fadeInOverlay 0.4s ease forwards;
}

    .modal.show .modal-content {
        animation: dropIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes dropIn {
    0% {
        opacity: 0;
        transform: translateY(-120px) scale(0.95);
    }

    60% {
        opacity: 1;
        transform: translateY(15px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-logo {
    width: 80px;
    margin-bottom: 12px;
    border-radius: 50%;
}

.order-type button {
    background: #222;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: default;
}

.current-location {
    margin: 10px 0;
    background: #222;
    color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
}

.location-dropdown {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 10px;
    appearance: none;
}

    .location-dropdown optgroup {
        font-weight: bold;
        background: #f5f5f5;
    }

    .location-dropdown option {
        border: none;
    }

.save-btn {
    margin-top: 18px;
    width: 100%;
    padding: 12px;
    background: #666;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

    .save-btn:hover {
        background: #444;
    }
