/* Medical Product Grid Styles */
.medical-product-grid-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Category Filter Styles */
.category-filter-section {
    margin-bottom: 40px;
}

.category-header {
    background: var(--category-bg, #4A90E2);
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
}

.category-title {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.category-subtitle {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.category-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.category-image {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-name {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.product-count {
    font-size: 12px;
    color: var(--category-bg, #4A90E2);
}

/* Product Grid Styles */
.product-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.product-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-size: 14px;
    color: #666;
}

.product-sort {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.product-content-wrapper {
    display: flex;
    gap: 30px;
}

/* Sidebar Filters */
.product-filters-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.filter-section {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-title {
    background: var(--filter-bg, #4A90E2);
    color: white;
    margin: 0;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
}

.price-filter-options,
.brand-filter-options,
.gender-filter-options {
    padding: 15px;
}

.price-filter-options label,
.brand-filter-options label,
.gender-filter-options label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    cursor: pointer;
}

.price-filter-options input,
.brand-filter-options input,
.gender-filter-options input {
    margin-right: 8px;
}

/* Products Grid */
.products-container {
    flex: 1;
}

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

.products-grid[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.products-grid[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.products-grid[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
.products-grid[data-columns="5"] { grid-template-columns: repeat(5, 1fr); }

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background: #ff4757;
    color: white;
}

.heart-icon {
    font-size: 16px;
}

.product-info {
    padding: 15px;
}

.product-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.product-title a {
    color: #333;
    text-decoration: none;
}

.product-title a:hover {
    color: var(--category-bg, #4A90E2);
}

.price {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: #e74c3c;
}

.stock-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.stock-status.in-stock {
    background: #2ed573;
    color: white;
}

.stock-status.out-of-stock {
    background: #ff4757;
    color: white;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .product-content-wrapper {
        flex-direction: column;
    }

    .product-filters-sidebar {
        width: 100%;
    }

    .products-grid[data-columns="4"],
    .products-grid[data-columns="5"] {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .product-grid-header {
        flex-direction: column;
        align-items: stretch;
    }
}

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

    .category-grid {
        grid-template-columns: 1fr;
    }
}
