/* Shared menu UI (same look as New/index.html): backdrop, cards, modal, background */

.modal-backdrop {
    z-index: 100000;
    background-color: rgba(255, 255, 255, 0.08) !important;
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
    transition: opacity 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease, background-color 0.35s ease;
}

.modal-backdrop.show {
    opacity: 0.9 !important;
    background-color: rgba(255, 255, 255, 0.24) !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

body {
    background-color: #141414 !important;
    background-image: url("https://qrmenus.me/uploads/restorants/d683b5a7-f91f-4a5e-a37c-e113f125c763_bg.png") !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    background-position: center top !important;
    background-size: cover !important;
    color: #f2f2f2 !important;
}

#restaurant-content {
    background: transparent !important;
}

.section-profile-cover,
.header.pb-8.pt-5.pt-lg-8.d-flex.align-items-center {
    display: none !important;
}

.tabbable.sticky {
    background: rgba(22, 22, 22, 0.94) !important;
    border-bottom: 1px solid #2d2d2d;
}

.strip {
    background: linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%) !important;
    border: 1px solid #dfdfdf !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
    margin-bottom: 14px;
    padding: 8px !important;
    display: flex !important;
    align-items: stretch !important;
    gap: 10px;
    min-height: 118px;
    position: relative;
}

#restaurant-content .strip {
    cursor: pointer;
}

.strip .res_image {
    width: 108px !important;
    min-width: 108px !important;
    height: 100px !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.strip .res_image img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    margin: 0 !important;
}

.new-badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
    width: 74px;
    height: 74px;
    overflow: hidden;
    pointer-events: none;
}

.new-badge span {
    position: absolute;
    top: 13px;
    right: -27px;
    width: 104px;
    transform: rotate(45deg);
    background: #e31919;
    color: #ffffff;
    text-align: center;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    padding: 4px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
}

.fan-gallery {
    position: relative;
    background: #111111;
}

.fan-gallery .fan-img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    opacity: 0.42;
    z-index: 1;
    transform: translateX(18px);
    transition: transform 0.38s ease;
}

.fan-gallery .fan-img:nth-child(1) {
    transform: translateX(-12px);
}

.fan-gallery .fan-img:nth-child(2) {
    transform: translateX(12px);
}

.fan-gallery .fan-img:nth-child(3) {
    transform: translateX(0);
}

.fan-gallery .fan-img.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.strip .res_title {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 0 !important;
}

.strip .res_title h5 {
    margin: 0 0 6px !important;
    font-size: 1rem !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
}

.strip .res_title h5 a {
    color: #1f1f1f !important;
    text-shadow: none !important;
}

.strip .res_description {
    margin: 0 !important;
    color: #666666 !important;
    font-size: 0.84rem !important;
    line-height: 1.2 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.strip .card-footer {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    align-items: center;
}

.strip .card-footer .col-12 {
    display: flex !important;
    justify-content: flex-end !important;
    padding: 0 !important;
}

.strip .res_mimimum {
    font-size: 1.05rem !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px;
    font-variant-numeric: tabular-nums;
    color: #1f1f1f !important;
    text-shadow: none !important;
    margin-top: 6px;
    transform: translate(-1cm, -0.5cm);
}

@media (max-width: 991px) {
    .col-xl-3.col-lg-6.col-md-6.col-sm-12 {
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

#productModal .modal-content {
    background: #1f1f1f !important;
    border: 1px solid #353535 !important;
    border-radius: 14px !important;
    color: #f1f1f1 !important;
}

#productModal .modal-header {
    border-bottom: 1px solid #333 !important;
}

#productModal .modal-title,
#productModal .close span {
    color: #ffffff !important;
}

#productModal .card {
    background: transparent !important;
    box-shadow: none !important;
}

#productModal #modalImg {
    width: 100% !important;
    max-width: 295px;
    height: 220px !important;
    object-fit: cover;
    border-radius: 12px;
}

#productModal #modalItemDetailsPart {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#productModal #modalPrice {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.2px;
    font-variant-numeric: tabular-nums;
    color: #ffffff !important;
}

#productModal #modalDescription,
#productModal .form-control-label,
#productModal .custom-control-label {
    color: #d6d6d6 !important;
}

#productModal .custom-control-input:checked ~ .custom-control-label::before {
    border-color: #9a7bff !important;
    background-color: #9a7bff !important;
}

/* Lighter payloads: cap visible size; prefer _medium via menu-ui.js */
#restaurant-content .swiper-slide img.lazy,
#restaurant-content .strip .res_image img {
    content-visibility: auto;
}

/* Keep the currently visible category highlighted while scrolling. */
#category .swiper-slide.menu-category-active a,
#category .swiper-slide.menu-category-active a.cap {
    border-color: #eac8ad !important;
    background: #eac8ad !important;
    color: #14220f !important;
    box-shadow: 0 0 0 2px rgba(234, 200, 173, 0.22);
}

#category .swiper-slide.menu-category-active img {
    outline: 3px solid #eac8ad;
    outline-offset: -3px;
}

/* ── أقسام المنيو (Meshaltet، Salads، SALAD، …): حافة / توهج عكس لون النص ── */
#restaurant-content div[id].text-center > h1 {
    margin: 0.45em 0 0.12em !important;
    font-weight: 800 !important;
    font-size: clamp(1.28rem, 2.6vw, 1.78rem) !important;
    line-height: 1.12 !important;
    letter-spacing: 0.06em;
}

/* عنوان فاتح على الخلفية الداكنة → حدّ وتوهج خارجي غامق */
#restaurant-content div[id].text-center > h1 {
    color: #fafafa !important;
    -webkit-text-stroke: 0.45px rgba(0, 0, 0, 0.82);
    paint-order: stroke fill;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 1),
        0 0 3px rgba(0, 0, 0, 0.95),
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 -1px 2px rgba(0, 0, 0, 0.55),
        1px 0 1px rgba(0, 0, 0, 0.88),
        -1px 0 1px rgba(0, 0, 0, 0.88),
        0 0 18px rgba(0, 0, 0, 0.5),
        0 0 22px rgba(255, 255, 255, 0.08);
}

/* عنوان غامق (لو وُضع لاحقاً فوق خلفية فاتحة): هالة فاتحة — أضف class للـ div الأب */
#restaurant-content div[id].text-center.section-heading-on-light > h1 {
    color: #141414 !important;
    -webkit-text-stroke: 0.4px rgba(255, 255, 255, 0.9);
    text-shadow:
        0 0 1px rgba(255, 255, 255, 1),
        0 0 6px rgba(255, 255, 255, 0.65),
        0 0 14px rgba(255, 255, 255, 0.4),
        0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Hide export / placeholder “Opens …” line in product modal */
.closed_time {
    display: none !important;
}

