/* style.css — основные стили */

:root {
    --primary: #d44e6c;
    --primary-dark: #b33d58;
    --primary-light: #fbeaee;
    --dark: #2d2d2d;
    --light: #ffffff;
    --gray: #f8f9fa;
    --text: #4a4a4a;
    --text-light: #888888;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--dark);
}

/* Навигация */
.navbar {
    padding: 1.5rem 0;
    background: var(--light) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary) !important;
}

.brand-emblem {
    margin: 0 0.2rem;
    color: var(--primary);
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Кнопки */
.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 78, 108, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Hero секция */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--light) 100%);
}

.hero-subtitle {
    display: inline-block;
    color: var(--primary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

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

/* Секции */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

/* Преимущества */
.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Категории */
.category-card {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    text-decoration: none;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.category-overlay h3 {
    color: white;
    margin-bottom: 0.3rem;
    font-size: 1.5rem;
}

.category-overlay span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Карточки товаров */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 78, 108, 0.1);
}

.product-image {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}

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

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

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-badge.hit {
    background: var(--dark);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
}

.product-title a:hover {
    color: var(--primary);
}

.product-rating {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.product-rating .fa-star {
    color: #ffb347;
}

.product-rating .fa-regular.fa-star {
    color: #ddd;
}

.rating-count {
    color: var(--text-light);
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

.product-price {
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.old-price {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.btn-add-to-cart {
    width: 100%;
    padding: 0.6rem;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-add-to-cart:hover {
    background: var(--primary);
    color: white;
}

/* Каталог */
.catalog-header {
    padding: 3rem 0;
    text-align: center;
    background: var(--primary-light);
}

.catalog-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.catalog-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

.catalog-content {
    padding: 3rem 0;
}

/* Сортировка */
.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--primary-light);
}

.products-found {
    color: var(--text-light);
    font-size: 0.95rem;
}

.sort-select {
    border: 1px solid var(--primary-light);
    border-radius: 50px;
    padding: 0.6rem 2rem 0.6rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text);
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%234a4a4a'%3E%3Cpath d='M6 9L2 5h8l-4 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    min-width: 180px;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Фильтры десктоп (справа) */
.filters-desktop {
    background: var(--light);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--primary-light);
    position: sticky;
    top: 2rem;
}

.filter-block {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--primary-light);
}

.filter-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
    transition: color 0.2s;
    width: 100%;
}

.filter-checkbox:hover {
    color: var(--primary);
}

.filter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 0.8rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.filter-label {
    flex: 1;
}

.filter-count {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Цена */
.price-range {
    display: flex;
    gap: 0.5rem;
}

.price-input {
    flex: 1;
}

.price-input .form-control {
    width: 100%;
    border: 1px solid var(--primary-light);
    border-radius: 50px;
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.price-input .form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 78, 108, 0.1);
}

/* Кнопка применения */
.btn-apply-filters {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.7rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-apply-filters:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 78, 108, 0.3);
}

/* Мобильные фильтры */
.filters-mobile {
    margin-bottom: 2rem;
}

