/* Стили страницы каталога и меню: hero-баннер, табы категорий, поиск, сетка блюд и карточки товаров. */

/* =========================
   MENU HERO
========================= */

.menu-hero {
    position: relative;
    width: 100%;
    min-height: 635px;
    overflow: hidden;
}

.menu-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(0, 0, 0, .92) 0%,
            rgba(0, 0, 0, .75) 35%,
            rgba(0, 0, 0, .35) 65%,
            rgba(0, 0, 0, .05) 100%);
    z-index: 1;
}

.menu-hero__content {
    position: relative;
    z-index: 2;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
}

.menu-hero__content h1 {
    font-family: "Arsenal", serif;
    font-size: 86px;
    line-height: .95;
    margin-bottom: 30px;
}

.menu-hero__content span {
    color: #FF6500;
}

.menu-hero__content p {
    font-size: 24px;
    line-height: 1.7;
    color: #b5b5b5;
}

.menu-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.menu-hero .container {
    position: relative;
    z-index: 2;
    height: 520px;
    display: flex;
    align-items: center;
}

/* =========================
   CATALOG
========================= */

.catalog {
    padding: 40px 0 90px;
}

.catalog-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    background: #0b0b0b;
    border: 1px solid #1a1a1a;
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 35px;
}

/* =========================
   CATEGORIES
========================= */

.categories {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-content {
    display: none;
}

.category-content.active {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-btn {
    height: 52px;
    padding: 0 26px;
    border-radius: 12px;
    background: transparent;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    transition: .3s ease;
}

.category-btn:hover {
    color: #FF6500;
}

.category-btn.active {
    background: #151515;
    color: #FF6500;
}

/* =========================
   SEARCH
========================= */

.search {
    width: 310px;
    height: 52px;
    border-radius: 12px;
    background: #151515;
    display: flex;
    align-items: center;
    padding: 0 18px;
}

.search img {
    width: 22px;
    height: 22px;
    margin-right: 12px;
}

.search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: white;
    font-size: 16px;
}

.search input::placeholder {
    color: #777;
}

/* =========================
   PRODUCTS GRID
========================= */

/* .products-grid is merged into .category-content.active */

/* =========================
   CARD
========================= */

.product-card {
    width: 100%;
    background: #0f0f0f;
    border: 1px solid #242424;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: #FF6500;
    box-shadow:
        0 0 25px rgba(255, 115, 0, .15);
}

.product-image {
    width: 100%;
    height: 220px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-content h3 {
    min-height: 58px;
    /* одинаковая высота под название */
    font-size: 24px;
    margin-bottom: 10px;
}

.product-content p {
    font-size: 15px;
    line-height: 1.5;
    color: #b5b5b5;
    flex-grow: 1;
    margin-bottom: 15px;
}

.price {
    font-size: 30px;
    font-weight: 700;
    color: #FF6500;
    margin: 0 0 15px 0;
}

/* =========================
   ADD TO CART
========================= */

.add-cart {
    width: 100%;
    height: 54px;
    border: 2px solid #FF6500;
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: .3s ease;
}

.add-cart img {
    width: 18px;
    height: 18px;
    transition: .3s ease;
}

.add-cart:hover {
    background: #FF6500;
}

.add-cart:hover img {
    transform: scale(1.1);
}

.mobile-cart {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
}

.mobile-cart__icon {
    width: 22px;
    height: 22px;
}

.mobile-cart__text {
    flex: 1;
}

/* бейдж количества */
.mobile-cart__count {
    background: #ff3b30;
    color: #fff;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-cart:hover {
    opacity: 0.8;
}

.mobile-cart__count {
    animation: pop 0.2s ease;
}

@keyframes pop {
    from { transform: scale(0.5); }
    to { transform: scale(1); }
}

/* =========================
   APPEAR ANIMATION
========================= */

.product-card {
    animation:
        cardFade .7s ease;
}

@keyframes cardFade {
    from {
        opacity: 0;
        transform:
            translateY(30px);
    }
    to {
        opacity: 1;
        transform:
            translateY(0);
    }
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0b0b0b;
}

::-webkit-scrollbar-thumb {
    background: #FF6500;
    border-radius: 50px;
}

/* =========================
   1400
========================= */

@media (max-width:1400px) {

    .category-content.active {

        grid-template-columns:
            repeat(3, 1fr);

    }
}

/* =========================
   1200
========================= */

@media (max-width:1200px) {

    .menu-hero__content h1 {
        font-size: 72px;
    }

    .menu-hero__content p {
        font-size: 20px;
    }

    .product-content h3 {
        font-size: 24px;
    }

    .price {
        font-size: 28px;
    }
}

/* =========================
   992
========================= */

@media (max-width:992px) {

    .menu-hero {
        min-height: 420px;
    }

    .menu-hero__content {
        min-height: 420px;
    }

    .menu-hero__image {
        width: 100%;
        opacity: .25;
    }

    .catalog-top {
        flex-direction: column;
        align-items: stretch;
    }

    .search {
        width: 100%;
    }

    .category-content.active {

        grid-template-columns:
            repeat(2, 1fr);

    }
}

/* =========================
   768
========================= */

@media (max-width:768px) {

    .menu-hero__content h1 {
        font-size: 56px;
    }

    .menu-hero__content p {
        font-size: 18px;
    }

    .categories {
        justify-content: center;
    }

    .category-btn {
        font-size: 16px;
        padding: 0 18px;
    }

    .product-image {
        height: 220px;
    }

    .product-content h3 {
        font-size: 22px;
    }
}

/* =========================
   576
========================= */

@media (max-width:576px) {

    .menu-hero {
        min-height: 360px;
    }

    .menu-hero__content {
        min-height: 360px;
    }

    .menu-hero__content h1 {
        font-size: 42px;
    }

    .menu-hero__content p {
        font-size: 16px;
    }

    .category-content.active {

        grid-template-columns:
            1fr;

    }

    .product-image {
        height: 260px;
    }

    .product-content h3 {
        font-size: 24px;
    }

    .price {
        font-size: 30px;
    }
}

/* =========================
   375
========================= */

@media (max-width:375px) {

    .catalog {
        padding: 25px 0 60px;
    }

    .category-btn {
        width: 100%;
    }

    .menu-hero__content h1 {
        font-size: 36px;
    }

    .product-image {
        height: 220px;
    }
}