/* Стили из второго шаблона */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Шапка - исправленное выравнивание */
.header-container-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff;
    position: relative;
    min-height: 60px;
}

.header-left {
    display: flex;
    align-items: center;
    flex: 1;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 20px;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    color: #000;
    white-space: nowrap;
    height: 100%;
}

.logo img {
    height: 45px;
    width: auto;
}

.navigation {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    height: 100%;
}

.main-menu {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Исправленные кнопки с фиксированной высотой */
.btn_n {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 20px;
    margin-right: 10px;
    background: #2563eb;
    border: none;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 40px;
    /* Фиксированная высота */
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    min-width: auto;
}

/* .btn:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
} */


.menu-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 23px;
    height: 23px;
    padding: 5px;
    color: rgb(0, 0, 0);
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    margin-left: 4px;
    border: 1px solid black;
}


.btn_n svg {
    margin-right: 8px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-outline {
    background: transparent;
    border: 1px solid #bfb6b6;
    color: #000;
}

.btn-outline:hover {
    background: #fafafa;
}

.btn-primaryry {
    background: #000000;
    color: #fff;
}

.btn-primaryry:hover {
    background: #434344;
}

.menu-links {
    display: flex;
    margin-left: 5px;
    align-items: center;
    height: 100%;
}

.menu-links a {
    margin-right: 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    font-size: 14px;
}

.menu-links a:hover {
    color: #000;
}



.menu-burger {
    display: none; 
    margin-left: 15px;
    order: 2;
}

.burger-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    background: none;
    border: none;
    padding: 8px;
    margin: 0;
    cursor: pointer;
    
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    
    border-radius: 8px;
    transition: background-color 0.3s;
    
    -webkit-tap-highlight-color: transparent;
    color: #333; 
    font-size: 16px; 
}

.burger-button svg {
    width: 50px; 
    height: 50px;
    display: block;
}


.burger-button:hover {
    background-color: #f5f5f5;
}

.burger-button:active {
    background-color: #e0e0e0;
}

.burger-button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .menu-burger {
        display: flex;
        align-items: center;
    }
    
    
    .burger-button svg {
        min-width: 45px;
        min-height: 40px;
    }
}



.account-block {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    position: relative;
    gap: 12px;
    height: 100%;
}

/* Выравниваем элементы аккаунта по центру */
.account-money,
.account-presents,
.account-mail,
.account-notification {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0;
    height: 44px;
    /* Такая же высота как у кнопок */
    font-size: 14px;
}

.account-money {
    font-weight: 500;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.account-presents,
.account-mail,
.account-notification {
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.account-presents:hover,
.account-mail:hover,
.account-notification:hover {
    background-color: #f5f5f5;
}

.account-presents svg,
.account-mail svg,
.account-notification svg {
    width: 20px;
    height: 20px;
}

.account-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    /* Такая же высота как у кнопок */
    width: 44px;
}

.account-image img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    display: block;
}

.account-image:hover img {
    border-color: #112bc0;
}

/* Для неавторизованных пользователей - выравниваем кнопки */
.account-block:not(:has(.account-money)) {
    gap: 0px;
}

.account-block:not(:has(.account-money)) .btn {
    margin-right: 0;
    min-width: 80px;
    justify-content: center;
}

/* Выпадающее меню пользователя */
.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
}

.account-image:hover .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 16px;
    color: #000;
}

.user-balance {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 8px 7px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
    font-size: 14px;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-item svg {
    margin-right: 12px;
    color: #666;
}

.dropdown-item.logout {
    color: #dc3545;
}

.dropdown-item.logout:hover {
    background: #fff5f5;
}

.dropdown-item.logout svg {
    color: #dc3545;
}

/* Мобильное меню */
.menu-burger__wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

.menu-burger__wrapper.active {
    right: 0;
}

.menu-mob-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    font-weight: 600;
    font-size: 18px;
}

.menu-mob-head label {
    cursor: pointer;
    padding: 5px;
}

