/* ===== CATALOG PAGE STYLES ===== */

/* Enhanced grid for catalog page - 3 items per row */
.catalog-page .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Catalog Page */
.catalog-page {
    padding: 0 0 60px;
}

/* Catalog page container with same width as navbar */
.catalog-page .container {
    max-width: 1600px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

.catalog-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-top: 20px;
}

/* ===== SIDEBAR STYLES - APPLE MINIMALIST DESIGN ===== */
.catalog-sidebar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    padding: 28px 24px;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    /* Плавная прокрутка внутри сайдбара */
    scroll-behavior: smooth;
    /* Красивый скроллбар */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 122, 255, 0.3) transparent;
}

/* Webkit скроллбар стили для Safari/Chrome */
.catalog-sidebar::-webkit-scrollbar {
    width: 6px;
}

.catalog-sidebar::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.catalog-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 122, 255, 0.2);
    border-radius: 3px;
    transition: background 0.2s ease;
}

.catalog-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 122, 255, 0.4);
}

/* Скрываем скроллбар когда не скроллим */
.catalog-sidebar:not(:hover)::-webkit-scrollbar-thumb {
    background: transparent;
}

.catalog-sidebar:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.sidebar-section {
    margin-bottom: 36px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    font-size: 0.75rem;
    opacity: 0.6;
}

/* ===== CATEGORIES STYLES - APPLE MINIMALIST ===== */
.category-list {
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.category-list li {
    list-style: none;
    list-style-type: none;
}

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

.category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    color: #1d1d1f;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.category-item a:hover {
    background: rgba(0, 122, 255, 0.08);
    color: #007aff;
    transform: translateX(2px);
}

.category-item.active a {
    background: rgba(0, 122, 255, 0.12);
    color: #007aff;
    font-weight: 500;
}


/* ===== HIERARCHICAL CATEGORIES STYLES - APPLE MINIMALIST ===== */
.parent-category {
    margin-bottom: 8px;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.parent-category:hover {
    background: rgba(0, 0, 0, 0.02);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.category-link {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    color: #1d1d1f;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    position: relative;
}

.category-link:hover {
    background: rgba(0, 122, 255, 0.08);
    color: #007aff;
    transform: translateX(2px);
    cursor: pointer;
}

.parent-category.active .category-link {
    background: rgba(0, 122, 255, 0.12);
    color: #007aff;
    font-weight: 600;
}

/* Enhanced hover effect for parent categories with subcategories */
.parent-category .category-link:hover {
    background: rgba(0, 122, 255, 0.1);
}



.category-toggle {
    background: rgba(0, 0, 0, 0.04);
    border: none;
    color: #86868b;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-toggle:hover {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
    transform: scale(1.05);
}

.parent-category.active .category-toggle {
    background: rgba(0, 122, 255, 0.15);
    color: #007aff;
}

.category-toggle svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 14px;
    height: 14px;
}

.subcategory-list {
    list-style: none;
    list-style-type: none;
    margin: 8px 0 0 0;
    padding: 0 0 0 18px;
    border-left: 2px solid rgba(0, 122, 255, 0.1);
    margin-left: 18px;
    background: rgba(0, 0, 0, 0.01);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.subcategory-list li {
    list-style: none;
    list-style-type: none;
}

/* Дополнительные правила для полного удаления маркеров списка */
.sidebar-section ul,
.sidebar-section li {
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
}

.sidebar-section ul::before,
.sidebar-section li::before {
    content: none !important;
}

/* Полное отключение всех псевдоэлементов для категорий */
.category-list *::before,
.category-list *::after,
.subcategory-list *::before,
.subcategory-list *::after,
.parent-category *::before,
.parent-category *::after {
    content: none !important;
    display: none !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

.subcategory-item {
    margin-bottom: 1px;
}

.subcategory-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    color: #1d1d1f;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: -0.005em;
    margin: 2px 0;
    position: relative;
}

.subcategory-link:hover {
    background: rgba(0, 122, 255, 0.08);
    color: #007aff;
    transform: translateX(4px);
}

.subcategory-item.active .subcategory-link {
    background: rgba(0, 122, 255, 0.15);
    color: #007aff;
    font-weight: 500;
    position: relative;
}


/* Expanded state styling */
.parent-category.expanded .category-toggle svg {
    transform: rotate(180deg);
}

.parent-category.active .subcategory-list {
    border-left-color: rgba(0, 122, 255, 0.2);
    background: rgba(0, 122, 255, 0.02);
}

/* ===== FILTERS STYLES - APPLE MINIMALIST ===== */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #1d1d1f;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
}

.filter-checkbox:hover {
    background: rgba(0, 0, 0, 0.02);
    transform: translateX(2px);
}

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

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
}

