.products-grid-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.products-grid-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.products-grid-sidebar-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
    color: #333;
    padding: 0;
    flex: 0 0 280px;
}

.products-grid-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.products-grid-sidebar {
    flex: 0 0 280px;
    background: #fff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.products-grid-filter-form {
    margin: 0;
}

.products-grid-category-item {
    margin-bottom: 10px;
}

.products-grid-category-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.products-grid-category-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.products-grid-category-label span {
    flex: 1;
}

.products-grid-category-children {
    margin-left: 25px;
    margin-top: 8px;
}

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

.products-grid-order {
    margin: 0;
    display: flex;
    justify-content: flex-end;
}

.products-grid-order-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-grid-order-form label {
    font-weight: 600;
    color: #333;
}

.products-grid-order-form select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.products-grid-info {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.products-grid-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.products-grid-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    color: #333;
}

.products-grid-count {
    margin: 0;
    color: #666;
    font-size: 14px;
    flex: 1;
}

.products-grid-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.products-grid-product {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.products-grid-product:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.products-grid-product-image {
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
}

.products-grid-product-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.products-grid-product-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.products-grid-product-name a {
    color: #333;
    text-decoration: none;
}

.products-grid-product-name a:hover {
    color: #0073aa;
}

.products-grid-product-rating {
    margin-bottom: 10px;
}

.products-grid-product-rating .star-rating {
    float: none;
    overflow: hidden;
    position: relative;
    height: 1em;
    line-height: 1;
    font-size: 1em;
    width: 5.4em;
    font-family: star;
    color: #ffc107;
    margin: 0;
}

.products-grid-product-rating .star-rating::before {
    content: "\73\73\73\73\73";
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    color: #d3ced2;
}

.products-grid-product-rating .star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
    color: #ffc107;
}

.products-grid-product-rating .star-rating span::before {
    content: "\53\53\53\53\53";
    top: 0;
    position: absolute;
    left: 0;
    color: #ffc107;
}

.products-grid-product-price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.products-grid-product-button {
    display: inline-block;
    padding: 10px 20px;
    background: #ffc107;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
    margin-top: auto;
}

.products-grid-product-button:hover {
    background: #ffb300;
    color: #fff;
}

.products-grid-no-products {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.products-grid-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.products-grid-pagination-link {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.products-grid-pagination-link:hover {
    background: #f5f5f5;
    border-color: #0073aa;
}

.products-grid-pagination-current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.products-grid-pagination-dots {
    padding: 8px 4px;
    color: #666;
}

@media (max-width: 992px) {
    .products-grid-header {
        flex-direction: column;
        gap: 20px;
    }

    .products-grid-sidebar-title {
        flex: 1;
        width: 100%;
    }

    .products-grid-info {
        width: 100%;
    }

    .products-grid-wrapper {
        flex-direction: column;
    }

    .products-grid-sidebar {
        flex: 1;
        width: 100%;
    }

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

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

    .products-grid-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .products-grid-order {
        justify-content: flex-start;
        width: 100%;
    }
}

