/* Mchemist - Custom CSS */
/* Modern Pharmacy E-commerce Styling */

:root {
    --primary-color: #1a7a5a;
    --primary-dark: #0d5a3e;
    --primary-light: #e8f5f0;
    --secondary-color: #2d3748;
    --accent-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* General Styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Logo */
.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 8px 0;
    font-size: 13px;
}

.announcement-bar a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: var(--transition);
}

.announcement-bar a:hover {
    color: white;
}

/* Navbar */
.navbar {
    background: var(--white) !important;
    box-shadow: var(--shadow-sm);
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
    padding: 10px 16px;
    border-radius: 8px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.navbar .nav-link i {
    margin-right: 6px;
}

/* Mega Menu */
.mega-menu {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-top: 10px;
}

.mega-menu-item h6 a {
    color: var(--secondary-color);
    font-weight: 600;
}

.mega-menu-item ul {
    padding-left: 16px;
    margin-top: 6px;
}

.mega-menu-item ul li {
    margin-bottom: 4px;
}

.mega-menu-item ul li a {
    color: var(--text-light);
    font-size: 14px;
    transition: var(--transition);
}

.mega-menu-item ul li a:hover {
    color: var(--primary-color);
}

/* Search Form */
.search-form .form-control {
    border-radius: 50px 0 0 50px;
    border: 2px solid var(--primary-light);
    padding: 10px 20px;
    min-width: 250px;
}

.search-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 10px 24px;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 122, 90, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 500px;
}

.hero-search {
    max-width: 500px;
}

.hero-search .form-control {
    border-radius: 50px;
    padding: 14px 24px;
    border: 2px solid #e2e8f0;
    font-size: 16px;
}

.hero-search .btn {
    border-radius: 50px;
    padding: 14px 32px;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.hero-image {
    position: relative;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.hero-badge {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-badge.medal {
    top: 20%;
    right: -10%;
}

.hero-badge.delivery {
    bottom: 20%;
    left: -10%;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 28px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Category Cards */
.category-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-card .category-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: var(--primary-color);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--primary-color);
    color: white;
}

.category-card h6 {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--secondary-color);
}

.category-card .product-count {
    font-size: 13px;
    color: var(--text-light);
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card .product-image {
    position: relative;
    padding-top: 100%;
    background: var(--bg-color);
    overflow: hidden;
}

.product-card .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--danger-color);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.product-card .wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    color: var(--text-light);
}

.product-card .wishlist-btn:hover {
    background: var(--danger-color);
    color: white;
}

.product-card .product-body {
    padding: 16px;
}

.product-card .product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-brand {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.product-card .product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.product-card .selling-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-card .mrp {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-card .discount {
    font-size: 13px;
    color: var(--danger-color);
    font-weight: 600;
}

.product-card .product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.product-card .product-rating .stars {
    color: #fbbf24;
    font-size: 14px;
}

.product-card .product-rating .reviews {
    font-size: 13px;
    color: var(--text-light);
}

.product-card .product-actions {
    display: flex;
    gap: 8px;
}

.product-card .product-actions .btn {
    flex: 1;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 50px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* Why Choose Us */
.why-choose-us {
    background: var(--white);
    padding: 60px 0;
}

.why-card {
    text-align: center;
    padding: 24px;
}

.why-card .icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: var(--primary-color);
}

.why-card h6 {
    font-weight: 600;
    margin-bottom: 4px;
}

.why-card p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* How It Works */
.how-it-works {
    padding: 60px 0;
    background: var(--bg-color);
}

.step-card {
    text-align: center;
    padding: 24px;
}

.step-card .step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
}

/* Cart Page */
.cart-table {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cart-table thead {
    background: var(--primary-light);
}

.cart-table .cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

.cart-summary {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-summary .summary-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Checkout */
.checkout-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.checkout-section .section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}

.checkout-section .form-control {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 12px 16px;
}

.checkout-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 122, 90, 0.1);
}

/* Order Status Timeline */
.order-timeline {
    position: relative;
    padding-left: 30px;
}

.order-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.order-timeline .timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.order-timeline .timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 2px solid white;
}

.order-timeline .timeline-item.completed::before {
    background: var(--success-color);
}

.order-timeline .timeline-item.active::before {
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 122, 90, 0.2);
}

/* Dashboard */
.dashboard-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    text-decoration: none;
    display: block;
    color: var(--text-color);
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.dashboard-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.dashboard-card .card-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
}

.dashboard-card .card-label {
    color: var(--text-light);
    font-size: 14px;
}

.dashboard-sidebar {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px 0;
    box-shadow: var(--shadow-sm);
}

