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

body {
    background: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    line-height: 1.6;
}

/* Шапка */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: #252525;
    border-bottom: 1px solid #333333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav {
    display: flex;
    gap: 5px;
}

.nav-item {
    color: #b0b0b0;
    text-decoration: none;
    padding: 8px 18px;
    font-size: 13px;
    letter-spacing: 1px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item:hover {
    color: #ffffff;
    background: #363636;
}

.nav-item.active {
    color: #ffffff;
    background: #404040;
}

.cart {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff6b6b;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(255,107,107,0.3);
}

/* Основной layout */
.layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    min-height: calc(100vh - 73px);
    gap: 0;
}

/* Контент */
.content {
    padding: 35px 40px;
    background: #1a1a1a;
}

.section-title {
    font-size: 22px;
    color: #d0d0d0;
    margin-bottom: 30px;
    letter-spacing: 1px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333333;
    font-weight: 600;
}

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

.no-products {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px;
    color: #888888;
    font-size: 16px;
    background: #222222;
    border-radius: 12px;
    border: 1px dashed #444444;
}

.product-card {
    background: #252525;
    border: 1px solid #333333;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: #555555;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.product-image {
    height: 200px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #777777;
    font-size: 14px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(30,30,30,0.9);
    backdrop-filter: blur(10px);
    color: #ffd700;
    padding: 5px 12px;
    font-size: 12px;
    border: 1px solid #555555;
    border-radius: 20px;
    font-weight: 600;
}

.product-info {
    padding: 18px 20px;
    background: #282828;
}

.product-title {
    color: #e0e0e0;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.product-price {
    color: #a0a0a0;
    font-size: 13px;
    margin-top: 5px;
}

.product-actions {
    display: flex;
    border-top: 1px solid #383838;
}

.btn-detail,
.btn-cart {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: #2a2a2a;
    border: none;
    color: #b0b0b0;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-detail {
    border-right: 1px solid #383838;
}

.btn-detail:hover {
    color: #ffffff;
    background: #3a3a3a;
}

.btn-cart {
    background: #2e2e2e;
}

.btn-cart:hover {
    color: #ffffff;
    background: #4a4a4a;
}

/* Боковая панель */
.sidebar {
    padding: 35px 30px;
    background: #222222;
    border-left: 1px solid #333333;
}

