/* Shop Container Layout */
.shop-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.shop-filters {
    flex: 0 0 280px;
}

.shop-products {
    flex: 1;
    min-width: 0;
}

/* Filter Styling */
.filter-group {
    margin-bottom: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background-color: #fff;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e5e5e5;
}

.filter-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.filter-toggle {
    color: #666;
    transition: transform 0.2s ease;
}

.filter-group.active .filter-toggle i.fa-chevron-up {
    transform: rotate(180deg);
}

.filter-options {
    padding: 10px 15px;
    max-height: 250px;
    overflow-y: auto;
}

.filter-option {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.filter-option input[type="checkbox"] {
    margin-right: 8px;
}

/* Loading State */
#products-container.loading {
    position: relative;
    min-height: 200px;
}

#products-container.loading:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7) url('../../../plugins/woocommerce/assets/images/woo-loader.svg') no-repeat center center;
    background-size: 50px;
    z-index: 5;
}

/* Table View Styling */
.products-table-view {
    width: 100%;
    overflow-x: auto;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.products-table thead th {
    background-color: #f5f5f5;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.products-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.products-table tbody tr:hover {
    background-color: #f9f9f9;
}

.products-table td {
    padding: 12px 15px;
    vertical-align: middle;
}

.product-title {
    display: flex;
    align-items: center;
}

.product-title img {
    width: 60px;
    height: auto;
    margin-right: 15px;
}

.product-title span {
    font-weight: 500;
}

.product-price {
    font-weight: 600;
    color: #333;
}

.product-category, .product-attributes, .product-environment, .product-weight-capacity {
    font-size: 14px;
    color: #666;
}

.product-actions .button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #2ea3f2;
    color: #fff;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.product-actions .button:hover {
    background-color: #0073aa;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .shop-container {
        flex-direction: column;
    }
    
    .shop-filters {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    
    .products-table-view {
        overflow-x: scroll;
    }
    
    .products-table th, 
    .products-table td {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .product-title img {
        width: 40px;
    }
}