/* ===== МОДЕРНА КАТЕГОРИЙНА СТРАНИЦА ===== */

/* Основни променливи */
:root {
    --primary-color: #fcb900;
    --primary-hover: #e6a600;
    --text-color: #333;
    --text-light: #666;
    --text-muted: #999;
    --border-color: #e9ecef;
    --bg-light: #f8f9fa;
    --bg-white: #fff;
    --shadow-light: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 15px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
    --border-radius: 12px;
    --border-radius-small: 8px;
    --transition: all 0.3s ease;
    --base-font-size: 19px; /* Увеличен базов размер на шрифта с още 4px */
}

/* ===== HERO СЕКЦИЯ ===== */
.modern-category-hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.hero-content {
    text-align: center;
}

.breadcrumbs-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.breadcrumb-home,
.breadcrumb-link {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumb-home:hover,
.breadcrumb-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-separator {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.breadcrumb-current {
    color: var(--primary-color);
    font-weight: 600;
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.products-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 1.4rem;
    font-weight: 500;
}

.products-count i {
    color: var(--primary-color);
}

/* ===== LAYOUT ===== */
.category-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

/* ===== МОДЕРНИ ФИЛТРИ ===== */
.modern-filters {
    background: transparent;
    padding: 0;
    position: sticky;
    top: 2rem;
}

.filters-header {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filters-header h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filters-header h3 i {
    color: var(--primary-color);
}

.filters-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.filters-toggle:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Филтър секция */
.filter-section {
    margin-bottom: 1.5rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
}

.filter-section:hover {
    box-shadow: var(--shadow-medium);
}

.filter-header {
    background: var(--bg-light);
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.filter-header:hover {
    background: #f0f1f2;
}

.filter-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-header h4 i {
    color: var(--primary-color);
    font-size: 12px;
}

.filter-toggle {
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    transition: var(--transition);
}

.filter-content {
    padding: 1rem;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.filter-section.collapsed .filter-content {
    max-height: 0;
    padding: 0 1rem;
}

/* Търсене в филтрите */
.search-box {
    position: relative;
    margin-bottom: 1rem;
}

.filter-search {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    font-size: 16px;
    transition: var(--transition);
}

.filter-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(252, 185, 0, 0.1);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 12px;
}

/* Дърво на категориите */
.categories-tree {
    overflow-y: visible; /* Премахваме ограничението за височина на desktop */
}

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

.main-category {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius-small);
    transition: var(--transition);
    font-weight: 500;
}

.main-category:hover,
.main-category.active {
    background: var(--primary-color);
    color: black;
    text-decoration: none;
}

.category-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.category-name {
    flex: 1;
}

.expand-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.main-category.active .expand-arrow {
    transform: rotate(90deg);
}

.subcategories {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border-color);
}

.subcategory,
.sub-subcategory {
    display: block;
    padding: 0.5rem 0.75rem;
    color: black;
    text-decoration: none;
    border-radius: var(--border-radius-small);
    transition: var(--transition);
    font-size: 12px;
    margin-bottom: 0.25rem;
}

.subcategory:hover,
.subcategory.active,
.sub-subcategory:hover,
.sub-subcategory.active {
    background: rgba(252, 185, 0, 0.1);
    color: var(--primary-color);
    text-decoration: none;
}

.sub-subcategories {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border-color);
}

/* Highlight за търсене в категориите */
.search-highlight {
    background: var(--primary-color);
    color: #000;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

/* Checkbox списък */
.checkbox-list {
    overflow-y: visible; /* Премахваме ограничението за височина на desktop */
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-item:hover {
    background: var(--bg-light);
    border-radius: var(--border-radius-small);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-item input:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-item input:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: 'FontAwesome';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.4;
}

/* Range филтър */
.range-filter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.range-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    font-size: 16px;
    text-align: center;
    width: 40%;
}

.range-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.range-separator {
    color: var(--text-muted);
    font-weight: bold;
}

.range-apply {
    background: var(--primary-color);
    color: black;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.range-apply:hover {
    background: var(--primary-hover);
}

/* Range Slider стилове */
.price-range-slider {
    margin: 1rem 0;
}

.range-slider-container {
    position: relative;
    margin: 2rem 0 1rem 0;
}

.range-slider {
    position: relative;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    margin: 0 10px;
}

.range-slider-track {
    position: absolute;
    height: 6px;
    background: var(--primary-color);
    border-radius: 3px;
    top: 0;
}

.range-slider-thumb {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    top: -7px;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.range-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(252, 185, 0, 0.4);
}

.range-slider-thumb.dragging {
    transform: scale(1.3);
    box-shadow: 0 6px 20px rgba(252, 185, 0, 0.6);
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 16px;
    color: var(--text-light);
}

.range-current-values {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--border-radius-small);
    font-weight: 600;
    color: var(--primary-color);
}

/* Действия за филтри */
.filters-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.clear-filters {
    width: 100%;
    background: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.clear-filters:hover {
    background: #e9ecef;
    border-color: var(--text-light);
}

/* ===== СЪДЪРЖАНИЕ НА КАТЕГОРИЯТА ===== */
.category-content {
    min-height: 600px;
}

/* Мобилен филтър бутон */
.mobile-filters-btn {
    display: none;
    width: 100%;
    background: var(--primary-color);
    color: black;
    border: none;
    padding: 1rem;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    position: relative;
}

.filters-count {
    background: rgba(255,255,255,0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 12px;
    min-width: 20px;
}

/* Toolbar за продукти */
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.toolbar-left {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.toolbar-right {
    display: flex;
    align-items: center;
}

/* Dropdown стилове */
.sort-dropdown,
.limit-dropdown {
    position: relative;
}

.sort-btn,
.limit-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 14px;
    color: var(--text-color);
}

.sort-btn:hover,
.limit-btn:hover {
    border-color: var(--primary-color);
    background: rgba(252, 185, 0, 0.1);
}

.sort-menu,
.limit-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    box-shadow: var(--shadow-medium);
    min-width: 200px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.sort-dropdown.active .sort-menu,
.limit-dropdown.active .limit-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-option,
.limit-option {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.sort-option:last-child,
.limit-option:last-child {
    border-bottom: none;
}

.sort-option:hover,
.limit-option:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    text-decoration: none;
}

/* Превключване на изгледа */
.view-toggle {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    overflow: hidden;
}

.view-btn {
    background: var(--bg-light);
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
}

.view-btn:hover,
.view-btn.active {
    background: var(--primary-color);
    color: black;
}

.view-btn + .view-btn {
    border-left: 1px solid var(--border-color);
}

/* ===== ПРОДУКТИ МРЕЖА ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.products-grid .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* Изображение на продукта */
.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg-light);
}

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

.main-image,
.hover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* Hover ефект само ако има втора снимка */
.product-card:hover .hover-image {
    opacity: 1;
}

.product-card:hover .main-image {
    opacity: 0;
}

/* Ако няма втора снимка, не правим hover ефект */
.product-card:not(.has-hover-image):hover .main-image {
    opacity: 1;
}

/* Значки на продукта */
.product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.badge.discount {
    background: #dc3545;
    color: white;
}

.badge.new {
    background: #28a745;
    color: white;
}

.badge.out-of-stock {
    background: #6c757d;
    color: white;
}

/* Контрол на видимостта на бутоните */
.products-grid .list-only {
    display: none;
}

.products-list .grid-only {
    display: none;
}

/* Позиционираме бутоните в мрежовия изглед спрямо снимката */
.products-grid .product-image {
    position: relative;
}

/* Действия за продукта в мрежа - позиционирани в снимката */
.products-grid .product-actions.grid-only {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 5;
}

.products-grid .grid-actions {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    justify-content: center;
}

.products-grid .product-card:hover .grid-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: var(--primary-color);
    color: black;
    transform: scale(1.1);
}

.action-btn.active {
    background: var(--primary-color);
    color: black;
}

.add-to-cart {
    background: var(--primary-color);
    color: black;
}

.add-to-cart:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

/* Информация за продукта */
.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-title {
    margin: 0 0 1rem;
    font-size: 18px; /* Увеличен размер с още 4px */
    font-weight: 600;
    line-height: 1.4;
    flex-grow: 1;
}

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

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

/* Скриваме описанието в мрежовия изглед */
.products-grid .product-description {
    display: none;
}

.product-price {
    display: flex;
    flex-direction: column;
    margin-top: auto;
}

.price-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.old-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 14px;
    order: -1; /* Показваме я първа (отгоре) */
}

