/* ================================
   SHOP LAYOUT
================================ */

.shop-wrapper {
    display: flex;
    gap: 30px;
    width: 100%;
}

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

.shop-products {
    flex: 1;
}

/* ================================
   FILTER BOX
================================ */

.filter-box {
    background: #0c6b6b;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.filter-box h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 18px;
}

/* Category list */
.filter-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-box ul li {
    background: #0a5c5c;
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-box ul li:hover {
    background: #117f7f;
}

.filter-box ul li.active {
    background: #e11c2a;
}

/* ================================
   PRICE FILTER
================================ */

#price_range {
    width: 100%;
    margin-top: 10px;
}

.price-values {
    margin-top: 10px;
    color: #ffffff;
    font-weight: bold;
}

/* ================================
   WOO TOP BAR (RESULT + SORT)
================================ */

.woocommerce-before-shop-loop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.woocommerce-result-count {
    font-size: 15px;
}

/* ================================
   PRODUCTS GRID FIX (IMPORTANT)
================================ */

/* Reset wrapper */
#products-list {
    display: block;
}

/* Use WooCommerce UL */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0;
}

/* Product item */
ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    background: #ffffff;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

ul.products li.product:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Product image */
ul.products li.product img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

/* Product title */
ul.products li.product h2,
ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    line-height: 1.4;
    min-height: 42px;
    margin-bottom: 10px;
}

/* Rating */
ul.products li.product .star-rating {
    margin: 0 auto 8px;
}

/* Price */
ul.products li.product .price {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 12px;
    display: block;
}

/* Add to cart button */
ul.products li.product .button {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding: 12px;
    border-radius: 8px;
}

/* ================================
   PAGINATION
================================ */

.woocommerce-pagination {
    margin-top: 40px;
    text-align: center;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 991px) {

    .shop-wrapper {
        flex-direction: column;
    }

    .shop-sidebar {
        width: 100%;
    }

    ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {

    ul.products {
        grid-template-columns: repeat(1, 1fr);
    }

    .filter-box {
        padding: 15px;
    }
}

/* FIX EMPTY FIRST COLUMN (IMPORTANT) */
ul.products::before,
ul.products::after {
    display: none !important;
    content: none !important;
}

