/* Catalog Specific Styles */

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    margin-top: 70px;
    border-bottom: 1px solid #e5e5e5;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: #6a6a6a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #1a1a1a;
}

.separator {
    color: #a0a0a0;
}

.current {
    color: #1a1a1a;
    font-weight: 500;
}

/* Catalog Header */
.catalog-header {
    background: white;
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.catalog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.catalog-header p {
    font-size: 1.125rem;
    color: #6a6a6a;
}

/* Catalog Layout */
.catalog-content {
    padding: 2rem 0 4rem;
    background: #fafafa;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
}

.original-price {
    font-size: 1rem;
    color: #a0a0a0;
    text-decoration: line-through;
}

.discount {
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Filters Sidebar */
.filters-sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    border: 1px solid #e5e5e5;
    position: static;
    top: 100px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.filters-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
}

.clear-filters {
    background: none;
    border: none;
    color: #6a6a6a;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.clear-filters:hover {
    color: #1a1a1a;
}

.filter-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

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

.filter-group h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

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

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4a4a4a;
    position: relative;
}

.filter-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: #f8f9fa;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
}

.filter-option:hover .checkmark {
    border-color: #1a1a1a;
}

.filter-option input:checked ~ .checkmark {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.filter-option input:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.count {
    margin-left: auto;
    color: #a0a0a0;
    font-size: 0.8rem;
}

/* Price Range Filter */
.price-range {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.price-input {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-input label {
    font-size: 0.8rem;
    color: #6a6a6a;
    font-weight: 500;
}

.price-input input {
    padding: 0.5rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.price-input input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.price-slider {
    position: relative;
    height: 6px;
    margin: 1rem 0;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background: #e5e5e5;
    border-radius: 3px;
}

.slider-range {
    position: absolute;
    height: 6px;
    background: #1a1a1a;
    border-radius: 3px;
}

.price-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 6px;
    background: none;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}

.price-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #1a1a1a;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.price-slider input[type="range"]::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #1a1a1a;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Products Section */
.products-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e5e5;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    color: #6a6a6a;
    font-size: 0.9rem;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options label {
    font-size: 0.9rem;
    color: #4a4a4a;
    font-weight: 500;
}

.sort-options select {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-options select:focus {
    outline: none;
    border-color: #1a1a1a;
}

.view-options {
    display: flex;
    gap: 0.25rem;
}

.view-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e5e5e5;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.view-btn:hover {
    border-color: #1a1a1a;
}

.view-btn.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: white;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Enhanced Product Card for Catalog */
.catalog-content .product-card {
    position: relative;
    transition: all 0.3s ease;
}

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

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.featured {
    background: #1a1a1a;
    color: white;
}

.badge.new {
    background: #22c55e;
    color: white;
}

.badge.sale {
    background: #ef4444;
    color: white;
}

.product-brand {
    font-size: 0.85rem;
    color: #6a6a6a;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-tag {
    padding: 0.25rem 0.75rem;
    background: #f0f0f0;
    color: #4a4a4a;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* List View */
.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: center;
}

.products-grid.list-view .product-image {
    height: 150px;
}

.products-grid.list-view .product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.page-btn {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e5e5;
    background: white;
    color: #4a4a4a;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 44px;
}


.page-btn:hover:not(:disabled) {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.page-btn.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: white;
}

.page-btn.active:hover {
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.dots {
    padding: 0 0.5rem;
    color: #a0a0a0;
}

.badge.featured {
    background: #1a1a1a;
    color: white;
}

.badge.bestseller {
    background: #22c55e;
    color: white;
}

.badge.new {
    background: #3b82f6;
    color: white;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
        order: 2;
    }

    .products-section {
        order: 1;
    }
}

@media (max-width: 768px) {
    .catalog-header h1 {
        font-size: 2rem;
    }

    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .sort-options {
        justify-content: space-between;
    }

    .view-options {
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .filters-sidebar {
        padding: 1rem;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-grid.list-view .product-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .price-inputs {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
.product-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* Filter Animations */
.filter-option {
    transition: all 0.3s ease;
}

.filter-option:hover {
    background: #f8f9fa;
    margin: 0 -0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

/* Enhanced Hover Effects */
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

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

/* Active Filter Styling */
.filter-option.active {
    background: #f0f8ff;
    margin: 0 -0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border-left: 3px solid #1a1a1a;
}

.product-image img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image img.catalog-item {
    opacity: 1;
}

/* Плейсхолдер пока изображение грузится */
.loading_image {
    background: #f5f5f5;
    position: relative;
}

.loading_image::before {
    content: "Загрузка...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ccc;
}

.page-btn {
    text-decoration: none;
}

.mobile-apply-btn {

}
