/* Bottom Navigation Bar Styles */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    z-index: 2000;
    padding: 10px 0 14px;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Custom Section Titles with Orange Corners */
.section-title-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    margin: 40px auto;
    color: var(--primary);
    font-weight: 700;
    font-size: 26px;
    font-family: 'Noto Kufi Arabic', sans-serif;
}

.section-title-wrap::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-top: 3px solid var(--primary);
    border-right: 3px solid var(--primary);
}

.section-title-wrap::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    border-bottom: 3px solid var(--primary);
    border-left: 3px solid var(--primary);
}

/* Torn Paper Edge Separator */
.offers-separator {
    width: 100%;
    height: 60px;
    background-color: #fff;
    position: relative;
    z-index: 10;
    margin-top: -30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,192L48,197.3C96,203,192,213,288,192C384,171,480,117,576,112C672,107,768,149,864,165.3C960,181,1056,171,1152,144C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    transform: rotate(180deg);
}

/* Premium Offer Cards */
.offer-grid-item {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.offer-grid-item:hover {
    transform: translateY(-10px);
}

.card-offer {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    padding: 30px;
    color: #fff;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-offer-orange { background: linear-gradient(135deg, #f15e30, #ff8c6d); }
.card-offer-maroon { background: linear-gradient(135deg, #991b1b, #dc2626); }
.card-offer-brown { background: linear-gradient(135deg, #422006, #78350f); }
.card-offer-yellow { background: linear-gradient(135deg, #d97706, #fbbf24); }

.card-offer .offer-type {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 500;
    margin-bottom: 5px;
}

.card-offer .offer-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    max-width: 80%;
}

.card-offer .offer-discount {
    font-size: 32px;
    font-weight: 900;
    color: #ffd700;
    margin-top: 15px;
}

.card-offer .offer-btn {
    background: #fff;
    color: #000 !important;
    border-radius: 50px;
    padding: 8px 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    align-self: flex-start;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-offer .offer-image-wrap {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 180px;
    height: 180px;
    z-index: 1;
}

.card-offer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
}

.card-offer .price-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cpath fill="%23ffffff" d="M50 0L61.2 38.2L100 38.2L68.8 61.8L80 100L50 76.4L20 100L31.2 61.8L0 38.2L38.8 38.2L50 0Z"/%3E%3C/svg%3E');
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f15e30;
    font-weight: 900;
    font-size: 14px;
    text-align: center;
    padding-top: 5px;
}

/* Homepage slider enhancements */
.offers-carousel .owl-item .card-offer {
    margin: 10px;
    height: 320px;
}


.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
    flex: 1;
    transition: all 0.2s ease;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.bottom-nav-item span {
    font-size: 10px;
}

/* Horizontal Scroll Container for Categories (Story Style) */
.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 10px 20px 20px;
    scrollbar-width: none;
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

.horizontal-scroll-item {
    flex: 0 0 auto;
    text-align: center;
    width: 65px;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 80px;
        background-color: #ffffff;
    }

    .top--header {
        display: none !important;
    }

    /* Navbar Tablet Adjustments */
    .navbar-glass {
        padding: 5px 15px !important;
    }

    .navbar-nav {
        gap: 1.2rem !important;
        margin-top: 0.5rem !important;
        padding-bottom: 1rem !important;
        text-align: center;
    }

    .nav-link {
        font-size: 15px !important;
    }

    .btn-join-partner {
        padding: 6px 15px !important;
        font-size: 14px !important;
    }

    .navbar .d-flex.align-items-center.gap-4 {
        gap: 0.8rem !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 768px) {

    /* Refined Hero Polish */
    .bg--slider,
    .bgaaslider {
        height: 52vh !important;
        min-height: 360px;
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
        overflow: hidden;
    }

    .overlay {
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }

    .header--wave {
        display: none !important;
    }

    .slider-content-wrapper {
        padding-top: 60px;
        /* Balanced space for character logo */
    }

    .slider .slider--title {
        font-size: 1.2rem !important;
        margin-top: 1.2rem !important;
        font-weight: 600;
        line-height: 1.5 !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        padding: 0 20px;
    }

    .slider .slider--description {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        opacity: 0.95;
        margin: 1.5rem auto !important;
        font-weight: 400 !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    /* Modern Pill Search Bar */
    .search-input {
        background: #ffffff !important;
        border-radius: 50px !important;
        padding: 5px !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
        display: flex !important;
        align-items: center !important;
        width: 94% !important;
        margin: 25px auto !important;
        position: relative;
    }

    /* Search button on Left for RTL (Arabic) */
    .rtl .search-input {
        flex-direction: row !important;
        /* Row in RTL puts button on Left */
    }

    .search-input input {
        border: none !important;
        background: transparent !important;
        height: 46px !important;
        box-shadow: none !important;
        padding: 0 20px !important;
        flex-grow: 1 !important;
        font-size: 14px !important;
    }

    .rtl .search-input input {
        text-align: right;
    }

    .search-input button {
        border-radius: 50px !important;
        height: 46px !important;
        padding: 0 25px !important;
        width: auto !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        background-color: var(--primary) !important;
        color: #fff !important;
        border: none !important;
        flex-shrink: 0;
    }

    .search-input .position-absolute {
        display: none !important;
    }

    /* Section Titles Polish */
    .title--section {
        font-family: "(A) Arslan Wessam B", sans-serif !important;
        font-size: 32px !important;
        color: #f15e30 !important;
        margin-top: 30px !important;
        position: relative;
        display: inline-block !important;
        padding-top: 25px !important;
        padding-right: 35px !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
    }

    .title--section::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 100px;
        height: 80px;
        border-top: 4px solid #f15e30 !important;
        border-right: 4px solid #f15e30 !important;
        z-index: 1;
    }

    /* Hide the orange L-border/icon on mobile titles */
    .title--section::before,
    .title--section-white::before {
        display: none !important;
    }

    /* Hide bulky decorative background images */
    .offers>.food--img,
    .meals>.food--img,
    .working--times .image-left,
    .working--times .image-right,
    .my-container>.food--img,
    .app--section .food--img {
        display: none !important;
    }

    /* Enhanced Dish Cards Horizontal */
    .dish--item {
        border-radius: 16px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important;
        border: 1px solid rgba(0, 0, 0, 0.04) !important;
        background: #ffffff;
    }

    .text-truncate-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .btn-main {
        background-color: var(--primary) !important;
        border: none !important;
        transition: transform 0.1s ease;
    }

    .btn-main:active {
        transform: scale(0.9);
    }

    /* Category Polish */
    .category--image {
        width: 60px !important;
        height: 60px !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 2px !important;
        transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .category--item.active .category--image {
        transform: scale(1.1);
    }

    .category--title {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #1e293b !important;
        margin-top: 5px !important;
    }

    .category--item.active .category--title {
        color: var(--primary) !important;
    }

    .menu--categories .owl-dots {
        display: none !important;
    }

    /* Nav Polish */
    .navbar {
        height: auto !important;
        min-height: 65px !important;
        padding: 5px 20px !important;
        background: transparent !important;
        border: none !important;
    }

    /* Secondary Pages (Breadcrumb) Header Height */
    .bread--crumb.bg--slider {
        height: 130px !important;
        min-height: 130px !important;
    }

    .bread--crumb .slider-content-wrapper {
        padding-top: 40px !important;
    }

    .bread--crumb h1 {
        margin-top: 0 !important;
        font-size: 2.2rem !important;
    }

    .page-hero-section, .page-hero-section header {
        min-height: 120px !important;
        height: auto !important;
    }

    .custom-hero-container {
        padding: 20px 15px 30px 15px !important;
        min-height: auto !important;
    }

    .custom-hero-container h1 {
        margin-bottom: 10px !important;
        font-size: 1.8rem !important;
        margin-top: 0 !important;
    }

    .title--section-white {
        margin-top: 10px !important;
    }

    .my-container.py-5, .my-container.pt-5, .py-5 {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    .mb-5, .my-5 {
        margin-bottom: 25px !important;
        margin-top: 25px !important;
    }

    .mb-4, .my-4 {
        margin-bottom: 15px !important;
        margin-top: 15px !important;
    }

    .navbar .item img {
        max-height: 48px !important;
        width: auto !important;
    }

    @media (max-width: 768px) {
        .navbar .item img {
            max-height: 60px !important;
        }
    }

    .navbar-toggler {
        border: none !important;
        padding: 0 !important;
    }

    .navbar-toggler svg circle {
        display: none;
    }

    .top--header {
        display: none !important;
    }
}

/* Cart Table Stacking on Mobile */
@media (max-width: 768px) {
    .cart-table thead {
        display: none !important;
    }

    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block !important;
        width: 100% !important;
    }

    .cart-table tr {
        margin-bottom: 1.5rem !important;
        border: 1px solid #eee !important;
        border-radius: 12px !important;
        padding: 10px !important;
        background: #fff !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    }

    .cart-table td {
        text-align: right !important;
        padding: 8px 10px !important;
        border: none !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .cart-table td:first-child {
        display: block !important;
        border-bottom: 1px solid #f5f5f5 !important;
        margin-bottom: 10px !important;
        padding-bottom: 15px !important;
    }

    .cart-table td:not(:first-child)::before {
        content: attr(data-label);
        font-weight: bold;
        color: #666;
        font-size: 13px;
    }

    .cart-table .qty-input {
        width: 110px !important;
        margin-right: 0 !important;
    }

    .cart-table .remove-item {
        width: 100% !important;
        margin-top: 10px !important;
    }
}


