* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #0d0b10;
    color: #fff;
    min-height: 100vh;
}

.menu-page {
    min-height: 100vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.menu-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(
        rgba(8, 8, 8, 0.70),
        rgba(18, 10, 22, 0.86)
    );
    z-index: 0;
    pointer-events: none;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 20px 0 50px;
}

.header {
    text-align: center;
    padding: 28px 15px 22px;
}

.logo {
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
    margin-bottom: 12px;
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #f2c46d;
    text-shadow: 0 0 12px rgba(242, 196, 109, 0.30);
}

.section-title {
    font-size: 1.35rem;
    margin: 22px 0 14px;
    color: #f2c46d;
    border-left: 4px solid #f2c46d;
    padding-left: 12px;
}

.categories-wrapper {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 10px;
    margin-bottom: 18px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 14px;
}

.category-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(242, 196, 109, 0.20);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.25s ease;
    text-align: center;
    backdrop-filter: blur(5px);
    min-width: 0;
}

.category-card:hover,
.category-card.active {
    transform: translateY(-4px);
    border-color: #f2c46d;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    background: rgba(242, 196, 109, 0.12);
}

.category-card img {
    width: 100%;
    height: 95px;
    object-fit: cover;
    display: block;
}

.category-name {
    padding: 10px 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.products-wrapper {
    margin-top: 22px;
}

.product-section {
    animation: fadeIn 0.25s ease;
}

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

.product-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: 0.25s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(242, 196, 109, 0.45);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.product-content {
    padding: 16px;
}

.product-title {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.product-description {
    font-size: 0.92rem;
    color: #d7d7d7;
    min-height: 48px;
    line-height: 1.45;
}

.product-price {
    margin-top: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f2c46d;
}

.empty-box {
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

/* MOBİL VE TABLET: KATEGORİLER YATAY KAYDIRMALI */
@media (max-width: 768px) {
    .container {
        width: 94%;
        padding: 14px 0 40px;
    }

    .header {
        padding: 18px 10px 16px;
    }

    .logo {
        max-width: 120px;
        max-height: 120px;
    }

    .site-title {
        font-size: 1.45rem;
    }

    .section-title {
        font-size: 1.12rem;
        margin: 18px 0 12px;
    }

    .categories-wrapper {
        padding: 8px;
        overflow: hidden;
    }

    .categories-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 12px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .categories-grid::-webkit-scrollbar {
        display: none;
    }

    .category-card {
        flex: 0 0 132px !important;
        min-width: 132px !important;
        max-width: 132px !important;
        scroll-snap-align: start;
        border-radius: 14px;
    }

    .category-card img {
        height: 82px;
    }

    .category-name {
        font-size: 0.85rem;
        padding: 9px 6px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-card img {
        height: 210px;
    }

    .product-content {
        padding: 14px;
    }

    .product-title {
        font-size: 1.04rem;
    }

    .product-description {
        min-height: auto;
        font-size: 0.9rem;
    }

    .menu-page {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.28rem;
    }

    .category-card {
        flex: 0 0 120px !important;
        min-width: 120px !important;
        max-width: 120px !important;
    }

    .category-card img {
        height: 76px;
    }

    .product-card img {
        height: 190px;
    }
}