.filter-checkbox:hover .checkmark {
    border-color: rgba(0, 122, 255, 0.3);
    background: rgba(0, 122, 255, 0.05);
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #007aff;
    border-color: #007aff;
    transform: scale(1.05);
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 11px;
    font-weight: 600;
}

.price-filter {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.02);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
}

.price-input:focus {
    outline: none;
    border-color: rgba(0, 122, 255, 0.4);
    background: rgba(0, 122, 255, 0.02);
    transform: scale(1.02);
}

.price-input::placeholder {
    color: #86868b;
    font-weight: 400;
}

/* ===== CATALOG HEADER STYLES ===== */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.catalog-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.catalog-count {
    color: #86868b;
    font-size: 0.95rem;
}

.catalog-sort {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
}

/* ===== PRODUCTS GRID VIEW STYLES ===== */
.products-grid {
    display: grid;
    gap: 28px;
}

.products-grid .product-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #e5e5e7;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.products-grid .product-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: rgba(0, 122, 255, 0.3);
}

.products-grid .product-image-container {
    position: relative;
    width: 100%;
}

.products-grid .product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.products-grid .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.products-grid .product-placeholder {
    width: 100%;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f5 100%);
    color: #86868b;
}

.products-grid .product-placeholder svg {
    opacity: 0.4;
}

.products-grid .placeholder-text {
    font-size: 0.85rem;
    margin-top: 8px;
    font-weight: 500;
}

/* Product badges */
.products-grid .product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.products-grid .product-badge {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
}

.products-grid .product-badge.discount {
    background: linear-gradient(135deg, #ff3b30, #ff6b5a);
}

.products-grid .product-badge.bestseller {
    background: linear-gradient(135deg, #ff9500, #ffb340);
}

.products-grid .product-badge.featured {
    background: linear-gradient(135deg, #007aff, #5ac8fa);
}

.products-grid .product-badge.out-of-stock {
    background: rgba(0, 0, 0, 0.7);
}

/* Product info section */
.products-grid .product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.products-grid .product-main-info {
    flex: 1;
}

.products-grid .product-link {
    text-decoration: none;
    color: inherit;
}

.products-grid .product-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.products-grid .product-card:hover .product-name {
    color: #007aff;
}

/* Meta info (brand, manufacturer) */
.products-grid .product-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px 14px;
    background: #f8f9fa;
    border-radius: 12px;
}

.products-grid .product-meta-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1.3;
}

.products-grid .meta-label {
    font-size: 0.75rem;
    color: #86868b;
    font-weight: 500;
    flex-shrink: 0;
    min-width: 95px;
}

.products-grid .product-manufacturer,
.products-grid .product-brand,
.products-grid .product-category {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

.products-grid .product-manufacturer {
    color: #007aff;
}

.products-grid .product-brand {
    color: #ff9500;
}

.products-grid .product-category {
    color: #34c759;
}

.products-grid .product-description {
    font-size: 0.85rem;
    color: #6e6e73;
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price section */
.products-grid .product-bottom-info {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f0f0f5;
}

.products-grid .product-price-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.products-grid .product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    border: 1px solid #e5e5e7;
}

.products-grid .current-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.02em;
}

.products-grid .old-price {
    font-size: 0.9rem;
    color: #86868b;
    text-decoration: line-through;
}

.products-grid .savings {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #34c759;
    font-weight: 600;
    background: rgba(52, 199, 89, 0.12);
    padding: 6px 10px;
    border-radius: 8px;
}

.products-grid .savings svg {
    flex-shrink: 0;
}

/* Stock status with icons */
.products-grid .stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.82rem;
    margin-top: 4px;
}

