/* Category Page Styles - Стили страницы категории ТРОН */

/* Breadcrumbs */
.breadcrumb {
    font-size: 14px;
}

.breadcrumb-item a {
    color: var(--tron-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--tron-dark-blue);
}

/* Category Header */
.category-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
}

.category-icon {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-right: 2rem;
}

.category-icon i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--tron-blue) 0%, var(--tron-dark-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--tron-text);
    margin-bottom: 0.5rem;
}

.category-count {
    font-size: 1rem;
    color: #6c757d;
}

.category-description {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    border-left: 4px solid var(--tron-blue);
}

/* Subcategories Grid */
.subcategories-section {
    margin-bottom: 3rem;
}

.subcategories-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tron-text);
    margin-bottom: 1.5rem;
}

.subcategory-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    text-decoration: none;
    display: block;
    height: 100%;
}

.subcategory-card:hover {
    border-color: var(--tron-blue);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
}

.subcategory-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--tron-light-blue) 0%, rgba(0, 102, 204, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.subcategory-icon i {
    font-size: 1.8rem;
    color: var(--tron-blue);
}

.subcategory-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--tron-text);
    margin-bottom: 0.5rem;
}

.subcategory-count {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Filters Sidebar - Светлые фильтры */
.filters-sidebar {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 20px;
}

.filters-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tron-text);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.filter-group {
    margin-bottom: 0;
    padding: 1.5rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tron-text);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.filter-label i {
    margin-right: 0.5rem;
    color: var(--tron-blue);
}

/* Sidebar Search */
.sidebar-search-group {
    display: flex;
    gap: 0;
}

.sidebar-search-input {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px 0 0 12px !important;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    height: 48px;
    border-right: none;
}

.sidebar-search-input:focus {
    background: white;
    border-color: var(--tron-blue);
    box-shadow: none;
    outline: none;
}

