/* =========================================
   GLOBAL STYLES & SCROLLBAR
   ========================================= */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(197, 47, 47, 1) #1e1e1e;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(197, 47, 47, 1);
    border-radius: 6px;
    border: 3px solid #1e1e1e;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #ff3333;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
li {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

body {
    color: rgba(255, 255, 255, 1);
    font-family: 'Open Sans', sans-serif;

    /* Красный центр, черные края */
    background: radial-gradient(circle at center top, #240b0b, #000000);

    min-height: 100vh;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Roboto Slab', serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}


/* =========================================
   HEADER
   ========================================= */
header {
    margin: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 16, 0.92), rgba(30, 30, 30, 1));
}

.header__top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px;
}

.logo__img {
    display: block;
    width: 95px;
    height: auto;
}

.menu__list {
    display: flex;
    align-items: center;
    gap: 50px;
}

.menu__item {
    display: block;
    position: relative;
}

.menu__link {
    display: inline-block;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    padding-bottom: 5px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.menu__link:hover {
    color: #ffffff;
    border-bottom-color: rgba(197, 47, 47, 1);
}

/* Dropdown Menu (Product) */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 250px;
    background-color: #1e1e1e;
    padding: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.menu__dropdown:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sub-menu a {
    display: block;
    padding: 10px 20px;
    color: #b0b0b0;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.2s;
}

.sub-menu a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(197, 47, 47, 1);
    padding-left: 25px;
    border-left: 2px solid rgba(197, 47, 47, 1);
}

.menu__dropdown>.menu__link::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    margin-left: 8px;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.3s ease;
}

.menu__dropdown:hover>.menu__link::after {
    transform: rotate(-135deg) translateY(-2px);
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    user-select: none;
    font-family: 'Montserrat', sans-serif;
}

details>summary {
    list-style: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

details>summary:hover {
    color: rgba(197, 47, 47, 1);
}

details>summary::-webkit-details-marker {
    display: none;
}

details>summary::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.3s ease;
}

details[open]>summary::after {
    transform: rotate(-135deg) translateY(-2px);
}

.dropdown-menu {
    position: absolute;
    top: 150%;
    right: 0;
    background-color: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    min-width: 140px;
    padding: 10px 0;
    z-index: 100;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #b0b0b0;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(197, 47, 47, 1);
    padding-left: 25px;
    border-left: 2px solid rgba(197, 47, 47, 1);
}

/* =========================================
   BANNER SECTION
   ========================================= */
.banner-section {
    padding-top: 50px;
    padding-bottom: 50px;
}

.banner-section__slider {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.banner-section__slider-item {
    outline: none;
}

.banner-link {
    display: block;
}

.banner-section__slider-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.slick-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
}

.slick-dots li {
    margin: 0;
}

.slick-dots button {
    font-size: 0;
    width: 12px;
    height: 12px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
}

.slick-active button {
    background-color: rgba(197, 47, 47, 1);
    border-color: rgba(197, 47, 47, 1);
    transform: scale(1.2);
}

.slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    font-size: 0;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slick-arrow::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    position: absolute;
    top: 50%;
    left: 50%;
}

.slick-prev {
    left: 30px;
}

.slick-prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.slick-next {
    right: 30px;
}

.slick-next::before {
    transform: translate(-65%, -50%) rotate(45deg);
}

.slick-arrow:hover {
    background-color: rgba(197, 47, 47, 1);
    border-color: rgba(197, 47, 47, 1);
}

/* =========================================
   PRODUCT CARD (BASE STYLES)
   ========================================= */
