/* --- FURNITURE COLLECTION PAGE STYLES --- */

/* Collection Filters */
.collection-filters {
    margin-bottom: 50px;
    border-bottom: 1px solid #E1D8C9;
    padding-bottom: 20px;
}

.filter-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.filter-list a {
    font-size: 15px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.filter-list a:hover {
    color: #3A2318;
}

.filter-list a.active {
    color: #3A2318;
}

.filter-list a.active::after {
    content: '';
    position: absolute;
    bottom: -21px; /* To overlap the border-bottom of the container */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3A2318;
}

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 30px;
    margin-bottom: 60px;
}

.collection-item {
    text-align: center;
}

.img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 4/4; /* Square or slightly tall images are popular for premium furniture */
    background-color: #f9f9f9;
}

.img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.img-wrap:hover img {
    transform: scale(1.05);
}

.hover-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(58, 35, 24, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.img-wrap:hover .hover-overlay {
    opacity: 1;
}

.item-meta .category {
    display: block;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.item-meta .product-name {
    font-size: 20px;
    margin: 0;
}

.item-meta .product-name a {
    color: #3A2318;
}

.item-meta .product-name a:hover {
    color: #A68A64;
}

/* Pagination / Load More */
.pagination-wrap {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    border-color: #E1D8C9;
    color: #3A2318;
}

.load-more-btn:hover {
    background-color: #3A2318;
    border-color: #3A2318;
    color: #fff;
}

/* Grid Embedded CTA Card */
.grid-cta-card {
    grid-column: 1 / span 3;
    width: 100%;
    background-color: #1a1a1a !important;
    color: #f5f5f5 !important;
    padding: 60px 40px;
    text-align: center;
    border-radius: 4px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.grid-cta-card h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #fff !important;
}

.grid-cta-card p {
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: #ccc;
    line-height: 1.6;
}

.grid-cta-card .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .filter-list {
        gap: 15px;
    }
    .filter-list a {
        font-size: 13px;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-cta-card .cta-buttons {
        flex-direction: column;
    }
}
