/* Modern Pharmacy Theme (moved from product_list.html) */
:root {
    --primary: #007bff;
    --primary-light: #4dabf7;
    --danger: #ff6b6b;
    --success: #51cf66;
    --dark: #212529;
    --light: #f8f9fa;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    --radius: 1rem;
    --transition: all 0.3s ease;
}

/* Glass Card */
.glass {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.glass:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Filter Sidebar */
.filter-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-header {
    background: var(--gradient);
    color: white;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 1rem 1.25rem;
}

.filter-header h5 {
    margin: 0;
    font-weight: 700;
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 50px;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    font-size: 0.95rem;
}

/* .input-group .btn {
    border-radius: 50px;
} */

/* Price Slider */
.price-range {
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
}

.price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.4);
}

.price-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
}

/* Product Card */
.product-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    border-color: #007bff !important;
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.18);
    transform: translateY(-6px);
}

/* Discount Badge and Price Styling */
.badge.bg-success {
    font-size: 0.65rem !important;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.text-decoration-line-through {
    color: #6c757d !important;
    font-size: 0.85rem;
    margin-right: 0.25rem;
}

.product-img {
    height: 160px;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

/* Pagination */
.pagination .page-link {
    border: none;
    color: var(--primary);
    background: transparent;
    margin: 0 4px;
    border-radius: 50px !important;
    padding: 8px 16px;
    transition: var(--transition);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.pagination .page-link:hover {
    background: var(--primary-light);
    color: white;
}

/* Mobile Filter Sheet */
@media (max-width: 992px) {
    .filter-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        background: white;
        border-radius: 1.5rem 1.5rem 0 0;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
        z-index: 1050;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        padding: 1rem;
    }

    .filter-sidebar.open {
        transform: translateY(0);
    }

    .filter-toggle {
        position: fixed;
        bottom: 75px;
        right: 15px;
        width: 60px;
        height: 60px;
        background: #007bff;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
        z-index: 1051;
        font-size: 1.8rem;
        border: none;
    }

    /* Mobile discount styling adjustments */
    .badge.bg-success {
        font-size: 0.6rem !important;
        padding: 0.15rem 0.3rem;
    }

    .text-decoration-line-through {
        font-size: 0.8rem;
    }
}