.product-card {
    /* Легкий градиент сверху вниз */
    background: linear-gradient(180deg, #262626 0%, #111111 100%);

    /* Тонкая рамка, чтобы отделить от фона сайта */
    border: 1px solid #333;

    border-radius: 20px 20px 10px 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;

    /* Легкая тень */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* При наведении: рамка красная, тень красная */
.product-card:hover {
    border-color: rgba(197, 47, 47, 1);
    box-shadow: 0 10px 30px rgba(197, 47, 47, 0.15);
    transform: translateY(-5px);
    /* Чуть всплывает */
}

.product-card__img-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-card__img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card__content {
    padding: 0 20px 60px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 10px;
    min-height: 42px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__model {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #888;
}

.product-card__price {
    margin-top: auto;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: rgba(197, 47, 47, 1);
    text-transform: uppercase;
}

.product-card__btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(197, 47, 47, 1);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-align: center;
    padding: 15px 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-card__btn:hover {
    background-color: #c41e1e;
}

.product-card:hover .product-card__btn {
    transform: translateY(0);
}

/* =========================================
   HOT SALE SECTION
   ========================================= */
.hot-sale {
    padding: 60px 0 80px;
}

.hot-sale__header {
    text-align: center;
    margin-bottom: 40px;
}

.hot-sale__header .section-title {
    margin-bottom: 5px;
}

.hot-sale__view-more {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
    display: inline-block;
}

.hot-sale__view-more:hover {
    color: rgba(197, 47, 47, 1);
    border-bottom-color: rgba(197, 47, 47, 1);
}

.hot-sale__slider {
    margin: 0 -5px;
}

.hot-sale__slider .slick-slide>div {
    margin-bottom: 25px;
}

.hot-sale__item {
    padding: 0 5px;
    outline: none;
    width: 100% !important;
    display: block !important;
}

.hot-sale__item .product-card {
    height: 420px;
}

.hot-sale__item .product-card__img-box {
    height: 200px;
}

.hot-sale__slider .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 0;
    cursor: pointer;
    transition: 0.3s;
}

.hot-sale__slider .slick-arrow::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    position: absolute;
    top: 50%;
    left: 50%;
}

.hot-sale__slider .slick-prev {
    left: -40px;
}

.hot-sale__slider .slick-prev::before {
    transform: translate(-30%, -50%) rotate(-135deg);
}

.hot-sale__slider .slick-next {
    right: -40px;
}

.hot-sale__slider .slick-next::before {
    transform: translate(-70%, -50%) rotate(45deg);
}

.hot-sale__slider .slick-arrow:hover {
    border-color: rgba(197, 47, 47, 1);
    background-color: rgba(197, 47, 47, 1);
}

/* =========================================
   POPULAR PRODUCTS SECTION
   ========================================= */
.popular-products {
    padding: 0 0 80px;
}

.popular-products__header {
    text-align: center;
    margin-bottom: 40px;
}

.popular-products__view-more {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
    display: inline-block;
}

.popular-products__view-more:hover {
    color: rgba(197, 47, 47, 1);
    border-bottom-color: rgba(197, 47, 47, 1);
}

.popular-products__inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Колонки */
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.popular-products__item {
    width: 100%;
}

.popular-products__item .product-card {
    height: 380px;
}

.popular-products__item .product-card__img-box {
    height: 160px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: #0b0b0b;
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer__col {
    flex: 1;
    min-width: 200px;
}

.footer__col--logo {
    flex: 0 0 200px;
    text-align: center;
}

.footer__logo img {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.socials__link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s;
}

.socials__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.socials__link:hover {
    transform: scale(1.1);
}

.footer__title {
    font-family: 'Roboto Slab', serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: #fff;
}

.footer__menu li {
    margin-bottom: 15px;
}

.footer__menu a {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: color 0.3s;
}

.footer__menu a:hover {
    color: rgba(197, 47, 47, 1);
}

.contacts-list li {
    margin-bottom: 15px;
}

.contacts-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    transition: color 0.3s;
}

.contacts-list a:hover {
    color: rgba(197, 47, 47, 1);
}

.contacts-list img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.footer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: rgba(197, 47, 47, 1);
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.footer__btn img {
    width: 24px;
    height: 24px;
}

.footer__btn:hover {
    background-color: #c41e1e;
}

/* =========================================
   SHOP PAGE
   ========================================= */
.main {
    padding: 60px 0;
}

.shop-page {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.shop-sidebar {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 5px;
    align-self: start;
}

.catalog-menu__header {
    background-color: rgba(197, 47, 47, 1);
    color: #fff;
    font-family: 'Roboto Slab', serif;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    padding: 15px;
    margin: -20px -20px 20px -20px;
}

.catalog-menu__item a {
    display: block;
    padding: 12px 15px;
    color: #ccc;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    border-bottom: 1px solid #333;
    transition: all 0.3s;
}

.catalog-menu__item:last-child a {
    border-bottom: none;
}

.catalog-menu__item a:hover,
.catalog-menu__item.active a {
    color: #fff;
    background-color: #252525;
}

.breadcrumbs {
    font-size: 14px;
    color: #888;
    margin-bottom: 25px;
}

.breadcrumbs a {
    color: #aaa;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: #fff;
}

.shop-content__title {
    font-family: 'Roboto Slab', serif;
    font-size: 42px;
    color: #fff;
}

.shop-content__subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    color: #ccc;
    margin-top: 10px;
    margin-bottom: 40px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.wide-category-card {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 30px 40px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wide-category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 47, 47, 1);
    box-shadow: 0 10px 30px rgba(197, 47, 47, 0.2);
}

.wide-category-card__content {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-grow: 1;
}

.wide-category-card__title-wrapper {
    padding-bottom: 12px;
    border-bottom: 1px solid #444;
}

.wide-category-card__title-wrapper h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.wide-category-card__price {
    background-color: rgba(197, 47, 47, 1);
    padding: 8px 15px;
    border-radius: 5px;
}

.wide-category-card__price span {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.wide-category-card__img-wrapper {
    flex-shrink: 0;
    width: 50%;
    text-align: right;
}

.wide-category-card__img-wrapper img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    transition: transform 0.4s;
}

.wide-category-card:hover .wide-category-card__img-wrapper img {
    transform: scale(1.05);
}

/* =========================================
   MEDIA QUERIES (АДАПТИВНОСТЬ)
   ========================================= */

@media (max-width: 1050px) {

    /* Меню на планшетах (5 кнопок) */
    .header__top-inner .logo {
        display: none;
    }

    .header__top-inner {
        justify-content: center;
    }

    .header__top-inner .menu {
        width: 100%;
    }

    .menu__list {
        width: 100%;
        justify-content: space-around;
        gap: 15px;
    }

    .menu__link,
    .lang-dropdown>summary {
        font-size: 13px;
        padding: 10px 5px;
        border-bottom: none !important;
    }
}

@media (max-width: 900px) {

    /* Футер на мобильных */
    .footer__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer__col {
        width: 100%;
        margin-bottom: 30px;
    }

    .footer__col--logo {
        flex: auto;
    }

    .socials,
    .contacts-list a {
        justify-content: center;
    }

    /* Shop Page на мобильных */
    .shop-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 750px) {

    /* Меню на телефонах (3 кнопки) */
    .menu__item:nth-child(3),
    .menu__item:nth-child(4) {
        display: none;
    }

    .menu__link,
    .lang-dropdown>summary {
        font-size: 12px;
    }
}

@media (max-width: 600px) {

    /* Сетки и карточки на телефонах */
    .hot-sale,
    .popular-products {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hot-sale__slider {
        margin: 0;
    }

    .hot-sale__item {
        padding: 0;
    }

    .popular-products__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .popular-products__item:nth-child(n+5) {
        display: none;
    }

    .product-card {
        height: auto;
        min-height: 380px;
    }

    .product-card__content {
        padding-bottom: 20px;
    }

    .product-card__btn {
        position: static;
        transform: none;
        border-radius: 0 0 10px 10px;
    }

    /* Адаптив для широкой карточки */
    .wide-category-card {
        flex-direction: column;
        align-items: stretch;
    }

    .wide-category-card__content {
        margin-bottom: 30px;
    }

    .wide-category-card__img-wrapper {
        width: 100%;
        text-align: center;
    }
}


/* =========================================
   POPULAR PRODUCTS SECTION (2 КОЛОНКИ НА ДЕСКТОПЕ)
   ========================================= */

/* =========================================
   POPULAR PRODUCTS (4 КОЛОНКИ НА ДЕСКТОПЕ)
   ========================================= */

.popular-products {
    padding: 0 0 80px;
}

.popular-products__header {
    text-align: center;
    margin-bottom: 40px;
}

.popular-products__view-more {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
    display: inline-block;
}

.popular-products__view-more:hover {
    color: rgba(197, 47, 47, 1);
    border-bottom-color: rgba(197, 47, 47, 1);
}

/* --- СЕТКА (GRID) --- */
.popular-products__inner {
    display: grid;
    /* ГЛАВНОЕ ИЗМЕНЕНИЕ: Возвращаем 4 колонки */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;

    /* Уменьшенная ширина сетки (оставляем, чтобы товары были компактнее) */
    max-width: 1000px;
    margin: 0 auto;
}

/* Размеры карточек в этой секции */
.popular-products__item .product-card {
    height: 380px;
}

.popular-products__item .product-card__img-box {
    height: 160px;
}

/* --- АДАПТИВНОСТЬ --- */

/* На планшетах делаем 2 колонки */
@media (max-width: 1100px) {
    .popular-products__inner {
        max-width: none;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* На телефонах оставляем 1 колонку */
@media (max-width: 600px) {
    .popular-products__inner {
        grid-template-columns: 1fr;
    }

    /* И показываем только первые 4 товара */
    .popular-products__item:nth-child(n+5) {

        display: none;
    }

}



@media (max-width: 600px) {
    /* ... другие стили ... */

    .popular-products__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .popular-products__item:nth-child(n+5) {
        display: none;
    }

    /* ... другие стили ... */
}


/* =========================================
   SHOP - СТРАНИЦА КАТЕГОРИИ (SUPERCHARGER)
   ========================================= */

/* --- САЙДБАР С ЛОГОТИПОМ --- */
.shop-sidebar .footer__logo {
    display: block;
    text-align: center;
    margin-bottom: 30px;
}

.shop-sidebar .footer__logo img {
    width: 180px;
    /* Увеличиваем лого в сайдбаре */
}

/* --- КОНТЕНТ --- */
/* =========================================
   ИСПРАВЛЕННЫЕ КАРТОЧКИ КАТЕГОРИЙ
   ========================================= */

.category-grid {
    display: grid;
    /* repeat(2, 1fr) означает: 2 колонки одинаковой ширины */
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    /* Расстояние между карточками */
    width: 100%;
}

.category-card {
    display: flex;
    flex-direction: column;
    /* Элементы внутри встают в колонку */
    justify-content: space-between;
    /* Название сверху, кнопки снизу, картинка по центру */

    background: #151515;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 500px;
    /* Фиксируем минимальную высоту всей карточки */
}

.category-card:hover {
    border-color: rgba(197, 47, 47, 1);
    box-shadow: 0 10px 30px rgba(197, 47, 47, 0.2);
    transform: translateY(-5px);
}

.category-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

/* Контейнер для картинки (ГЛАВНЫЙ ФИКС) */
.category-card__img-box {
    flex-grow: 1;
    /* Занимает всё свободное место, толкая футер вниз */
    display: flex;
    align-items: center;
    /* Центрирует картинку по вертикали */
    justify-content: center;
    margin-bottom: 20px;
    height: 250px;
    /* Ограничиваем высоту области для фото */
}

.category-card__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Картинка не сплющится и не вылезет за рамки */
}

.category-card__footer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    /* Прижимает футер строго к низу карточки */
}

.category-card__price {
    background-color: rgba(197, 47, 47, 1);
    padding: 10px 20px;
    border-radius: 5px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    white-space: nowrap;
}

.category-card__btn {
    background-color: #2a2a2a;
    padding: 10px 20px;
    border-radius: 5px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.category-card:hover .category-card__btn {
    background-color: #3a3a3a;
}

/* --- АДАПТИВНОСТЬ --- */
@media(max-width: 900px) {
    .category-grid {
        grid-template-columns: 1fr;
        /* Карточки одна под другой */
    }
}


/* =========================================
   СЕТКА ТОВАРОВ НА СТРАНИЦЕ МАРКИ
   ========================================= */

.product-grid {
    display: grid;
    /* 3 КОЛОНКИ */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Используем те же размеры, что и в "Hot Sale" */
.product-grid__item .product-card {
    height: 420px;
}

.product-grid__item .product-card__img-box {
    height: 200px;
}

/* --- АДАПТИВНОСТЬ СЕТКИ ТОВАРОВ --- */
@media(max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 товара на планшетах */
    }
}

@media(max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        /* 1 товар на телефонах */
    }
}

/* =========================================
   СТИЛИ ДЛЯ ФИЛЬТРАЦИИ ТОВАРОВ (ИСПРАВЛЕННЫЕ)
   ========================================= */

.product-grid__item {
    /* Плавный переход для появления/исчезновения (теперь не нужен, но можно оставить) */
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Класс, который мы будем добавлять через JS, чтобы спрятать товар */
.product-grid__item.hidden {
    /* display: none; мгновенно убирает элемент, позволяя сетке перестроиться */
    display: none;
}


/* --- ПЛАВАЮЩИЙ ВИДЖЕТ --- */
.floating-widget {
    position: fixed;
    right: 60px;
    bottom: 40px;
    /* Исходное положение */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;

    /* ДОБАВИТЬ ЭТО: Плавность движения */
    transition: bottom 0.4s ease-in-out;
}

/* ЭТОТ КЛАСС БУДЕМ ДОБАВЛЯТЬ JS-ом */
.floating-widget.shift-up {
    bottom: 3 !important;
    /* Поднимаем кнопки выше панели */
}

/* Для мобильных можно поднять еще чуть выше, если нужно */
@media (max-width: 480px) {
    .floating-widget.shift-up {
        bottom: 120px !important;
    }
}

/* Общий стиль кнопок */
.widget-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;

    padding: 0;
    /* ВОТ ЭТО ВАЖНО, чтобы иконка была по центру */
}

.widget-btn svg {
    width: 40px;
    height: 40px;
}

.widget-btn:hover {
    transform: translateY(-3px);
    /* Чуть всплывает при наведении */
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* ЦВЕТА */

/* WhatsApp (Зеленый) */
.btn-whatsapp {
    background-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: #20b858;
}

/* Кнопка Наверх (Серая) */
.btn-scroll-top {
    background-color: #999999;
    /* Серый как на картинке */
    opacity: 0;
    /* Скрыта по умолчанию */
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

/* Класс для показа кнопки (добавляется JS) */
.btn-scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.btn-scroll-top:hover {
    background-color: #777;
}