/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: #faf9f6;
    color: #1e1e1e;
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== ХЕДЕР ===== */
header {
    padding: 20px 0;
    border-bottom: 2px solid #ececec;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 10;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo span {
    color: #c77dff;
    background: #000;
    padding: 4px 8px;
    border-radius: 40px;
    font-size: 20px;
    margin-left: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav a {
    text-decoration: none;
    color: #2b2b2b;
    font-weight: 500;
    font-size: 16px;
    transition: 0.2s;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

nav a:hover {
    border-bottom-color: #c77dff;
    color: #000;
}

/* ===== ИКОНКИ ХЕДЕРА ===== */
.header-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.header-icons > * {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Поиск */
.search-box {
    width: auto;
    height: 40px;
    border-radius: 40px;
    background: #f0f0f0;
    padding: 0 8px 0 16px;
    margin: 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 8px 0;
    width: 180px;
    outline: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.search-box input::placeholder {
    color: #999;
    transition: color 0.3s ease;
}

.search-box button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 8px 10px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-box button:hover {
    background: rgba(0,0,0,0.1);
}

.search-box button:active {
    transform: scale(0.95);
}

.search-box button.active {
    background: #c77dff;
    color: white;
}

/* Кнопка темы */
.theme-toggle {
    background: transparent;
    border: none;
    font-size: 22px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: rgba(0,0,0,0.1);
    transform: rotate(15deg);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Иконка корзины */
.cart-icon {
    position: relative;
    font-size: 22px;
    background: transparent;
}

.cart-icon:hover {
    background: rgba(0,0,0,0.1);
}

.cart-icon:active {
    transform: scale(0.95);
}

/* Иконка профиля */
.header-icons span:last-child {
    font-size: 22px;
    background: transparent;
}

.header-icons span:last-child:hover {
    background: rgba(0,0,0,0.1);
}

.header-icons span:last-child:active {
    transform: scale(0.95);
}

/* Счетчик корзины */
.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #c77dff;
    color: white;
    font-size: 11px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    transition: all 0.3s ease;
}

/* Анимация пульсации для корзины */
@keyframes cartPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        color: #c77dff;
    }
    100% {
        transform: scale(1);
    }
}

.cart-icon.pulse {
    animation: cartPulse 0.3s ease;
}

/* Фокус для доступности */
.header-icons > *:focus-visible {
    outline: 2px solid #c77dff;
    outline-offset: 2px;
}

/* ===== ГЛАВНЫЙ БАННЕР ===== */
.hero {
    background: linear-gradient(145deg, #ece5ff 0%, #ffffff 100%);
    border-radius: 32px;
    margin: 40px 0;
    padding: 48px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    transition: background 0.3s ease;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.hero-content h1 span {
    color: white;
    background-color: #000;
    padding: 4px 16px;
    border-radius: 60px;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-content p {
    font-size: 18px;
    color: #444;
    margin-bottom: 30px;
    max-width: 450px;
    transition: color 0.3s ease;
}

.btn {
    background: #000;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.25s;
    border: 2px solid black;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: white;
    color: black;
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-outline {
    background: transparent;
    color: black;
    border: 2px solid black;
}

.btn-outline:hover {
    background: black;
    color: white;
}

.hero-image img {
    max-width: 300px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 20px rgba(0,0,0,0.1));
}

/* ===== СЕКЦИЯ ФИЛЬТРОВ ===== */
.filters-section {
    margin: 40px 0 30px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #d0d0d0;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.filter-btn.active {
    background: #000;
    color: white;
    border-color: #000;
}

.filter-btn:hover {
    border-color: #000;
}

.filter-toggle {
    background: transparent;
    border: 1px solid #d0d0d0;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.filter-toggle:hover {
    background: #f0f0f0;
}

.sort select {
    border: 1px solid #ccc;
    padding: 8px 24px 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ===== ПАНЕЛЬ РАСШИРЕННЫХ ФИЛЬТРОВ ===== */
.filters-panel {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
    border: 1px solid #eee;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    transition: all 0.3s ease;
}

.filters-panel.hidden {
    display: none;
}

.filter-group h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

/* Фильтр цены */
.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-range input {
    width: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

.price-range input:focus {
    border-color: #c77dff;
}

.price-slider {
    position: relative;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    margin: 20px 0;
}

.price-slider input {
    position: absolute;
    width: 100%;
    height: 6px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
}

.price-slider input::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #c77dff;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Размеры */
.size-options, .color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-options label, .color-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.size-options label:hover, .color-options label:hover {
    background: #f5f5f5;
}

.size-options input, .color-options input {
    margin-right: 5px;
    cursor: pointer;
}

.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ===== СЕТКА ТОВАРОВ ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px 20px;
    margin: 40px 0;
    min-height: 400px;
}

.product-card {
    background: white;
    border-radius: 24px;
    padding: 20px 16px 24px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 30px -10px rgba(0,0,0,0.1);
    border-color: #c77dff;
}

.product-badge {
    background: #ffd966;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-badge.sale {
    background: #ffb3b3;
}

.product-image {
    width: 100%;
    aspect-ratio: 1/1.1;
    background: #f5f3f0;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

.product-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    transition: color 0.3s ease;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    margin: 6px 0 4px;
    transition: color 0.3s ease;
}

.product-price {
    font-weight: 800;
    font-size: 20px;
    margin: 10px 0;
    transition: color 0.3s ease;
}

.product-price old {
    font-size: 15px;
    font-weight: 400;
    color: #a0a0a0;
    text-decoration: line-through;
    margin-left: 8px;
}

.product-colors {
    display: flex;
    gap: 5px;
    margin: 10px 0;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease;
}

.product-sizes {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin: 10px 0;
    font-size: 12px;
    color: #666;
    transition: color 0.3s ease;
}

.add-to-cart {
    background: transparent;
    border: 2px solid #1e1e1e;
    border-radius: 40px;
    padding: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
}

.add-to-cart:hover {
    background: #1e1e1e;
    color: white;
}

.add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Сообщение если ничего не найдено */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    font-size: 18px;
    color: #777;
}

/* ===== БАННЕР РАСПРОДАЖИ ===== */
.sale-banner {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    border-radius: 20px;
    margin: 30px 0;
    padding: 30px;
    color: white;
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.sale-banner.hidden {
    display: none;
}

.sale-banner-content {
    text-align: center;
}

.sale-banner h2 {
    font-size: 32px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sale-banner p {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.sale-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 16px;
}

.sale-stats strong {
    font-size: 24px;
    display: block;
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 71, 87, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

/* ===== МОДАЛЬНОЕ ОКНО КОРЗИНЫ ===== */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: flex-end;
}

.cart-modal.show {
    display: flex;
}

.cart-modal-content {
    background: white;
    width: 100%;
    max-width: 450px;
    height: 100%;
    overflow-y: auto;
    padding: 30px;
    animation: slideIn 0.3s ease;
    transition: background-color 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.close-cart:hover {
    color: #000;
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: border-color 0.3s ease;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: #f5f3f0;
    border-radius: 10px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.cart-item-price {
    font-weight: 700;
    color: #c77dff;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.cart-item-size-color {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background: #f0f0f0;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #e0e0e0;
}

.cart-item-quantity {
    font-size: 14px;
    min-width: 20px;
    text-align: center;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 14px;
    margin-left: auto;
    transition: color 0.2s ease;
}

.remove-item:hover {
    color: #ff0000;
    text-decoration: underline;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    transition: border-color 0.3s ease;
}

.cart-actions {
    display: flex;
    gap: 10px;
}

.cart-actions .btn {
    flex: 1;
    padding: 12px;
}

/* ===== TOAST УВЕДОМЛЕНИЯ ===== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    color: #1e1e1e;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    border-left: 4px solid #c77dff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.toast.success {
    border-left-color: #4CAF50;
}

.toast.error {
    border-left-color: #f44336;
}

.toast.warning {
    border-left-color: #ff9800;
}

.toast-icon {
    font-size: 24px;
}

.toast-message {
    flex: 1;
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 0 5px;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: #333;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ===== CONFIRM ДИАЛОГ ===== */
.confirm-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.confirm-dialog {
    background: white;
    border-radius: 24px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
    transition: background-color 0.3s ease;
}

.confirm-dialog h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1e1e1e;
    transition: color 0.3s ease;
}

.confirm-dialog p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.confirm-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.confirm-dialog .btn {
    padding: 12px 24px;
    min-width: 100px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== ФУТЕР ===== */
footer {
    background: #111;
    color: #ddd;
    padding: 50px 0 30px;
    margin-top: 70px;
    border-radius: 40px 40px 0 0;
    transition: background-color 0.3s ease;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
}

.footer-col p {
    margin: 16px 0;
    color: #aaa;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    color: #777;
    font-size: 14px;
    border-top: 1px solid #333;
    margin-top: 40px;
}

/* ===== ТЁМНАЯ ТЕМА ===== */
body.dark-theme {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

/* Хедер в тёмной теме */
body.dark-theme header {
    background-color: #1e1e1e;
    border-bottom-color: #333;
}

body.dark-theme .logo {
    color: #fff;
}

body.dark-theme .logo span {
    background: #333;
    color: #c77dff;
}

body.dark-theme nav a {
    color: #ddd;
}

body.dark-theme nav a:hover {
    color: #fff;
    border-bottom-color: #c77dff;
}

/* Иконки хедера в тёмной теме */
body.dark-theme .header-icons > * {
    color: #e0e0e0;
}

body.dark-theme .search-box {
    background: #2d2d2d;
    border: 1px solid #404040;
}

body.dark-theme .search-box input {
    color: #fff;
}

body.dark-theme .search-box input::placeholder {
    color: #888;
}

body.dark-theme .search-box button {
    color: #c77dff;
}

body.dark-theme .search-box button:hover {
    background: #404040;
    color: #fff;
}

body.dark-theme .search-box button.active {
    background: #c77dff;
    color: #1e1e1e;
}

body.dark-theme .theme-toggle {
    color: #ffd700;
}

body.dark-theme .theme-toggle:hover {
    background: #404040;
}

body.dark-theme .cart-icon {
    color: #c77dff;
}

body.dark-theme .cart-icon:hover {
    background: #404040;
}

body.dark-theme .header-icons span:last-child {
    color: #e0e0e0;
}

body.dark-theme .header-icons span:last-child:hover {
    background: #404040;
}

body.dark-theme .cart-count {
    background: #ff4757;
    border-color: #1e1e1e;
    color: white;
}

/* Состояния при нажатии в тёмной теме */
body.dark-theme .header-icons > *:active {
    transform: scale(0.95);
    background: #404040;
}

body.dark-theme .search-box button:active {
    background: #555;
}

/* Фокус в тёмной теме */
body.dark-theme .header-icons > *:focus-visible {
    outline: 2px solid #c77dff;
    outline-offset: 2px;
}

body.dark-theme .search-box:focus-within {
    border-color: #c77dff;
    box-shadow: 0 0 0 2px rgba(199, 125, 255, 0.3);
}

/* Hero секция в тёмной теме */
body.dark-theme .hero {
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%);
}

body.dark-theme .hero-content h1 {
    color: #fff;
}

body.dark-theme .hero-content p {
    color: #bbb;
}

/* Фильтры в тёмной теме */
body.dark-theme .filter-btn {
    background: #2d2d2d;
    border-color: #404040;
    color: #ddd;
}

body.dark-theme .filter-btn:hover {
    border-color: #c77dff;
    background: #404040;
}

body.dark-theme .filter-btn.active {
    background: #c77dff;
    color: #000;
    border-color: #c77dff;
}

body.dark-theme .filter-toggle {
    background: #2d2d2d;
    border-color: #404040;
    color: #ddd;
}

body.dark-theme .filter-toggle:hover {
    background: #404040;
}

body.dark-theme .sort select {
    background: #2d2d2d;
    border-color: #404040;
    color: #ddd;
}

/* Панель фильтров в тёмной теме */
body.dark-theme .filters-panel {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .filter-group h4 {
    color: #fff;
}

body.dark-theme .price-range input {
    background: #404040;
    border-color: #555;
    color: #fff;
}

body.dark-theme .price-range input:focus {
    border-color: #c77dff;
}

body.dark-theme .size-options label,
body.dark-theme .color-options label {
    border-color: #404040;
    color: #ddd;
}

body.dark-theme .size-options label:hover,
body.dark-theme .color-options label:hover {
    background: #404040;
}

/* Карточки товаров в тёмной теме */
body.dark-theme .product-card {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .product-card:hover {
    border-color: #c77dff;
    box-shadow: 0 25px 30px -10px rgba(0,0,0,0.5);
}

body.dark-theme .product-category {
    color: #aaa;
}

body.dark-theme .product-title {
    color: #fff;
}

body.dark-theme .product-price {
    color: #c77dff;
}

body.dark-theme .product-price old {
    color: #888;
}

body.dark-theme .product-sizes {
    color: #aaa;
}

body.dark-theme .add-to-cart {
    border-color: #c77dff;
    color: #c77dff;
}

body.dark-theme .add-to-cart:hover {
    background: #c77dff;
    color: #000;
}

/* Модальное окно корзины в тёмной теме */
body.dark-theme .cart-modal-content {
    background: #2d2d2d;
    color: #fff;
}

body.dark-theme .close-cart {
    color: #ddd;
}

body.dark-theme .close-cart:hover {
    color: #fff;
}

body.dark-theme .cart-item {
    border-bottom-color: #404040;
}

body.dark-theme .cart-item-title {
    color: #fff;
}

body.dark-theme .cart-item-price {
    color: #c77dff;
}

body.dark-theme .cart-item-size-color {
    color: #aaa;
}

body.dark-theme .quantity-btn {
    background: #404040;
    color: #fff;
}

body.dark-theme .quantity-btn:hover {
    background: #555;
}

body.dark-theme .remove-item {
    color: #ff6b6b;
}

body.dark-theme .remove-item:hover {
    color: #ff4757;
}

body.dark-theme .cart-total {
    border-top-color: #404040;
}

/* Toast уведомления в тёмной теме */
body.dark-theme .toast {
    background: #2d2d2d;
    color: #fff;
    border-left-color: #c77dff;
}

body.dark-theme .toast-close {
    color: #aaa;
}

body.dark-theme .toast-close:hover {
    color: #fff;
}

/* Confirm диалог в тёмной теме */
body.dark-theme .confirm-dialog {
    background: #2d2d2d;
    color: #fff;
}

body.dark-theme .confirm-dialog h3 {
    color: #fff;
}

body.dark-theme .confirm-dialog p {
    color: #ddd;
}

body.dark-theme .btn-outline {
    border-color: #c77dff;
    color: #c77dff;
}

body.dark-theme .btn-outline:hover {
    background: #c77dff;
    color: #000;
}

/* Стилизация скроллбара для тёмной темы */
body.dark-theme::-webkit-scrollbar {
    width: 12px;
}

body.dark-theme::-webkit-scrollbar-track {
    background: #2d2d2d;
}

body.dark-theme::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 6px;
    border: 2px solid #2d2d2d;
}

body.dark-theme::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Дополнительные улучшения для тёмной темы */
body.dark-theme .theme-toggle .theme-icon {
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

body.dark-theme .cart-icon {
    text-shadow: 0 0 5px rgba(199, 125, 255, 0.3);
}

body.dark-theme .header-icons > *:hover {
    box-shadow: 0 0 10px rgba(199, 125, 255, 0.3);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 700px) {
    .hero {
        padding: 30px;
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
    
    nav ul {
        gap: 16px;
    }
    
    .header-inner {
        justify-content: center;
    }
    
    .search-box input {
        width: 120px;
    }
    
    .filters-panel {
        grid-template-columns: 1fr;
    }
    
    .sale-stats {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cart-modal-content {
        max-width: 100%;
    }
    
    .toast-container {
        left: 20px;
        right: 20px;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
    
    .confirm-dialog {
        margin: 20px;
        padding: 20px;
    }
    
    .header-icons {
        gap: 10px;
    }
    
    .search-box input {
        width: 100px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .header-icons {
        gap: 5px;
    }
    
    .search-box {
        padding: 0 4px 0 8px;
    }
    
    .search-box input {
        width: 80px;
    }
    
    .theme-toggle, .cart-icon, .header-icons span:last-child {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}
/* ===== УЛУЧШЕННАЯ ВИДИМОСТЬ НАВИГАЦИИ В ТЁМНОЙ ТЕМЕ ===== */
body.dark-theme nav ul {
    gap: 32px;
}

body.dark-theme nav a {
    color: #ffffff !important; /* Яркий белый цвет */
    font-weight: 600; /* Делаем жирнее */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3); /* Легкое свечение */
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
    transition: all 0.2s ease;
    font-size: 16px;
    letter-spacing: 0.3px; /* Немного увеличиваем расстояние между буквами */
}

body.dark-theme nav a:hover {
    color: #c77dff !important; /* Фиолетовый при наведении */
    border-bottom-color: #c77dff;
    text-shadow: 0 0 8px rgba(199, 125, 255, 0.5); /* Фиолетовое свечение */
}

/* Специально для активной/текущей страницы (если нужно) */
body.dark-theme nav a.active {
    color: #c77dff !important;
    border-bottom-color: #c77dff;
    font-weight: 700;
}

/* Для кнопки Sale делаем особо заметной */
body.dark-theme nav a[data-category="sale"] {
    color: #ff6b6b !important; /* Красноватый для Sale */
    font-weight: 700;
}

body.dark-theme nav a[data-category="sale"]:hover {
    color: #ff4757 !important;
    border-bottom-color: #ff4757;
    text-shadow: 0 0 8px rgba(255, 71, 87, 0.5);
}

/* Если нужно сделать фон под пунктами меню */
body.dark-theme nav ul li {
    position: relative;
}

/* Альтернативный вариант с фоном при наведении */
body.dark-theme nav a:hover {
    background: rgba(199, 125, 255, 0.15);
    border-radius: 20px;
    padding: 8px 16px;
    margin: -8px -16px; /* Компенсируем padding чтобы не сдвигать меню */
}

/* Для мобильной версии */
@media (max-width: 700px) {
    body.dark-theme nav ul {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    body.dark-theme nav a {
        font-size: 15px;
        padding: 5px 10px;
    }
    
    body.dark-theme nav a:hover {
        background: rgba(199, 125, 255, 0.15);
        border-radius: 20px;
        padding: 5px 10px;
        margin: 0;
    }
}
