:root {
    --primary-color: #AAAA96;
    --secondary-color: #333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #666;
    --white: #fff;
    --black: #000;
    --success: #4CAF50;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--light-gray);
    color: var(--secondary-color);
    line-height: 1.6;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
        border-left: 1px solid var(--medium-gray);
        border-right: 1px solid var(--medium-gray);
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
}

.header {
    background-color: var(--white);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.profile-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--white);
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    border: 3px solid var(--white);
    z-index: 10;
}

.profile-logo img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}



.hero {
    position: relative;
    height: 200px;
    overflow: visible;
    background-color: var(--black);
}

@media (min-width: 768px) {
    .hero {
        height: 300px;
    }
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
        object-position: 0 -44px;
}

.restaurant-info {
    background-color: var(--white);
    padding: 15px;
    border-radius: 12px 12px 0 0;
    margin-top: 60px;
    position: relative;
    z-index: 2;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}


.location-wrapper{
    display: flex ; align-items: center; gap: 13px;
}

.restaurant-name {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

@media (min-width: 768px) {
    .restaurant-name {
        font-size: 28px;
    }
}

.restaurant-name i {
    margin-left: 8px;
    font-size: 16px;
    color: var(--dark-gray);
}

.restaurant-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--dark-gray);
    align-items: center;
}

.restaurant-address {
    font-size: 14px;
    color: var(--dark-gray);
}

.delivery-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--white);
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 15px;
    cursor: pointer;
}

.delivery-option i.fa-map-marker-alt {
    color: var(--primary-color);
    margin-right: 10px;
}

.delivery-option i.fa-chevron-down {
    color: var(--dark-gray);
}

.section-title {
    padding: 15px;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title i {
    color: var(--dark-gray);
}

.menu-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 15px;
    padding-bottom: 5px;
    background-color: var(--white);
}

.menu-tabs::-webkit-scrollbar {
    display: none;
}

.menu-tab {
    padding: 10px 20px;
    background-color: var(--white);
    color: var(--secondary-color);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.menu-tab.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 300px; /* Increased to accommodate fixed footer */
    background-color: var(--white);
}

.menu-items {
    padding: 0 15px;
}

@media (min-width: 768px) {
    .menu-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.menu-item {
    display: flex;
    margin-bottom: 20px;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    align-items: center;

}

@media (min-width: 768px) {
    .menu-item {
        flex-direction: row;
        height: 100%;
    }

    .menu-item-image {
        width: 100% !important;
        max-width: 150px;
        height: 100%;
    }
}

.menu-item-details {
    flex: 1;
    padding: 15px;
}

.menu-item-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.menu-item-price {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark-gray);
    position:relative;

    display: flex;
    align-items: center;


}

.menu-item-description {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.menu-item-image {
    object-fit: cover;
    max-height: 150px;
    border-radius: 20px;

}
.alt-tags-wrapper{
    display: flex;
    gap: 10px;
    color: #999999;
}

.add-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    z-index: 5;
}

.add-btn:hover {
    background-color: #c01208;
    transform: scale(1.05);
}

/* Fixed footer with cart summary always visible */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    z-index: 100;
    display: flex;
    flex-direction: column;
    max-height: 30vh;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

@media (min-width: 992px) {
    .footer {
        width: 960px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Cart summary always visible */
.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
    border-top: 1px solid var(--medium-gray);
    background-color: var(--white);
    z-index: 101;
}

.cart-total {
    font-weight: 600;
    font-size: 18px;
}

.checkout-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover {
    background-color: #c01208;
}

.footer-handle {
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    background-color: var(--white);
    padding: 10px 0;
}

.footer-handle i {
    font-size: 32px;
    color:    var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}


.footer-handle i.rotated {
    transform: rotate(180deg);
}

.cart-items {
    /*max-height: calc(80vh - 120px);*/
    overflow-y: auto;
    padding: 15px;
    border-top: 1px solid var(--medium-gray);
    background-color: var(--white);
    display: none;
    

    max-height: calc(100% - 70px); /* Leaves space for the cart summary */
    /*padding-bottom: 10px;*/
}

.footer.expanded .cart-items {
    display: block;
      transition: height 0.3s ease-out;
}
.cart-items::-webkit-scrollbar {
    width: 4px;
}

.cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: #555;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--medium-gray);
}

.cart-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 14px;
    color: var(--dark-gray);
}