.sidebar .section-title {
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 12px;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.filter-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-block > label:first-child {
    color: #b0b0b0;
    font-size: 13px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.select-grey {
    width: 100%;
    padding: 11px 14px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #d0d0d0;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.select-grey:hover {
    border-color: #555555;
}

.select-grey:focus {
    outline: none;
    border-color: #777777;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
}

.select-grey option {
    background: #2a2a2a;
    color: #d0d0d0;
    padding: 10px;
}

.input-grey {
    width: 100%;
    padding: 11px 14px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #d0d0d0;
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.input-grey::placeholder {
    color: #666666;
}

.input-grey:hover {
    border-color: #555555;
}

.input-grey:focus {
    outline: none;
    border-color: #777777;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
}

.price-control {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #b0b0b0;
    font-size: 13px;
    padding: 5px 0;
}

.range-grey {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #3a3a3a;
    outline: none;
    border-radius: 2px;
}

.range-grey::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #808080;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #a0a0a0;
    transition: all 0.3s ease;
}

.range-grey::-webkit-slider-thumb:hover {
    background: #999999;
    transform: scale(1.1);
}

.range-grey::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #808080;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #a0a0a0;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b0b0b0;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: #2a2a2a;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #808080;
    border-radius: 4px;
}

.btn-search {
    width: 100%;
    padding: 13px;
    background: #3a3a3a;
    border: 1px solid #4a4a4a;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 5px;
}

.btn-search:hover {
    background: #4a4a4a;
    border-color: #666666;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-reset {
    display: block;
    width: 100%;
    padding: 11px;
    background: transparent;
    border: 1px solid #3a3a3a;
    color: #999999;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
}

.btn-reset:hover {
    border-color: #666666;
    color: #ffffff;
    background: #2a2a2a;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

/* Адаптив */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .layout {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item {
        font-size: 12px;
        padding: 6px 14px;
    }
    
    .content {
        padding: 20px;
    }
    
    .sidebar {
        border-left: none;
        border-top: 1px solid #333333;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.product-card {
    animation: fadeInUp 0.5s ease-out;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* Подсветка при наведении */
.product-card,
.select-grey,
.input-grey,
.btn-search,
.btn-reset,
.nav-item {
    will-change: transform;
}
/* === СТРАНИЦА ИГРЫ === */
.game-detail {
    padding: 10px 0;
}

.game-header {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    background: #252525;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #333333;
}

.game-cover {
    border-radius: 8px;
    overflow: hidden;
}

.game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.no-image {
    width: 100%;
    height: 250px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    border-radius: 8px;
    font-size: 16px;
}

.game-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-title-large {
    font-size: 28px;
    color: #e0e0e0;
    font-weight: 600;
}

.genre-tag {
    display: inline-block;
    background: #3a3a3a;
    color: #b0b0b0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid #4a4a4a;
}

.game-rating-large {
    font-size: 18px;
    color: #ffd700;
}

.review-count {
    color: #888888;
    font-size: 14px;
}

.game-price-large {
    font-size: 32px;
    color: #ffffff;
    font-weight: bold;
}

.game-description-full {
    color: #999999;
    line-height: 1.8;
}

.btn-add-cart-large {
    display: inline-block;
    padding: 14px 40px;
    background: #4a4a4a;
    border: 1px solid #5a5a5a;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-add-cart-large:hover {
    background: #5a5a5a;
    transform: translateY(-2px);
}

/* Отзывы */
.reviews-section {
    margin-top: 40px;
    background: #252525;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #333333;
}

.add-review {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.add-review h3 {
    color: #d0d0d0;
    margin-bottom: 15px;
}

.add-review select {
    width: 100%;
    padding: 10px;
    background: #333333;
    border: 1px solid #444444;
    color: #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
}

.add-review textarea {
    width: 100%;
    padding: 12px;
    background: #333333;
    border: 1px solid #444444;
    color: #e0e0e0;
    border-radius: 6px;
    resize: vertical;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-bottom: 15px;
}

.btn-submit-review {
    padding: 10px 25px;
    background: #4a4a4a;
    border: 1px solid #5a5a5a;
    color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.review-card {
    background: #2a2a2a;
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #333333;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.review-header strong {
    color: #d0d0d0;
}

.stars {
    color: #ffd700;
}

.review-date {
    color: #666666;
    font-size: 12px;
}

.no-reviews {
    color: #777777;
    text-align: center;
    padding: 20px;
}

/* Детали игры справа */
.game-details-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #2a2a2a;
    border-radius: 6px;
    border: 1px solid #333333;
}

.detail-item span:first-child {
    color: #888888;
}

.detail-item span:last-child {
    color: #e0e0e0;
    font-weight: 500;
}

/* === КОРЗИНА === */
.empty-cart {
    text-align: center;
    padding: 60px;
    background: #252525;
    border-radius: 12px;
    border: 1px solid #333333;
}

.empty-cart p {
    font-size: 20px;
    color: #888888;
    margin-bottom: 20px;
}

.btn-back {
    display: inline-block;
    padding: 12px 30px;
    background: #4a4a4a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #252525;
    border-radius: 10px;
    border: 1px solid #333333;
}

.cart-item-image {
    width: 100px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-small {
    width: 100%;
    height: 100%;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    font-size: 12px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    color: #e0e0e0;
    font-size: 16px;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.btn-remove {
    padding: 8px 16px;
    background: #3a3a3a;
    color: #ff6b6b;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.3s;
}

.btn-remove:hover {
    background: #4a2020;
}

.cart-summary {
    background: #252525;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #333333;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 22px;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.total-price {
    color: #ffffff;
    font-weight: bold;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: #4a4a4a;
    border: 1px solid #5a5a5a;
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 2px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-checkout:hover {
    background: #5a5a5a;
    transform: translateY(-2px);
}

.cart-info p {
    color: #b0b0b0;
    margin-bottom: 10px;
}

/* === АВТОРИЗАЦИЯ === */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 73px);
    padding: 40px;
}

.auth-box {
    background: #252525;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #333333;
    width: 100%;
    max-width: 420px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    color: #b0b0b0;
    margin-bottom: 8px;
    font-size: 13px;
}

.error-message {
    background: #4a2020;
    color: #ff6b6b;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #5a2828;
}

.success-message {
    background: #204020;
    color: #6bff6b;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #285028;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
    color: #888888;
}

.auth-links a {
    color: #b0b0b0;
    text-decoration: none;
}

.auth-links a:hover {
    color: #ffffff;
}

/* === ПРОФИЛЬ === */
.profile-info {
    margin-bottom: 40px;
}

.profile-card {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: #252525;
    border-radius: 12px;
    border: 1px solid #333333;
    align-items: center;
}

.profile-avatar {
    font-size: 64px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    border-radius: 50%;
    border: 2px solid #444444;
}

.profile-details h3 {
    font-size: 24px;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.profile-details p {
    color: #888888;
    margin-bottom: 5px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    background: #252525;
    border-radius: 12px;
    border: 1px solid #333333;
}

.empty-state p {
    color: #888888;
    margin-bottom: 20px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    padding: 20px;
    background: #252525;
    border-radius: 10px;
    border: 1px solid #333333;
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.order-date {
    color: #666666;
    font-size: 13px;
}

.order-total {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-actions .btn-search,
.profile-actions .btn-reset {
    display: block;
    text-align: center;
    text-decoration: none;
}

/* === О НАС и FAQ === */
.about-content {
    background: #252525;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333333;
}

.about-content p {
    color: #b0b0b0;
    margin-bottom: 15px;
    line-height: 1.8;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: #252525;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #333333;
}

.faq-item h3 {
    color: #e0e0e0;
    margin-bottom: 10px;
}

.faq-item p {
    color: #888888;
    line-height: 1.6;
}
/* ======================================== */
/* ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ПОИСКА */
/* ======================================== */

/* Контейнер цены */
.price-range-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.price-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-input-group span {
    color: #777777;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-input {
    text-align: center;
    font-weight: 600;
}

.price-slider-container {
    padding: 5px 0;
}

.price-range-labels {
    display: flex;
    justify-content: space-between;
    color: #777777;
    font-size: 11px;
    margin-top: 5px;
}

#priceValue {
    color: #a0a0a0;
    font-weight: 600;
}

/* Кнопки фильтров */
.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

/* Заголовок результатов */
.search-results-header {
    background: #252525;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333333;
    margin-bottom: 25px;
}

.search-info {
    color: #b0b0b0;
    font-size: 15px;
    margin-bottom: 15px;
}

.search-info strong {
    color: #ffffff;
    font-weight: 600;
}

/* Активные фильтры */
.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #c0c0c0;
}

.remove-filter {
    color: #ff6b6b;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    transition: 0.2s;
    margin-left: 2px;
}

.remove-filter:hover {
    color: #ff0000;
}

/* Информация о результатах в сайдбаре */
.search-results-info {
    margin-top: 20px;
    padding: 12px 15px;
    background: #252525;
    border-radius: 8px;
    border: 1px solid #333333;
    text-align: center;
    color: #888888;
    font-size: 13px;
}

.search-results-info strong {
    color: #a0a0a0;
    font-weight: 600;
}

/* Плейсхолдер для отсутствующей картинки */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    color: #666666;
    font-size: 14px;
}

/* Жанр в карточке товара */
.product-genre {
    font-size: 11px;
    color: #777777;
    margin-top: 4px;
    background: #2a2a2a;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Кнопка "назад" */
.btn-back {
    display: inline-block;
    padding: 10px 20px;
    background: #3a3a3a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s;
    font-size: 13px;
}

.btn-back:hover {
    background: #4a4a4a;
    color: #ffffff;
}

/* Админ-ссылка в навигации */
.admin-link {
    color: #ffd700 !important;
}

.admin-link:hover {
    background: #3a3a2a !important;
}

/* Адаптивность для блока цены */
@media (max-width: 768px) {
    .price-inputs {
        grid-template-columns: 1fr;
    }
    
    .search-results-header {
        padding: 15px;
    }
    
    .active-filters-list {
        gap: 5px;
    }
    
    .filter-tag {
        font-size: 11px;
        padding: 4px 10px;
    }
}