﻿body {
    font-family: 'Tajawal', sans-serif;
    background: var(--secondary);
    color: #f5ede1;
    margin: 0;
}

.menu-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem;
    background: #1f1811;
    border-bottom: 1px solid #443725;
    position: sticky;
    top: 0;
    z-index: 10;
}

.menu-logo {
    height: 32px;
    border-radius: 6px;
}

.menu-cafe-name {
    font-weight: 500;
    font-size: 15px;
}

.lang-switch {
    margin-inline-start: auto;
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    border: 1px solid var(--primary);
    padding: 4px 10px;
    border-radius: 999px;
}

.menu-body {
    padding: 1rem;
}

.search-box {
    background: #241c15;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    color: #f5ede1;
    width: 100%;
    margin-bottom: 14px;
}

.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
    padding-bottom: 4px;
}

.category-tab {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
    color: #a89a8c;
    border: 1px solid #443725;
}

    .category-tab.active {
        background: var(--primary);
        color: #1a1310;
        border-color: var(--primary);
    }
.product-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-card {
    display: flex;
    background: #1f1811;
    border-radius: 12px;
    overflow: hidden;
}

    .product-card img {
        width: 130px;
        height: 130px;
        object-fit: cover;
        flex-shrink: 0;
    }

.product-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-name {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 4px;
}

.product-description {
    font-size: 12px;
    color: #a89a8c;
    margin: 0 0 8px;
    line-height: 1.4;
}


.product-card {
    text-decoration: none;
    color: inherit;
}
.product-detail input[type="text"],
.product-detail textarea,
.product-detail input[type="number"] {
    background: #241c15;
    border: 1px solid #443725;
    color: #f5ede1;
    border-radius: 8px;
    padding: 10px 12px;
    width: 100%;
}

.product-detail textarea {
    min-height: 70px;
    resize: none;
}

.qty-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
}

    .qty-row label {
        font-size: 14px;
        color: #a89a8c;
    }

    .qty-row input {
        width: 70px;
        text-align: center;
    }

.btn-add-cart {
    width: 100%;
    background: var(--primary);
    color: #1a1310;
    border: none;
    border-radius: 999px;
    padding: 14px;
    font-weight: 500;
    font-size: 15px;
    margin-top: 1rem;
}

.cart-link {
    position: relative;
    font-size: 20px;
    text-decoration: none;
    margin-inline-start: auto;
    color: #f5ede1;
}

.cart-badge {
    position: absolute;
    top: -6px;
    inset-inline-end: -8px;
    background: var(--primary);
    color: #1a1310;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    padding: 1px 5px;
}
.cart-btn {
    border: 1px solid #443725;
    background: #241c15;
    color: #f5ede1;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
}

.cart-btn-danger {
    border-color: #c0524a;
    color: #c0524a;
    background: transparent;
}
.sticky-cart-bar {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    background: var(--primary);
    color: #1a1310;
    padding: 18px 20px calc(18px + env(safe-area-inset-bottom, 0px));
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    text-decoration: none;
    z-index: 20;
}

.floating-service-btn {
    position: fixed;
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    inset-inline-end: 20px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--primary);
    color: #1a1310;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
    z-index: 25;
}

.menu-body {
    padding-bottom: 70px;
}



.service-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1f1811;
    border: none;
    border-radius: 12px;
    padding: 14px;
    color: #f5ede1;
    font-size: 14px;
    width: 100%;
    text-align: start;
}

    .service-option input[type="text"] {
        background: #241c15;
        border: 1px solid #443725;
        color: #f5ede1;
        border-radius: 8px;
        padding: 8px 10px;
    }


.product-price {
    display: block;
    text-align: left;
    direction: ltr;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 13px;
    margin-left: 8px;
}

.price-new {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.gallery-slider-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 12px;
}

.gallery-slider-track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: gallery-scroll 20s linear infinite;
}

.gallery-slide-img {
    width: 180px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

@@keyframes gallery-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.gallery-slider-viewport:hover .gallery-slider-track {
    animation-play-state: paused;
}
.gallery-fade-viewport {
    position: relative;
    width: 100%;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-fade-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

    .gallery-fade-slide.active {
        opacity: 1;
    }

/* ============ Desktop / Tablet Responsiveness ============ */
@media (min-width: 768px) {
    .menu-header,
    .menu-body {
        max-width: 900px;
        margin: 0 auto;
    }
    @media (min-width: 768px) {
        /* داخل نفس القاعدة الموجودة، ضيف السطر ده */
        section img[style*="height:200px"] {
            height: 320px;
        }
    }

    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-card {
        flex-direction: column;
    }

        .product-card img {
            width: 100%;
            height: 140px;
        }

    .sticky-cart-bar,
    .floating-service-btn {
        max-width: 900px;
        margin: 0 auto;
        left: 0;
        right: 0;
    }
}

@media (min-width: 1024px) {
    .menu-header,
    .menu-body {
        max-width: 1100px;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: #1a1310;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 16px;
    z-index: 5;
}

.hero-banner {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 320px;
    width: 100%;
}

.hero-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 2rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-card {
    min-width: 130px;
    max-width: 130px;
    background: #1f1811;
    border: 1px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}
.featured-card-img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}

.featured-card-body {
    padding: 8px;
}

.featured-card-name {
    font-size: 12px;
    font-weight: 500;
    margin: 0 0 6px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.featured-card-price {
    font-size: 11px;
    color: var(--text-muted);
}

.featured-card-add {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: #1a1310;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

    .section-divider span {
        width: 30px;
        height: 1px;
        background: var(--primary);
    }

    .section-divider i {
        color: var(--primary);
        font-size: 20px;
    }

.gallery-card {
    min-width: 220px;
    max-width: 220px;
    background: #1f1811;
    border: 1px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.gallery-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.category-card {
    background: #1f1811;
    border: 1px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.category-card-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.category-card-name {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    padding: 10px;
}

.back-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 12px;
}
body {
    overflow-x: hidden;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#qtyInput {
    width: 50px;
    text-align: center;
}