/* Product Archive Grid Styles - Matching Page Builder Products Layout */

/* ========== Shop Sidebar ========== */
.shop-sidebar {
    padding-right: 30px;
}

.shop-sidebar-inner {
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-widget .widget-title,
.shop-sidebar .widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4caf50;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: #2d2d2d;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.sidebar-widget ul li a:hover {
    color: #4caf50;
}

.sidebar-widget ul li .count {
    color: #999;
    font-size: 12px;
}

/* Price Filter Widget */
.sidebar-widget .price_slider_wrapper {
    padding-top: 10px;
}

.sidebar-widget .ui-slider {
    background: #e0e0e0;
    border: none;
    height: 6px;
    border-radius: 3px;
}

.sidebar-widget .ui-slider .ui-slider-range {
    background: #4caf50;
}

.sidebar-widget .ui-slider .ui-slider-handle {
    background: #4caf50;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    top: -6px;
    cursor: pointer;
}

.sidebar-widget .price_slider_amount {
    margin-top: 15px;
}

.sidebar-widget .price_slider_amount .button {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.sidebar-widget .price_slider_amount .button:hover {
    background: #43a047;
}

/* ========== Product Cards (same as page builder) ========== */
#woocommerce-wrapper .product-card {
    background-color: #ffffff;
    text-align: left;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#woocommerce-wrapper .product-card:hover {
    transform: translateY(-3px);
}

#woocommerce-wrapper .product-image-link {
    display: block;
    text-decoration: none;
}

#woocommerce-wrapper .product-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

#woocommerce-wrapper .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#woocommerce-wrapper .product-info {
    padding: 0;
}

#woocommerce-wrapper .product-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 8px;
    line-height: 1.3;
}

#woocommerce-wrapper .product-title a {
    color: #2d2d2d;
    text-decoration: none;
    transition: color 0.3s ease;
}

#woocommerce-wrapper .product-title a:hover {
    color: #4caf50;
}

#woocommerce-wrapper .product-rating {
    margin-bottom: 8px;
}

#woocommerce-wrapper .product-rating .star {
    color: #ccc;
    font-size: 16px;
}

#woocommerce-wrapper .product-rating .star.filled {
    color: #f5a623;
}

#woocommerce-wrapper .product-price {
    font-size: 14px;
    color: #c0392b;
    font-weight: 600;
    margin-bottom: 10px;
}

#woocommerce-wrapper .product-price del {
    color: #999;
    font-weight: 400;
    margin-right: 5px;
}

#woocommerce-wrapper .product-price ins {
    text-decoration: none;
    color: #c0392b;
}

#woocommerce-wrapper .product-material {
    font-size: 13px;
    color: #666666;
    margin-bottom: 10px;
    font-weight: 400;
}

#woocommerce-wrapper .product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#woocommerce-wrapper .product-badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

/* WooCommerce toolbar styling */
.woocommerce-before-shop-loop {
    display: block;
    width: 100%;
    margin-bottom: 30px;
}

.woocommerce-result-count {
    font-size: 14px;
    color: #666666;
    margin-bottom: 15px;
    display: block;
    width: 100%;
}

.woocommerce-ordering {
    margin-bottom: 20px;
    display: block;
    width: 100%;
}

.woocommerce-ordering select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Pagination styling */
.woocommerce-pagination {
    margin-top: 40px;
    text-align: center;
}

.woocommerce-pagination ul {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination ul li {
    display: inline-block;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #2d2d2d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
    background-color: #4caf50;
    color: #ffffff;
    border-color: #4caf50;
}

/* Responsive */
@media (max-width: 991px) {
    .shop-sidebar {
        padding-right: 15px;
        margin-bottom: 30px;
    }
    
    .shop-sidebar-inner {
        position: static;
    }
    
    #woocommerce-wrapper .product-image {
        height: 180px;
    }
    
    #woocommerce-wrapper .product-title {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .shop-sidebar {
        padding-right: 0;
        order: 2;
    }
    
    #woocommerce-wrapper #main {
        order: 1;
    }
    
    /* Force 2 products per row on mobile */
    #woocommerce-wrapper #main .row > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    #woocommerce-wrapper .product-image {
        height: 140px;
    }
    
    #woocommerce-wrapper .product-title {
        font-size: 13px;
        line-height: 1.3;
    }
    
    #woocommerce-wrapper .product-price {
        font-size: 12px;
    }
    
    #woocommerce-wrapper .product-card {
        padding: 8px;
    }
    
    #woocommerce-wrapper .product-info {
        padding: 8px 0 0;
    }
    
    #woocommerce-wrapper .col-6 {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    #woocommerce-wrapper .mb-4 {
        margin-bottom: 16px !important;
    }
}
