.shop-container {
    display: flex;
    gap: 30px;
    padding: 120px 0 40px; /* Top padding to account for fixed header (80px + 40px gap) */
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar Styling */
.shop-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.category-widget {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.category-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 700;
    border-bottom: 2px solid #28a745;
    padding-bottom: 10px;
    display: inline-block;
}

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

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

.category-list a {
    text-decoration: none;
    color: #555;
    display: flex;
    justify-content: space-between;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-list a:hover, .category-list a.active {
    color: #28a745;
    transform: translateX(5px);
}

.count-badge {
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #888;
}

.active .count-badge {
    background: #28a745;
    color: #fff;
}

/* Product Grid */
.shop-main {
    flex-grow: 1;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.product-image-container {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: #f9f9f9;
}

.product-image-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-container img {
    transform: translate(-50%, -50%) scale(1.1);
}

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(40, 167, 69, 0.9);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h4 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: #2c3e50;
    line-height: 1.4;
    height: 3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.view-btn {
    margin-top: auto;
    background: #28a745;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.view-btn:hover {
    background: #218838;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .shop-container {
        flex-direction: column;
        padding: 100px 15px 40px;
    }
    
    .shop-sidebar {
        width: 100%;
    }
    
    .category-widget {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .category-list {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .category-list::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .category-list li {
        white-space: nowrap;
        margin-bottom: 0;
    }
    
    .category-list a {
        background: #f8f9fa;
        padding: 8px 18px;
        border-radius: 30px;
        border: 1px solid #eee;
        font-size: 0.9rem;
    }
    
    .category-list a.active {
        background: #28a745;
        color: #fff;
        border-color: #28a745;
    }
    
    .count-badge {
        display: none;
    }
}

@media (max-width: 768px) {
    .shop-container {
        padding-top: 100px;
        gap: 15px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Column layout for mobile and small tablets */
        gap: 10px;
        padding: 0 10px;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-info {
        padding: 10px;
    }

    .product-info h4 {
        font-size: 0.85rem;
        height: 2.4rem;
        margin-bottom: 5px;
        font-weight: 600;
    }

    .category-tag {
        top: 6px;
        left: 6px;
        padding: 2px 6px;
        font-size: 0.6rem;
    }

    .view-btn {
        padding: 8px;
        font-size: 0.8rem;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        gap: 8px;
        padding: 0 8px;
    }
}
