

/*
 * 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-nav-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: -1px;
    z-index: 1020;
    background: var(--color-bg-body);
    padding: 10px 0;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.category-scroll-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 15px;
    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.active {
    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
   ═══════════════════════════════════════════════════════════════ */

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
    
    .category-grid.list-view-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid.list-view-grid .meal-card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }

    .category-grid.list-view-grid .card-trigger {
        flex-direction: row;
        align-items: stretch;
    }

    .category-grid.list-view-grid .img-box {
        width: 140px;
        height: auto;
        min-height: 125px;
        flex-shrink: 0;
    }

    .category-grid.list-view-grid .meal-info-box {
        padding: 12px 12px 12px 50px; 
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    [dir="rtl"] .category-grid.list-view-grid .meal-info-box {
        padding: 12px 50px 12px 12px; 
    }

    .category-grid.list-view-grid .meal-title {
        height: auto;
        padding: 0;
        margin: 0 0 5px 0;
        font-size: 16px;
    }

    .category-grid.list-view-grid .price-val {
        padding: 0;
    }

    .category-grid.list-view-grid .meal-desc {
        display: -webkit-box;
        font-size: 12px;
        color: var(--color-text-medium);
        margin-bottom: 8px;
        line-height: 1.4;
        -webkit-line-clamp: 2; 
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.meal-card {
    background: var(--color-bg-card);
    border-radius: var(--card-border-radius, 16px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.meal-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.meal-card:active {
    transform: scale(0.97);
}

.card-trigger {
    display: flex;
    flex-direction: column;
    flex: 1;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.img-box {
    height: 140px;
    background: #eee;
    overflow: hidden;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.meal-card:hover .img-box img {
    transform: scale(1.08);
}

.meal-title {
    font-size: 14px;
    font-weight: 700;
    margin: 10px 0 5px;
    height: 38px;
    overflow: hidden;
    padding: 0 10px;
    line-height: 1.35;
    color: var(--color-text-dark);
}

.price-val {
    color: var(--color-text-dark);
    font-weight: 700;
    font-size: 15px;
    padding: 0 10px 15px;
}

.meal-desc {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════
   5. ADD TO CART BUTTON
   ═══════════════════════════════════════════════════════════════ */

.card-action-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
}

[dir="rtl"] .card-action-container {
    left: auto;
    right: 152px;
}

.quick-add-btn {
    background: var(--color-bg-card);
    color: var(--color-primary);
    border: 1px solid #eee;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    padding: 0;
    line-height: 1;
} 

.quick-add-btn:active {
    transform: scale(0.85);
}

/* Dynamic Quantity Controls */
 /* إخفاء كل الحالات بشكل افتراضي */
.dynamic-qty-control .state-add,
.dynamic-qty-control .state-expanded,
.dynamic-qty-control .state-collapsed {
    display: none;
}

/* حالة زرار الإضافة العادي */
.dynamic-qty-control[data-state="add"] .state-add {
    display: flex;
}

/* حالة الكنترول المتمدد (+ رقم -) */
.dynamic-qty-control .state-expanded {
    display: flex;
    background: var(--color-primary, #d45033); /* الخلفية البرتقالية */
    border-radius: 50px; /* شكل بيضاوي أنيق (Rounded Box) */
    box-shadow: 0 4px 12px rgba(212, 80, 51, 0.3); /* ظل متناسق مع البرتقالي */
    overflow: hidden;
    height: 36px;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px; /* مسافة صغيرة حول الزراير من الداخل */
    animation: expandQty 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* حالة الدائرة المدمجة (الرقم الإجمالي) */
.dynamic-qty-control[data-state="collapsed"] .state-collapsed {
    display: flex;
    background: var(--brand-color, #fc8801);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(252, 136, 1, 0.4);
    animation: bounceInQty 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


.dynamic-qty-control .qty-btn {
    background: transparent;
    border: none;
    color: #ffffff !important; /* الأيقونات بيضاء */
    width: 28px; 
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.dynamic-qty-control .qty-btn:hover {
    background: rgba(255, 255, 255, 0.2); /* تأثير شفاف أبيض عند الوقوف بالماوس */
}

.dynamic-qty-control .qty-btn:active {
    transform: scale(0.85);
}

/* تنسيق الرقم في المنتصف */
.dynamic-qty-control .qty-val {
    min-width: 24px;
    text-align: center;
    font-size: 15px;
    color: #ffffff !important; /* لون الرقم أبيض */
    font-weight: 700;
    user-select: none;
    margin: 0 !important;
}
/* ═══════════════════════════════════════════════════════════════
   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: auto !important;
    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: 60px;
}

.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;
    margin-left: 3px;
}

.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;
    }

    [dir="rtl"] .card-action-container {
    left: auto;
    right: 10px !important;
  }
  
}

/* ═══════════════════════════════════════════════════════════════
   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: 26px;
    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;
    width: fit-content;
}

.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;
}

/* ═══════════════════════════════════════════════════════════════
   18. HEADER & CART DRAWER (Migrated from index.php)
   ═══════════════════════════════════════════════════════════════ */

.header-logo {
    width: 120px;
    height: 70px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* تنسيق الأيقونات */
.header-icon {
    font-size: 1rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* التجاوب مع شاشات الموبايل (أقل من 768px) */
@media (max-width: 768px) {
    .header-logo {
        width: 80px;
        /* تصغير اللوجو لتوفير مساحة */
        height: 50px;
    }

    .header-icon {
        font-size: 0.9rem;
        /* تصغير الأيقونات قليلاً */
    }

    .status-btn {
        font-size: 0.7rem;
        /* تصغير زر الحالة */
        padding: 0.3rem 0.6rem 0.3rem 0.3rem;
    }

    .circle {
        width: 10px;
        height: 10px;
        margin: 0 4px 0 2px;
    }

    .circle .dot {
        width: 4px;
        height: 4px;
    }

    .menu-item {
        gap: 15px !important;
    }
}

@keyframes shine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

@keyframes float-badge {
    0% {
        transform: translateY(0);
        box-shadow: 0 4px 10px rgba(212, 80, 51, 0.1);
    }

    50% {
        transform: translateY(-4px);
    }

    100% {
        transform: translateY(0);
        box-shadow: 0 4px 10px rgba(212, 80, 51, 0.1);
    }
}



/* ==========================================
        🛒 CART ITEMS CONTAINER - SCROLL UI
        ========================================== */

#cart-items-container { 

    /* تفعيل السكرول العمودي وإخفاء الأفقي */
    overflow-y: auto;
    overflow-x: hidden;

    /* مسافة بسيطة يمين عشان السكرول مايغطيش على الكلام */
    padding-right: 8px;

    /* نعومة في السكرول على الموبايل */
    -webkit-overflow-scrolling: touch;

    /* دعم الفايرفوكس */
    scrollbar-width: thin;
    scrollbar-color: #d45033 #f8f9fa;
}

/* ==========================================
        ✨ CUSTOM SCROLLBAR (Chrome, Safari, Edge)
        ========================================== */
/* ==========================================
   ✨ CUSTOM SCROLLBAR (شكل السكرول المميز)
========================================== */

/* 1. عرض السكرول */
#cart-items-container::-webkit-scrollbar {
    width: 6px;
    /* سمك رفيع وأنيق مش بياخد مساحة */
}

/* 2. الخلفية بتاعت السكرول (المسار اللي بيمشي عليه) */
#cart-items-container::-webkit-scrollbar-track {
    background: #f8f9fa;
    /* لون رمادي فاتح جداً ناعم للعين */
    border-radius: 10px;
    margin: 8px 0;
    /* بيسيب مسافة صغيرة من فوق وتحت عشان مايبقاش لازق في الحواف */
}

/* 3. الجزء اللي بيتحرك (المؤشر نفسه) */
#cart-items-container::-webkit-scrollbar-thumb {
    /* تدرج لوني متناسق مع ألوان البراند (من البرتقالي للون أفتح) */
    background: linear-gradient(180deg, #d45033, #ff7e5f);
    border-radius: 10px;
    /* ظل داخلي خفيف بيدي إحساس الـ 3D */
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

/* 4. شكل المؤشر لما العميل يقف عليه بالماوس (Hover) */
#cart-items-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c03d21, #d45033);
    /* ألوان أغمق شوية */
}

/* 5. دعم متصفح فايرفوكس (عشان مش بيقرا الـ webkit) */
#cart-items-container {
    scrollbar-width: thin;
    /* بيخلي السكرول رفيع */
    scrollbar-color: #d45033 #f8f9fa;
    /* لون المؤشر وبعدين لون الخلفية */
}





/* ==========================================
   PREMIUM PROMO POPUP STYLES
   ========================================== */

/* Modal Container adjustments */
.premium-promo-modal .modal-content {
    border-radius: 28px;
    background-color: #ffffff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.premium-promo-modal .modal-dialog {
    max-width: 450px; /* Perfect size for a restaurant card */
}

/* Glassmorphism Close Button */
.premium-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 50;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.premium-close-btn:hover {
    background: #ffffff;
    color: #e74c3c;
    transform: rotate(90deg) scale(1.1);
}

/* Edge-to-Edge Hero Image */
.promo-hero {
    position: relative;
    width: 100%;
    height: 240px; /* Large appetizing image area */
    background-color: #f8f9fa;
}

.promo-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fade effect merging image with white background */
.hero-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

/* Floating Badges */
.premium-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    animation: pulse-badge 2s infinite;
}

.discount-badge {
    background: rgba(231, 76, 60, 0.9);
}

.limited-badge {
    background: rgba(243, 156, 18, 0.9);
    color: #fff;
}

/* Content Area */
.promo-body {
    padding: 10px 32px 36px;
    position: relative;
    z-index: 5;
}

.promo-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1e293b;
    font-family: var(--font-heading, inherit);
    letter-spacing: -0.5px;
}

.promo-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Pricing Display */
.promo-price-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.price-old {
    font-size: 1.1rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.price-new {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-primary, #d45033);
    line-height: 1;
}

/* Primary Glowing Action Button */
.btn-premium-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary, #d45033) 0%, #ff7e5f 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(212, 80, 51, 0.35);
    cursor: pointer;
}

.btn-premium-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(212, 80, 51, 0.5);
    color: white;
}

/* Dark variant for limited items */
.btn-premium-action.dark-action {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    box-shadow: 0 8px 20px rgba(30, 41, 59, 0.3);
}

.btn-premium-action.dark-action:hover {
    box-shadow: 0 12px 25px rgba(30, 41, 59, 0.45);
}

/* Announcement Outline Button */
.btn-premium-outline {
    width: 100%;
    background: transparent;
    color: #64748b;
    border: 2px solid #e2e8f0;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-premium-outline:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* RTL Support */
[dir="rtl"] .premium-close-btn {
    right: auto;
    left: 16px;
}

[dir="rtl"] .premium-badge {
    left: auto;
    right: 20px;
}