/*
 * MenU Component Styles - CONSOLIDATED
 * =====================================
 * All component styles in one file for complete theme control.
 * Colors reference CSS variables from theme.css
 * 
 * SECTIONS:
 *   1. Body & Typography
 *   2. Header
 *   3. Category Pills
 *   4. Menu Item Cards
 *   5. Add to Cart Button
 *   6. Favorite Button
 *   7. Cart Modal
 *   8. Item Details Modal
 *   9. Search Bar
 *  10. Food Filters
 *  11. Status Indicator
 *  12. Loading Spinner
 *  13. Language Toggle
 *  14. Footer
 */

/* ═══════════════════════════════════════════════════════════════
   1. BODY & TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-body);
    color: var(--color-text-dark);
    font-weight: 100;
    font-size: 1rem;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

/* ═══════════════════════════════════════════════════════════════
   2. HEADER
   ═══════════════════════════════════════════════════════════════ */

.top_bars {
    position: relative;
    background-color: var(--color-bg-header);
    z-index: 1050;
}

.top_bars .dropdown-menu {
    z-index: 1060;
}

.top_bars .dropdown {
    position: relative;
}

.header {
    background: transparent;
    box-shadow: var(--shadow-sm);
}

/* Glow Button (Header CTA) */
.btn-glow {
    --main-color: var(--color-accent);
    font-size: 15px;
    padding: 0.7em 2.7em;
    letter-spacing: 0.06em;
    position: relative;
    font-family: inherit;
    border-radius: 0.6em;
    overflow: hidden;
    transition: all 0.3s;
    line-height: 1.4em;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    background: linear-gradient(to right, rgba(240, 86, 50, 0.1) 1%, transparent 40%, transparent 60%, rgba(240, 86, 50, 0.1) 100%);
    box-shadow: inset 0 0 10px rgba(240, 86, 50, 0.4), 0 0 9px 3px rgba(240, 86, 50, 0.1);
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
}

.btn-glow:hover {
    color: var(--color-accent);
    box-shadow: inset 0 0 10px rgba(240, 86, 50, 0.6), 0 0 9px 3px rgba(240, 86, 50, 0.2);
}

.btn-glow:before {
    content: "";
    position: absolute;
    left: -4em;
    width: 4em;
    height: 100%;
    top: 0;
    transition: transform .4s ease-in-out;
    background: linear-gradient(to right, transparent 1%, rgba(240, 86, 50, 0.1) 40%, rgba(240, 86, 50, 0.1) 60%, transparent 100%);
}

.btn-glow:hover:before {
    transform: translateX(15em);
}

/* ═══════════════════════════════════════════════════════════════
   3. CATEGORY PILLS
   ═══════════════════════════════════════════════════════════════ */

.category-scroll-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 5px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    user-select: none;
    cursor: grab;
}

.category-scroll-container::-webkit-scrollbar {
    display: none;
}

.category-scroll-container:active {
    cursor: grabbing;
}

