/* --- BRIGHT LIGHT-PURPLE THEME --- */
:root {
    --accent: #8A2BE2;
    --accent-dim: rgba(138, 43, 226, 0.08); /* Softened for light mode */
    --accent-glow: rgba(138, 43, 226, 0.2);
    --glass: rgba(255, 255, 255, 0.7);       /* Solid white with transparency */
    --border: rgba(0, 0, 0, 0.08);           /* Darker borders for visibility */
    --text-main: #1a1a1a;                    /* Dark text */
    --text-secondary: #666;                  /* Gray text */
    --card-bg: #ffffff;
}

body {
    /* Bright background with a touch of lavender */
    background: linear-gradient(135deg, #ffffff 0%, #f7f4ff 100%) !important;
    color: var(--text-main);
    font-family: 'Raleway', sans-serif;
    margin: 0;
}

/* 1. Update the Background Glow */
.shop-page {
    padding: 120px 0;
    background: radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.05) 0%, transparent 40%);
    min-height: 100vh;
}

/* 2. Fix the Sidebar & Cards Visibility */
.filters-sidebar {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

/* 3. Flip Form Inputs & Selects */
.price-inputs input, .filter-group select {
    background: #ffffff !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
}

.filter-group select option {
    background-color: #fff; /* Light dropdown items */
    color: #333;
}


/* 5. Update Text Colors for Titles & Prices */
.ultra-title, .current-price, .product-details h3 {
    color: #1a1a1a !important;
}

.gradient-text {
    /* Making the gradient deeper for legibility on white */
    background: linear-gradient(180deg, var(--accent) 0%, #4b0082 100%);
    -webkit-background-clip: text;
}



/* 7. Fix Reset Filters button */
.reset-filters {
    color: var(--text-secondary);
}

.reset-filters:hover {
    background: rgba(0, 0, 0, 0.03);
}

body {
    color: var(--text-main);
    font-family: 'Raleway', sans-serif;
    margin: 0;
}

/* Световое пятно на фоне, чтобы экран не был "мертвым" */
.shop-page {
    padding: 120px 0;
    background: radial-gradient(circle at 80% 20%, var(--accent-dim) 0%, transparent 40%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}
.shop-header { margin-bottom: 80px; text-align: left; }

.ultra-title {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -3px;
    margin: 0;
    line-height: 1;
}

.gradient-text {
    background: linear-gradient(180deg, var(--accent) 0%, #4b0082 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.shop-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: start;
}

/* Фильтры в стиле Glassmorphism */
.filters-sidebar {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 35px;
    padding: 40px;
    top: 100px;
}

.filter-group { margin-bottom: 45px; }

.filter-group h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 25px;
}

.filter-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 0;
    font-weight: 500;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-link:hover, .filter-link.active {
    color: #8A2BE2;
    transform: translateX(8px);
}

.filter-link.active::before {
    content: '•';
    margin-right: 8px;
    color: var(--accent);
}

/* Поля ввода и Селекты */
.price-inputs { display: flex; gap: 10px; }
.price-inputs input, select {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 15px;
    color: #fff;
    outline: none;
}

.apply-filters-btn {
    width: 100%;
    padding: 18px;
    background: #fff;
    color: #000;
    border: 1px solid var(--accent);
    border-radius: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.apply-filters-btn:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 20px var(--accent-glow);
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.glass-card {
    padding: 12px;
    transition: 0.5s ease;
}




.product-visual {
    border-radius: 32px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 25px;
}

.product-visual img {
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
    transition: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-card:hover .product-visual img {
    transform: scale(1.1) rotate(2deg);
}

.product-details { padding: 0 15px 15px; }
.product-details *{
    text-align: center;
}
.product-details h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 15px;
    overflow: hidden;
}

.current-price {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;

    color: #fff;
}

.btn-primary {
    width: 100% !important;
    background: transparent;
    border: 1px solid var(--border);
    color: #fff;
    padding: 18px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

/* Состояние "Ничего не нашли" */
.empty-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px;
    background: var(--glass);
    border-radius: 40px;
}

.empty-results h2 { font-size: 2.5rem; margin-bottom: 15px; }
.empty-results p { color: var(--text-secondary); }

@media (max-width: 1024px) {
    .shop-layout { grid-template-columns: 1fr; }
    .filters-sidebar { position: static; }
    .ultra-title { font-size: 3.5rem; }
}

.reset-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    margin-top: 10px;

    background: transparent;
    color: var(--text-secondary); /* Твой приглушенный серый */

    border: 1px solid transparent;
    border-radius: 15px;

    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.reset-filters:hover {
    color: #ff4d4d; /* Нежный красный оттенок для обозначения отмены */
    background: rgba(255, 77, 77, 0.05); /* Едва заметный фон */
    border-color: rgba(255, 77, 77, 0.2);
}

/* Иконка (если решишь добавить внутри ссылки <i class="fa-solid fa-rotate-left"></i>) */
.reset-filters i {
    margin-right: 8px;
    font-size: 0.9rem;
}

/* Контейнер для селекта, чтобы добавить кастомную стрелочку */
.filter-group select {
    appearance: none; /* Убирает стандартную стрелку браузера */
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238A2BE2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;

    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 15px 40px 15px 15px; /* Больше отступа справа для стрелки */

    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-group select:hover {
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.1);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
}

/* Стилизация выпадающего списка (работает не во всех браузерах, но помогает) */
.filter-group select option {
    background-color: #111; /* Темный фон для выпадающего списка */
    color: #fff;
    padding: 10px;
}
.price-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-direction: column;
}

.old-price {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    text-decoration-color: var(--accent); /* Линия зачеркивания в цвет бренда */
    opacity: 0.6;
}

.current-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
}

/* Если есть скидка, можно подсветить цену чуть иначе */
.current-price.discount {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Дополнительные штрихи к твоему CSS */

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: block;
}

.brand-tag {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

/* Фикс для мобильных фильтров */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .filters-sidebar {
        padding: 25px;
        border-radius: 25px;
    }

    .filter-group {
        margin-bottom: 25px;
    }

    /* Располагаем фильтры в ряд на планшетах */
    form {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        align-items: end;
    }
}

@media (max-width: 600px) {
    .ultra-title {
        font-size: 2.8rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    form {
        grid-template-columns: 1fr;
    }
}