.sidebar-search-btn {
    background: linear-gradient(135deg, #2549d8 0%, #1e3aad 100%);
    border: none;
    border-radius: 0 12px 12px 0 !important;
    padding: 0 1.25rem;
    color: white;
    transition: all 0.3s ease;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
}

.sidebar-search-btn:hover {
    background: linear-gradient(135deg, #1e3aad 0%, #162c82 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 73, 216, 0.3);
}

.sidebar-search-btn i {
    font-size: 1rem;
}

/* Обычные чекбоксы внутри filter-group */
.filter-group .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.filter-group .form-check-input {
    width: 18px;
    height: 18px;
    margin: 0 !important;
    cursor: pointer;
    border: 2px solid #dee2e6;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    position: relative;
}

/* Remove any bootstrap or other library's pseudo-elements */
.filter-group .form-check-input::before,
.filter-group .form-check-input::after {
    display: none !important;
    content: none !important;
}

.filter-group .form-check-input:checked {
    background-color: #2549d8;
    border-color: #2549d8;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.filter-group .form-check-input:focus {
    border-color: #2549d8;
    box-shadow: 0 0 0 0.25rem rgba(37, 73, 216, 0.15);
}

.filter-group .form-check-label {
    margin: 0;
    cursor: pointer;
    user-select: none;
    font-size: 0.875rem;
}

/* Row внутри filter-group (для цены) */
.filter-group .row {
    margin: 0;
}

.filter-group .row .col-6 {
    padding: 0 0.375rem;
}

.filter-group .row .col-6:first-child {
    padding-left: 0;
}

.filter-group .row .col-6:last-child {
    padding-right: 0;
}

/* d-grid внутри filter-group */
.filter-group .d-grid {
    width: 100%;
    margin: 0;
}

.filter-group .d-grid .filter-btn,
.filter-group .d-grid .filter-reset-btn {
    max-width: 100%;
    box-sizing: border-box;
}

.filter-input {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    height: 38px;
}

.filter-input:focus {
    background: white;
    border-color: var(--tron-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.1);
}

.filter-select {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 38px;
}

.filter-select:focus {
    background: white;
    border-color: var(--tron-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.1);
}

.filter-btn {
    background: linear-gradient(135deg, #2549d8 0%, #1e3aad 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 73, 216, 0.25);
    position: relative;
    overflow: hidden;
    height: 44px;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 73, 216, 0.35);
    background: linear-gradient(135deg, #1e3aad 0%, #162c82 100%);
}

.filter-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(37, 73, 216, 0.3);
}

.filter-btn i {
    margin-right: 8px;
}

.filter-reset-btn {
    background: white;
    border: 2px solid #2549d8;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2549d8;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    height: 44px;
    line-height: 1.5;
}

.filter-reset-btn:hover {
    background: #f3f5fc;
    border-color: #1e3aad;
    color: #1e3aad;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 73, 216, 0.15);
}

.filter-reset-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(37, 73, 216, 0.2);
}

.filter-reset-btn i {
    margin-right: 8px;
}

/* Specification Filters */
.spec-filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

.spec-filter-options::-webkit-scrollbar {
    width: 6px;
}

.spec-filter-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.spec-filter-options::-webkit-scrollbar-thumb {
    background: #2549d8;
    border-radius: 10px;
}

.spec-filter-options::-webkit-scrollbar-thumb:hover {
    background: #1e3aad;
}

.spec-filter-options .form-check {
    padding: 16px 16px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-filter-options .form-check:hover {
    border-color: #2549d8;
    background: #f3f5fc;
    transform: translateX(3px);
}

.spec-filter-options .form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 !important;
    flex-shrink: 0;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
}

/* Remove any bootstrap or other library's pseudo-elements */
.spec-filter-options .form-check-input::before,
.spec-filter-options .form-check-input::after {
    display: none !important;
    content: none !important;
}

.spec-filter-options .form-check-input:checked {
    background-color: #2549d8;
    border-color: #2549d8;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.spec-filter-options .form-check-input:focus {
    border-color: #2549d8;
    box-shadow: 0 0 0 0.25rem rgba(37, 73, 216, 0.15);
}

.spec-filter-options .form-check-label {
    cursor: pointer;
    font-size: 0.95rem;
    color: #2b2b2e;
    margin: 0;
    user-select: none;
    flex: 1;
}

/* Disabled/Unavailable filters */
.filter-unavailable {
    opacity: 0.4;
    pointer-events: none;
}

.filter-unavailable .form-check-input:disabled {
    cursor: not-allowed;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.filter-unavailable .form-check-label {
    color: #adb5bd;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* ==========================================
   MOBILE ADAPTATIONS
   ========================================== */

/* Mobile Filter Button */
.mobile-filter-toggle {
    background: linear-gradient(135deg, #2549d8, #1a3ba8);
    border: none;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(37, 73, 216, 0.3);
    transition: all 0.3s ease;
}

.mobile-filter-toggle:hover,
.mobile-filter-toggle:focus {
    background: linear-gradient(135deg, #1a3ba8, #0d2360);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 73, 216, 0.4);
}

.mobile-filter-toggle:active {
    transform: translateY(0);
}

/* Mobile Filters Offcanvas */
#mobileFilters .offcanvas-header {
    background: linear-gradient(135deg, #2549d8, #1a3ba8);
    color: white;
    padding: 20px;
}

#mobileFilters .offcanvas-title {
    color: white;
    font-weight: 700;
}

#mobileFilters .btn-close {
    filter: brightness(0) invert(1);
}

#mobileFilters .offcanvas-body {
    padding: 0;
}

#mobileFilters .filters-sidebar {
    border-radius: 0;
    box-shadow: none;
    height: 100%;
}

/* Mobile Pagination Styles - УМЕНЬШЕННАЯ */
@media (max-width: 767.98px) {
    /* Pagination container */
    .pagination {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
        margin: 0.75rem 0;
        align-items: center;
    }
    
    /* Скрываем все страницы по умолчанию */
    .pagination .page-item {
        margin: 0 !important;
        display: none !important;
    }
    
    .pagination .page-link {
        padding: 0 !important;
        font-size: 0.75rem !important;
        min-width: 32px !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 6px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
    }
    
    /* Показываем 5-6 страниц */
    .pagination .page-item:nth-child(1),  /* Previous */
    .pagination .page-item:nth-child(2),  /* Страница 1 */
    .pagination .page-item:nth-child(3),  /* Страница 2 */
    .pagination .page-item:nth-child(4),  /* Страница 3 */
    .pagination .page-item:nth-child(5),  /* Страница 4 */
    .pagination .page-item:nth-child(6),  /* Страница 5 */
    .pagination .page-item:nth-child(7),  /* Страница 6 */
    .pagination .page-item.active,        /* Активная страница */
    .pagination .page-item:last-child,    /* Next */
    .pagination .page-item:nth-last-child(2), /* Последняя страница */
    .pagination .page-item.disabled {     /* ... (троеточие) */
        display: flex !important;
        align-items: center !important;
    }
    
    /* Все элементы одинакового размера */
    .pagination .page-item:nth-child(1) .page-link,
    .pagination .page-item:nth-child(2) .page-link,
    .pagination .page-item:nth-child(3) .page-link,
    .pagination .page-item:nth-child(4) .page-link,
    .pagination .page-item:nth-child(5) .page-link,
    .pagination .page-item:nth-child(6) .page-link,
    .pagination .page-item:nth-child(7) .page-link,
    .pagination .page-item.active .page-link,
    .pagination .page-item:last-child .page-link,
    .pagination .page-item:nth-last-child(2) .page-link,
    .pagination .page-item.disabled .page-link {
        height: 32px !important;
        width: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
    }
    
    /* Products header on mobile */
    .products-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .products-title-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        flex: 1;
        min-width: 0;
    }
    
    .products-title {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    
    .products-meta {
        font-size: 0.9rem;
    }
    
    .products-meta span {
        font-size: 0.9rem;
    }
    
    .products-meta i {
        font-size: 0.85rem;
    }
    
    .view-toggle {
        justify-content: flex-end;
        flex-shrink: 0;
    }
    
    /* Product cards on mobile - GRID VIEW (2 columns) */
    .products-grid:not(.list-view) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        display: grid;
    }
    
    /* Grid view cards - КРАСИВЫЕ И ПРОПОРЦИОНАЛЬНЫЕ */
    .products-grid:not(.list-view) .carousel-product-card,
    .products-grid:not(.list-view) .grid-template {
        padding: 8px;
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0 !important;
        border-radius: 12px;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
    }
    
    .products-grid:not(.list-view) .carousel-product-card:active {
        transform: scale(0.98);
    }
    
    .products-grid .carousel-product-image,
    .products-grid .product-card-img {
        height: 140px;
        width: 100%;
        border-radius: 8px;
        object-fit: cover;
        margin-bottom: 6px;
    }
    
    .products-grid .carousel-product-info {
        padding: 6px 4px;
    }
    
    .products-grid .carousel-product-title,
    .products-grid .product-title {
        font-size: 0.8rem;
        line-height: 1.2;
        margin-bottom: 6px;
        max-height: 2.4em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        font-weight: 500;
        color: #2b2b2e;
    }
    
    .products-grid .carousel-product-sku {
        font-size: 0.65rem;
        margin-bottom: 4px;
        color: #6c757d;
    }
    
    .products-grid .carousel-product-rating {
        margin-bottom: 4px;
        display: none;
    }
    
    .products-grid .carousel-rating-stars i {
        font-size: 0.6rem;
    }
    
    .products-grid .carousel-rating-text {
        font-size: 0.65rem;
    }
    
    .products-grid .carousel-product-status {
        font-size: 0.65rem;
        margin-bottom: 6px;
        display: none;
    }
    
    .products-grid .carousel-current-price,
    .products-grid .product-price {
        font-size: 0.95rem;
        font-weight: 700;
        color: #2549d8;
    }
    
    .products-grid .carousel-old-price {
        font-size: 0.7rem;
        color: #999;
    }
    
    .products-grid .carousel-discount-percent {
        font-size: 0.65rem;
        padding: 2px 4px;
    }
    
    .products-grid .carousel-add-to-cart,
    .products-grid .btn-add-to-cart {
        padding: 6px 8px;
        font-size: 0.75rem;
        width: 100%;
        border-radius: 8px;
        font-weight: 600;
    }
    
    .products-grid .carousel-add-to-cart i {
        font-size: 0.75rem;
        margin-right: 3px;
    }
    
    /* Badges */
    .products-grid .carousel-badge {
        font-size: 0.6rem;
        padding: 3px 6px;
        border-radius: 6px;
    }
    
    /* Action buttons */
    .products-grid .carousel-action-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        border-radius: 50%;
        background: white;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        border: 1px solid #f0f0f0;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }
    
    .products-grid .carousel-action-btn:hover,
    .products-grid .carousel-action-btn:active {
        background: #2549d8;
        color: white;
        border-color: #2549d8;
        transform: scale(1.05);
    }
    
    .products-grid .carousel-action-btn i {
        transition: all 0.2s ease;
    }
    
    /* Контейнер с кнопками действий */
    .products-grid .carousel-product-actions {
        position: absolute;
        top: 8px;
        right: 8px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        z-index: 2;
    }
    
    /* Product footer */
    .products-grid .carousel-product-footer {
        margin-top: 8px;
    }
    
    /* Product badges container */
    .products-grid .carousel-product-badges {
        gap: 4px;
    }
    
    /* LIST VIEW on mobile (1 column, full width) */
    .products-grid.list-view {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .products-grid.list-view .product-list-card,
    .products-grid.list-view .list-template {
        display: flex !important;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    
    .products-grid.list-view .list-product-image {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
    }
    
    .products-grid.list-view .list-product-content {
        flex: 1;
        min-width: 0;
    }
    
    .products-grid.list-view .list-product-title {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .products-grid.list-view .list-product-description {
        display: none; /* Hide on mobile */
    }
    
    .products-grid.list-view .list-product-specs {
        display: none; /* Hide on mobile */
    }
    
    .products-grid.list-view .list-current-price {
        font-size: 1.1rem;
    }
    
    .products-grid.list-view .list-add-to-cart-btn {
        padding: 8px 12px;
        font-size: 0.875rem;
        width: 100%;
    }
    
    /* Breadcrumbs on mobile - СКРЫТЫ */
    .breadcrumb,
    nav[aria-label="breadcrumb"] {
        display: none !important;
    }
    
    /* Поиск - исправление отступов для иконки */
    .search-input,
    .form-control[name="query"],
    input[type="text"][name="query"],
    input[placeholder*="оиск"] {
        padding-left: 45px !important;
    }
    
    .search-icon,
    .fas.fa-search {
        left: 14px !important;
        font-size: 1rem;
        z-index: 10;
    }
    
    .search-box .form-control,
    .d-lg-none .search-box .form-control {
        padding-left: 52px !important;
    }
    
    /* Sidebar search */
    .sidebar-search-input,
    .filter-input[placeholder*="оиск"] {
        padding-left: 42px !important;
    }
    
    /* Поиск в хедере мобильной версии */
    .d-lg-none input[name="query"] {
        padding-left: 52px !important;
    }
}

/* Very small screens */
@media (max-width: 575.98px) {
    /* Grid view остается 2 колонки */
    .products-grid:not(.list-view) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
        display: grid;
    }
    
    .products-grid:not(.list-view) .carousel-product-card,
    .products-grid:not(.list-view) .grid-template {
        padding: 6px;
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0 !important;
        border-radius: 10px;
    }
    
    .products-grid .carousel-product-image,
    .products-grid .product-card-img {
        height: 120px;
        border-radius: 6px;
        margin-bottom: 5px;
    }
    
    .products-grid .carousel-product-info {
        padding: 5px 3px;
    }
    
    .products-grid .carousel-product-title,
    .products-grid .product-title {
        font-size: 0.75rem;
        line-height: 1.15;
        max-height: 2.3em;
        overflow: hidden;
        margin-bottom: 5px;
        font-weight: 500;
    }
    
    .products-grid .carousel-product-sku {
        font-size: 0.6rem;
        margin-bottom: 4px;
    }
    
    .products-grid .carousel-product-rating {
        display: none;
    }
    
    .products-grid .carousel-product-status {
        display: none;
    }
    
    .products-grid .carousel-current-price,
    .products-grid .product-price {
        font-size: 0.85rem;
        font-weight: 700;
    }
    
    .products-grid .carousel-add-to-cart,
    .products-grid .btn-add-to-cart {
        padding: 5px 6px;
        font-size: 0.7rem;
        border-radius: 6px;
    }
    
    .products-grid .carousel-action-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        background: white;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        border: 1px solid #f0f0f0;
        border-radius: 50%;
    }
    
    .products-grid .carousel-action-btn:active {
        background: #2549d8;
        color: white;
        transform: scale(0.95);
    }
    
    .products-grid .carousel-product-actions {
        position: absolute;
        top: 6px;
        right: 6px;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .products-grid .carousel-badge {
        font-size: 0.55rem;
        padding: 2px 4px;
    }
    
    /* List view - 1 колонка горизонтально */
    .products-grid.list-view {
        grid-template-columns: 1fr !important;
    }
    
    .products-grid.list-view .list-product-image {
        width: 100px;
        height: 100px;
    }
    
    .products-grid.list-view .list-product-title {
        font-size: 0.85rem;
    }
    
    .products-grid.list-view .list-current-price {
        font-size: 1rem;
    }
    
    .pagination .page-link {
        padding: 3px 6px;
        font-size: 0.7rem;
        min-width: 28px;
        height: 28px;
    }
    
    /* Subcategories on very small screens */
    .subcategories-section .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Breadcrumbs - скрыты */
    .breadcrumb,
    nav[aria-label="breadcrumb"] {
        display: none !important;
    }
    
    /* Поиск - исправление отступов */
    .search-input,
    .form-control[name="query"] {
        padding-left: 42px !important;
        font-size: 0.9rem;
    }
    
    .search-icon {
        left: 12px !important;
        font-size: 0.9rem;
    }
}

/* Fix double checkmark issue - global override for all checkboxes */
.form-check-input[type="checkbox"],
.filters-sidebar .form-check-input[type="checkbox"],
.filter-group .form-check-input[type="checkbox"],
.spec-filter-options .form-check-input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

/* Remove any bootstrap or other library's pseudo-elements globally */
.form-check-input[type="checkbox"]::before,
.form-check-input[type="checkbox"]::after,
.filters-sidebar .form-check-input[type="checkbox"]::before,
.filters-sidebar .form-check-input[type="checkbox"]::after,
.filter-group .form-check-input[type="checkbox"]::before,
.filter-group .form-check-input[type="checkbox"]::after,
.spec-filter-options .form-check-input[type="checkbox"]::before,
.spec-filter-options .form-check-input[type="checkbox"]::after {
    display: none !important;
    content: none !important;
}

.filter-label small {
    display: block;
    font-size: 0.75rem;
    color: #909098;
    margin-top: 2px;
    font-weight: normal;
}

/* Products Section */
.products-header {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.products-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tron-text);
    margin: 0;
}

.products-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.products-count {
    font-size: 0.875rem;
    color: #6c757d;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 20px;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    border-color: var(--tron-blue);
    color: var(--tron-blue);
}

.view-btn.active {
    background: var(--tron-blue);
    border-color: var(--tron-blue);
    color: white;
}

/* Products Grid and List */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Мобильная сетка - всегда 2 колонки на маленьких экранах */
@media (max-width: 767.98px) {
    .products-grid:not(.list-view) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    /* Убираем любые min-width с карточек */
    .products-grid .carousel-product-card,
    .products-grid .grid-template,
    .products-grid .product-card {
        min-width: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .products-grid:not(.list-view) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    
    /* Убираем любые min-width с карточек */
    .products-grid .carousel-product-card,
    .products-grid .grid-template,
    .products-grid .product-card {
        min-width: 0 !important;
    }
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.products-list .product-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
}

/* Hide description in grid mode */
.carousel-product-description {
    display: none;
}

/* List View Mode */
.products-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.products-grid.list-view .carousel-product-card {
    display: flex;
    flex-direction: row;
    max-width: 100%;
    height: auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.products-grid.list-view .carousel-product-card:hover {
    box-shadow: 0 6px 24px rgba(37, 73, 216, 0.15);
    transform: translateY(-2px);
}

.products-grid.list-view .carousel-product-image {
    flex: 0 0 280px;
    height: 280px;
    position: relative;
}

.products-grid.list-view .carousel-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products-grid.list-view .carousel-product-info {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.products-grid.list-view .carousel-product-title {
    font-size: 1.3rem;
    margin: 0;
}

.products-grid.list-view .carousel-product-description {
    display: block;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 8px 0;
    max-height: 60px;
    overflow: hidden;
}

.products-grid.list-view .carousel-product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
}

.products-grid.list-view .spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #495057;
}

.products-grid.list-view .spec-item i {
    color: #2549d8;
    font-size: 0.9rem;
}

.products-grid.list-view .carousel-product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.products-grid.list-view .carousel-product-price {
    flex: 0 0 auto;
}

.products-grid.list-view .carousel-product-button {
    flex: 0 0 auto;
    padding: 12px 32px;
    font-size: 1rem;
}

.products-grid.list-view .carousel-product-badges {
    top: 16px;
    left: 16px;
    right: auto;
    flex-direction: column;
    align-items: flex-start;
}

.products-grid.list-view .carousel-product-actions {
    top: 16px;
    right: 16px;
    left: auto;
    flex-direction: column;
}

.products-list .product-image {
    height: 100%;
}

.products-list .product-body {
    padding: 1rem;
}

.products-list .product-name {
    font-size: 1.125rem;
}

.products-list .product-description {
    -webkit-line-clamp: 3;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--tron-blue);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.12);
    transform: translateY(-5px);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: #28a745;
    color: white;
}