.current-price , .price-secondary {
    color: #dc3545;
    font-size: 18px;
    font-weight: 700;
}

/* ===== СПИСЪЧЕН ИЗГЛЕД ===== */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.products-list .product-card {
    display: grid;
    grid-template-columns: 250px 1fr auto;
    gap: 2rem;
    align-items: start;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.products-list .product-image {
    aspect-ratio: 1;
    width: 250px;
    position: relative;
}

.products-list .product-info {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* В списъчен изглед цените остават хоризонтално */
.products-list .product-price {
    flex-direction: column;
    margin-top: 0;
}

.products-list .price-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* В списъчен изглед заглавието не трябва да заема цялото място */
.products-list .product-title {
    flex-grow: 0;
    margin-bottom: 0.5rem;
}

.products-list .product-description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 0.5rem;
}

.products-list .product-card {
    position: relative;
}

/* Действия за продукта в списъчен изглед - позиционирани в цялата карта */
.products-list .product-actions.list-only {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    opacity: 1;
    transform: none;
    z-index: 10;
}

/* Премахнати старите стилове - заменени с по-специфичните за top-row и bottom-row */

/* Показваме само list-actions в списъчен изглед */
.products-list .list-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

/* Горен ред с малки бутони за сравнение и любими */
.products-list .list-actions .top-row {
    display: flex;
    gap: 0.5rem;
}

/* Долен ред с големия бутон за количка */
.products-list .list-actions .bottom-row {
    display: flex;
    width: 100%;
}

/* Малки бутони за сравнение и любими */
.products-list .list-actions .top-row .action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    min-height: auto;
    background: var(--bg-white);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.products-list .list-actions .top-row .action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(252, 185, 0, 0.3);
}