.menu-list {
    padding: 20px;
}

.menu-list a {
    display:flex;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s;
    align-items: center;
}


.account-money-t2 {
    font-weight: 500;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.menu-list a:hover {
    color: #000;
}

.menu-list .line {
    height: 1px;
    background: #e0e0e0;
    margin: 15px 0;
}

.menu-list__shops {
    margin-top: 20px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Поиск - ТОЧНО КАК В ПРИМЕРЕ */
.search-section {
    padding: 20px 0;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.search-container {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
}



.search-button {
    padding: 12px 30px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.search-button:hover {
    background-color: #333;
}

/* Навигация товаров - МОБИЛЬНАЯ АДАПТАЦИЯ */
.products-nav {
    display: flex;
    overflow-x: auto;
    padding: 20px 0;
    gap: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-padding: 0 15px;
}

.products-nav::-webkit-scrollbar {
    display: none;
}

.products-nav__item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    min-width: 200px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.products-nav__item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.products-nav__item.current {
    background: #000;
    color: #fff;
}

.products-nav__item-subtitle {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 5px;
}

.products-nav__item-title {
    font-size: 16px;
    font-weight: 600;
}

.games-section {
    margin-bottom: 30px;
    padding: 20px 0px;
}

.section-title {
    font-size: 22px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.view-all {
    font-size: 16px;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.view-all:hover {
    color: #666;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.game-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border: 1px solid #f0f0f0;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.game-image-container {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image {
    transform: scale(1.05);
}

/* Убираем бейджи */
.game-badge {
    display: none;
}

.game-title {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: #333;
    margin: 0;
}

/* Секции товаров - МОБИЛЬНАЯ АДАПТАЦИЯ */
.products {
    margin-bottom: 30px;
    padding: 20px 0;
}



.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 260px;
}

.product-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;

}
.product-platform-header {
    margin-bottom: 5px;
}


.platform-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.platform-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.platform-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.platform-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}








.product-image {
    height: 160px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.product-info {
    padding: 10px 0px;
}

.product-title {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}

.product-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
}

.product-button:hover {
    background: #333;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Футер - МОБИЛЬНАЯ АДАПТАЦИЯ */
.footer {
    background-color: #fff;
    padding: 30px 0 15px;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: #000;
}

.footer-bottom {
    display: flex;
    gap: 50px;
    text-align: center;
    padding-top: 50px;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 14px;
    margin-bottom: 45px;
    justify-content: space-between;
}



.footer-bottom a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}


.footer-bottom li {
    list-style: none;
}
.footer-bottom a:hover {
    color: #000;
}

/* Адаптивность */
@media (max-width: 900px) {
    .menu-links {
        display: none;
    }

    .menu-burger {
        display: block;
    }

    .account-money,
    .account-presents,
    .account-mail {
        display: none;
    }

    /* На мобильных делаем кнопки компактнее */
    .btn_n {
        height: 40px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .btn_n svg {
        width: 18px;
        height: 18px;
        margin-right: 6px;
    }

    .account-image,
    .account-notification {
        height: 40px;
        width: 40px;
    }

    .account-image img {
        width: 36px;
        height: 36px;
    }

    /* Адаптация игр и товаров */
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 12px;
    }

    .game-image-container {
        width: 60px;
        height: 60px;
    }

    .game-title {
        font-size: 12px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {

    .logo img {
        height: 38px;
        width: auto;
    }
    
    .header-container-child {
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .header-left {
        flex: 1;
        min-width: 0;
    }

    .logo {
        font-size: 20px;
        margin-right: 15px;

    }

    .navigation {
        order: 3;
        flex: 100%;
        margin-top: 10px;
        justify-content: flex-start;
        height: auto;
    }

    .account-block {
        justify-content: flex-end;
        flex: 0;
        height: auto;
    }

    .search-container {
        flex-direction: column;
    }



    /* Мобильная адаптация блоков */
    .section-title {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .products-nav {
        padding: 15px 0;
        gap: 8px;
    }

    .products-nav__item {
        min-width: 160px;
        padding: 10px 12px;
    }

    .products-nav__item-title {
        font-size: 14px;
    }

    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .game-card {
        padding: 10px 5px;
    }

    .game-image-container {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }

    .game-title {
        font-size: 11px;
    }

    


    .product-image {
        height: 140px;
        font-size: 13px;
    }

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 15px;
    }

    .product-price {
        font-size: 16px;
    }

    .profile-dropdown {
        right: -50px;
        width: 260px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 16px;
        margin-right: 8px;
        margin-left: 2px;
    }

    .btn_n {
        padding: 6px 8px;
        height: 38px;
    }

    .btn_n svg {
        width: 16px;
        height: 16px;
    }

    .account-image img {
        width: 34px;
        height: 34px;
    }

    .account-image {
        height: 38px;
        width: 38px;
    }

    .account-notification {
        height: 38px;
        width: 38px;
    }

    .menu-burger {
        margin-left: 8px;
    }

    .menu-burger svg {
        width: 30px;
        height: 30px;
    }

    /* Мобильная адаптация для маленьких экранов */
    .products-nav__item {
        min-width: 140px;
        padding: 8px 10px;
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .game-card {
        padding: 8px 4px;
    }

    .game-image-container {
        width: 45px;
        height: 45px;
    }

    .game-title {
        font-size: 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-column h4 {
        font-size: 15px;
    }

    .section-title {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .logo {
        font-size: 14px;
    }

    .btn_n {
        padding: 5px 6px;
        height: 36px;
    }

    .account-image {
        margin-left: 6px;
        height: 36px;
        width: 36px;
    }

    .account-image img {
        width: 32px;
        height: 32px;
    }

    .account-notification {
        height: 36px;
        width: 36px;
    }

    .products-nav__item {
        min-width: 130px;
        padding: 8px 10px;
    }

    .products-nav__item-title {
        font-size: 13px;
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .game-image-container {
        width: 40px;
        height: 40px;
    }

    .game-title {
        font-size: 9px;
    }
}

/* Touch-friendly улучшения для мобильных */
@media (hover: none) {
    .game-card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }


    .btn_n:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Поддержка landscape ориентации */
@media (max-height: 500px) and (orientation: landscape) {
    .header-container-child {
        padding: 10px 0;
        min-height: 60px;
    }

    .games-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}



.games-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;        
    overflow-y: hidden;      
    padding: 10px 0;
    flex-wrap: wrap;      
    -webkit-overflow-scrolling: touch; 
}

.games-scroll::-webkit-scrollbar {
    display: none;
}

.game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    min-width: 80px;
}

.game-item img {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    object-fit: cover;
    margin-bottom: 8px;
}

.game-item span {
    font-size: 14px;
    text-align: center;
}


/* Стили для секции Лучшие товары на главной */
.products-section {
    margin: 50px 0;
}



.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
    color: #000;
}

.view-all {
    font-size: 16px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.view-all:hover {
    color: #000;
}

/* Сетка товаров для главной */
.products-grid-home {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 товара в ряд на десктопе */
    gap: 20px;
    margin-bottom: 40px;
}











/* Бейджи для товаров */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-badge.best {
    background: #ffd700;
    color: #000;
}

.product-badge.popular {
    background: #007bff;
    color: #fff;
}





/* Рейтинг */
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    font-size: 13px;
}

.stars {
    color: #0066ff;
    font-size: 15px;
}

.rating-value {
    font-weight: 600;
    color: #000;
}

.reviews-count {
    color: #666;
}



.product-platform {
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 3px 6px;
    border-radius: 4px;
    align-self: flex-start;
}

.product-sales {
    font-size: 12px;
    color: #666;
}








@media (max-width: 1024px) {
    .products-grid-home {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .section-title {
        font-size: 18px;
    }


}

@media (max-width: 767px) {

    .products-section {
        margin: 40px 0;
        padding: 0 15px;
    }
    .games-section {
        padding: 20px 10px;
    }

    .btn-outline {
        display: none;
    }
    .btn-primaryry {
        display: none;
    }
    }

    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 18px;
        font-size: 18px;
    }

    .products-grid-home {
        grid-template-columns: repeat(2, 1fr);
        /* 2 товара в ряд на мобильном */
        gap: 15px;
    }








    .product-rating {
        font-size: 12px;
    }

    .stars {
        font-size: 12px;
    }


/* Маленькие мобильные (до 424px) */
@media (max-width: 424px) {
    .products-section {
        margin: 30px 0;
        padding: 0 10px;
    }

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

   

    .product-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Очень маленькие экраны (менее 360px) */
@media (max-width: 359px) {
    .products-grid-home {
        grid-template-columns: 1fr;
        /* 1 товар в ряд на очень маленьких экранах */
        gap: 15px;
    }

    
}

/* Touch-улучшения для мобильных */
@media (hover: none) {
    

    .view-all:hover {
        color: #666;
    }
}





.products-nav-wrapper {
    position: relative;
}

.products-nav-container {
    display: flex;
    align-items: center;
    position: relative;
}

.products-nav {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 10px;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    /* Плавный скролл на iOS */
}

.products-nav::-webkit-scrollbar {
    display: none;
}

.nav-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-scroll-btn:hover {
    background: #f8f9fa;
    border-color: #112bc0;
    color: #000000;
}

.nav-scroll-btn.prev {
    left: -18px;
}

.nav-scroll-btn.next {
    right: -18px;
}

.nav-scroll-btn svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .nav-scroll-btn {
        display: none;
    }

    .products-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 15px 0;
    }

    .products-nav__item {
        padding: 12px 20px;
        font-size: 14px;
    }
    .view-all {
        font-size: 14px;
    }

}

.header-search {
    flex: 1;
    max-width: 445px;
    margin: 0 25px;
}

.search-form {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    color: #333;
    padding: 0;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    color: #333;
}

/* Мобильный поиск */
.search-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #333;
    margin-right: 10px;
}



.mobile-search-form {
    width: 100%;
}

.mobile-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.mobile-search-input-wrapper:focus-within {
    border-color: #000000ff;
}

.mobile-search-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 16px;
    color: #333;
    padding: 0;
}

.mobile-search-input::placeholder {
    color: #999;
}





.account-notification {
    display: inline-flex;
}

@media (max-width: 768px) {
    .header-search {
        display: none;
    }

    .account-notification {
        display: none !important;
    }

    .account-money {
        font-size: 14px;
        padding: 6px 8px;
    }

    .account-presents,
    .account-mail {
        margin-right: 8px;
    }
}

@media (max-width: 1024px) {
    .header-search {
        max-width: 250px;
    }
}


/* Стили для выпадающего меню помощи */
.help-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.help-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.help-link:hover {
    color: #007bff;
}

.help-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.help-dropdown-wrapper:hover .help-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.help-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.help-dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.help-dropdown-item svg {
    flex-shrink: 0;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .help-dropdown-wrapper {
        display: none;
    }



    .mobile-search-form {
        width: 100%;
    }

    .mobile-search-input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        padding: 8px 15px;
    }

    .mobile-search-input {
        flex: 1;
        border: none;
        background: none;
        outline: none;
        font-size: 16px;
        color: #333;
        padding: 0;
    }

   

    .header-search {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-search-container {
        display: none;
    }
}



/* Стили для выпадающего меню FunPay стиль */
.account-dropdown {
    position: relative;
}

@media (max-width: 768px) {
    .account-dropdown {
        display: none;
    }
}

.account-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    color: black;
    text-decoration: none;
}



.account-trigger-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.account-trigger-username {
    font-weight: 500;
    font-size: 14px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-trigger-arrow {
    color: #b7b7b7;
    transition: transform 0.2s;
    width: 16px;
    height: 16px;
}

.account-trigger.active .account-trigger-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 215px;
    background: #ffffffff;
    border-radius: 8px;
    color: black;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.account-trigger.active+.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px;
    background: #2d2d2d;
    border-bottom: 1px solid #404040;
    border-radius: 8px 8px 0 0;
}

.dropdown-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-user-info {
    flex: 1;
}

.dropdown-username {
    font-weight: 600;
    font-size: 14px;
    color: white;
    margin-bottom: 2px;
}

.dropdown-balance {
    color: #00c896;
    font-size: 13px;
    font-weight: 500;
}

.dropdown-content {
    padding: 8px;
}

.dropdown-section {
    margin-bottom: 8px;
}

.dropdown-section-title {
    color: #000000ff;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 6px;
    padding-left: 12px;
}


.dropdown-item:hover {}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.8;
}

.dropdown-divider {
    height: 1px;
    background: #000000ff;
    margin: 8px 0;
}

.dropdown-item.logout {
    color: #ff6b6b;
}

.dropdown-item.logout:hover {
    background: rgba(255, 107, 107, 0.1);
}

/* Оверлей для закрытия меню */
.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 999;
    display: none;
}

.account-trigger.active~.dropdown-overlay {
    display: block;
}

/* Стили для мобильного аккаунта */
.mobile-account {
    display: none;
}

@media (max-width: 768px) {
    .mobile-account {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border-bottom: 1px solid #404040;
    }

    .mobile-account-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }

    .mobile-account-info {
        flex: 1;
    }

    .mobile-account-username {
        font-weight: 600;
        font-size: 16px;
        color: white;
        margin-bottom: 2px;
    }

    .mobile-account-balance {
        color: #00c896;
        font-size: 14px;
        font-weight: 500;
    }
}