.products-grid .stock-status svg {
    flex-shrink: 0;
}

.products-grid .stock-status.in-stock {
    background: rgba(52, 199, 89, 0.12);
    color: #34c759;
}

.products-grid .stock-status.low-stock {
    background: rgba(255, 149, 0, 0.12);
    color: #ff9500;
}

.products-grid .stock-status.out-of-stock {
    background: rgba(255, 59, 48, 0.12);
    color: #ff3b30;
}

/* Legacy stock-info styles for backwards compatibility */
.products-grid .stock-info {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    margin-top: 8px;
    width: fit-content;
}

.products-grid .stock-info.in-stock {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
}

.products-grid .stock-info.low-stock {
    background: rgba(255, 149, 0, 0.1);
    color: #ff9500;
}

.products-grid .stock-info.out-of-stock {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

/* Actions */
.products-grid .product-actions {
    padding: 0 20px 20px;
}

.products-grid .add-to-cart {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #007aff, #0051d5);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.products-grid .add-to-cart:hover {
    background: linear-gradient(135deg, #0051d5, #003db3);
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.35);
}

.products-grid .add-to-cart.in-cart {
    background: linear-gradient(135deg, #34c759, #30b350);
}

.products-grid .add-to-cart.in-cart:hover {
    background: linear-gradient(135deg, #30b350, #28a745);
}

.products-grid .btn-secondary:disabled {
    background: #f0f0f5;
    color: #86868b;
    cursor: not-allowed;
    border: none;
}

/* ===== VIEW TOGGLE STYLES ===== */
.view-toggle {
    display: flex;
    gap: 4px;
    background: #f5f5f7;
    border-radius: 8px;
    padding: 4px;
}

.view-btn {
    padding: 8px;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #86868b;
    transition: all 0.2s ease;
}

.view-btn.active {
    background: white;
    color: #007aff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* View transition animation */
.view-transition {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* ===== PRODUCTS LIST VIEW STYLES ===== */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.products-list .product-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    background: white;
    border: 1px solid #e5e5e7;
    border-radius: 16px;
    padding: 24px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    gap: 24px !important;
    height: auto !important;
    min-height: auto;
    overflow: visible;
}

.products-list .product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #007aff;
}

/* Product image (left) */
.products-list .product-image-container {
    flex-shrink: 0 !important;
    display: block !important;
}

.products-list .product-image {
    width: 200px !important;
    height: 200px !important;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.products-list .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products-list .product-placeholder {
    width: 200px !important;
    height: 200px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 12px;
    color: #86868b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* Product info (center) */
.products-list .product-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center;
    padding: 0 !important;
}

.products-list .product-main-info {
    flex: 1;
}

.products-list .product-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 6px;
    line-height: 1.3;
}

.products-list .product-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.products-list .product-article {
    font-size: 0.875rem;
    color: #86868b;
    font-weight: 500;
}

.products-list .product-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.products-list .meta-label {
    font-size: 0.8rem;
    color: #86868b;
    font-weight: 400;
}

.products-list .product-manufacturer {
    font-size: 0.875rem;
    color: #007aff;
    font-weight: 600;
}

.products-list .product-brand {
    font-size: 0.875rem;
    color: #ff9500;
    font-weight: 600;
}

.products-list .product-category {
    font-size: 0.875rem;
    color: #34c759;
    font-weight: 600;
}

.products-list .product-description {
    font-size: 0.875rem;
    color: #86868b;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-list .product-bottom-info {
    margin-top: auto;
}

.products-list .product-price-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.products-list .product-price {
    margin-bottom: 8px;
}

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

.products-list .old-price {
    font-size: 1rem;
    color: #86868b;
    text-decoration: line-through;
    margin-left: 8px;
}

.products-list .savings {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #34c759;
    font-weight: 600;
    background: rgba(52, 199, 89, 0.12);
    padding: 6px 10px;
    border-radius: 8px;
}

.products-list .savings svg {
    flex-shrink: 0;
}

/* Stock status with icons for list view */
.products-list .stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.875rem;
    margin-top: 8px;
    width: fit-content;
}

.products-list .stock-status svg {
    flex-shrink: 0;
}

.products-list .stock-status.in-stock {
    background: rgba(52, 199, 89, 0.12);
    color: #34c759;
}

.products-list .stock-status.low-stock {
    background: rgba(255, 149, 0, 0.12);
    color: #ff9500;
}

.products-list .stock-status.out-of-stock {
    background: rgba(255, 59, 48, 0.12);
    color: #ff3b30;
}

/* Legacy stock-info for backwards compatibility */
.products-list .stock-info {
    font-size: 0.875rem;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    font-weight: 500;
    margin-top: 4px;
    width: auto !important;
    max-width: fit-content;
}

.products-list .stock-info.in-stock {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
}

.products-list .stock-info.low-stock {
    background: rgba(255, 149, 0, 0.1);
    color: #ff9500;
}

.products-list .stock-info.out-of-stock {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

/* Product actions (right) */
.products-list .product-actions {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: flex-end;
    justify-content: center;
    min-width: 140px;
    padding: 0 !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
}

.products-list .add-to-cart {
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    min-width: 130px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
}

.add-to-cart.in-cart {
    cursor: pointer !important;
}

/* Product badges on image */
.products-list .product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10;
}

.products-list .product-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-align: center;
}

/* ===== NO PRODUCTS STYLES ===== */
.no-products {
    text-align: center;
    padding: 80px 20px;
}

.no-products-icon {
    color: #86868b;
    margin-bottom: 24px;
}

.no-products-title {
    font-size: 1.5rem;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.no-products-text {
    color: #86868b;
}

/* ===== PAGINATION STYLES ===== */
.pagination-container {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #86868b;
    transition: all 0.2s ease;
}

.pagination-link:hover,
.pagination-link.active {
    background: #007aff;
    color: white;
}

/* ===== MOBILE RESPONSIVENESS - APPLE MINIMALIST ===== */
@media (max-width: 768px) {
    .catalog-sidebar {
        border-radius: 16px;
        padding: 20px 16px;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        position: static;
        max-height: none;
        overflow: visible;
    }
    
    .sidebar-title {
        font-size: 0.7rem;
        margin-bottom: 16px;
    }
    
    .category-header {
        flex-direction: row;
        align-items: center;
    }
    
    .category-link {
        padding: 12px 14px;
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    .category-toggle {
        margin-left: 8px;
        padding: 5px;
        width: 26px;
        height: 26px;
    }
    
    .category-toggle svg {
        width: 12px;
        height: 12px;
    }
    
    .subcategory-list {
        margin-left: 14px;
        padding-left: 14px;
        border-left-width: 1.5px;
    }
    
    .subcategory-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    
    .filter-checkbox {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .checkmark {
        width: 18px;
        height: 18px;
    }
    
    .price-input {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large screens optimization */
@media (min-width: 1200px) {
    /* Catalog improvements for large screens */
    .catalog-page .container {
        max-width: 1600px;
        padding: 0 20px;
        margin: 0 auto;
    }
    
    .catalog-content {
        grid-template-columns: 320px 1fr;
        gap: 50px;
    }
    
    .catalog-page .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

@media (min-width: 1600px) {
    /* Ultra-wide catalog optimization */
    .catalog-page .container {
        max-width: 1600px;
        padding: 0 20px;
        margin: 0 auto;
    }
    
    .catalog-content {
        grid-template-columns: 350px 1fr;
        gap: 60px;
    }
    
    .catalog-page .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 36px;
    }
}

/* Medium screens optimization */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Products List for tablets */
    .products-list .product-card {
        padding: 20px;
        gap: 20px;
        align-items: center;
    }
    
    .products-list .product-image {
        width: 180px;
        height: 180px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .products-list .product-placeholder {
        width: 180px;
        height: 180px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .products-list .product-info {
        justify-content: center;
        padding: 0;
    }
    
    .products-list .product-actions {
        padding: 0;
        min-width: 120px;
    }
    
    .products-list .product-name {
        font-size: 1.125rem;
    }
    
    .products-list .current-price {
        font-size: 1.25rem;
    }
    
    .products-list .product-actions {
        min-width: 120px;
    }
    
    .products-list .add-to-cart {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-width: 110px;
    }
}

/* Mobile optimization */
@media (max-width: 768px) {
    /* Catalog grid - 2 columns on tablets */
    .catalog-page .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    /* Grid view for mobile */
    .products-grid .product-card {
        border-radius: 16px;
    }
    
    .products-grid .product-image {
        height: 160px;
    }
    
    .products-grid .product-placeholder {
        height: 160px;
    }
    
    .products-grid .product-info {
        padding: 14px;
    }
    
    .products-grid .product-name {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .products-grid .product-meta {
        padding: 10px;
        gap: 4px;
        margin-bottom: 10px;
    }
    
    .products-grid .meta-label {
        font-size: 0.7rem;
        min-width: 70px;
    }
    
    .products-grid .product-manufacturer,
    .products-grid .product-brand {
        font-size: 0.75rem;
    }
    
    .products-grid .current-price {
        font-size: 1.15rem;
    }
    
    .products-grid .old-price {
        font-size: 0.85rem;
    }
    
    .products-grid .product-actions {
        padding: 0 14px 14px;
    }
    
    .products-grid .add-to-cart {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .products-grid .product-badge {
        padding: 4px 8px;
        font-size: 0.65rem;
    }
    
    /* Products List for mobile */
    .products-list .product-card {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 16px;
        min-height: auto;
    }
    
    .products-list .product-image {
        width: 100%;
        height: 200px;
    }
    
    .products-list .product-placeholder {
        width: 100%;
        height: 200px;
    }
    
    .products-list .product-info {
        min-height: auto;
    }
    
    .products-list .product-actions {
        min-width: auto;
        margin-top: 12px;
    }
    
    .products-list .add-to-cart {
        width: 100%;
        min-width: auto;
        padding: 12px 16px;
    }
    
    .products-list .product-badges {
        top: 12px;
        left: 12px;
        flex-direction: row;
        gap: 6px;
    }
    
    /* Catalog responsive */
    .catalog-page .container {
        padding: 0 16px;
    }
    
    .catalog-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .catalog-sidebar {
        position: static;
        order: 2;
        max-height: none;
        overflow: visible;
    }
    
    .catalog-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .catalog-sort {
        justify-content: space-between;
    }
    
    .view-toggle {
        order: -1;
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    /* Catalog grid - 1 column on mobile */
    .catalog-page .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .products-grid .product-image {
        height: 200px;
    }
    
    .products-grid .product-placeholder {
        height: 200px;
    }
    
    .products-grid .product-meta {
        flex-direction: column;
        gap: 6px;
    }
    
    .products-grid .product-meta-item {
        flex-direction: row;
    }
    
    .products-grid .meta-label {
        min-width: 90px;
    }
    
    .products-grid .current-price {
        font-size: 1.25rem;
    }
}
