/* Food gallery — dual marquee */

.food-gallery-marquee {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    overflow: hidden;
    max-width: 52rem;
    margin: 0 auto;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.food-gallery-marquee__row {
    display: flex;
    width: max-content;
    gap: 0.55rem;
    animation: foodGalleryMarquee 38s linear infinite;
}

.food-gallery-marquee__row--reverse {
    animation-direction: reverse;
}

.food-gallery-marquee__row:hover {
    animation-play-state: paused;
}

@keyframes foodGalleryMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.food-gallery-marquee__item {
    position: relative;
    flex: 0 0 auto;
    width: 8rem;
    height: 6.25rem;
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid rgba(55, 65, 81, 0.75);
    background: #1f2937;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.food-gallery-marquee__item:hover {
    border-color: rgba(248, 113, 113, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.55);
}

.food-gallery-marquee__item:focus-visible {
    outline: 2px solid #f87171;
    outline-offset: 2px;
}

@media (min-width: 640px) {
    .food-gallery-marquee__item {
        width: 9.5rem;
        height: 7rem;
    }
}

.food-gallery-marquee__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.food-gallery-marquee__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.35rem 0.45rem 0.42rem;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1.25;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 640px) {
    .food-gallery-marquee__caption {
        font-size: 0.65rem;
        padding-bottom: 0.48rem;
    }
}

.food-gallery-hint {
    text-align: center;
    margin-top: 0.55rem;
    font-size: 0.72rem;
    color: #6b7280;
}

@media (prefers-reduced-motion: reduce) {
    .food-gallery-marquee__row {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }

    .food-gallery-marquee__item:hover {
        transform: none;
    }
}

/* Product modal */
.food-product-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

@media (min-width: 640px) {
    .food-product-modal {
        align-items: center;
        padding: 1rem;
    }
}

.food-product-modal.hidden {
    display: none;
}

.food-product-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(6px);
}

.food-product-modal__panel {
    position: relative;
    width: 100%;
    max-width: 20rem;
    max-height: min(82vh, 520px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 1rem 1rem 0 0;
    border: 1px solid rgba(55, 65, 81, 0.9);
    border-bottom: none;
    background: #111827;
    box-shadow: 0 -12px 40px -16px rgba(0, 0, 0, 0.65);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (min-width: 640px) {
    .food-product-modal__panel {
        max-width: 22rem;
        max-height: min(85vh, 480px);
        border-radius: 0.85rem;
        border-bottom: 1px solid rgba(55, 65, 81, 0.9);
        box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.75);
    }
}

.food-product-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 1px solid #374151;
    background: rgba(17, 24, 39, 0.92);
    color: #e5e7eb;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.food-product-modal__close:hover {
    background: #374151;
    color: #fff;
}

.food-product-modal__img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    border-radius: 1rem 1rem 0 0;
}

@media (min-width: 640px) {
    .food-product-modal__img {
        aspect-ratio: 3 / 2;
        border-radius: 0.85rem 0.85rem 0 0;
    }
}

.food-product-modal__body {
    padding: 0.75rem 0.85rem 1rem;
}

@media (min-width: 640px) {
    .food-product-modal__body {
        padding: 0.85rem 0.95rem 1rem;
    }
}

.food-product-modal__category {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f87171;
    margin: 0 0 0.25rem;
}

.food-product-modal__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.25rem;
    line-height: 1.25;
    padding-right: 1.5rem;
}

@media (min-width: 640px) {
    .food-product-modal__title {
        font-size: 1.15rem;
    }
}

.food-product-modal__price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fca5a5;
    margin: 0 0 0.45rem;
}

.food-product-modal__desc {
    font-size: 0.8rem;
    color: #d1d5db;
    line-height: 1.45;
    margin: 0 0 0.55rem;
}

.food-product-modal__note {
    font-size: 0.72rem;
    color: #fde68a;
    background: rgba(120, 53, 15, 0.25);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 0.5rem;
    padding: 0.45rem 0.6rem;
    line-height: 1.4;
    margin: 0 0 0.7rem;
}

.food-product-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.food-product-modal__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: 0.6rem;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 640px) {
    .food-product-modal__btn {
        font-size: 0.86rem;
    }
}

.food-product-modal__btn--primary {
    background: #ef4444;
    color: #fff;
}

.food-product-modal__btn--primary:hover {
    background: #dc2626;
}

.food-product-modal__btn--secondary {
    background: #1f2937;
    color: #e5e7eb;
    border: 1px solid #374151;
}

.food-product-modal__btn--secondary:hover {
    background: #374151;
    color: #fff;
}