.products-list .list-actions .top-row .action-btn.active {
    background: var(--primary-color);
    color: black;
    border-color: var(--primary-color);
}

.products-list .list-actions .top-row .action-btn.active:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Голям бутон за количка */
.products-list .list-actions .bottom-row .action-btn {
    width: 100%;
    min-width: 150px;
    height: 44px;
    border-radius: var(--border-radius-small);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    min-height: 44px;
    background: var(--primary-color);
    color: black;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.products-list .list-actions .bottom-row .action-btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 185, 0, 0.4);
}

.products-list .list-actions .bottom-row .action-btn:disabled {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.8;
}

.products-list .list-actions .bottom-row .action-btn:disabled:hover {
    background: #6c757d;
    border-color: #6c757d;
    transform: none;
    box-shadow: none;
}

/* ===== НЯМА ПРОДУКТИ ===== */
.no-products {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    min-height: 400px;
}

.no-products-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.no-products h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 1rem 0;
}

.no-products p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0 0 2rem 0;
    max-width: 400px;
}

.no-products .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: black;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.no-products .btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===== ПАГИНАЦИЯ ===== */
.modern-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: black;
    font-size: 12px;
}

.pagination-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    color: black;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.pagination-btn:hover {
    background: var(--primary-color);
    color: black;
    border-color: var(--primary-color);
    text-decoration: none;
}

.pagination-btn.active {
    background: var(--primary-color);
    color: black;
    border-color: var(--primary-color);
}

/* ===== НЯМА ПРОДУКТИ ===== */
.no-products {
    text-align: center;
    padding: 4rem 2rem;
    color: black;
    font-size: 14px;
}

.no-products-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.no-products h3 {
    font-size: 18px;
    font-weight: 700;
    color: black;
    margin-bottom: 1rem;
}

.no-products p {
    font-size: 14px;
    color: black;
    margin-bottom: 2rem;
}

.btn-primary {
    background: var(--primary-color);
    color: black;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-hover);
    text-decoration: none;
    color: black;
}

/* ===== ОПИСАНИЕ НА КАТЕГОРИЯТА ===== */
.category-description-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.category-description-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.description-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.description-content {
    padding: 2rem;
}

.description-content h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.description-text {
    color: black;
    line-height: 1.6;
    font-size: 15px;
}

/* ===== FAQ СЕКЦИЯ ===== */
.faq-section {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 2rem;
}

.faq-section h2 {
    color: black;
    margin-bottom: 2rem;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-section h2 i {
    color: var(--primary-color);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: var(--bg-light);
    border: none;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.faq-question:hover,
.faq-question.active {
    background: #f0f1f2;
}

.question-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary-color);
}

