/* --- Базовые настройки --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Montserrat', sans-serif; 
}

:root {
    --primary: #ce422b;
    --bg-dark: #0f0f0f;
    --bg-panel: #1c1c1c;
    --bg-input: #222;
    --text-light: #fff;
    --text-muted: #888;
    --border: #2a2a2a;
}

body { 
    background-color: var(--bg-dark); 
    color: var(--text-light); 
    line-height: 1.5; 
}

.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* --- Шапка --- */
.header { 
    background: rgba(15, 15, 15, 0.9); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid var(--border); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}
.header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 70px; 
}
.nav { 
    display: flex; 
    gap: 30px; 
    background: #1a1a1a; 
    padding: 5px 20px; 
    border-radius: 30px; 
}
.nav-link { 
    color: var(--text-muted); 
    text-decoration: none; 
    font-size: 14px; 
    font-weight: 500; 
    transition: 0.3s; 
    padding: 8px 15px; 
    border-radius: 20px; 
}
.nav-link:hover { color: var(--text-light); }
.nav-link.active { background: var(--primary); color: #fff; }
.btn-login { 
    background: #222; 
    color: #fff; 
    border: 1px solid var(--border); 
    padding: 10px 20px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: 600; 
    transition: 0.3s; 
}
.btn-login:hover { background: #333; }

/* --- Слайдер --- */
.hero-slider { 
    position: relative; 
    height: 350px; 
    border-radius: 15px; 
    overflow: hidden; 
    margin: 30px 0; 
    background: #111; 
}
.slide { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    padding: 50px; 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.6s ease, visibility 0.6s ease; 
    display: flex; 
    align-items: center; 
}
.slide.active { opacity: 1; visibility: visible; }
.slide-content { max-width: 500px; }
.slide-content h1 { font-size: 38px; font-weight: 900; line-height: 1.1; margin-bottom: 15px; }
.slide-content p { color: #ccc; font-size: 16px; margin-bottom: 30px; }
.btn-primary { 
    background: var(--primary); 
    color: #fff; 
    padding: 15px 30px; 
    border: none; 
    border-radius: 30px; 
    font-weight: 700; 
    font-size: 16px; 
    cursor: pointer; 
    transition: 0.3s; 
}
.btn-primary:hover { background: #e65138; transform: translateY(-2px); }
.slider-dots { 
    position: absolute; 
    bottom: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex; 
    gap: 10px; 
    z-index: 10; 
}
.dot { 
    width: 30px; height: 4px; 
    background: rgba(255,255,255,0.3); 
    border-radius: 2px; 
    cursor: pointer; 
    transition: 0.3s; 
}
.dot:hover { background: rgba(255,255,255,0.6); }
.dot.active { background: #fff; width: 40px; }

/* --- Сетка и Сайдбар --- */
.shop-layout { 
    display: grid; 
    grid-template-columns: 280px 1fr; 
    gap: 30px; 
    margin-bottom: 60px; 
}
.sidebar { display: flex; flex-direction: column; gap: 30px; }
.filter-title { 
    color: var(--text-muted); 
    font-size: 13px; 
    text-transform: uppercase; 
    margin-bottom: 15px; 
    font-weight: 600; 
    letter-spacing: 1px; 
}
.server-select { 
    width: 100%; 
    padding: 12px; 
    background: var(--bg-input); 
    border: 1px solid var(--border); 
    color: #fff; 
    border-radius: 8px; 
    outline: none; 
    cursor: pointer; 
}

/* Чекбоксы */
.custom-checkbox { 
    display: flex; 
    align-items: center; 
    margin-bottom: 12px; 
    cursor: pointer; 
    font-size: 15px; 
    color: #ccc; 
    transition: 0.2s; 
}
.custom-checkbox:hover { color: #fff; }
.custom-checkbox input { display: none; }
.checkmark { 
    width: 20px; height: 20px; 
    border: 2px solid #444; 
    border-radius: 4px; 
    margin-right: 12px; 
    position: relative; 
    transition: 0.2s; 
}
.custom-checkbox input:checked + .checkmark { 
    background: var(--primary); 
    border-color: var(--primary); 
}
.custom-checkbox input:checked + .checkmark::after { 
    content: '✔'; 
    position: absolute; 
    color: white; 
    font-size: 12px; 
    top: 50%; left: 50%; 
    transform: translate(-50%, -50%); 
}

/* Поиск */
.search-bar { 
    background: var(--bg-input); 
    border: 1px solid var(--border); 
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    padding: 0 15px; 
    margin-bottom: 25px; 
}
.search-bar i { color: var(--text-muted); }
.search-bar input { 
    width: 100%; 
    padding: 15px; 
    background: transparent; 
    border: none; 
    color: #fff; 
    outline: none; 
    font-size: 15px; 
}

/* --- КАРТОЧКИ ТОВАРОВ --- */
.products-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); 
    gap: 20px; 
}

.product-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
    padding-bottom: 15px;
}

.product-card:hover { 
    transform: translateY(-5px); 
    border-color: #444; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.6); 
}

/* Плашка */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 6px;
    z-index: 10;
}

/* Картинка */
.product-img {
    height: 180px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 20px;
    transition: 0.3s;
    margin-top: 20px; 
}

.product-img img { 
    max-height: 100%; 
    max-width: 100%;
    object-fit: contain; 
    transition: transform 0.3s ease; 
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.5));
}

.product-card:hover .product-img img { 
    transform: scale(1.1); 
}

/* Информация */
.product-info { padding: 0 15px; }

.product-title { 
    font-size: 16px; 
    font-weight: 500; 
    color: #fff;
    margin-bottom: 15px; 
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* Убирает ошибку в VS Code */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-bottom { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.price-wrapper { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.price-icon { 
    color: #e65138; 
    font-size: 18px;
    filter: drop-shadow(0 0 5px rgba(230, 81, 56, 0.5));
}

.price { font-weight: 700; font-size: 18px; color: #fff; }
.quantity { color: #888; font-size: 13px; font-weight: 500; }

/* Адаптив */
@media (max-width: 900px) {
    .shop-layout { grid-template-columns: 1fr; }
    .header-container { flex-direction: column; height: auto; padding: 15px; gap: 15px; }
    .slide { padding: 30px; }
    .slide-content h1 { font-size: 24px; }
}