.quantity-control {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: var(--light-gray);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.quantity-btn:hover {
    background-color: var(--medium-gray);
}

.quantity-value {
    width: 30px;
    text-align: center;
    font-weight: 600;
}

.empty-cart {
    text-align: center;
    padding: 20px;
    color: var(--dark-gray);
}

.nav-tabs {
    display: flex;
    background-color: var(--white);
    position: fixed;
    bottom: 60px; /* Position above the cart summary */
    left: 0;
    right: 0;
    z-index: 99;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

@media (min-width: 992px) {
    .nav-tabs {
        width: 960px;
        left: 50%;
        transform: translateX(-50%);
    }
}

.nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 12px;
}

.nav-tab i {
    font-size: 20px;
    margin-bottom: 5px;
}

.nav-tab.active {
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--success);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    z-index: 1000;
    box-shadow: var(--shadow);
    opacity: 0;
    transition: opacity 0.3s ease;
    min-width: 320px;
}

.toast.show {
    opacity: 1;
}

@media (prefers-color-scheme: dark) {
    :root {
        --light-gray: #1a1a1a;
        --medium-gray: #333;
        --dark-gray: #999;
        --white: #222;
        --black: #000;
        --secondary-color: #eee;
        --shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
}

/* Search overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.8);
    z-index: 200;
    display: none;
    flex-direction: column;
    padding: 20px;
}

.search-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    background-color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 16px;
    color: var(--secondary-color);
    outline: none;
}

.close-search {
    color: var(--white);
    background: none;
    border: none;
    font-size: 24px;
    margin-left: 15px;
    cursor: pointer;
}

/* Animation for cart items */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cart-item {
    animation: fadeIn 0.3s ease;
}

/* Animation for toast */
@keyframes slideDown {
    from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.toast.show {
    animation: slideDown 0.3s ease;
}

/* Checkout Section */
.checkout-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    display: none;
    overflow-y: auto;
}

.checkout-container {
    background-color: var(--white);
    border-radius: 12px;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    box-shadow: var(--shadow);
}

@media (min-width: 768px) {
    .checkout-container {
        margin: 40px auto;
    }
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--medium-gray);
}

.checkout-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.close-checkout {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--dark-gray);
    cursor: pointer;
}

.checkout-form-group {
    margin-bottom: 16px;
}

.checkout-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.checkout-form-group input,.checkout-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    background-color: var(--white);
    color: var(--secondary-color);
}

.checkout-form-group input:focus  .checkout-form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.order-type-selection {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.order-type-option {
    flex: 1;
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    position: relative;
}

.order-type-option input[type="radio"] {
    margin-right: 10px;
    width: auto;
}

.order-type-option label {
    margin: 0;
    cursor: pointer;
}

.delivery-fee-note {
    color: var(--dark-gray);
    font-size: 14px;
    margin-left: 5px;
}

.discount-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--success);
    color: white;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 12px;
    font-weight: 700;
    display: block;
}

.checkout-summary {
    background-color: var(--light-gray);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.checkout-summary h3 {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}

.checkout-summary-row.total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--medium-gray);
    font-weight: 700;
    font-size: 17px;
}

.checkout-submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}
.check-promo-button {
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 7px;
    border-radius: 8px;
    font-weight: 600;
    hight:43px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-submit-btn:hover {
    background-color: #898976;
}

/* Order confirmation */
.order-confirmation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    z-index: 1100;
    display: none;
    max-width: 300px;
}

.confirmation-container i {
    font-size: 50px;
    color: var(--success);
    margin-bottom: 20px;
}

.confirmation-container h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.confirmation-container p {
    color: var(--dark-gray);
    margin-bottom: 0;
}

/* Hide address fields by default when pickup is selected */
.delivery-address-fields {
    display: block;
}

.promotion-badge {
    margin-left:10px;
    background-color: #ff5252;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Pickup location dropdown styling */
.pickup-location-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    background-color: var(--white);
    color: var(--secondary-color);
}

.pickup-location-field select:focus {
    border-color: var(--primary-color);
    outline: none;
}
.checkout-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.minimum-order-notice {
    font-size: 0.8em;
    color: #ff5252;
    margin-left: 5px;
}
@media (min-width: 768px) {
    .profile-logo {
        width: 120px;
        height: 120px;
        bottom: -60px;
    }

    .restaurant-info {
        margin-top: 70px;
    }
}