/* Page Title */
.page-title {
    padding: 40px 0;
    text-align: center;
}

.page-title h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.page-title p {
    color: var(--gray);
    font-size: 16px;
}

/* Main Content */
.catalog-content {
    display: flex;
    gap: 40px;
    padding-bottom: 60px;
}

/* Sidebar Filters */
.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E0E0E0;
}

.filter-list {
    list-style: none;
}

.filter-list li {
    margin-bottom: 10px;
}

.filter-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray);
    transition: color 0.3s ease;
}

.filter-list label:hover {
    color: var(--dark);
}

.filter-list input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--primary-red);
}

/* Products Grid */
.products-container {
    flex-grow: 1;
}

.products-container .product-card-category {
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.products-count {
    font-size: 14px;
    color: var(--gray);
}

.price-filter {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-filter input {
    width: 100%;
    padding: 8px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 14px;
}

.price-filter button {
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.sort-filter {
    position: relative;
}

.sort-filter::after {
    content: 'expand_more';
    font-family: 'Material Icons';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    pointer-events: none;
    font-size: 20px;
    line-height: 1;
}

.sort-filter-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 12px 42px 12px 14px;
    border: 1px solid rgba(26, 26, 26, 0.16);
    border-radius: 999px;
    background: linear-gradient(180deg, #fff 0%, #faf7f4 100%);
    color: var(--dark);
    font-size: 14px;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sort-filter-select:hover {
    border-color: rgba(26, 26, 26, 0.28);
    box-shadow: 0 4px 14px rgba(26, 26, 26, 0.08);
}

.sort-filter-select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(212, 45, 45, 0.12);
}

.sort-filter-select option {
    color: var(--dark);
}


@media (max-width: 768px) {
    .catalog-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}

/* Load More Button Styles */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    padding-bottom: 20px;
}

.load-more-btn {
    background-color: var(--white);
    color: var(--dark);
    border: 1px solid var(--dark);
    padding: 12px 40px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.load-more-btn:hover {
    background-color: var(--dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn.loading {
    cursor: default;
    pointer-events: none;
    opacity: 0.8;
}

/* Loading Animation for Grid Items */
.loading-opacity {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* Spinner */
.loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-left-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