.btn-filter-mobile {
    width: 100%;
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid var(--primary);
    border-radius: 50px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-filter-mobile:hover {
    background: var(--primary);
    color: white;
}

.btn-filter-mobile i {
    transition: transform 0.3s;
    font-size: 1rem;
}

.btn-filter-mobile[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.filters-mobile .filters-wrapper {
    background: var(--light);
    border-radius: 16px;
    padding: 1.2rem;
    margin-top: 1rem;
    border: 1px solid var(--primary-light);
}

/* Пагинация */
.pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination {
    gap: 0.5rem;
}

.page-link {
    border: 1px solid #ddd;
    color: var(--text);
    border-radius: 50px !important;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.page-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Новинки */
.new-products {
    background: var(--gray);
}

/* Подписка */
.newsletter {
    background: var(--primary-light);
    text-align: center;
}

.newsletter-content {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-content h2 {
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 2rem;
    color: var(--text-light);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form .form-control {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 50px;
}

/* Футер */
.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-text {
    color: #aaa;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-form .form-control {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 50px;
}

.footer-form .form-control::placeholder {
    color: #888;
}

.btn-subscribe {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-subscribe:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

/* ===== СТРАНИЦА ТОВАРА ===== */
.product-gallery {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--gray);
}

.product-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.product-category {
    margin-bottom: 0.5rem;
}

.product-category a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-category a:hover {
    text-decoration: underline;
}

.product-details-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-details-rating {
    margin-bottom: 1rem;
    color: #ffb347;
}

.product-details-price {
    margin-bottom: 1.5rem;
}

.product-details-price .current-price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
}

.product-details-price .old-price {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 1rem;
}

.product-details-availability {
    margin-bottom: 1.5rem;
}

.in-stock {
    color: #28a745;
    font-weight: 500;
}

.out-of-stock {
    color: #dc3545;
    font-weight: 500;
}

.product-details-description {
    margin-bottom: 2rem;
}

.product-details-description h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.product-details-description p {
    color: var(--text-light);
    line-height: 1.8;
}

.product-details-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--primary-light);
    border-radius: 50px;
    overflow: hidden;
    background: white;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.quantity-btn:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.quantity-selector input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
    border-left: 1px solid var(--primary-light);
    border-right: 1px solid var(--primary-light);
    background: transparent;
}

.quantity-selector input:focus {
    outline: none;
}

.add-to-cart-btn {
    flex: 1;
    min-width: 200px;
    padding: 0.8rem 2rem;
}

.btn-secondary {
    background: var(--text-light);
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: var(--text);
}

.btn-favorite {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--primary-light);
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-favorite:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

.product-details-meta {
    border-top: 1px solid var(--primary-light);
    padding-top: 1.5rem;
}

.meta-item {
    display: flex;
    margin-bottom: 0.5rem;
}

.meta-label {
    width: 100px;
    color: var(--text-light);
}

.meta-value a {
    color: var(--primary);
    text-decoration: none;
}

.meta-value a:hover {
    text-decoration: underline;
}

/* Похожие товары */
.similar-products {
    padding: 3rem 0;
    background: var(--gray);
}

.similar-products .section-title {
    text-align: left;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

/* ===== ЛОГИН ===== */
.login-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--primary-light);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header .brand-emblem {
    font-size: 2rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.login-header .brand-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    font-family: 'Playfair Display', serif;
}

.login-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--dark);
    font-weight: 500;
}

.login-form .form-label {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.login-form .form-control {
    height: 3rem;
    border: 1px solid var(--primary-light);
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: var(--light);
    padding: 0 1.5rem;
}

.login-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 78, 108, 0.1);
    outline: none;
}

.login-form .form-control::placeholder {
    color: #ccc;
}

.alert-danger {
    background: var(--primary-light);
    border: none;
    color: var(--primary-dark);
    border-radius: 50px;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    text-align: center;
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid var(--primary-light);
    padding-top: 1.5rem;
}

.back-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
}

.back-link:hover {
    color: var(--primary);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 991px) {
    .catalog-toolbar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .sort-select {
        width: 100%;
    }

    .filters-desktop {
        display: none;
    }
}

