/* ===== DESKTOP.CATALOG.CSS - Десктопные стили страницы каталога ===== */

/* Catalog Section */
.catalog-section {
    padding: 80px 0;
    background: var(--primary-white);
}

.catalog-header {
    text-align: center;
    margin-bottom: 60px;
}

.catalog-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.catalog-subtitle {
    font-size: 18px;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb-section {
    padding: 20px 0;
    background: var(--primary-gray);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breadcrumb-link {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--accent-gold);
}

.breadcrumb-separator {
    color: var(--text-light);
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}

/* Filters Section */
.filters-section {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--primary-gray);
    border-radius: var(--border-radius);
}

.categories-filter {
    margin-bottom: 30px;
}

.filter-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.filter-scroll {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid var(--text-light);
    background: var(--primary-white);
    color: var(--text-medium);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--accent-gold);
    color: var(--primary-white);
    background-color: var(--accent-gold);
    font-weight: 600;
}

.filter-btn.active {
    background: #fff8e1;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15) inset;
}

.filter-btn:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Price Filter */
.price-filter {
    display: flex;
    align-items: end;
    gap: 20px;
    flex-wrap: wrap;
}

.price-inputs {
    display: flex;
    gap: 16px;
    align-items: end;
}

.price-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-input label {
    font-size: 14px;
    color: var(--text-medium);
    font-weight: 500;
}

.price-input input {
    padding: 12px 16px;
    border: 2px solid var(--text-light);
    border-radius: 8px;
    font-size: 14px;
    width: 120px;
    transition: border-color 0.3s ease;
}

.price-input input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.price-filter-btn {
    padding: 12px 24px;
    background: var(--accent-gold);
    color: var(--primary-white);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-filter-btn:hover {
    background: #c19b26;
    transform: translateY(-2px);
}

/* Catalog Controls */
.catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-label {
    font-size: 14px;
    color: var(--text-medium);
    font-weight: 500;
}

.sort-select {
    padding: 8px 16px;
    border: 2px solid var(--text-light);
    border-radius: 8px;
    font-size: 14px;
    background: var(--primary-white);
    color: var(--text-dark);
}

.view-options {
    display: flex;
    gap: 8px;
}

.view-btn {
    padding: 8px 12px;
    border: 2px solid var(--text-light);
    background: var(--primary-white);
    color: var(--text-medium);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    border-color: var(--accent-gold);
    color: var(--primary-white);
    background-color: var(--accent-gold);
    font-weight: 600;
}

.view-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--primary-white);
}

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

.catalog-product-card {
    background: var(--primary-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
}

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

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

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

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

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    background: var(--discount-red);
    color: var(--primary-white);
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

.catalog-product-info {
    padding: 24px;
}

.catalog-product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.catalog-product-price {
    margin-bottom: 20px;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--price-blue);
}

.old-price {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 8px;
}

.catalog-btn-order {
    width: 100%;
    padding: 12px 24px;
    background: var(--order-gold);
    color: var(--primary-white);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.catalog-btn-order:hover {
    background: #c19b26;
    transform: translateY(-2px);
}

/* No Products Message */
.no-products-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--primary-gray);
    border-radius: var(--border-radius);
}

.no-products-message h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.no-products-message p {
    color: var(--text-medium);
    font-size: 16px;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
}

.no-products-content svg {
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-products-content h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.no-products-content p {
    color: var(--text-medium);
    font-size: 16px;
}

/* Pagination */
.catalog-pagination {
    display: flex;
    justify-content: center;
    margin: 60px 0 40px;
}

.catalog-pagination .cp-nav {
    display: block;
}

.catalog-pagination .cp-list {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.catalog-pagination .cp-item {
    list-style: none;
}

.catalog-pagination .cp-link {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    color: #666666;
    padding: 8px 16px;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
    position: relative;
    user-select: none;
}

.catalog-pagination .cp-link:hover {
    border-color: #d4af37;
    color: #d4af37;
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    z-index: 2;
}

.catalog-pagination .is-active .cp-link {
    background: #d4af37;
    border-color: #d4af37;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.catalog-pagination .is-disabled .cp-link {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.catalog-pagination .is-ellipsis .cp-link {
    border: none;
    background: transparent;
    padding: 0 4px;
    min-width: auto;
    height: auto;
    box-shadow: none;
}

.catalog-pagination .page-link[aria-label*="Previous"],
.catalog-pagination .page-link[aria-label*="Next"] {
    font-size: 0;
    width: 44px;
    padding: 0;
}

.catalog-pagination .page-link[aria-label*="Previous"]:before {
    content: "‹";
    font-size: 18px;
    font-weight: bold;
}

.catalog-pagination .page-link[aria-label*="Next"]:before {
    content: "›";
    font-size: 18px;
    font-weight: bold;
}

.catalog-pagination .page-link:focus {
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    border-color: #d4af37;
    outline: none;
}

.catalog-pagination .pagination {
    gap: 8px;
}

.catalog-pagination .page-link {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    color: #666666;
    padding: 8px 16px;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
    position: relative;
}

.catalog-pagination .page-link:hover {
    border-color: #d4af37;
    color: #d4af37;
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    z-index: 2;
}

.catalog-pagination .page-item.active .page-link {
    background: #d4af37;
    border-color: #d4af37;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.catalog-pagination .page-item.active .page-link:hover {
    background: #c19b26;
    border-color: #c19b26;
    color: #ffffff;
    transform: translateY(-2px);
}

.catalog-pagination .page-item.disabled .page-link {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.catalog-pagination .page-item.disabled .page-link:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    transform: none;
    box-shadow: none;
}