/* Shop Layout */
.shop-layout {
    display: flex;
    gap: 3rem;
}

.shop-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.filter-widget {
    margin-bottom: 2rem;
}

.filter-title {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eae5de; /* var(--border-color) */
    font-family: 'Playfair Display', serif; /* fallback */
    display: flex;
    align-items: center;
    height: 38px;
    box-sizing: content-box;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 0.8rem;
}

.filter-list a {
    display: flex;
    justify-content: space-between;
    color: #666666; /* var(--text-muted) */
    text-decoration: none;
}

.filter-list a:hover,
.filter-list a.active {
    color: #c5a059; /* var(--primary-gold) */
}

/* Sidebar specific overrides */
.filter-tree ul { margin-left: 1rem; margin-top: 0.5rem; list-style: none; padding: 0; }
.filter-tree li { margin-bottom: 0.5rem !important; }
.filter-tree > li > .cat-level-2 { 
    font-weight: 600; 
    color: #3e3328 !important; 
    font-size: 0.9rem; 
    margin-top: 0.8rem; 
    margin-bottom: 0.3rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    text-transform: none; 
    letter-spacing: normal; 
    border-bottom: none; 
    padding-bottom: 0; 
}
.filter-tree > li > .cat-level-2 a {
    color: inherit !important;
}
.filter-tree ul a { font-size: 0.85rem; color: #666666; font-weight: 400; display: inline-block; }
.filter-tree ul a:hover, .filter-tree ul a.active { color: #c5a059 !important; }
.filter-toggle { cursor: pointer; color: #666666; padding: 0.2rem; }

.shop-content {
    flex-grow: 1;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eae5de;
    height: 38px;
    box-sizing: content-box;
}

.shop-toolbar p {
    margin-bottom: 0;
    margin-top: 0;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: #ffffff;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eae5de;
}

.product-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.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: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.product-category {
    font-size: 0.8rem;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    font-family: 'Playfair Display', serif;
}

.product-title a {
    color: #333;
    text-decoration: none;
}

.product-title a:hover {
    color: #c5a059;
}

.product-price {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: #c5a059;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 3rem;
}

.page-numbers {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.page-numbers li {
    display: inline-block;
}

.page-numbers a, .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #eae5de;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers a:hover {
    border-color: #c5a059;
    color: #c5a059;
}

.page-numbers .current {
    background-color: #c5a059;
    color: #fff;
    border-color: #c5a059;
}

/* Responsive */
@media (max-width: 992px) {
    .shop-layout {
        flex-direction: column;
        gap: 2rem;
    }
    
    .shop-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .shop-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Featured Products Widget Specific Layout */
.dearshop-featured-wrapper .product-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .dearshop-featured-wrapper .product-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on small laptops/landscape tablets */
    }
}

@media (max-width: 768px) {
    .dearshop-featured-wrapper .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 1rem;
    }
}