.header-search {
    position: relative;
    width: 700px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
}

.search-button {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
}

.search-button:hover {
    color: #007bff;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 700px;
    overflow: hidden;
    margin-top: 1px;
    width: 100%;
}

.search-results {
    max-height: 350px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.platform-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.platform-icon-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.platform-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.platform-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.platform-category {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.platform-types {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.type-tag {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: #495057;
}

.no-results {
    padding: 20px 15px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.search-loading {
    padding: 20px 15px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .header-search {
        width: 100%;
        margin: 0 10px;
    }
    .games-scroll {
        gap: 12px;
        flex-wrap: nowrap;
    }
    .game-item {
        min-width: 60px;
    }
    
    .search-dropdown {
        position: fixed;
        top: 60px;
        left: 10px;
        right: 10px;
        max-height: 50vh;
    }
}


.mobile-search-container {
    display: none;
    background: white;
    border-bottom: 1px solid #e9ecef;
    z-index: 1000;
}

@media (max-width: 768px) {
    .container {
        padding: 1px;
    }
}

.mobile-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-search-input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 1px solid #f0f2f5;
    border-radius: 5px;
    font-size: 16px;
    background: #f0f2f5;
    -webkit-appearance: none;
}

.mobile-search-input:focus {
    outline: none;

}

.mobile-search-button {
    position: absolute;
    right: 8px;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    display: none;
}








.mobile-search-results {
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #f8f9fa;
    transition: background 0.2s;
}

.mobile-search-result-item:last-child {
    border-bottom: none;
}

.mobile-search-result-item:active {
    background: #f8f9fa;
}

.mobile-platform-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.mobile-platform-icon-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.mobile-platform-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-platform-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.mobile-platform-category {
    font-size: 14px;
    color: #666;
}

.mobile-platform-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.mobile-type-tag {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: #495057;
}

.mobile-no-results {
    padding: 30px 20px;
    text-align: center;
    color: #666;
    font-size: 16px;
}

.mobile-search-loading {
    padding: 30px 20px;
    text-align: center;
    color: #666;
    font-size: 16px;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
}
.modal-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

















/* Улучшения для тач-устройств */
@media (max-width: 480px) {
    .mobile-search-input {
        padding: 10px 50px 10px 16px;
        font-size: 16px;
    }
    
    .mobile-search-button {
        width: 40px;
        height: 40px;
    }
    
    .mobile-search-result-item {
        padding: 16px;
    }
    
    .mobile-platform-icon,
    .mobile-platform-icon-placeholder {
        width: 40px;
        height: 40px;
    }
}

/* Прячем десктопный поиск на мобильных */
@media (max-width: 768px) {
    .header-search {
        display: none;
    }
}


/* Большие телефоны и планшеты */
@media (min-width: 576px) {
    .modal-wrapper {
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    
    .modal-content {
        max-width: 500px;
        max-height: 80vh;
        border-radius: 20px;
        animation: scaleIn 0.3s ease;
    }
    
    @keyframes scaleIn {
        from {
            opacity: 0;
            transform: scale(0.95);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
    
    .modal-body {
        padding: 24px;
    }
    
    .modal-footer {
        padding: 24px;
    }
}

/* Десктоп */
@media (min-width: 992px) {
    .modal-content {
        max-width: 600px;
    }
}



.load-more-btn {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 12px 24px;
    background: #3169e3;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}



.load-more-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}




/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

/* Карточка товара */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 260px;
}


.product-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}



.product-image {
    width: 100%;
    height: 100%;
}




/* Бейджи */
.platform-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #007bff;
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    max-width: calc(100% - 12px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discount-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #ff4757;
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}





.product-platform-category {
    margin-bottom: 10px;
    font-size: 11px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    flex-shrink: 0;
}

.product-category, .product-platform {
    padding: 2px 6px;
    background: #f5f5f5;
    border-radius: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: 10px;
    min-width: 0;
}

/* Цена и рейтинг - РЕЙТИНГ НЕ СКРЫВАЕМ! */
.product-price-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    flex-shrink: 0;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}


.star {
    color: #f39c12;
    font-size: 11px;
}

.rating-value {
    color: #666;
    font-weight: 500;
}

/* Состояние "не найдено" */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.no-products-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.no-products h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #000;
}

.no-products p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

/* Индикатор загрузки */
.loading-indicator {
    text-align: center;
    padding: 25px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    animation: spin 1s linear infinite;
    margin: 0 auto 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.no-more-products {
    text-align: center;
    padding: 18px;
    color: #888;
    font-size: 13px;
    font-style: italic;
}

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

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}


@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

}

@media (max-width: 790px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .container {
        padding: 2px;
    }
    .footer-bottom {
        gap: 10px;
        font-size: 12px;
        flex-direction: column;
    }
} 




/* Отключение hover на тач-устройствах */
@media (hover: none) {
    .product-card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    
    .product-card:hover .product-img {
        transform: none;
    }
}




.product-platform-category {
    margin-bottom: 8px; /* Уменьшаем отступ */
    font-size: 11px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    flex-shrink: 0;
}

.product-category, .product-platform {
    padding: 2px 4px; /* Уменьшаем padding */
    background: #f5f5f5;
    border-radius: 8px; /* Немного меньше радиус */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: 12px;
    min-width: 0;
    line-height: 1.2; /* Уменьшаем высоту строки */
}

/* Цена и рейтинг - делаем компактнее */
.product-price-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    flex-shrink: 0;
    margin-bottom: 4px; 
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    line-height: 1; 
}



