/* 
=====================================
NIMJ nimje Inspired Medical E-commerce CSS
=====================================
*/

/* =====================================
   1. ROOT VARIABLES & FONTS
===================================== */
:root {
    /* Brand Colors - Matching nimje.com */
    --primary-color: #ff6f61;          /* Coral/Salmon Red */
    --primary-dark: #e55a4b;           /* Darker shade for hover */
    --secondary-color: #212529;        /* Dark navy/black */
    --success-color: #28a745;          /* Green for success */
    --warning-color: #ffc107;          /* Yellow for warnings */
    --danger-color: #dc3545;           /* Red for errors */
    --info-color: #17a2b8;            /* Blue for info */
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray-100: #f1f3f4;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Text Colors */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --text-light: #ffffff;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 6px;
    --border-radius-lg: 8px;
    --border-radius-xl: 12px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1050;
    --z-tooltip: 1070;
}

/* =====================================
   2. GLOBAL STYLES
===================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* =====================================
   3. BUTTON STYLES
===================================== */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-dark {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

.btn-outline-dark {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-dark:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

/* Button sizes */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

/* =====================================
   4. FORM STYLES
===================================== */
.form-control {
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    padding: 8px 12px;
    font-size: 14px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 111, 97, 0.2);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-500);
}

/* =====================================
   5. CARD STYLES
===================================== */
.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background-color: var(--light-gray);
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.25rem;
}

/* =====================================
   6. NAVIGATION STYLES
===================================== */
.navbar {
    padding: 0.5rem 0;
}

.navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Dropdown styles */
.dropdown-menu {
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius-md);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 14px;
    transition: background-color var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* =====================================
   7. PRODUCT CARD STYLES
===================================== */
.product-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    overflow: hidden;
    background: var(--white);
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--border-radius-xl);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
}

.product-img {
    transition: transform var(--transition-normal);
    object-fit: cover;
    width: 100%;
    height: 200px;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
}

