/* Shop Container */
.woo-shop-container {
    display: flex;
    gap: 0;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

/* Sidebar */
.woo-sidebar {
    width: 280px;
    min-width: 280px;
    background: #fff;
    border-right: 1px solid #e5e5e5;
    max-height: 600px;
    overflow-y: auto;
}

.woo-sidebar::-webkit-scrollbar {
    width: 6px;
}

.woo-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.woo-sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.sidebar-inner {
    position: relative;
}

.woo-sidebar .category-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.woo-sidebar .category-item:hover,
.woo-sidebar .category-item.active {
    background: #f8f8f8;
    border-left: 3px solid #333;
    padding-left: 17px;
}

.woo-sidebar .category-item .category-link {
    text-decoration: none;
    color: #333;
    display: block;
    cursor: pointer;
}

.woo-sidebar .category-name {
    font-size: 15px;
    font-weight: 400;
}

/* Products Area */
.woo-products-area {
    flex: 1;
    padding: 0 30px;
    background: #fff;
    position: relative;
    min-height: 500px;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Shop Header */
.shop-header {
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 30px;
}

.shop-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-nav .nav-link {
    color: #999;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
}

.shop-nav .nav-link.active,
.shop-nav .current-category {
    color: #333;
}

.shop-nav .nav-separator {
    color: #ccc;
}

/* Products Container */
.products-container {
    transition: opacity 0.3s ease;
}

/* Products Grid */
.products-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 30px;
}

.products-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.products-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.products-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Product Item */
.product-item {
    position: relative;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.product-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
    aspect-ratio: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff6b35;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}

/* Product Info */
.product-info {
    padding: 15px;
}

.product-title {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 8px 0;
    line-height: 1.4;
    min-height: 42px;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: #000;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.product-price del {
    color: #999;
    font-weight: 400;
    margin-right: 5px;
}

.product-price ins {
    text-decoration: none;
    color: #ff6b35;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-products p {
    font-size: 16px;
    margin: 0;
}

/* Pagination */
.woo-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
}

.woo-pagination .page-link {
    padding: 8px 14px;
    border: 1px solid #e5e5e5;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 14px;
}

.woo-pagination .page-link:hover {
    background: #f8f8f8;
    border-color: #333;
}

.woo-pagination .page-link.current {
    background: #333;
    color: #fff;
    border-color: #333;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .products-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .woo-sidebar {
        width: 240px;
        min-width: 240px;
    }
    
    .products-grid.columns-4,
    .products-grid.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .woo-products-area {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .woo-shop-container {
        flex-direction: column;
    }
    
    .woo-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        max-height: 200px;
    }
    
    .sidebar-inner {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .woo-sidebar .category-item {
        border-right: 1px solid #f0f0f0;
    }
    
    .products-grid {
        gap: 15px;
    }
    
    .woo-products-area {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .sidebar-inner {
        grid-template-columns: 1fr;
    }
    
    .products-grid.columns-4,
    .products-grid.columns-3,
    .products-grid.columns-2 {
        grid-template-columns: 1fr;
    }
    
    .product-title {
        font-size: 14px;
        min-height: auto;
    }
}