.shop-header {
    max-width: 30vw;
    margin:0 auto;
    text-align: center;
}
.shop-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
}
.site-content {
    flex-direction: column;
    margin-top: 100px;
}
.shop-header::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    margin: 20px 0;
}

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

.products-grid {
    display: grid;
    gap: 30px;
}

.products-grid-1-3 {
    grid-template-columns: 1fr 3fr;
}

.products-sidebar {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 15px;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.products-sorting {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

span.price {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    color: var(--secondary-color);
}

span.price del {
    font-weight: 200;
    font-size: 0.9rem;
    color:#666;
}

span.price ins {
    font-weight: 700;
    font-size: 1.1rem;
}

.sort-button {
    padding: 8px 16px;
    border-radius: 10px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.sort-button:hover {
    background-color: var(--secondary-color);
}

.sort-button.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* Filter Header */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-filter {
    display: none;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #666;
}

.close-filter svg {
    width: 24px;
    height: 24px;
}

/* Mobile filter button */
.mobile-filter-toggle {
    display: none;
    position: fixed;
    bottom: 90px;
    left: 25px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 15px;
    text-align: center;
    width: 105px;
    z-index: 100;
}

/* Sale percentage circle */
.onsale {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4444;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

/* Hide add to cart button */
.add_to_cart_button,
.single_add_to_cart_button {
    display: none !important;
}

.filter-section h3 {
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 700;
}

.filter-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    gap: 15px;
}

.filter-group h4 {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1em;
    border-bottom: 1px solid var(--primary-color);
    padding: 6px 10px 6px 0;
    width: 70%;
}

.price-range {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.price-range input {
    width: 100%;
    padding: 8px;
    border-radius: 10px !important;
    border-color: transparent !important;
    font-size: 0.9rem;
}

select#delivery_type, select#delivery_type option {
    border-radius: 10px;
    width: 70%;
}

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

.shop-category-list li {
    margin-bottom: 8px;
}

.shop-category-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.shop-category-list input[type="checkbox"] {
    margin: 0;
}

select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #0056b3;
}

.products-main-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.products-main-content .woocommerce-pagination {
    display: none;
}

.products-pagination {
    margin-top: 30px;
}

ul.page-numbers {
    display: flex !important;
    border: 0 !important;
    margin: 0 auto !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

ul.page-numbers li {
    border: 0 !important;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 5px;
}

span.page-numbers.current {
    background: var(--primary-color) !important;
    color: #fff !important;
}

.products-main-content .product {
    list-style: none;
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease-in-out;
    position: relative;
}

.product a.button.product_type_simple {
    display: none;
}

.products-main-content .product span.onsale {
    background: var(--primary-color);
}

.product:hover {
    transition: all 0.3s ease-in-out;
    transform: translateY(-5px);
}
.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    height: 100%;
    justify-content: space-between;
}

.products-main-content .product img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
}

.products-main-content .product h2 {
	font-size: 1.1rem !important;
    font-weight: 700;
    color: var(--secondary-color);
}

.products-main-content.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-main-content.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive styles */
@media (max-width: 768px) {
    .mobile-filter-toggle {
        display: block;
    }

    .products-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        overflow-y: auto;
        transition: left 0.3s ease;
        z-index: 1000;
        padding: 20px;
    }

    .products-sidebar.active {
        left: 0;
    }

    .close-filter {
        display: block;
    }

    .products-grid-1-3 {
        grid-template-columns: 1fr;
    }
    
    .products-sidebar {
        order: 2;
    }
    
    .products-main-content {
        grid-template-columns: 1fr 1fr;
    }

    .products-sorting {
        flex-direction: column;
    }

    .sort-button {
        width: 100%;
    }
}