.product-title a {
    color: var(--text-primary);
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-price {
    font-weight: 600;
}

.product-rating {
    font-size: 12px;
}

.product-rating .bi-star-fill {
    color: var(--warning-color);
}

.product-rating .bi-star-half {
    color: var(--warning-color);
}

.product-rating .bi-star {
    color: var(--gray-300);
}

/* =====================================
   8. SECTION STYLES
===================================== */
.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Hero Section */
.hero-section {
    margin-bottom: 2rem;
}

.hero-slide {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

/* .hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
} */

.hero-slide .container {
    position: relative;
    z-index: 2;
}

/* Services Section */
.service-card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Term Cards (Brands & Categories) */
.term-item {
    padding: 0;
    background: var(--white);
    border-radius: var(--border-radius-md);
    transition: transform var(--transition-normal);
}

.term-item:hover {
    transform: translateY(-2px);
}

.term-item img {
    width: 100%;
    height: auto;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
    object-fit: contain;
    border-radius: 50%;
    margin: auto;
    background: #f8f5e6;
    aspect-ratio: 1;
      max-height: 220px;
}

.term-item:hover img {
    opacity: 1;
}

.term-card {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: transform var(--transition-normal);
    position: relative;
}

.term-card:hover {
    transform: translateY(-5px);
}

/* =====================================
   9. HOMEPAGE SPECIFIC STYLES
===================================== */

/* Banner Section */
.banner {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: transform var(--transition-normal);
    position: relative;
}

.banner:hover {
    transform: translateY(-3px);
}

.banner-content {
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

.banner-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
}

.banner-text {
    color: var(--white);
    opacity: 0.9;
}

/* Features Section */
.feature-card {
    text-align: center;
    padding: 1.5rem;
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-content {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.testimonial-avatar img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.testimonial-user-info h6 {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Newsletter */
.newsletter {
    background: var(--light-gray);
}

.newsletter-form .form-control {
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
    border-right: none;
}

.newsletter-form .btn {
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

/* =====================================
   10. FOOTER STYLES
===================================== */
.footer {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 0.75rem;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-contact a {
    color: var(--text-secondary);
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.social-icons a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    color: var(--text-secondary);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    margin-right: 0.5rem;
}

.social-icons a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.payment-icon, .app-download-icon {
    height: 24px;
    margin: 0 4px;
}

.footer-bottom {
    background: var(--secondary-color);
}

.footer-bottom-links a {
    color: var(--white);
    font-size: 12px;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* =====================================
   11. HEADER STYLES (nimje inspired)
===================================== */
.tata-nimje-header {
    font-family: inherit;
}

/* Top Navigation */
.top-nav-bar {
    background-color: var(--secondary-color);
    border-bottom: 1px solid #333;
}

.top-nav-bar .nav-link {
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--transition-fast);
}

.top-nav-bar .nav-link:hover {
    color: var(--primary-color);
}

.safe-badge {
    background-color: var(--primary-color);
    font-size: 9px;
    padding: 2px 6px;
    margin-left: 4px;
    border-radius: 3px;
}

/* NIMJ nimje Logo */
.tata-nimje-logo {
    display: flex;
    align-items: baseline;
    font-weight: bold;
    text-decoration: none;
}

.tata-text {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4px 8px;
    font-size: 18px;
    font-weight: 900;
    border-radius: 3px;
    margin-right: 2px;
}

.one-mg-text {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 900;
}

/* Main Header */
.main-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

/* Search Bar */
.header-search .search-wrapper {
    position: relative;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    background: var(--white);
    transition: border-color var(--transition-fast);
}

.header-search .search-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 111, 97, 0.2);
}

.header-search .search-input {
    border: none;
    padding: 12px 50px 12px 16px;
    font-size: 14px;
    background: transparent;
    width: 100%;
}

.header-search .search-input:focus {
    outline: none;
    box-shadow: none;
}

.header-search .search-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    border: none;
    padding: 0 15px;
    border-radius: 4px;
    background-color: var(--gray-100);
    color: var(--gray-600);
    transition: background-color var(--transition-fast);
}

.header-search .search-btn:hover {
    background-color: var(--gray-200);
}

/* Quick Order Section */
.quick-order-section {
    border-left: 1px solid var(--gray-200);
    padding-left: 15px;
}

.quick-order-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    font-size: 12px;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category Navigation */
.category-nav {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.category-nav .nav-link {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    padding: 12px 16px;
    transition: color var(--transition-fast);
}

.category-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Location Selector */
.location-selector {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color var(--transition-fast);
}

.location-selector:hover {
    background-color: var(--gray-100);
}

.location-text {
    font-size: 14px;
    color: var(--text-primary);
}

/* Header Actions */
.header-action {
    color: var(--gray-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.header-action:hover {
    color: var(--primary-color);
}

.header-action .badge {
    top: -5px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0;
    background-color: var(--primary-color);
    font-size: 10px;
}

/* =====================================
   12. SWIPER/CAROUSEL STYLES
===================================== */
.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color);
    background: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--primary-color);
    color: var(--white);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 18px;
}

.swiper-pagination-bullet {
    background: var(--gray-400);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* =====================================
   13. BACK TO TOP BUTTON
===================================== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* =====================================
   14. MOBILE RESPONSIVE STYLES
===================================== */
@media (max-width: 768px) {
    .hero-slide {
        height: 300px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .product-card .card-body {
        padding: 15px;
    }
    
    .product-title {
        font-size: 13px;
    }
    
    .service-card, .feature-card {
        padding: 1rem;
    }
    
    .top-nav-bar .main-nav {
        display: none;
    }
    
    .quick-order-section {
        display: none;
    }
    
    .category-nav {
        display: none;
    }
    
    .main-header .container {
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .hero-slide {
        height: 250px;
    }
    
    .hero-slide .display-4 {
        font-size: 1.75rem;
    }
    
    .hero-slide .lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* =====================================
   15. LOADING STATES & ANIMATIONS
===================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

.pulse {
    animation: pulse 1s ease-in-out infinite;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* =====================================
   16. UTILITY CLASSES
===================================== */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: var(--shadow-md) !important;
}

.border-radius-custom {
    border-radius: var(--border-radius-md) !important;
}

/* Spacing utilities */
.p-custom {
    padding: var(--spacing-md) !important;
}

.m-custom {
    margin: var(--spacing-md) !important;
}

/* Text utilities */
.text-small {
    font-size: 12px !important;
}

.text-large {
    font-size: 16px !important;
}

.font-weight-medium {
    font-weight: 500 !important;
}

.font-weight-semibold {
    font-weight: 600 !important;
}

/* =====================================
   17. PRINT STYLES
===================================== */
@media print {
    .header, .footer, .back-to-top {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* =====================================
   18. ACCESSIBILITY IMPROVEMENTS
===================================== */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.focus-visible:focus {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 2px !important;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #d73527;
        --text-primary: #000000;
        --text-secondary: #333333;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================
   19. DARK MODE SUPPORT (Optional)
===================================== */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        --white: #1a1a1a;
        --light-gray: #2d2d2d;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --gray-100: #2d2d2d;
        --gray-200: #404040;
    }
}

/* =====================================
   FILTER SIDEBAR STYLES
===================================== */

/* Filter Sidebar Container */
.filters-sidebar {
    position: sticky;
    top: 2rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: calc(100vh - 4rem); /* Prevent sidebar from exceeding viewport height */
    overflow-y: auto; /* Add vertical scrolling if needed */
}

.filters-sidebar.filters-hidden {
    transform: translateX(-100%);
}

/* Filter Header */
.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filters-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filters-title i {
    font-size: 1.1rem;
}

.filters-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    padding: 0.25rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
    display: none;
}

.filters-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* Filter Content */
.filters-content {
    padding: 0;
}

/* Filter Section */
.filter-section {
    border-bottom: 1px solid var(--gray-200);
}

.filter-section:last-child {
    border-bottom: none;
}

/* Filter Header */
.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--gray-100);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-header:hover {
    background: var(--gray-200);
}

.filter-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-title i {
    color: var(--primary-color);
    font-size: 1rem;
}

.filter-count {
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.5rem;
}

.btn-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.25rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle:hover {
    background: var(--gray-300);
    color: var(--text-primary);
}

/* Filter Content */
.filter-content {
    padding: 1rem 1.5rem;
    background: var(--white);
    display: block;
}

/* Search Input */
.search-input-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.1);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.filter-option label {
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    margin: 0;
    flex: 1;
    font-weight: 500;
}

.filter-option:hover label {
    color: var(--primary-color);
}

/* Price Range Inputs */
.price-range-inputs {
    margin-top: 0.5rem;
}

.price-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.price-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.1);
}

.price-separator {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Filter Actions */
.filter-actions {
    padding: 1.5rem;
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-apply,
.btn-reset {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-apply {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-apply:hover:not(:disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 111, 97, 0.3);
}

.btn-apply:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-reset {
    background: var(--white);
    color: var(--text-secondary);
    border-color: var(--gray-300);
}

.btn-reset:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Mobile Filter Toggle */
.filters-toggle-mobile {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 20px rgba(255, 111, 97, 0.3);
    z-index: 1050;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.filters-toggle-mobile:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        height: 100vh; /* Full height on mobile */
        z-index: 1045;
        border-radius: 0;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
        transform: translateX(-100%);
        max-height: 100vh; /* Ensure it doesn't exceed viewport */
        overflow-y: auto; /* Add scrolling for mobile */
    }

    .filters-sidebar:not(.filters-hidden) {
        transform: translateX(0);
    }

    .filters-close {
        display: block;
    }

    .filters-toggle-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Overlay for mobile */
    .filters-sidebar::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .filters-sidebar:not(.filters-hidden)::before {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 575.98px) {
    .filters-sidebar {
        width: 280px;
    }

    .filter-header,
    .filter-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .filters-header {
        padding: 1rem;
    }

    .filter-actions {
        padding: 1rem;
    }

    .price-input-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .price-separator {
        display: none;
    }
}

/* Loading States */
.btn-apply:disabled,
.btn-reset:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Animation for filter sections */
.filter-content {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 2000px; /* Increased from 500px to accommodate more filter options */
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* Focus states for accessibility */
.search-input:focus,
.price-input:focus,
.filter-option input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.25);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .filters-sidebar {
        border-width: 2px;
    }

    .filter-section {
        border-bottom-width: 2px;
    }

    .btn-apply,
    .btn-reset {
        border-width: 3px;
    }
}

/* =====================================
   ORDER TIMELINE STYLES
===================================== */
.order-timeline .timeline {
    position: relative;
    padding-left: 30px;
}

.order-timeline .timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-300);
}

.order-timeline .timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.order-timeline .timeline-item:last-child {
    margin-bottom: 0;
}

.order-timeline .timeline-marker {
    position: absolute;
    left: -22px;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gray-300);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    z-index: 1;
}

.order-timeline .timeline-item.completed .timeline-marker {
    background: var(--success-color);
    color: var(--white);
}

.order-timeline .timeline-item.current .timeline-marker {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.2);
}

.order-timeline .timeline-content {
    background: var(--white);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    border: 1px solid var(--gray-200);
}

.order-timeline .timeline-item.completed .timeline-content {
    border-color: var(--success-color);
    background: rgba(40, 167, 69, 0.05);
}

.order-timeline .timeline-item.current .timeline-content {
    border-color: var(--primary-color);
    background: rgba(255, 111, 97, 0.05);
}

.order-timeline .timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.order-timeline .timeline-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.order-timeline .timeline-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
    margin-left: 0.5rem;
}

.order-timeline .timeline-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}