/* BABISHA - Fabric Buyer Website Styles */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #8B0000; /* Deep Maroon */
    --secondary-color: #DC143C; /* Crimson */
    --accent-color: #B22222; /* Fire Brick */
    --gold-accent: #DAA520; /* Goldenrod */
    --text-dark: #2C1810; /* Dark Brown */
    --text-light: #8B7355; /* Light Brown */
    --beige: #FDF5E6; /* Old Lace */
    --cream: #FAF7F0; /* Cream */
    --white: #ffffff;
    --maroon-light: #A0522D; /* Sienna */
    --maroon-dark: #5D1A1A; /* Dark Maroon */
    --shadow: 0 8px 32px rgba(139, 0, 0, 0.15);
    --shadow-lg: 0 20px 60px rgba(139, 0, 0, 0.25);
    --luxury-shadow: 0 25px 80px rgba(139, 0, 0, 0.3);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Custom Bootstrap Overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
    transform: translateY(-2px);
}

.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    transition: var(--transition);
}

.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
    transform: translateY(-2px);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Enhanced Navigation Styles */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(139, 0, 0, 0.1);
    border-bottom: 1px solid rgba(139, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 8px 40px rgba(139, 0, 0, 0.15);
}

.navbar-brand img {
    transition: var(--transition);
    filter: brightness(1) contrast(1.1);
    max-width: none;
    width: auto;
    min-height: 60px;
    object-fit: contain;
}

.navbar-brand:hover img {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.2);
}

/* Ensure navbar has enough height for the logo */
.navbar {
    min-height: 80px;
    padding: 0.75rem 0;
}

.navbar-brand {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
    transform: translateY(0);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-accent));
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 30px;
    }
}

/* Dropdown Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.15);
    border-radius: 15px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 0, 0, 0.1);
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.dropdown-item:hover::before {
    left: 100%;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: translateX(5px);
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: 0.15em;
}

/* Right side navigation icons */
.navbar-nav .nav-link i {
    font-size: 1.1rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover i {
    color: var(--primary-color);
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .navbar {
        min-height: 70px;
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        height: 50px;
        min-height: 50px;
    }
    
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.1);
        margin-left: 1rem;
        margin-top: 0.5rem;
    }
    
    .nav-link.active::after {
        display: none;
    }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.85), rgba(92, 26, 26, 0.9)),
                url('images/lehengas/lehenga1.jpg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(139, 0, 0, 0.1), transparent, rgba(218, 165, 32, 0.1));
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.8) 0%, rgba(218, 165, 32, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-content .lead {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--shadow);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: var(--white);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--luxury-shadow);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.hero-buttons .btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--gold-accent);
    color: var(--gold-accent);
    transform: translateY(-3px);
    box-shadow: var(--luxury-shadow);
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Fabric Cards */
.fabric-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(139, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(139, 0, 0, 0.05);
    position: relative;
}

.fabric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.02), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.fabric-card:hover::before {
    opacity: 1;
}

.fabric-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--luxury-shadow);
    border-color: var(--primary-color);
}

.fabric-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    border-radius: 20px 20px 0 0;
}

.fabric-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: saturate(1.1);
}

.fabric-card:hover .fabric-image img {
    transform: scale(1.1);
    filter: saturate(1.3) brightness(1.1);
}