.category-pill {
    display: inline-block;
    padding: var(--pill-padding, 8px 16px);
    background: var(--pill-bg, #e2e2e2);
    color: var(--pill-text, #4b5563);
    border-radius: var(--pill-border-radius, 50px);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    flex: 0 0 auto;
}

.category-pill:hover {
    background-color: #e5e7eb;
    color: #1f2937;
    transform: translateY(-1px);
}

.category-pill.active,
.category-pill:hover {
    background: var(--pill-bg-active, #d45033);
    color: var(--pill-text-active, white);
    box-shadow: 0 4px 6px -1px rgb(173, 65, 41);
    border-color: var(--pill-bg-active, #d45033);
}

.category-pill.special {
    background-color: #fff;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.category-pill.special.active {
    background-color: var(--color-primary);
    color: white;
}

@media screen and (max-width: 768px) {
    .category-scroll-container {
        justify-content: flex-start;
    }
}

/* Category Title & Subtitle */
.category-subtitle {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.category-subtitle i {
    font-size: 1.2rem;
    color: var(--color-primary);
}

.menu-category_name {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
    font-family: var(--font-heading);
    margin-top: 5px;
    line-height: 1.1;
    border-left: none;
    padding-left: 0;
}

@media (max-width: 767px) {
    .menu-category_name {
        font-size: 2rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   4. MENU ITEM CARDS
   ═══════════════════════════════════════════════════════════════ */

.menu-item-card {
    border: none;
    border-radius: var(--card-border-radius, 20px);
    background: var(--color-bg-card, #ffffff);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    margin-bottom: 20px;
    margin-top: 80px;
    box-shadow: var(--card-shadow);
}

.menu-item-image-wrapper {
    position: relative;
    margin-top: -80px;
    height: auto;
    display: flex;
    justify-content: center;
    overflow: visible;
    align-items: center;
}

.menu-item-image {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    background-color: #fff;
}

.menu-item-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.02em;
}

.menu-item-desc {
    font-size: 0.85rem;
    color: var(--color-text-medium, #6b7280);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    flex-grow: 1;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eaedf3;
}

.menu-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Mobile Card Adjustments */
@media (max-width: 575px) {
    .menu-item-card {
        flex-direction: column;
    }

    .menu-item-body {
        padding: 1.25rem;
    }

    .menu-item-title {
        font-size: 1.1rem;
        text-align: left;
    }

    .menu-item-desc {
        text-align: left;
    }

    .menu-item-price {
        font-size: 1.2rem;
    }

    .menu-item-image-wrapper {
        justify-content: flex-start;
        margin-left: 10px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   5. ADD TO CART BUTTON (Circle)
   ═══════════════════════════════════════════════════════════════ */

.btn-add-cart-card {
    width: var(--btn-cart-size, 45px);
    height: var(--btn-cart-size, 45px);
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-text-on-primary, white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(212, 80, 51, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.1rem;
}

.btn-add-cart-card:hover {
    background: var(--color-primary-hover);
    transform: rotate(90deg);
    box-shadow: 0 6px 15px rgba(212, 80, 51, 0.5);
}

.btn-add-cart-card:active {
    transform: scale(0.9);
}

/* ═══════════════════════════════════════════════════════════════
   6. FAVORITE BUTTON
   ═══════════════════════════════════════════════════════════════ */

.btn-favorite {
    position: absolute;
    right: 71px;
    bottom: 35px;
    transform: translateX(50px);
    background: var(--color-bg-card, white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 10;
    color: #ccc;
    font-size: 1rem;
    top: auto;
}

.btn-favorite:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-favorite .text-danger {
    color: #e74c3c !important;
}

.btn-favorite .far.fa-heart {
    color: #ccc;
}

/* ═══════════════════════════════════════════════════════════════
   7. CART MODAL
   ═══════════════════════════════════════════════════════════════ */

#cartModal {
    z-index: 99999 !important;
}

#cartModal .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(34, 45, 56, 0.25);
    background: var(--color-bg-modal, #ffffff);
    overflow: hidden;
}

#cartModal .modal-header {
    background: var(--cart-header-bg, linear-gradient(135deg, #d45033 0%, #0f766e 100%));
    border-bottom: none;
    padding: 1.5rem;
}

#cartModal .modal-title {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.25rem;
    color: #ffffff;
}

#cartModal .btn-close-white {
    opacity: 0.8;
    filter: brightness(0) invert(1);
}

/* Clear Cart Button */
.btn-outline-light {
    position: relative;
    width: 160px;
    height: 50px;
    cursor: pointer;
    background: #cb5135 !important;
    border: none !important;
    border-radius: 10px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    padding: 0 !important;
    display: inline-block !important;
    text-align: left;
}

.btn-outline-light>* {
    z-index: 2;
    position: relative;
}

.btn-outline-light,
.btn-outline-light span {
    transition: 200ms;
}

.btn-outline-light .text {
    transform: translateX(35px);
    color: white !important;
    font-weight: bold;
    display: inline-block;
    line-height: 50px;
    padding-right: 10px;
}

.btn-outline-light .icon {
    position: absolute;
    border-left: 1px solid #a6422b;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #cb5135;
}

.btn-outline-light .icon i {
    font-size: 15px;
    color: #eee;
}

.btn-outline-light:hover {
    background: #e0684b !important;
}

.btn-outline-light:hover .text {
    color: transparent !important;
}

.btn-outline-light:hover .icon {
    width: 100%;
    border-left: none;
    z-index: 5;
}

.btn-outline-light:focus {
    outline: none;
}

.btn-outline-light:active .icon i {
    transform: scale(0.8);
}

/* Cart Modal Body */
#cartModal .modal-body {
    padding: 1.5rem;
    background-color: #f8fafc;
}

#cartModal h6 {
    color: #222d38;
    font-size: 0.95rem;
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cart Item Quantity Buttons */
.cart-item-minus,
.cart-item-plus {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: #f3f4f6;
    padding-bottom: 5px;
}

.cart-item-minus {
    color: #dc3545;
    border: 1px solid #dc3545;
}

.cart-item-minus:hover {
    background-color: #dc3545;
    color: #fff;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.cart-item-plus {
    color: #198754;
    border: 1px solid #198754;
}

.cart-item-plus:hover {
    background-color: #198754;
    color: #fff;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

.cart-item-minus:active,
.cart-item-plus:active {
    transform: scale(0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart-item-minus:disabled,
.cart-item-plus:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background-color: #e9ecef;
    color: #adb5bd;
    box-shadow: none;
}

/* Cart Item Layout */
.cart-item {
    display: flex;
    align-items: center;
    gap: 50px;
}

.cart-item-info {
    flex-grow: 1;
    width: 0;
    white-space: normal;
    word-break: break-word;
}

.cart-item-qty-controls {
    flex-shrink: 0;
    width: 120px;
}

.cart-item-price {
    width: 100px;
}

.item-qty {
    width: 30px;
    text-align: center;
}

/* Cart Form Controls */
#cartModal .form-label {
    font-weight: 600;
    color: #222d38;
    margin-bottom: 6px;
}

#cartModal .form-control {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

#cartModal .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(212, 80, 51, 0.1);
    outline: none;
}

/* Payment Options */
#cartModal .form-check {
    background: white;
    padding: 12px 12px 12px 35px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

#cartModal .form-check:hover {
    border-color: var(--color-primary);
}

#cartModal .form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

#cartModal .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 80, 51, 0.25);
}

#instapay-info {
    border-radius: 8px;
    background-color: #fff1f0;
    border: 1px solid #ffdcd6;
    color: #9c2b1b;
}

/* Cart Footer */
#cartModal .modal-footer {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    padding: 1.25rem;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.03);
}

#cart-total-price {
    color: var(--color-primary);
    font-size: 1.3rem;
}

.whatsapp-btn {
    background: var(--cart-btn-checkout-bg, #15a349);
    color: white;
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    gap: 10px;
}

.whatsapp-btn:hover {
    background: var(--color-success);
    filter: brightness(1.1);
}

/* Cart Scrollbar */
#cartModal .modal-body::-webkit-scrollbar {
    width: 5px;
}

#cartModal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#cartModal .modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #df7d67 0%, #27a89d 100%);
    border-radius: 10px;
    opacity: 0.5;
}

/* Clear Cart Button Animation */
#clearCartBtn {
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}

#clearCartBtn.btn-hidden {
    opacity: 0;
    visibility: hidden;
}

@media (max-width: 575px) {
    .btn-outline-light {
        width: 130px;
        height: 40px;
        border-radius: 15px;
    }

    .btn-outline-light .text {
        line-height: 40px;
        font-size: 13px;
        transform: translateX(20px);
    }

    .btn-outline-light .icon {
        width: 35px;
    }

    .btn-outline-light .icon i {
        font-size: 13px;
    }

    .cart-item {
        gap: 0px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   8. ITEM DETAILS MODAL
   ═══════════════════════════════════════════════════════════════ */

.item-details-modal .modal-content {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: #fff;
}

.item-details-modal .modal-header {
    border: none;
    padding: 0;
    position: relative;
    height: 300px;
}

.item-details-modal .modal-header .btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 10px;
    z-index: 10;
    opacity: 1;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.item-details-modal .modal-header .btn-close:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.modal-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10;
    border-radius: 0 0 24px 24px;
}

.item-details-modal .modal-body {
    padding: 2rem;
    position: relative;
    background: #fff;
    border-radius: 24px 24px 0 0;
    margin-top: -24px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-item-title {
    font-family: 'Antonio', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.modal-item-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #616161;
    display: inline-block;
}

.modal-item-desc {
    font-family: 'Montserrat', sans-serif;
    color: #6b7280;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 2rem;
    text-align: left !important;
    width: 100%;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eaedf3;
}

.btn-modal-add {
    flex-grow: 1;
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    width: 250px;
}

.btn-modal-add:hover {
    transform: translateY(-2px);
}

.btn-modal-add:active {
    transform: translateY(0);
}

/* Modal Animation */
.modal.fade .modal-dialog {
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Rating Stars */
.modal-item-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    text-align: left !important;
    width: 100%;
}

.modal-item-rating i {
    font-size: 0.9rem;
}

.modal-item-rating .rating-text {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Quantity Control in Modal */
.quantity-control {
    background: #f8f9fa;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
    width: 200px;
    margin: 10px auto;
    z-index: 10;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: var(--color-primary) !important;
    color: white !important;
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    color: #333;
}

/* ═══════════════════════════════════════════════════════════════
   9. SEARCH BAR
   ═══════════════════════════════════════════════════════════════ */

.search-container {
    max-width: 500px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--color-bg-card, #fff);
    border: 2px solid var(--color-border-light, #e0e0e0);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input-wrapper:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px var(--color-primary-light, rgba(240, 86, 50, 0.15));
}

.search-icon {
    color: #999;
    font-size: 1rem;
    margin-right: 0.75rem;
    transition: color 0.3s ease;
}

.search-input-wrapper:focus-within .search-icon {
    color: var(--color-primary);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: #333;
}

.search-input::placeholder {
    color: #aaa;
}

.search-clear-btn {
    background: #e0e0e0;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.search-clear-btn:hover {
    background: var(--color-primary);
    color: white;
}

.search-clear-btn i {
    font-size: 0.7rem;
}

.search-results-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--color-primary), #ff7b54);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* RTL Support for Search */
[dir="rtl"] .search-icon {
    margin-right: 0;
    margin-left: 0.75rem;
}

[dir="rtl"] .search-input {
    text-align: right;
}

@media (max-width: 576px) {
    .search-container {
        padding: 0 0.5rem;
    }

    .search-input-wrapper {
        padding: 0.4rem 0.8rem;
    }

    .search-input {
        font-size: 0.9rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   10. FOOD FILTERS
   ═══════════════════════════════════════════════════════════════ */

.filter-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
}

.filter-scroll-container::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.filter-chip img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.filter-chip:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.filter-chip.active {
    background-color: #198754;
    color: white;
    border-color: #198754;
    box-shadow: 0 4px 10px rgba(25, 135, 84, 0.3);
}

.filter-chip.active img {
    filter: brightness(0) invert(1);
}

/* ═══════════════════════════════════════════════════════════════
   11. STATUS INDICATOR
   ═══════════════════════════════════════════════════════════════ */

.status-btn {
    --animation: 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    column-gap: 2px;
    border-radius: 100px;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    outline: none;
    border: none;
    font-weight: 600;
    position: relative;
    transition: 0.2s ease-in-out;
    cursor: default;
    font-size: 0.85rem;
}

.status-btn.status-open {
    color: #178d00;
    background-color: #e1f9dc;
}

.status-btn.status-open .circle {
    border-color: #178d00;
}

.status-btn.status-open .circle .dot {
    background-color: #178d00;
}

.status-btn.status-closed {
    color: #d32f2f;
    background-color: #ffebee;
}

.status-btn.status-closed .circle {
    border-color: #d32f2f;
    animation: none;
}

.status-btn.status-closed .circle .dot {
    background-color: #d32f2f;
    animation: none;
}

.status-btn.status-closed .circle .outline {
    animation: none;
}

.circle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 14px;
    height: 14px;
    border: solid 2px #178d00;
    border-radius: 50%;
    margin: 0 8px 0 4px;
    background-color: transparent;
    animation: circle-keys var(--animation);
}

.circle .dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #178d00;
    animation: dot-keys var(--animation);
}

.circle .outline {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    animation: outline-keys var(--animation);
}

.status-open .dot {
    background: var(--color-success);
}

.status-closed .dot {
    background: var(--color-error);
}

@keyframes circle-keys {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes dot-keys {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes outline-keys {
    0% {
        transform: scale(0);
        outline: solid 10px var(--color);
        outline-offset: 0;
        opacity: 1;
    }

    100% {
        transform: scale(1);
        outline: solid 0 transparent;
        outline-offset: 10px;
        opacity: 0;
    }
}

/* Payment Disabled */
.payment-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.payment-disabled-notice {
    font-size: 0.8rem;
    color: #d32f2f;
    margin-left: 1.5rem;
}

@media (max-width: 768px) {
    .status-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem 0.4rem 0.4rem;
    }

    .circle {
        width: 12px;
        height: 12px;
        margin: 0 6px 0 2px;
    }

    .circle .dot {
        width: 6px;
        height: 6px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   12. LOADING SPINNER
   ═══════════════════════════════════════════════════════════════ */

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 3rem 0;
}

.loading-spinner svg {
    width: 3.25em;
    transform-origin: center;
    animation: rotate4 2s linear infinite;
}

.loading-spinner circle {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 2;
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: dash4 1.5s ease-in-out infinite;
}

@keyframes rotate4 {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash4 {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 200;
        stroke-dashoffset: -35px;
    }

    100% {
        stroke-dashoffset: -125px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   13. LANGUAGE TOGGLE
   ═══════════════════════════════════════════════════════════════ */

.language-toggle {
    display: inline-flex !important;
    width: 120px;
    height: 56px;
    background-color: var(--color-bg-card, #fbfdff);
    border-radius: 1rem 0 1rem 0;
    padding: 4px;
    box-sizing: border-box;
    overflow: hidden;
    vertical-align: middle;
    position: relative;
    user-select: none;
}

.language-toggle a {
    flex: 1;
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-decoration: none !important;
    color: var(--color-secondary, #1e3a8a);
    font-weight: bold;
    font-family: sans-serif;
    transition: all 0.3s ease;
    border-radius: 0.75rem 0 0.75rem 0;
    z-index: 1;
}

.language-toggle a.active {
    background-color: var(--color-primary);
    color: var(--color-text-on-primary, #fff);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem 0 0.75rem 0;
    cursor: default;
}

.language-toggle a:not(.active):hover {
    background-color: var(--color-primary-light, rgba(255, 255, 255, 0.3));
}

.language-toggle>* {
    margin: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════
   14. FOOTER
   ═══════════════════════════════════════════════════════════════ */

.site-footer {
    background-color: var(--color-bg-footer, #222d38);
    color: var(--color-text-on-dark, #ffffff);
    padding: 50px 0 25px;
    margin-top: 50px;
    border-top: 4px solid var(--color-primary);
}

.site-footer h5 {
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1rem;
}

.footer-logo-img {
    width: 130px;
    height: 90px;
    object-fit: contain;
    border-radius: 50%;
}

.footer-desc {
    font-size: 0.9rem;
    color: #b0b8c4;
    margin: 0 auto;
    line-height: 1.6;
}

.footer-social-links {
    display: flex;
    gap: 12px;
}

.footer-social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: rgba(212, 80, 51, 0.15);
    color: var(--color-primary);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

.footer-social-links a:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(212, 80, 51, 0.4);
}

.footer-contact {
    text-align: left;
}

.footer-contact li {
    margin-bottom: 12px;
    color: #b0b8c4;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-contact li {
        justify-content: flex-start;
    }
}

@media (max-width: 529px) {
    .footer-social-links {
        justify-content: center;
    }

    .contact-info {
        margin-top: 10px;
    }
}

.footer-contact i {
    color: var(--color-primary);
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: #6c7a8a;
}

.footer-bottom strong {
    color: var(--color-primary);
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--color-primary);
}

/* ═══════════════════════════════════════════════════════════════
   15. SWIPER / CAROUSEL
   ═══════════════════════════════════════════════════════════════ */

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 0 2em rgba(0, 0, 0, 0.2);
}

.new-item_card {
    width: 250px;
    height: 380px;
    background-color: rgb(234, 234, 234);
    padding: 25px 15px;
}

@media screen and (max-width: 529px) {
    .new-item_card {
        width: 250px;
        height: 230px;
        background-color: white;
        padding: 25px 15px;
    }
}

.carousel_caption {
    right: 50px;
    bottom: 60px;
    text-align: left;
    color: var(--lighter-blue-text);
    width: 350px;
    height: 100px;
    padding: 10px;
    border-radius: 10px;
    background-color: var(--color-bg-body);
}

.carousel-caption_title {
    font-family: amsi-bold;
    font-size: 1rem;
    color: var(--darker-blue-text);
}

.carousel-caption_subtitle {
    font-family: amsi-italic;
    font-size: 0.8rem !important;
}

@media screen and (max-width: 529px) {
    .carousel_caption {
        width: 130px;
        height: 50px;
        bottom: 40px;
        right: 30px;
        padding: 5px;
        border-radius: 8px;
    }

    .carousel-caption_title {
        font-size: 0.8rem;
    }

    .carousel-caption_subtitle {
        font-size: 0.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   15. DISCOUNT PRICING STYLES
   ═══════════════════════════════════════════════════════════════ */

/* Original price (strikethrough) */
.original-price {
    text-decoration: line-through;
    color: var(--color-text-muted, #999);
    font-size: 0.85em;
    margin-right: 0.5rem;
    font-weight: 400;
}

/* Sale price (highlighted) */
.sale-price {
    color: var(--color-accent, #d45033);
    font-weight: 700;
}

/* Discount badge on menu card image */
.card-discount-badge {
    position: relative;
    top: -60px;
    left: 10px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    z-index: 5;
    animation: pulse-badge 2s ease-in-out infinite;
}

/* Inline discount badge (in price area) */
.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Subtle pulse animation for discount badge */
@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* RTL support for discount badges */
[dir="rtl"] .original-price {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .discount-badge {
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .card-discount-badge {
    left: auto;
    right: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   16. LIMITED TIME BADGE STYLES
   ═══════════════════════════════════════════════════════════════ */

/* Limited badge on menu card image */
.card-limited-badge {
    position: relative;
    top: -60px;
    right: -15px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4);
    z-index: 5;
    float: right;
}

/* RTL support for limited badge */
[dir="rtl"] .card-limited-badge {
    right: auto;
    left: 10px;
    float: left;
}

/* ═══════════════════════════════════════════════════════════════
   17. PROMOTIONAL POPUP MODAL STYLES
   ═══════════════════════════════════════════════════════════════ */

.promo-popup-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.promo-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgb(0 0 0 / 29%);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-popup-close i {
    color: #fff;
    font-size: 18px;
}

.promo-popup-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

[dir="rtl"] .promo-popup-close {
    right: auto;
    left: 15px;
}

.promo-popup-body {
    padding: 30px;
    text-align: center;
    position: relative;
}

.promo-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: pulse-badge 2s infinite;
}

.promo-popup-image {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.promo-popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.promo-popup-price {
    margin-bottom: 25px;
}

.promo-popup-price .original-price {
    font-size: 1.1rem;
    color: #95a5a6;
    text-decoration: line-through;
    margin-right: 15px;
}

.promo-popup-price .sale-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e74c3c;
}

.promo-popup-price .current-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #3498db;
}

.promo-popup-desc {
    color: #7f8c8d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.promo-popup-btn {
    padding: 12px 40px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.promo-popup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Discount popup specific */
.discount-popup .promo-badge {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

/* Limited popup specific */
.limited-popup .promo-badge {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

/* Announcement popup specific */
.announcement-popup .promo-popup-image {
    max-height: 300px;
}

/* Animation for popup entrance */
#promoPopupModal .modal-dialog {
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#promoPopupModal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}