@media (min-width: 992px) {
    .filters-mobile {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .filters-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .price-range {
        flex-direction: column;
    }

    .price-range .form-control {
        width: 100%;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-form {
        flex-direction: column;
    }

    .catalog-content {
        padding: 2rem 0;
    }

    /* Адаптация страницы товара */
    .product-details-title {
        font-size: 1.5rem;
    }

    .product-details-price .current-price {
        font-size: 1.5rem;
    }

    .product-details-price .old-price {
        font-size: 1rem;
    }

    .product-details-actions {
        flex-direction: column;
    }

    .quantity-selector {
        width: 100%;
    }

    .add-to-cart-btn {
        width: 100%;
    }

    .btn-favorite {
        width: 100%;
        height: 48px;
        border-radius: 50px;
    }

    /* Адаптация логина */
    .login-card {
        padding: 2rem;
        margin: 0 1rem;
    }

    .login-title {
        font-size: 1.3rem;
    }
}

/* Галерея товаров */
.product-gallery {
    position: relative;
}

.product-main-image {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    text-align: center;
}

.product-main-image img {
    max-height: 500px;
    width: auto;
    margin: 0 auto;
    transition: opacity 0.3s ease;
}

/* Миниатюры */
.product-thumbnails {
    cursor: pointer;
}

.thumbnail-item {
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.thumbnail-item:hover {
    border-color: #ff6b6b;
    transform: scale(1.02);
}

.thumbnail-item.active {
    border-color: #ff4444;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2);
}

.thumbnail-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.cursor-pointer {
    cursor: pointer;
}

/* Бейджи (оставьте как есть) */
.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 10px;
    z-index: 1;
}

.product-badge {
    background: #ff4444;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.product-badge.hit {
    background: #ff8800;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .product-main-image img {
        max-height: 300px;
    }

    .thumbnail-item {
        border-width: 1px;
    }
}

/* Активное состояние сортировки */
.sort-select option:checked {
    background-color: #ff6b6b;
    color: white;
}

/* Стили для активной пагинации */
.pagination .page-item.active .page-link {
    background-color: #ff4444;
    border-color: #ff4444;
    color: white;
}

.pagination .page-link:hover {
    background-color: #ff6b6b;
    border-color: #ff6b6b;
    color: white;
}

/* Фильтры */
.filter-block {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.filter-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.filter-checkbox input {
    margin-right: 10px;
    cursor: pointer;
}

.filter-label {
    flex: 1;
    color: #666;
}

.filter-count {
    color: #999;
    font-size: 12px;
    margin-left: 10px;
}

/* Слайдер цены */
.price-range {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.price-input {
    flex: 1;
}

.price-input input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.price-slider {
    position: relative;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
}

.price-slider input {
    position: absolute;
    width: 100%;
    height: 4px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
}

.price-slider input::-webkit-slider-thumb {
    pointer-events: auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff4444;
    cursor: pointer;
    -webkit-appearance: none;
}

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

.btn-apply-filters {
    flex: 2;
    background: #ff4444;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-apply-filters:hover {
    background: #cc3333;
}

.btn-reset-filters {
    flex: 1;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-reset-filters:hover {
    background: #e5e5e5;
}

/* Активные фильтры */
.filter-checkbox input:checked + .filter-label {
    color: #ff4444;
    font-weight: 500;
}

/* Иерархия категорий */
.filter-options {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.category-item {
    margin-bottom: 5px;
}

.category-children {
    margin-top: 5px;
}

.filter-checkbox.has-children {
    font-weight: 500;
    margin-bottom: 5px;
}

.tree-line {
    color: #999;
    font-family: monospace;
}

/* Стили для скроллбара */
.filter-options::-webkit-scrollbar {
    width: 4px;
}

.filter-options::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.filter-options::-webkit-scrollbar-thumb {
    background: #ff6b6b;
    border-radius: 2px;
}

/* BEGIN корзина */
/* Cart items */
.cart-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.cart-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-item-title {
    font-size: 16px;
    margin-bottom: 5px;
}

.cart-item-title a {
    color: #333;
    text-decoration: none;
}

.cart-item-title a:hover {
    color: #ff4444;
}

.cart-item-price {
    color: #666;
    font-size: 14px;
}

.cart-item-total {
    font-weight: bold;
    font-size: 18px;
    color: #ff4444;
}

/* Quantity controls */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #ff4444;
    border-color: #ff4444;
    color: white;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

/* Remove button */
.btn-remove-item {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-remove-item:hover {
    color: #ff4444;
}

/* Cart summary */
.cart-summary {
    background: white;
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 20px;
}

.cart-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.btn-checkout {
    background: #ff4444;
    border: none;
    padding: 12px;
    font-weight: bold;
}

.btn-checkout:hover {
    background: #cc3333;
}

/* Empty cart */
.empty-cart {
    background: white;
    border-radius: 8px;
    padding: 60px 20px;
}

/* Cart divider */
.cart-item-divider {
    margin: 15px 0;
    border-color: #eee;
}

/* Cart counter */
.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #ff4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Favorite count (если нужно) */
.favorite-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #666;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}
/* END корзина */


/* begin хлебные крошки */
/* Breadcrumbs */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: #ff4444;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #999;
    font-size: 18px;
}
/* end хлебные крошки */

