.catalog-page {
    padding-top: 80px;
}

.page-hero {
    background: var(--graphite);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.page-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 18px;
    opacity: 0.9;
}

.catalog-section {
    padding: 60px 0 100px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
}

.filters {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filters h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--graphite);
}

.filter-group {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(44, 44, 44, 0.1);
}

.filter-group h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--graphite);
}

.filter-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-light);
}

.filter-group input[type="checkbox"] {
    margin-right: 10px;
}

.btn-reset {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--graphite);
    color: var(--graphite);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-reset:hover {
    background: var(--graphite);
    color: white;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.products-count {
    font-size: 14px;
    color: var(--text-light);
}

.sort-select {
    padding: 10px 15px;
    border: 1px solid rgba(44, 44, 44, 0.2);
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    background: white;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: var(--sand);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
}

.product-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--terracotta);
    margin-bottom: 8px;
}

.product-name {
    font-family: var(--font-serif);
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--graphite);
}

.product-temp {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.product-price {
    font-size: 22px;
    font-weight: 500;
    color: var(--graphite);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    max-width: 900px;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: var(--graphite);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--terracotta);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-image {
    width: 100%;
    height: 500px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 50px 40px;
}

.modal-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--terracotta);
    margin-bottom: 10px;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--graphite);
}

.modal-price {
    font-size: 28px;
    font-weight: 500;
    color: var(--graphite);
    margin-bottom: 25px;
}

.modal-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 25px;
}

.modal-specs {
    margin-bottom: 30px;
}

.modal-specs h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--graphite);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(44, 44, 44, 0.1);
    font-size: 14px;
}

.spec-label {
    color: var(--text-light);
}

.spec-value {
    color: var(--graphite);
    font-weight: 500;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.btn-add-cart {
    flex: 1;
    padding: 15px;
    background: var(--terracotta);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background: var(--graphite);
}

@media (max-width: 968px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    
    .filters {
        position: static;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}