.stars {
    color: #0066ff;
    font-size: 15px; 
    line-height: 1;
}

.rating-value {
    color: #666;
    font-weight: 500;
    font-size: 11px;
    line-height: 1;
}

.reviews-count {
    color: #999;
    font-size: 10px;
    line-height: 1;
}

.product-info {
    padding: 10px 0px;
}

@media (max-width: 768px) {
    .product-info {
        padding: 5px 0px;
    }
    
    .product-title {
        font-size: 12px;
        height: 18px;
    }
    
    .product-platform-category {
        margin-bottom: 6px;
        font-size: 10px;
    }
    
    .product-category, .product-platform {
        padding: 1px 3px;
        font-size: 11px;
    }
    
    .product-price {
        font-size: 15px;
    }
    
    .product-rating {
        font-size: 10px;
        gap: 3px;
    }
    
    .stars {
        font-size: 12px;
    }
    
    .rating-value, .reviews-count {
        font-size: 12px;
    }
}

@media (max-width: 500px) {
    .product-title {
        font-size: 12px;
    }
    
    .product-platform-category {
        margin-bottom: 4px;
        font-size: 9px;
    }
    
    .product-category, .product-platform {
        padding: 1px 2px;
        font-size: 8px;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    .product-rating {
        font-size: 9px;
    }
    
    .stars {
        font-size: 8px;
    }
    
    .rating-value, .reviews-count {
        font-size: 8px;
    }
}


/* Стили для платформы над товаром */
.product-platform-header {
    margin-bottom: 5px;
}

.platform-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.platform-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.platform-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.platform-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-name {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Обновленные стили для карточки товара */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}



.product-image-container {
    width: 100%;
    height: 210px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.5s ease;
    border-radius: 5px;
}

/* Слайдер баннеров */
.banner-slider {
    position: relative;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    height: 140px;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-slide {
    flex: 0 0 100%;
    width: 100%;
}

.banner-link {
    display: block;
    width: 100%;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Кнопки навигации */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    display: none;
}

.slider-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-btn svg {
    width: 24px;
    height: 24px;
    stroke: #333;
}

/* Точки навигации */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .slider-btn {
        width: 30px;
        height: 30px;
    }
    
    .slider-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
}







.product-price-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.discount-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.original-price {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}





.star {
    color: #d1d5db;
    font-size: 14px;
}

.star.filled {
    color: #fbbf24;
}

.rating-value {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.reviews-count {
    font-size: 12px;
    color: #9ca3af;
}

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

}



@media (max-width: 768px) {

    .slider-btn {
        display: none;
    }

    .current-price {
        font-size: 18px;
    }
    .platform-icon-wrapper {
        width: 36px;
        height: 36px;
    }
    
    .product-image-container {
        height: 145px;
    }

    .container-category-product {
        padding: 0px 8px ;
    }
    .page-title {
        font-size: 21px;
    }

    .page-subtitle {
        font-size: 14px;
    }
    .breadcrumb-nav {
        font-size: 13px;
    }

    .dropdown-btn {
        padding: 8px 10px;
    }

}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .breadcrumb-nav {
        font-size: 12px;
    }

    .page-title {
        font-size: 20px;
    }
    .page-subtitle {
        font-size: 13px;
    }
    
    .product-platform-header {
        padding: 0px;
    }
    
    .platform-icon-wrapper {
        width: 32px;
        height: 32px;
    }
    
    .platform-name {
        font-size: 13px;
    }
    
    .category-name {
        font-size: 11px;
    }
    
    .current-price {
        font-size: 16px;
    }
}