.badge-sale {
    background: #dc3545;
    color: white;
}

.badge-featured {
    background: #ffc107;
    color: #000;
}

.wishlist-btn {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background: var(--tron-blue);
    color: white;
    transform: scale(1.1);
}

.product-body {
    padding: 1.25rem;
}

.product-category-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--tron-text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.rating-stars {
    color: #ffc107;
    font-size: 0.875rem;
}

.rating-count {
    font-size: 0.75rem;
    color: #6c757d;
    margin-left: 0.5rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.product-price-wrapper {
    display: flex;
    flex-direction: column;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tron-blue);
}

.product-old-price {
    font-size: 0.875rem;
    color: #6c757d;
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.product-view-btn {
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid var(--tron-blue);
    color: var(--tron-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-view-btn:hover {
    background: var(--tron-blue);
    color: white;
}

.product-cart-btn {
    width: 36px;
    height: 36px;
    background: var(--tron-blue);
    border: none;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-cart-btn:hover {
    background: var(--tron-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid #f0f0f0;
}

.empty-state-icon {
    font-size: 5rem;
    color: #dee2e6;
    margin-bottom: 1.5rem;
}

.empty-state-icon i {
    display: inline-block;
}

.empty-state h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--tron-text);
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.125rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
}

.page-link {
    border-radius: 8px;
    margin: 0 0.25rem;
    border: 1px solid #e9ecef;
    color: var(--tron-text);
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.page-link:hover {
    background: var(--tron-light-blue);
    border-color: var(--tron-blue);
    color: var(--tron-blue);
}

.page-item.active .page-link {
    background: var(--tron-blue);
    border-color: var(--tron-blue);
}

/* Responsive */
@media (max-width: 991px) {
    .filters-sidebar {
        margin-bottom: 2rem;
        position: relative;
        top: 0;
    }
    
    .category-header {
        padding: 1.5rem;
    }
    
    .category-icon {
        width: 80px;
        height: 80px;
        margin-right: 1.5rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .products-header {
        padding: 1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .products-title {
        font-size: 1.15rem;
        line-height: 1.3;
        margin-bottom: 0.25rem;
    }
    
    .products-meta {
        font-size: 0.85rem;
        justify-content: flex-start;
    }
    
    .products-meta span {
        font-size: 0.85rem;
    }
    
    .view-toggle {
        display: flex;
        gap: 0.5rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        margin-right: 1rem;
    }
    
    .category-title {
        font-size: 1.25rem;
    }
    
    .subcategory-card {
        padding: 1rem;
    }
    
    /* Grid view - 2 колонки на мобильных */
    .products-grid:not(.list-view) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    
    .products-list .product-card {
        grid-template-columns: 1fr;
    }
    
    .products-list .product-image {
        height: 220px;
    }
    
    /* List view responsive */
    .products-grid.list-view .carousel-product-card {
        flex-direction: column;
    }
    
    .products-grid.list-view .carousel-product-image {
        flex: 0 0 auto;
        height: 200px;
        width: 100%;
    }
    
    .products-grid.list-view .carousel-product-info {
        padding: 16px;
    }
    
    .products-grid.list-view .carousel-product-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .products-grid.list-view .carousel-product-button {
        width: 100%;
    }
}

/* ========================================
   LIST VIEW TEMPLATE STYLES
   ======================================== */

/* List view контейнер */
.products-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Карточка товара в списке */
.product-list-card {
    display: flex;
    flex-direction: row;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-list-card:hover {
    box-shadow: 0 8px 30px rgba(37, 73, 216, 0.15);
    transform: translateY(-2px);
    border-color: #2549d8;
}

/* Изображение в списке */
.list-product-image {
    position: relative;
    flex: 0 0 280px;
    height: 280px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-list-card:hover .list-product-image img {
    transform: scale(1.08);
}

/* Бейджи в списке */
.list-product-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.list-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.list-badge.badge-sale {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.list-badge.badge-new {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.list-badge.badge-hit {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

/* Контент карточки */
.list-product-content {
    flex: 1;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Хедер с мета-информацией */
.list-product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.list-product-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-product-sku {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.list-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-rating-stars {
    display: flex;
    gap: 2px;
}

.list-rating-stars .fa-star {
    font-size: 0.875rem;
    color: #ddd;
}

.list-rating-stars .fa-star.filled {
    color: #ffc107;
}

.list-rating-value {
    font-size: 0.875rem;
    color: #2b2b2e;
    font-weight: 600;
}

/* Кнопки действий */
.list-product-actions {
    display: flex;
    gap: 8px;
}

.list-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.list-action-btn:hover {
    background: #2549d8;
    color: white;
    border-color: #2549d8;
    transform: translateY(-2px);
}

/* Заголовок товара */
.list-product-title {
    margin: 0;
    padding: 0;
}

.list-product-title a {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2b2b2e;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.list-product-title a:hover {
    color: #2549d8;
}

/* Описание */
.list-product-description {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    min-height: 60px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Характеристики */
.list-product-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 8px 0;
}

.list-spec-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.875rem;
}

.list-spec-name {
    color: #6c757d;
    font-weight: 500;
}

.list-spec-value {
    color: #2b2b2e;
    font-weight: 600;
    text-align: right;
}

/* Футер карточки */
.list-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: nowrap;
}

/* Доступность */
.list-product-availability {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.list-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

.list-status-text {
    font-size: 0.875rem;
    color: #27ae60;
    font-weight: 600;
}

.list-delivery-info {
    font-size: 0.875rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
}

.list-delivery-info i {
    color: #2549d8;
}

/* Цена и покупка */
.list-product-purchase {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: nowrap;
    min-width: 0;
}

.list-product-price {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex-shrink: 0;
}

.list-price-main {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.list-current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #2549d8;
    line-height: 1;
}

.list-discount-badge {
    padding: 6px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.list-old-price {
    font-size: 1.125rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

/* Кнопка "В корзину" */
.list-add-to-cart-btn {
    padding: 16px 36px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #2549d8 0%, #1e3aad 100%);
    color: white;
    font-size: 1.0625rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(37, 73, 216, 0.3);
    white-space: nowrap;
    min-width: 180px;
}

.list-add-to-cart-btn:hover {
    background: linear-gradient(135deg, #1e3aad 0%, #162c82 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 73, 216, 0.4);
}

.list-add-to-cart-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(37, 73, 216, 0.3);
}

.list-add-to-cart-btn i {
    font-size: 1.125rem;
}

/* Responsive для list view */
@media (max-width: 1200px) {
    .list-product-footer {
        flex-wrap: wrap;
    }
    
    .list-product-purchase {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 992px) {
    .list-product-image {
        flex: 0 0 250px;
        height: 250px;
    }
    
    .list-product-content {
        padding: 20px;
    }
    
    .list-product-specs {
        grid-template-columns: 1fr;
    }
    
    .list-current-price {
        font-size: 1.5rem;
    }
    
    .list-add-to-cart-btn {
        padding: 14px 28px;
        font-size: 1rem;
        min-width: 160px;
    }
}

@media (max-width: 768px) {
    /* Контейнер списка товаров */
    .products-grid.list-view {
        width: 100% !important;
        padding: 0 !important;
        gap: 16px !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* СКРЫТЬ grid-template в мобильной версии */
    .products-grid.list-view .grid-template,
    .products-grid.list-view .carousel-product-card {
        display: none !important;
    }
    
    /* ПОКАЗАТЬ только list-template - МОБИЛЬНАЯ */
    .products-grid.list-view .product-list-card,
    .products-grid.list-view .list-template {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 16px 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        background: white !important;
        border-radius: 20px !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    }
    
    /* Изображение товара в списке - МОБИЛЬНАЯ */
    .products-grid.list-view .product-list-card .list-product-image,
    .products-grid.list-view .list-template .list-product-image {
        flex: 0 0 200px !important;
        height: 200px !important;
        width: 100% !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    .products-grid.list-view .product-list-card .list-product-image img,
    .products-grid.list-view .list-template .list-product-image img {
        width: 100% !important;
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        object-fit: cover !important;
    }
    
    /* Контент карточки - МОБИЛЬНАЯ */
    .products-grid.list-view .list-product-content {
        padding: 16px !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    .products-grid.list-view .list-product-title {
        font-size: 1rem !important;
        margin: 8px 0 12px 0 !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        min-height: 42px !important;
    }
    
    .products-grid.list-view .list-product-title a {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .products-grid.list-view .list-product-sku {
        font-size: 0.75rem !important;
    }
    
    .products-grid.list-view .list-product-rating {
        font-size: 0.75rem !important;
    }
    
    .products-grid.list-view .list-product-description {
        font-size: 0.875rem !important;
        margin: 12px 0 !important;
        min-height: 60px !important;
        max-height: 60px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        width: 100% !important;
    }
    
    /* Футер карточки - МОБИЛЬНАЯ */
    .products-grid.list-view .list-product-footer {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
        padding-top: 12px !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    .products-grid.list-view .list-product-availability {
        width: 100% !important;
        min-width: 0 !important;
    }
    
    .products-grid.list-view .list-product-purchase {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
        width: 100% !important;
    }
    
    .products-grid.list-view .list-product-price {
        width: 100% !important;
    }
    
    .products-grid.list-view .list-price-main {
        width: 100% !important;
    }
    
    .products-grid.list-view .list-current-price {
        font-size: 1.5rem !important;
        white-space: nowrap !important;
    }
    
    .products-grid.list-view .list-old-price {
        font-size: 1rem !important;
        white-space: nowrap !important;
    }
    
    .products-grid.list-view .list-add-to-cart-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 24px !important;
        font-size: 0.9375rem !important;
    }
    
    /* Хедер карточки - МОБИЛЬНАЯ */
    .products-grid.list-view .list-product-header {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    .products-grid.list-view .list-product-meta {
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    
    .products-grid.list-view .list-product-sku {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .products-grid.list-view .list-product-actions {
        align-self: flex-start !important;
    }
    
    .products-grid.list-view .list-action-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.875rem !important;
    }
    
    .products-grid.list-view .list-product-specs {
        padding: 12px !important;
        gap: 8px !important;
        margin: 8px 0 !important;
    }
    
    .products-grid.list-view .list-spec-item {
        font-size: 0.8125rem !important;
    }
    
    /* Бейджи в списке - МОБИЛЬНАЯ */
    .products-grid.list-view .list-product-badges {
        display: none !important;
    }
    
    /* Статус доставки - МОБИЛЬНАЯ */
    .products-grid.list-view .list-delivery-info {
        font-size: 0.75rem !important;
    }
    
    .products-grid.list-view .list-status-text {
        font-size: 0.75rem !important;
    }
}

/* Убедимся что на мобильных все одинаково */
@media (max-width: 767.98px) {
    .products-grid.list-view .grid-template {
        display: none !important;
    }
    
    .products-grid.list-view .list-template {
        display: flex !important;
    }
}

/* ===========================
   СТРАНИЦА ТОВАРА - МОБИЛЬНАЯ
   =========================== */
@media (max-width: 767.98px) {
    /* Контейнер и отступы */
    .container-wide {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .g-4 {
        gap: 1rem !important;
    }
    
    /* Скрыть breadcrumbs на мобильных */
    nav[aria-label="breadcrumb"] {
        display: none !important;
    }
    
    /* Галерея изображений */
    .product-gallery {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 1.5rem;
    }
    
    .main-image {
        margin-bottom: 1rem !important;
    }
    
    .main-image img,
    #mainImage {
        height: 300px !important;
        width: 100% !important;
        object-fit: contain !important;
    }
    
    /* Миниатюры */
    .thumbnail-images-gallery {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
    }
    
    .thumbnail-img {
        height: 70px !important;
    }
    
    /* Заголовок товара */
    .product-details h1 {
        font-size: 1.25rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Рейтинг и наличие */
    .product-details > div:first-of-type {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    /* Цена */
    .product-details > div:nth-of-type(2) span:first-child {
        font-size: 1.5rem !important;
    }
    
    /* Информация о товаре */
    .product-details > div[style*="background: linear-gradient"] {
        padding: 15px !important;
        margin-bottom: 1rem !important;
    }
    
    .product-details > div[style*="background: linear-gradient"] > div > div {
        padding: 10px 0 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }
    
    .product-details > div[style*="background: linear-gradient"] span {
        font-size: 13px !important;
    }
    
    /* Форма добавления в корзину */
    .add-to-cart-form > div:last-child {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .add-to-cart-form input[type="number"] {
        width: 50px !important;
        font-size: 15px !important;
    }
    
    .add-to-cart-form button[type="submit"] {
        flex: 1 1 100% !important;
        min-width: 100% !important;
        order: 1 !important;
    }
    
    .add-to-cart-form > div:last-child > div {
        flex: 0 0 auto !important;
    }
    
    .add-to-cart-form button[onclick*="Wishlist"],
    .add-to-cart-form button[onclick*="Compare"] {
        padding: 12px 14px !important;
        min-width: 48px !important;
        font-size: 16px !important;
    }
    
    /* Особенности товара */
    .product-details > div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .product-details > div[style*="display: grid"] > div {
        padding: 12px !important;
    }
    
    /* Табы - ВЕРТИКАЛЬНЫЙ СПИСОК */
    .nav-tabs {
        display: flex !important;
        flex-direction: column !important;
        border-bottom: none !important;
        border-right: 3px solid #e9ecef !important;
        gap: 0 !important;
        margin-bottom: 1.5rem !important;
        width: 100% !important;
    }
    
    .nav-tabs .nav-item {
        width: 100% !important;
        margin: 0 !important;
    }
    
    .nav-tabs .nav-link {
        font-size: 0.9375rem !important;
        padding: 1rem !important;
        text-align: left !important;
        border: none !important;
        border-right: 3px solid transparent !important;
        background: transparent !important;
        color: #6c757d !important;
        font-weight: 500 !important;
        transition: all 0.3s ease !important;
        margin-right: -3px !important;
        display: block !important;
        width: 100% !important;
    }
    
    .nav-tabs .nav-link:hover {
        color: #2549d8 !important;
        background: #f8f9fa !important;
        border-right-color: #dee2e6 !important;
    }
    
    .nav-tabs .nav-link.active {
        color: #2549d8 !important;
        border-right-color: #2549d8 !important;
        background: rgba(37, 73, 216, 0.05) !important;
        font-weight: 600 !important;
    }
    
    /* Контент табов */
    .tab-content {
        padding: 0 !important;
    }
    
    .tab-pane {
        padding: 0.75rem !important;
        background: white !important;
        border-radius: 12px !important;
    }
    
    /* Характеристики в таблице */
    table {
        font-size: 0.875rem !important;
    }
    
    table td {
        padding: 10px 8px !important;
    }
    
    /* Похожие товары */
    .carousel-product-card {
        min-width: 160px !important;
    }
    
    .carousel-product-image {
        height: 140px !important;
    }
    
    .carousel-product-title {
        font-size: 0.875rem !important;
        line-height: 1.3 !important;
    }
    
    .carousel-current-price {
        font-size: 1.125rem !important;
    }
}