.fabric-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.8), rgba(92, 26, 26, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.fabric-card:hover .fabric-overlay {
    opacity: 1;
}

.fabric-info {
    padding: 1.5rem;
}

.fabric-info h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.price-range {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stars {
    font-size: 1.2rem;
}

.testimonial-author strong {
    color: var(--text-dark);
}

/* Enhanced Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(139, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(139, 0, 0, 0.05);
    transform: translateY(0) scale(1);
    cursor: pointer;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.02), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: var(--luxury-shadow);
    border-color: var(--primary-color);
}

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 20px 20px 0 0;
    filter: brightness(1.05) contrast(1.1);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: saturate(1.1);
}

.product-card:hover .product-image img {
    transform: scale(1.15) rotate(2deg);
    filter: saturate(1.3) brightness(1.1);
}

/* Sale Banner */
.sale-banner {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sale-banner::before {
    content: "SALE";
}

/* Quick Actions Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.8), rgba(92, 26, 26, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    backdrop-filter: blur(5px);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-actions {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
    align-items: center;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .quick-actions {
    transform: translateY(0);
}

.quick-actions .btn {
    min-width: 120px;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    transform: scale(0.9);
    opacity: 0.8;
}

.quick-actions .btn:hover {
    transform: scale(1.05);
    opacity: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-card:hover .quick-actions .btn {
    transform: scale(1);
    opacity: 1;
}

/* Product Info */
.product-info {
    padding: 1.25rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    line-height: 1.3;
    height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.4;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-specs {
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    padding: 0.25rem 0;
}

.spec-label {
    color: var(--text-light);
    font-weight: 500;
}

.spec-value {
    color: var(--text-dark);
    font-weight: 600;
}

/* Enhanced Pricing */
.product-pricing {
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.original-price {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.savings {
    font-size: 0.8rem;
    color: #e74c3c;
    font-weight: 600;
    background: rgba(231, 76, 60, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
}

.price-per-unit {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Enhanced Search and Filter Layout */
.search-filter-section {
    background: var(--white);
    padding: 1.25rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Enhanced Search Styles */
.search-box {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-box input {
    padding-left: 3rem;
    border-radius: 25px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    background: var(--white);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.search-box input:focus + i {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.search-suggestions.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestion-item:hover {
    background: rgba(30, 58, 138, 0.05);
    transform: translateX(5px);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-category {
    font-size: 0.75rem;
    color: var(--text-light);
    background: rgba(30, 58, 138, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-box input {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: 8px;
    border: 2px solid rgba(30, 58, 138, 0.1);
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.search-box i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-dropdown select {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(30, 58, 138, 0.1);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font-weight: 500;
}

.results-info {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Enhanced Filter Sidebar */
.filter-sidebar {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
    transition: all 0.3s ease;
}

.filter-sidebar:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.filter-section {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.filter-title:hover {
    background: rgba(30, 58, 138, 0.05);
    color: var(--primary-color);
}

.filter-title i {
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.filter-title.collapsed i {
    transform: rotate(-90deg);
}

.filter-options {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.filter-options.show {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    padding-top: 0.5rem;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.filter-option input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: var(--primary-color);
}

.filter-option label {
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    flex: 1;
}

.filter-count {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-left: auto;
}

.price-range {
    margin-top: 0.5rem;
}

.price-inputs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.price-inputs input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-size: 0.85rem;
}

.clear-filters {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent-color);
    border: none;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 500;
    margin-top: 1rem;
    transition: var(--transition);
}

.clear-filters:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-sidebar {
        position: static;
        order: 2;
    }
    
    .search-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
}

/* Product Details */
.product-detail-section {
    padding: 4rem 0;
}

.product-detail-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.product-detail-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.product-detail-info {
    padding-left: 2rem;
}

.product-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.product-detail-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.specifications {
    background: var(--accent-color);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.specifications h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--text-dark);
}

.spec-value {
    color: var(--text-light);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.pagination-info {
    color: var(--text-light);
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination .page-link {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    font-weight: 500;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .page-link.active,
.pagination .btn.active {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
}

.pagination .btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    font-weight: 500;
    min-width: 40px;
}

.pagination .btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(30, 58, 138, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.product-rating .stars {
    display: flex;
    gap: 0.1rem;
}

.product-rating .stars i {
    font-size: 0.9rem;
}

.rating-text {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Fabric Actions */
.fabric-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.fabric-actions .btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* Ensure buttons are clickable */
.fabric-actions .btn {
    pointer-events: auto !important;
    z-index: 10 !important;
    position: relative !important;
    cursor: pointer !important;
}

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

.fabric-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.fabric-actions .btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wishlist-btn:hover {
    background: var(--white);
    color: #e74c3c;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
}

.wishlist-btn.active {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-control {
    border: 2px solid rgba(30, 58, 138, 0.1);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Google Maps */
.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* About Page */
.about-hero {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.8), rgba(92, 26, 26, 0.9)),
                url('images/lehengas/lehenga1.jpg.webp');
    background-size: cover;
    background-position: center;
    padding: 8rem 0 4rem;
    color: var(--white);
    text-align: center;
}

.about-content {
    padding: 4rem 0;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.stats-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Sustainability Section */
.sustainability-section {
    background: var(--cream);
    padding: 4rem 0;
}

.sustainability-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.sustainability-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.sustainability-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary-color), #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.sustainability-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .product-detail-info {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .product-detail-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .filter-buttons {
        justify-content: flex-start;
    }
    
    .stats-section .row {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .fabric-image {
        height: 200px;
    }
    
    .product-image {
        height: 250px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error Messages */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--accent-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Category Cards - Inspired by modern e-commerce design */
.category-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 300px;
    cursor: pointer;
}

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

.category-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

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

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

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 1;
    transition: all 0.3s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.category-content {
    color: white;
    width: 100%;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.category-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.category-content .btn {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.category-content .btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Specific category card styles */
.lehenga-card .category-overlay {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.fusion-card .category-overlay {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.sherwani-card .category-overlay {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.saree-card .category-overlay {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-card {
        height: 250px;
        margin-bottom: 1rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .category-overlay {
        padding: 1.5rem;
    }
    
    .category-subtitle {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .category-card {
        height: 200px;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
    
    .category-overlay {
        padding: 1rem;
    }
}

/* Enhanced feature cards for Why Choose BABISHA section */
.feature-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 1.5rem;
}

.feature-card h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Section title enhancements */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

/* FAQ Section Styling */
.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.accordion-button {
    background: white;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    border-radius: 10px !important;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
    border-color: transparent;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233b82f6'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.accordion-body {
    padding: 1.5rem;
    background: #f8f9fa;
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.accordion-body strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* FAQ Icons */
.accordion-button i {
    font-size: 1.1rem;
    margin-right: 0.75rem;
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .accordion-button {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-button i {
        font-size: 1rem;
        margin-right: 0.5rem;
    }
}

@media (max-width: 576px) {
    .accordion-button {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .accordion-body {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ============================================ */

/* Mobile Navigation Improvements */
@media (max-width: 991px) {
    .navbar {
        min-height: 70px;
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        height: 50px;
        min-height: 50px;
    }
    
    .navbar-nav .btn {
        margin-top: 0.5rem;
        width: 100%;
    }
}

/* Mobile Page Header */
@media (max-width: 768px) {
    section.py-3.bg-light {
        margin-top: 70px !important;
        padding: 1.5rem 0 !important;
    }
    
    .display-5 {
        font-size: 1.75rem !important;
    }
    
    .lead {
        font-size: 0.95rem !important;
    }
}

/* Mobile Search and Filter Section */
@media (max-width: 768px) {
    .search-filter-section {
        padding: 1rem 0;
    }
    
    .search-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .search-box {
        max-width: 100%;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .search-box input {
        padding: 0.625rem 1rem 0.625rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .sort-dropdown {
        width: 100%;
        justify-content: space-between;
    }
    
    .sort-dropdown select {
        flex: 1;
        padding: 0.625rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .results-info {
        text-align: center;
        font-size: 0.85rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
}

/* Mobile Filter Sidebar - Collapsible */
@media (max-width: 768px) {
    .filter-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 1rem;
        border-radius: 8px;
        padding: 1rem;
        transition: all 0.3s ease;
    }
    
    .filter-sidebar h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        padding: 0.75rem;
        background: rgba(139, 0, 0, 0.05);
        border-radius: 6px;
        user-select: none;
        -webkit-user-select: none;
    }
    
    .filter-sidebar h5::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        transition: transform 0.3s ease;
        margin-left: auto;
        padding-left: 0.5rem;
    }
    
    .filter-sidebar.collapsed h5::after {
        transform: rotate(-90deg);
    }
    
    .filter-sidebar.collapsed .filter-section {
        display: none !important;
    }
    
    .filter-sidebar.collapsed .clear-filters {
        display: none;
    }
}

/* Mobile Product Cards - 2 Column Grid Layout */
@media (max-width: 768px) {
    .product-card,
    .fabric-card {
        margin-bottom: 0.5rem;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        height: 100%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .product-card:hover,
    .fabric-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .product-image,
    .fabric-image {
        height: 180px;
        width: 100%;
        border-radius: 8px 8px 0 0;
        position: relative;
    }
    
    .product-image img,
    .fabric-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .product-info,
    .fabric-info {
        padding: 0.75rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .product-title,
    .fabric-name {
        font-size: 0.85rem;
        height: auto;
        min-height: 2.2rem;
        margin-bottom: 0.375rem;
        line-height: 1.3;
        font-weight: 600;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .product-description,
    .fabric-description {
        display: none; /* Hide description on mobile for compact layout */
    }
    
    .product-specs,
    .fabric-specs {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
        color: #666;
    }
    
    .spec-item {
        margin-bottom: 0.15rem;
        padding: 0;
    }
    
    .product-pricing {
        margin-bottom: 0.5rem;
    }
    
    .product-price,
    .fabric-price {
        margin-bottom: 0.25rem;
    }
    
    .product-price .current-price,
    .fabric-price .current-price {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--secondary-color);
        margin-bottom: 0;
    }
    
    .original-price {
        font-size: 0.75rem;
        margin-left: 0.25rem;
    }
    
    .fabric-image .badge.bg-danger,
    .product-image .badge.bg-danger {
        position: absolute;
        top: 6px;
        left: 6px;
        padding: 3px 6px;
        font-size: 0.65rem;
        font-weight: 600;
        z-index: 2;
        border-radius: 4px;
    }
    
    .savings {
        position: absolute;
        top: 6px;
        left: 6px;
        padding: 3px 6px;
        font-size: 0.65rem;
        font-weight: 600;
        z-index: 2;
    }
    
    .price-per-unit {
        font-size: 0.7rem;
        display: none; /* Hide on mobile for space */
    }
    
    .product-rating,
    .fabric-rating {
        font-size: 0.7rem;
        margin-bottom: 0.375rem;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
    
    .product-rating .stars,
    .fabric-rating .stars {
        font-size: 0.7rem;
    }
    
    .product-actions,
    .fabric-actions {
        display: flex;
        flex-direction: column;
        gap: 0.375rem;
        margin-top: auto;
        padding-top: 0.5rem;
    }
    
    .product-actions .btn,
    .fabric-actions .btn {
        width: 100%;
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        border-radius: 4px;
        margin: 0 !important;
        white-space: nowrap;
    }
    
    .fabric-supplier {
        font-size: 0.65rem;
        margin-bottom: 0.375rem;
        color: #999;
        display: none; /* Hide supplier on mobile for compact layout */
    }
    
    /* Hide overlay on mobile */
    .product-overlay,
    .fabric-overlay {
        display: none;
    }
}

/* Mobile Product Cards - Extra Small (Still 2 columns) */
@media (max-width: 576px) {
    .products-container .col-lg-4,
    .products-container .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 0.25rem;
    }
    
    .product-card,
    .fabric-card {
        margin-bottom: 0.5rem;
        border-radius: 6px;
    }
    
    .product-image,
    .fabric-image {
        height: 160px;
    }
    
    .product-info,
    .fabric-info {
        padding: 0.625rem;
    }
    
    .product-title,
    .fabric-name {
        font-size: 0.8rem;
        min-height: 2rem;
        line-height: 1.25;
    }
    
    .product-specs,
    .fabric-specs {
        font-size: 0.65rem;
        margin-bottom: 0.375rem;
    }
    
    .product-price .current-price,
    .fabric-price .current-price {
        font-size: 0.9rem;
    }
    
    .product-rating,
    .fabric-rating {
        font-size: 0.65rem;
    }
    
    .product-actions .btn,
    .fabric-actions .btn {
        padding: 0.45rem 0.625rem;
        font-size: 0.7rem;
    }
    
    .savings,
    .badge.bg-danger {
        font-size: 0.6rem;
        padding: 2px 4px;
    }
}


/* Mobile Pagination */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        padding: 1rem 0;
    }
    
    .pagination-info {
        font-size: 0.85rem;
        text-align: center;
    }
    
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination .page-link,
    .pagination .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        min-width: 38px;
    }
    
    .pagination .btn.active {
        background-color: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        color: var(--white) !important;
    }
}

/* Mobile Container Padding */
@media (max-width: 576px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    section.py-3 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* Mobile Button Improvements */
@media (max-width: 768px) {
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

/* Mobile Footer */
@media (max-width: 768px) {
    footer .row {
        text-align: center;
    }
    
    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    footer .social-links {
        justify-content: center;
    }
}

/* Mobile Modal Improvements */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 8px;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
}

/* Mobile Text Improvements */
@media (max-width: 576px) {
    body {
        font-size: 0.9rem;
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
}

/* Mobile Logo and Brand */
@media (max-width: 576px) {
    .navbar-brand {
        padding: 0.25rem 0;
    }
    
    .navbar-brand img {
        height: 45px;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    .btn,
    .nav-link,
    .dropdown-item,
    .filter-option,
    .pagination .page-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .filter-option input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100%;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}