/* Стили для кнопки каталога в шапке */
.header-catalog-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 40px;
    position: absolute;
    left: 50%;
    top: 50%; 
    transform: translate(-50%, -50%); 
}

.header-catalog-btn:hover {
    background: #e9ecef;
    border-color: #ced4da;
    color: #000;
}

.header-catalog-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.catalog-text {
    font-weight: 500;
}

/* Общие стили шапки */
.header-container-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff;
    position: relative;
    min-height: 60px;
}

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.menu-burger {
    margin-left: auto;
}

.account-block {
    margin-left: 15px;
}

@media (max-width: 768px) {

    .banner-image {
        height: 95px;
        object-fit: unset;
        border-radius: 10px;
    }
    .banner-slider {
        margin: 0px;
    }

    .slider-dots {
        bottom: 5px;
    }


    .slider-slide .img {
        height: 400px;
    }
    .banner-slider {
        height: auto;
        padding: 0px 10px;
    }
    .header-catalog-btn {
        display: flex; 
        font-size: 14px; 
        padding: 20px 60px;
    }
    
    .header-catalog-btn .catalog-text {
        display: inline; 
    }
    
    .header-catalog-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .header-search {
        display: none;
    }
    
    .navigation {
        display: none;
    }
    .game-item img {
        width: 63px;
        height: 63px;
    }
    
    
    
    .header-container-child {
        padding: 8px 0;
        min-height: 60px;
    }
}