.dashboard-sidebar .sidebar-item {
    padding: 12px 24px;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dashboard-sidebar .sidebar-item:hover,
.dashboard-sidebar .sidebar-item.active {
    background: var(--primary-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.dashboard-sidebar .sidebar-item i {
    width: 20px;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.footer .footer-heading {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-links li {
    margin-bottom: 10px;
}

.footer .footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer .footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

.footer .footer-links a i {
    font-size: 10px;
    color: var(--primary-color);
}

.footer .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer .footer-contact li i {
    width: 20px;
    color: var(--primary-color);
}

.footer .social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    margin-right: 8px;
}

.footer .social-link:hover {
    background: var(--primary-color);
    transform: translateY(-4px);
}

.footer .footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer .payment-icons {
    font-size: 24px;
    color: rgba(255,255,255,0.5);
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-image {
        margin-top: 40px;
    }
    
    .hero-badge {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .product-card .product-body {
        padding: 12px;
    }
    
    .product-card .product-name {
        font-size: 13px;
    }
    
    .product-card .selling-price {
        font-size: 16px;
    }
    
    .checkout-section {
        padding: 16px;
    }
    
    .dashboard-sidebar {
        margin-bottom: 24px;
    }
    
    .footer .payment-icons {
        justify-content: center;
        margin-top: 12px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .product-card .product-actions .btn {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .cart-table .cart-item-img {
        width: 60px;
        height: 60px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}
.delay-2 {
    animation-delay: 0.2s;
}
.delay-3 {
    animation-delay: 0.3s;
}
.delay-4 {
    animation-delay: 0.4s;
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color);
}

.bg-primary-light {
    background-color: var(--primary-light);
}

.rounded-custom {
    border-radius: var(--border-radius);
}

.shadow-custom {
    box-shadow: var(--shadow-md);
}

.transition-custom {
    transition: var(--transition);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast-custom {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px;
    min-width: 300px;
    margin-bottom: 12px;
    border-left: 4px solid var(--primary-color);
    animation: slideInRight 0.5s ease forwards;
}

.toast-custom.success {
    border-left-color: var(--success-color);
}

.toast-custom.error {
    border-left-color: var(--danger-color);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* =========================================
   PRODUCTS MEGA MENU
========================================= */

.products-dropdown {
    position: static;
}

.products-dropdown .nav-link {
    position: relative;
}

/* Main Dropdown */
.products-dropdown .mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);

    width: min(1000px, calc(100vw - 30px));
    max-height: 70vh;
    overflow-y: auto;

    padding: 0;
    margin: 0;

    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 16px;

    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index: 1050;
}

/* Bootstrap open state */
.products-dropdown .mega-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Inner Grid */
.mega-menu-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;

    padding: 25px;
}

/* Category Column */
.mega-menu-column {
    padding: 15px 20px;
    border-right: 1px solid #edf0f4;
}

.mega-menu-column:nth-child(3n) {
    border-right: none;
}

/* Category Heading */
.mega-category-title {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 13px;

    color: #172033;
    font-size: 15px;
    font-weight: 700;

    text-decoration: none;

    transition: all 0.2s ease;
}

.mega-category-title:hover {
    color: #0d6efd;
}

/* Category Icon */
.category-icon {
    width: 28px;
    height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #eef5ff;
    color: #0d6efd;

    font-size: 11px;

    transition: all 0.2s ease;
}

.mega-category-title:hover .category-icon {
    background: #0d6efd;
    color: #ffffff;
}

/* Subcategories */
.mega-subcategories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-subcategories li {
    margin: 3px 0;
}

.mega-subcategories li a {
    display: flex;
    align-items: center;

    gap: 7px;

    padding: 6px 8px;

    color: #667085;
    font-size: 13px;

    text-decoration: none;

    border-radius: 6px;

    transition: all 0.2s ease;
}

.mega-subcategories li a i {
    font-size: 10px;
    color: #98a2b3;

    transition: transform 0.2s ease;
}

.mega-subcategories li a:hover {
    color: #0d6efd;
    background: #f5f8fc;
    padding-left: 12px;
}

.mega-subcategories li a:hover i {
    color: #0d6efd;
    transform: translateX(2px);
}

/* =========================================
   DROPDOWN ARROW
========================================= */

.products-dropdown .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
    transition: transform 0.25s ease;
}

.products-dropdown .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}


/* =========================================
   SCROLLBAR
========================================= */

.products-dropdown .mega-menu::-webkit-scrollbar {
    width: 6px;
}

.products-dropdown .mega-menu::-webkit-scrollbar-track {
    background: #f5f7fa;
}

.products-dropdown .mega-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .products-dropdown {
        position: relative;
    }

    .products-dropdown .mega-menu {
        position: static;

        width: 100%;
        max-height: none;

        transform: none !important;

        margin-top: 8px;

        border-radius: 12px;

        box-shadow: none;

        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .products-dropdown .mega-menu:not(.show) {
        display: none;
    }

    .mega-menu-inner {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px;
    }

    .mega-menu-column {
        border-right: none;
        border-bottom: 1px solid #edf0f4;
        padding: 14px;
    }

    .mega-menu-column:nth-last-child(-n+2) {
        border-bottom: none;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 575px) {

    .mega-menu-inner {
        grid-template-columns: 1fr;
        padding: 8px;
    }

    .mega-menu-column {
        padding: 13px 10px;
        border-bottom: 1px solid #edf0f4;
    }

    .mega-menu-column:last-child {
        border-bottom: none;
    }

    .mega-category-title {
        font-size: 14px;
    }

    .mega-subcategories li a {
        font-size: 13px;
        padding: 7px 8px;
    }
}

/* =============================================================
   Products Page — Filters & Grid
   ============================================================= */

/* Filter sidebar (desktop) */
.filter-sidebar {
    position: sticky;
    top: 100px;
}
.filter-sidebar .filter-form,
.offcanvas-body .filter-form {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.offcanvas-body .filter-form {
    padding: 0;
    box-shadow: none;
    border: none;
}

.filter-group {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}
.filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 8px;
}

.filter-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.filter-title i {
    font-size: 0.75rem;
    color: #888;
    transition: transform 0.2s ease;
}
.filter-title[aria-expanded="true"] i,
.filter-title:not(.collapsed) i {
    transform: rotate(180deg);
}

.filter-body .form-check { margin-bottom: 8px; }
.filter-body .form-check-label {
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
}
.filter-body .form-check-input { cursor: pointer; }
.filter-body .form-check-input:checked {
    background-color: #1a7a5a;
    border-color: #1a7a5a;
}

/* Active filter chips */
.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: #e8f5f0;
    color: #1a7a5a;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.filter-chip:hover {
    background: #d1ede0;
    color: #0d5a3e;
    transform: translateY(-1px);
}
.filter-chip i {
    font-size: 0.7rem;
    opacity: 0.7;
}
.filter-chip:hover i { opacity: 1; }

/* Product grid */
#productGrid > [class*="col-"] { display: flex; }
#productGrid > [class*="col-"] > * { width: 100%; }

/* Empty state */
.empty-state {
    background: #fafbfc;
    border-radius: 20px;
    border: 1px dashed #e0e0e0;
    padding: 60px 20px;
}
.empty-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto;
    background: #f0f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #8896a8;
}

/* Sort dropdown */
.form-select-sm {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 6px 12px;
    font-size: 0.875rem;
}
.form-select-sm:focus {
    border-color: #1a7a5a;
    box-shadow: 0 0 0 0.15rem rgba(26, 122, 90, 0.1);
}

/* Pagination */
.pagination .page-link {
    color: #1a7a5a;
    border-radius: 8px;
    margin: 0 3px;
    border: 1px solid #e8e8e8;
    min-width: 38px;
    text-align: center;
    font-weight: 500;
}
.pagination .page-link:hover {
    background: #e8f5f0;
    color: #0d5a3e;
    border-color: #d1ede0;
}
.pagination .page-item.active .page-link {
    background: #1a7a5a;
    border-color: #1a7a5a;
    color: #fff;
}
.pagination .page-item.disabled .page-link {
    color: #c8c8c8;
    background: #fafbfc;
    border-color: #f0f0f0;
}

@media (max-width: 575.98px) {
    .filter-chip { font-size: 0.75rem; padding: 4px 10px; }
    .container.py-4 { padding-left: 12px; padding-right: 12px; }
}

/* =============================================================
   Scrollable Category Filter
   ============================================================= */
.filter-scroll {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    margin-right: -6px;
}

.filter-scroll::-webkit-scrollbar {
    width: 6px;
}
.filter-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.filter-scroll::-webkit-scrollbar-thumb {
    background: #d0d5dd;
    border-radius: 3px;
}
.filter-scroll::-webkit-scrollbar-thumb:hover {
    background: #a8b0bb;
}

.filter-scroll {
    scrollbar-width: thin;
    scrollbar-color: #d0d5dd transparent;
}

.filter-scroll-wrap {
    position: relative;
}
.filter-scroll-wrap::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 24px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
    pointer-events: none;
    border-radius: 0 0 8px 8px;
}


    .wishlist-item .product-card {
    position: relative;
}

.wishlist-item .wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px); /* Modern frosted glass effect */
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                background-color 0.2s ease, 
                box-shadow 0.2s ease;
}

.wishlist-item .wishlist-btn i {
    color: #dc3545;
    font-size: 16px;
    transition: color 0.2s ease;
}

.wishlist-item .wishlist-btn:hover {
    background: #dc3545;
    transform: scale(1.1); /* Slightly more satisfying pop effect */
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.3); /* Colored glow matching the button */
}

.wishlist-item .wishlist-btn:hover i {
    color: #fff;
}

.wishlist-item .wishlist-btn:active {
    transform: scale(0.95); /* Tactile press feedback */
}