* {
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
}

body {
    /* max-width: 480px; Removed for responsiveness */
    margin: 0 auto;
    background: #121212;
    min-height: 100vh;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #121212;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.hero-image {
    height: 280px;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), url('/public/images/restorant-image.jpg') no-repeat;
    background-size: cover;
    background-position: center;
}

/* Category Tabs */
.category-tabs-wrapper {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #121212;
    padding: 12px 20px;
    transition: box-shadow 0.3s ease;
}

.category-tabs-wrapper.is-sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex-shrink: 0;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.25s ease;
}

.category-tab:active {
    transform: scale(0.95);
}

.category-tab.active {
    background: #4e342e;
    border-color: #6d4c41;
    color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

.product-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 5;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #eae2dc;
}

.product-card:active {
    transform: scale(0.98);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.0) 0%, rgb(0 0 0 / 0%) 70%, rgba(0, 0, 0, 0.75) 100%);
}

.product-add {
    align-self: flex-end;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.product-info {
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.product-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 4px 0;
}

.product-price {
    font-size: 13px;
    font-weight: 400;
    font-family: Arial, sans-serif;
    margin: 0;
}

.modal {
    position: fixed;
    inset: 0;
    background: #121212;
    z-index: 1000;
    display: none;
    overflow-y: auto;
}

.modal.active {
    display: block;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Grid class replaced by Tailwind */

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Skeleton Loading */
.skeleton-card {
    background: #2a2a2a;
    pointer-events: none;
}

.skeleton-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        #2a2a2a 0%,
        #2a2a2a 40%,
        #3a3a3a 50%,
        #2a2a2a 60%,
        #2a2a2a 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-text {
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.skeleton-text-name {
    width: 70%;
    height: 14px;
    margin-bottom: 6px;
}

.skeleton-text-price {
    width: 40%;
    height: 12px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Product card load animation */
.product-card-loaded {
    animation: cardFadeIn 0.3s ease-out;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}