@media (max-width: 480px) {
    .header-catalog-btn {
        padding: 20px 60px; 
        font-size: 14px;
        gap: 4px;
        align-items: center;
        margin-left: 15px;
    }
    
}


@media (min-width: 769px) {
    .header-catalog-btn {
        display: none; 
    }
    
    .header-search {
        display: block;
    }
    
    .navigation {
        display: block;
    }
    
    
    
}









.footer-links {
    display: grid;
}
.footer-legal {
    text-align: right;
}


.footer-section h4 {
    margin-bottom: 15px;
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    display: flex;
}


.footer-copyright {
    width: 100%;
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    color: #888;
    font-size: 14px;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}


.payment-icon {
    max-width: 300px;
    height: auto;
}


@media (max-width: 768px) {
    .footer-bottom {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 15px 5px;
        align-items: flex-start; 
    }
    .footer-info {
        display: flex;
        align-items: flex-start;
    }

    .payment-icon {
        max-width: 200px;
        height: auto;
    }

    .footer-section {
        width: 100%;
        text-align: left; 
        padding: 0;
        border: none;
        margin: 0;
    }

    .footer-section h4 {
        font-size: 18px;
        margin-bottom: 15px;
        font-weight: 600;
    }
    
    .footer-section h4:first-letter {
        text-transform: uppercase; 
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .footer-links a {
        text-decoration: none;
        font-size: 14px;
        padding: 5px 0;
        transition: color 0.3s;
        display: flex;
        align-items: center;
    }
    .footer-links p {
        text-decoration: none;
        font-size: 15px;
        padding: 5px 0;
        transition: color 0.3s;
        display: flex;
        align-items: center;
    }

    .footer-section:last-child {
        text-align: center;
        padding-top: 5px;
    }

    .footer-section:last-child h4 {
        text-align: center;
    }

    .footer-info p {
        font-size: 14px;
        line-height: 1.6;
        margin: 8px 0;
        text-align: center;
    }
}










/* Контейнер поиска - абсолютно позиционирован в шапке */
.mobile-search-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1001;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Когда поиск открыт, скрываем обычную шапку */
.search-active .header-container-child {
    display: none;
}

.search-active .mobile-search-container {
    display: block;
}

/* Заголовок поиска */
.mobile-search-header {
    display: flex;
    align-items: center;
    padding: 12px 2px;
    border-bottom: 1px solid #eee;
    background: white;
}

/* Кнопка назад */
.mobile-search-back {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #2b3ff5;
    margin-left: 5px;
    font-size: 14px;
    
}

.mobile-search-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}



.mobile-search-button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    color: rgb(0, 0, 0);
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 500;
}



.mobile-search-dropdown {
    position: fixed;
    top: 65px; 
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

/* Оверлей для затемнения контента */
.search-overlay {
    position: fixed;
    top: 60px; /* Начинается под шапкой поиска */
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 999;
    display: none;
}

/* Когда поиск активен, скрываем основной контент */
.search-active main {
    display: none;
}

.search-active .search-overlay {
    display: block;
}









/* Стили для элементов (чтобы они не сжимались) */
.games-scroll .game-item {
    flex: 0 0 auto;          
    width: auto;             
}

.games-scroll::-webkit-scrollbar {
    height: 4px;            
}

.games-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.games-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.games-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}



.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}


.social-icon {
    width: 45px; 
    height: 45px;
    flex-shrink: 0;
    color: #2c3e50;
}

.footer-section_1 {
    margin-bottom: 25px;
}