.question-text {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: black;
}

.faq-question.active .toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
}

.answer-content {
    padding: 1.5rem;
    color: black;
    font-size: 14px;
    line-height: 1.6;
    border-top: 1px solid var(--border-color);
}

/* ===== МОБИЛНИ СТИЛОВЕ ===== */
.mobile-filters-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.mobile-filters-overlay.active {
    display: block;
}

/* ===== RESPONSIVE ДИЗАЙН ===== */

@media (max-width: 1200px) {
    .category-layout {
        grid-template-columns: 280px 1fr;
        gap: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .category-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .modern-filters {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 350px;
        height: 100vh;
        max-height: 100vh;
        z-index: 999;
        border-radius: 0;
        margin: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        background: var(--bg-white);
        box-shadow: var(--shadow-heavy);
        padding: 1.5rem;
        overflow-y: auto;
    }
    
    /* Връщаме ограниченията за височина на мобилни устройства */
    .modern-filters .categories-tree {
        max-height: 300px;
        overflow-y: auto;
    }
    
    .modern-filters .checkbox-list {
        max-height: 200px;
        overflow-y: auto;
    }
    
    .modern-filters .filter-content {
        max-height: 300px;
    }
    
    .modern-filters.mobile-active {
        display: block;
        transform: translateX(0);
    }
    
    .filters-toggle {
        display: block;
    }
    
    .mobile-filters-btn {
        display: flex;
    }
    
    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .toolbar-left {
        justify-content: space-between;
    }
    
    .toolbar-right {
        justify-content: center;
        display: none;
    }
    
    .category-description-card {
        grid-template-columns: 1fr;
    }
    
    .description-image img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .category-container {
        padding: 0 15px;
    }
    
    .modern-category-hero {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }
    
    .category-title {
        font-size: 20px;
    }
    
    .modern-filters {
        width: 100%;
        max-width: 320px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-card {
        border-radius: var(--border-radius-small);
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .modern-pagination {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .pagination-list {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .products-list .product-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .products-list .product-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .products-list .product-actions {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .category-container {
        padding: 0 10px;
    }
    
    .category-title {
        font-size: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .product-info {
        padding: 0.75rem;
    }
    
    .product-title {
        font-size: 16px;
    }
    
    .breadcrumbs-modern {
        justify-content: flex-start;
        text-align: left;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .answer-content {
        padding: 1rem;
    }
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus стилове за достъпност */
.filter-search:focus,
.range-input:focus,
.pagination-btn:focus,
.action-btn:focus,
.faq-question:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Scroll стилове */
.modern-filters::-webkit-scrollbar,
.categories-tree::-webkit-scrollbar,
.checkbox-list::-webkit-scrollbar {
    width: 6px;
}

.modern-filters::-webkit-scrollbar-track,
.categories-tree::-webkit-scrollbar-track,
.checkbox-list::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.modern-filters::-webkit-scrollbar-thumb,
.categories-tree::-webkit-scrollbar-thumb,
.checkbox-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.modern-filters::-webkit-scrollbar-thumb:hover,
.categories-tree::-webkit-scrollbar-thumb:hover,
.checkbox-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ===== МОБИЛЕН БУТОН ЗА КОЛИЧКА В GRID VIEW ===== */
.mobile-cart-button {
    display: none; /* Скрит по подразбиране */
    margin-top: 1rem;
}

.mobile-add-to-cart {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--primary-color);
    color: black;
    border: none;
    border-radius: var(--border-radius-small);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
    min-height: 44px;
}

.mobile-add-to-cart:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.mobile-add-to-cart:disabled {
    background: var(--text-light);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Показваме мобилния бутон само на мобилни устройства в grid view */
@media (max-width: 768px) {
    .products-grid .mobile-cart-button {
        display: block;
    }
    
    /* Скриваме hover бутоните (за сравнение и любими) в grid view на мобилни */
    .products-grid .product-actions.grid-only .grid-actions .compare-btn,
    .products-grid .product-actions.grid-only .grid-actions .wishlist-btn {
        display: none !important;
    }
    
    /* В list view скриваме мобилния бутон */
    .products-list .mobile-cart-button {
        display: none !important;
    }
}
