* {
    margin: 0;
    padding-top: 0px;
    padding-right: 0%;
    padding-bottom: 0px;
    padding-left: 0px;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --border-color: #e5e7eb;
    --text-color: #374151;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

/* Global Mobile Touch Animations */
@media (max-width: 768px) {
    /* Universal clickable element animations */
    button, 
    .btn, 
    a, 
    .clickable,
    .product-card,
    .category-card,
    .brand-card,
    .nav-item,
    .mobile-nav-item,
    .filter-btn,
    .tab-btn,
    .wishlist-btn,
    .cart-btn,
    .add-to-cart,
    .quantity-btn,
    .slider-dot,
    .scroll-btn,
    input[type="submit"],
    input[type="button"],
    .form-submit {
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        position: relative;
        overflow: hidden;
        transition: all 0.2s ease;
    }
    
    /* Scale animation on touch */
    button:active, 
    .btn:active, 
    a:active, 
    .clickable:active,
    .product-card:active,
    .category-card:active,
    .brand-card:active,
    .nav-item:active,
    .mobile-nav-item:active,
    .filter-btn:active,
    .tab-btn:active,
    .wishlist-btn:active,
    .cart-btn:active,
    .add-to-cart:active,
    .quantity-btn:active,
    .slider-dot:active,
    .scroll-btn:active,
    input[type="submit"]:active,
    input[type="button"]:active,
    .form-submit:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Ripple effect base */
    button::before, 
    .btn::before, 
    a::before, 
    .clickable::before,
    .product-card::before,
    .category-card::before,
    .brand-card::before,
    .nav-item::before,
    .mobile-nav-item::before,
    .filter-btn::before,
    .tab-btn::before,
    .wishlist-btn::before,
    .cart-btn::before,
    .add-to-cart::before,
    .quantity-btn::before,
    .slider-dot::before,
    .scroll-btn::before,
    input[type="submit"]::before,
    input[type="button"]::before,
    .form-submit::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.3s ease, height 0.3s ease;
        pointer-events: none;
        z-index: 1;
    }
    
    /* Dark elements get light ripple */
    .btn-primary::before,
    .btn-dark::before,
    .btn-hero-primary::before {
        background: rgba(255, 255, 255, 0.3);
    }
    
    /* Light elements get dark ripple */
    .btn-light::before,
    .btn-secondary::before,
    .product-card::before,
    .category-card::before,
    .brand-card::before {
        background: rgba(0, 0, 0, 0.1);
    }
    
    /* Ripple animation keyframes */
    @keyframes mobile-ripple {
        0% {
            transform: translate(-50%, -50%) scale(0);
            opacity: 1;
        }
        100% {
            transform: translate(-50%, -50%) scale(4);
            opacity: 0;
        }
    }
    
    /* Active ripple state */
    .ripple-active::after {
        content: '';
        position: absolute;
        top: var(--ripple-top, 50%);
        left: var(--ripple-left, 50%);
        width: 20px;
        height: 20px;
        background: rgba(255, 255, 255, 0.4);
        border-radius: 50%;
        animation: mobile-ripple 0.6s ease-out;
        pointer-events: none;
        z-index: 2;
    }
    
    /* Specific element enhancements */
    .product-card:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .category-card:active,
    .brand-card:active {
        transform: scale(0.92);
    }
    
    .mobile-nav-item:active {
        background: rgba(0, 0, 0, 0.05);
        transform: scale(0.98);
    }
    
    .wishlist-btn:active {
        transform: scale(0.9);
        background: #fef2f2;
    }
    
    .quantity-btn:active {
        transform: scale(0.9);
        background: var(--primary-color);
        color: white;
    }
    
    /* Button specific animations */
    .btn:active {
        transform: scale(0.96);
    }
    
    .btn-primary:active {
        background: var(--secondary-color);
    }
    
    .btn-hero:active {
        transform: scale(0.94);
    }
    
    /* Form elements */
    input[type="submit"]:active,
    input[type="button"]:active,
    .form-submit:active {
        transform: scale(0.97);
    }
    
    /* Slider dots */
    .slider-dot:active {
        transform: scale(1.2);
    }
    
    /* Scroll buttons */
    .scroll-btn:active {
        transform: scale(0.9);
        background: #f1f5f9;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    position: relative;
    min-height: 60px;
}

.logo {
    flex: 0 0 auto;
}

.logo a {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.btn-login {
    background: var(--primary-color);
    color: #fff !important;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
}

/* Mobile Menu Toggle - Hidden by default */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.4rem;
}

.profile-dropdown {
    position: relative;
}

.profile-icon {
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.profile-icon:hover {
    color: var(--primary-color);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    min-width: 220px;
    margin-top: 10px;
    z-index: 1000;
    overflow: hidden;
}

.profile-dropdown:hover .dropdown-menu,
.profile-dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.2rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.dropdown-menu a .menu-icon,
.dropdown-menu a i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-style: normal;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:last-child .menu-icon,
.dropdown-menu a:last-child i {
    color: #dc2626;
}

.dropdown-menu a:hover {
    background: var(--light-color);
    padding-left: 1.5rem;
}

.dropdown-menu a:hover .menu-icon,
.dropdown-menu a:hover i {
    transform: scale(1.15);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #ffffff;
    border: 1px solid #1a1a1a;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-color);
    color: #fff;
}

.btn-danger {
    background: var(--danger-color);
    color: #fff;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Cards */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--light-color);
    font-weight: 600;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Footer */
.main-footer {
    background: var(--dark-color);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4b5563;
}

/* ===== MOBILE RESPONSIVE DESIGN ===== */

/* Additional mobile responsive styles */
@media (max-width: 768px) {
    /* Forms */
    .form-control {
        padding: 0.875rem;
        font-size: 1rem;
        min-height: 44px;
    }
    
    /* Buttons */
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Cards */
    .card {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 0.875rem;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    /* Tables */
    .table {
        font-size: 0.9rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Footer */
    .main-footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .navbar {
        padding: 0.5rem 1rem;
        height: 55px;
    }
    
    .logo {
        height: 55px;
    }
    
    .logo a {
        font-size: 1.2rem;
        height: 55px;
    }
    
    .mobile-menu-toggle {
        font-size: 1.3rem;
        height: 55px;
        width: 45px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .btn {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .form-control {
        padding: 1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
    }
}

/* Mobile Bottom Navigation (Flipkart Style) - Simple and Stable */
.mobile-bottom-nav {
    display: none;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999999 !important;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    width: 100% !important;
}

/* Force visibility on mobile */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure body has proper padding */
    body {
        padding-bottom: 70px !important;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 4px;
    transition: all 0.2s ease;
    position: relative;
    min-height: 44px;
    flex: 1;
}

.bottom-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}

.bottom-nav-item span {
    font-size: 0.7rem;
    line-height: 1;
}

.bottom-nav-item.active {
    color: #007bff;
}

.bottom-nav-item.active i {
    transform: scale(1.1);
}

.bottom-nav-item:hover {
    color: #007bff;
    text-decoration: none;
}

/* Cart Badge */
.bottom-nav-badge {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(50%);
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Add bottom padding to body to prevent content overlap */
    body {
        padding-bottom: 70px !important;
    }
    
    /* Ensure main content doesn't overlap with bottom nav */
    main {
        margin-bottom: 70px !important;
    }
    
    /* Add bottom padding to body to prevent content overlap */
    body {
        padding-bottom: 70px !important;
    }
    
    /* Adjust main footer margin */
    .main-footer {
        margin-bottom: 70px !important;
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0;
    }
    
    /* Show desktop dropdowns and hide mobile cards */
    .desktop-filter-dropdown {
        display: block !important;
    }
    
    .category-scroll-wrapper,
    .brand-scroll-wrapper {
        display: none !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .product-card:hover {
        transform: none;
    }
    
    .nav-menu a:hover {
        background: var(--light-color);
    }
    
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    /* Bottom nav touch optimization */
    .bottom-nav-item {
        min-height: 50px;
        padding: 8px 4px;
    }
}

/* Desktop Filter Dropdown Styles */
.desktop-filter-dropdown {
    margin-bottom: 20px;
}

.desktop-filter-dropdown .filter-dropdown {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 16px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.desktop-filter-dropdown .filter-dropdown:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.desktop-filter-dropdown .filter-dropdown:hover {
    border-color: #d1d5db;
}

/* Hide mobile elements on desktop */
@media (min-width: 769px) {
    .section-header {
        display: none;
    }
}
/* Ultra Compact Horizontal Scroll - Modern Edge-to-Edge Layout with Smooth Scrolling */
.category-scroll-container,
.brand-scroll-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 20px 8px 20px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    /* Modern edge-to-edge layout */
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    /* Enhanced smooth scrolling */
    overscroll-behavior-x: contain;
    -webkit-scroll-snap-type: x proximity;
    /* Better momentum and physics */
    scroll-padding-left: 20px;
    scroll-padding-right: 20px;
}

.category-scroll-container::-webkit-scrollbar,
.brand-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Last card should align with screen edge */
.category-card:last-child,
.brand-card:last-child {
    margin-right: 12px;
}

/* First card should align with screen edge */
.category-card:first-child,
.brand-card:first-child {
    margin-left: 0;
}

.category-scroll-container::-webkit-scrollbar,
.brand-scroll-container::-webkit-scrollbar {
    display: none;
}

.category-card,
.brand-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 80px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    /* Smooth scroll snap */
    scroll-snap-stop: normal;
}

.category-card::before,
.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.category-card:hover::before,
.brand-card:hover::before {
    opacity: 1;
}

.category-card:hover,
.brand-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
}

.category-card.active,
.brand-card.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.category-image,
.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: #64748b;
    font-size: 14px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.category-card.active .category-image,
.brand-card.active .brand-logo {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.category-card:hover .category-image,
.brand-card:hover .brand-logo {
    transform: scale(1.05);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.category-name,
.brand-name {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    line-height: 1.2;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.category-card.active .category-name,
.brand-card.active .brand-name {
    color: white;
}

.category-card:hover .category-name,
.brand-card:hover .brand-name {
    color: #667eea;
}

.brand-initial {
    font-size: 12px;
    font-weight: 700;
}

/* Scroll Wrapper - Modern Edge-to-Edge Container */
.category-scroll-wrapper,
.brand-scroll-wrapper {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow: hidden;
    /* Ensure full width usage */
    box-sizing: border-box;
}

/* Navigation Arrows - Positioned for Edge-to-Edge Layout */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 14px;
    opacity: 0.8;
}

.scroll-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-50%) scale(1.05);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.scroll-btn-left {
    left: 4px;
}

.scroll-btn-right {
    right: 4px;
}

/* Remove container padding/margins for edge-to-edge layout */
.category-scroll-container,
.brand-scroll-container {
    /* No negative margins or extra padding */
    margin: 0;
}

/* Show scroll buttons on hover for desktop */
@media (min-width: 769px) {
    .scroll-btn {
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .category-scroll-wrapper:hover .scroll-btn,
    .brand-scroll-wrapper:hover .scroll-btn {
        opacity: 0.8;
        visibility: visible;
    }
    
    .scroll-btn:hover {
        opacity: 1 !important;
    }
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
    .scroll-btn {
        display: none !important;
    }
    
    .category-scroll-container,
    .brand-scroll-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Section Container - Edge-to-Edge Layout */
.category-section,
.brand-section {
    background: transparent;
    padding: 8px 0;
    margin-bottom: 4px;
    /* Full width container */
    width: 100%;
    box-sizing: border-box;
}

/* Section Headers - Minimal */
.section-header {
    margin-bottom: 8px;
    text-align: center;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
    letter-spacing: -0.025em;
}

.section-subtitle {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* Mobile - Perfect Edge-to-Edge Layout for Both Categories and Brands */
@media (max-width: 768px) {
    .section-header {
        display: none;
    }
    
    /* Both category and brand sections - full width edge-to-edge */
    .category-section,
    .brand-section {
        padding: 4px 0;
        margin-bottom: 2px;
        position: relative;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        overflow: visible;
    }
    
    /* Both scroll wrappers - full width */
    .category-scroll-wrapper,
    .brand-scroll-wrapper {
        position: relative;
        width: 100%;
        overflow: hidden;
        margin: 0;
        padding: 0;
    }
    
    /* Both scroll containers - edge-to-edge with smooth scrolling */
    .category-scroll-container,
    .brand-scroll-container {
        gap: 6px;
        padding: 6px 20px;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 0;
        box-sizing: border-box;
        display: flex;
        /* Enhanced smooth scrolling */
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        /* Better momentum scrolling on iOS */
        -webkit-scroll-snap-type: x proximity;
        /* Smooth scroll physics */
        overscroll-behavior-x: contain;
    }
    
    .category-scroll-container::-webkit-scrollbar,
    .brand-scroll-container::-webkit-scrollbar {
        display: none;
    }
    
    /* Perfect edge alignment - last cards reach edge for both sections */
    .category-card:last-child,
    .brand-card:last-child {
        margin-right: 20px;
    }
    
    /* Consistent card styling for both categories and brands */
    .category-card,
    .brand-card {
        width: 70px;
        padding: 10px 6px;
        gap: 4px;
        flex-shrink: 0;
        /* Smooth scroll snap points */
        scroll-snap-align: start;
        scroll-snap-stop: normal;
    }
    
    /* Consistent image/logo styling */
    .category-image,
    .brand-logo {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    /* Consistent text styling */
    .category-name,
    .brand-name {
        font-size: 10px;
        max-width: 60px;
    }
    
    /* Hide scroll buttons on mobile for both sections */
    .scroll-btn {
        display: none !important;
    }
}

/* Touch Interaction Enhancements */
@media (hover: none) and (pointer: coarse) {
    .category-card:active,
    .brand-card:active {
        transform: scale(0.98);
    }
    
    .category-card,
    .brand-card {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Desktop Scroll Button Positioning (when scroll sections are visible) */
@media (min-width: 769px) {
    .category-scroll-wrapper:not([style*="display: none"]),
    .brand-scroll-wrapper:not([style*="display: none"]) {
        position: relative;
        overflow: visible;
    }
    
    .category-scroll-wrapper:not([style*="display: none"]) .scroll-btn,
    .brand-scroll-wrapper:not([style*="display: none"]) .scroll-btn {
        display: flex;
        position: absolute;
        z-index: 15;
    }
    
    .category-scroll-wrapper:not([style*="display: none"]) .scroll-btn-left,
    .brand-scroll-wrapper:not([style*="display: none"]) .scroll-btn-left {
        left: 4px;
    }
    
    .category-scroll-wrapper:not([style*="display: none"]) .scroll-btn-right,
    .brand-scroll-wrapper:not([style*="display: none"]) .scroll-btn-right {
        right: 4px;
    }
    
    .category-scroll-wrapper:not([style*="display: none"]) .category-scroll-container,
    .brand-scroll-wrapper:not([style*="display: none"]) .brand-scroll-container {
        padding-left: 20px;
        padding-right: 20px;
        margin: 0;
    }
}

/* Smooth Scroll Animation */
.category-scroll-container,
.brand-scroll-container {
    scroll-padding-left: 8px;
}

/* Premium Focus States for Accessibility */
.category-card:focus,
.brand-card:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.scroll-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}
/* Professional Filter Container - Compact Spacing */
.category-section,
.brand-section {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid #f1f5f9;
}

/* Hide section headers on mobile for cleaner look */
@media (max-width: 768px) {
    .section-header {
        display: none;
    }
    
    .category-section,
    .brand-section {
        background: transparent;
        border: none;
        padding: 4px 0;
        margin-bottom: 4px;
    }
}

/* Professional active filters */
.active-filters-display {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
}

.active-filter-tag {
    background: #1e293b;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.clear-all-filters {
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    margin-left: auto;
}

.clear-all-filters:hover {
    background: #dc2626;
    text-decoration: none;
    color: white;
}
/* Force top navbar to stay visible - strongest override */
.main-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: white !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Ensure navbar is always visible on all pages */
body .main-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: white !important;
    display: block !important;
    visibility: visible !important;
}

/* Override any potential hiding styles */
.main-header.hidden,
.main-header.hide,
.main-header.d-none {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
/* STRONGEST OVERRIDE FOR MOBILE BOTTOM NAVIGATION - CONSISTENT HEIGHT */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: white !important;
        border-top: 1px solid #e5e7eb !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
        z-index: 999999 !important;
        padding: 8px 0 max(8px, env(safe-area-inset-bottom)) !important;
        min-height: 60px !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* Override any hiding classes */
    .mobile-bottom-nav.hidden,
    .mobile-bottom-nav.hide,
    .mobile-bottom-nav.d-none {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure body has proper spacing */
    body {
        padding-bottom: 70px !important;
    }
    
    /* Ensure main content has proper spacing */
    .main-content {
        margin-bottom: 70px !important;
        padding-bottom: 20px !important;
    }
    
    /* Ensure footer doesn't overlap */
    .main-footer {
        margin-bottom: 70px !important;
    }
}

/* Force bottom nav items to be properly styled and consistent */
.bottom-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #6b7280 !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    padding: 6px 4px !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    min-height: 50px !important;
    flex: 1 !important;
}

.bottom-nav-item.active {
    color: #007bff !important;
}

.bottom-nav-item i {
    font-size: 1.2rem !important;
    margin-bottom: 2px !important;
}

.bottom-nav-item span {
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* Badge styling */
.bottom-nav-badge {
    position: absolute !important;
    top: 2px !important;
    right: 50% !important;
    transform: translateX(50%) !important;
    background: #ef4444 !important;
    color: white !important;
    border-radius: 50% !important;
    width: 18px !important;
    height: 18px !important;
    font-size: 0.6rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
}
/* Category and Brand Images - Mobile Only */
.category-img,
.brand-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Hide images on desktop - only show in mobile cards */
@media (min-width: 769px) {
    .category-img,
    .brand-img {
        display: none !important;
    }
    
    /* Ensure icons are visible on desktop */
    .category-icon,
    .brand-initial {
        display: flex !important;
    }
}

/* Show images only on mobile */
@media (max-width: 768px) {
    .category-img,
    .brand-img {
        display: block !important;
    }
    
    /* Hide icons when image is present on mobile */
    .category-image:has(.category-img) .category-icon,
    .brand-logo:has(.brand-img) .brand-initial {
        display: none !important;
    }
}

/* Fallback for browsers that don't support :has() */
.category-image.has-image .category-icon,
.brand-logo.has-image .brand-initial {
    display: none !important;
}
/* Fix Mobile Horizontal Overflow - Prevent Extra Space on Swipe */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative !important;
}

/* Prevent horizontal scrolling on mobile */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    /* Ensure all containers stay within viewport */
    .container,
    .main-content,
    .hero-section,
    .products-section,
    .category-section {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Fix any elements that might cause overflow */
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Prevent carousel from causing overflow */
    .products-carousel-container,
    .products-carousel {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* Prevent category/brand sections from causing overflow */
    .category-scroll-wrapper,
    .brand-scroll-wrapper {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* Fix hero section if it's causing issues */
    .hero-section .slider-image {
        max-width: 100vw !important;
        width: 100% !important;
    }
    
    /* Prevent any images from causing overflow */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Fix viewport meta issues */
    .main-header,
    .navbar {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
}

/* Disable horizontal bounce/rubber band effect on iOS */
body {
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: none !important;
}

/* Prevent touch actions that cause horizontal movement */
@media (max-width: 768px) {
    body {
        touch-action: pan-y pinch-zoom !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-x: none !important;
    }
    
    /* Disable horizontal pan on specific elements */
    .hero-section,
    .main-content,
    .container {
        touch-action: pan-y pinch-zoom !important;
        overscroll-behavior-x: none !important;
    }
}
/* Product Card Equal Height Layout */
.product-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.product-info {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.product-content {
    flex-grow: 1;
}

.product-actions {
    margin-top: auto !important;
}

/* Ensure consistent card heights in grid */
.products-grid {
    align-items: stretch !important;
}

.products-grid .product-card {
    height: auto !important;
    min-height: 100% !important;
}

/* Mobile specific equal height adjustments */
@media (max-width: 768px) {
    .product-card {
        min-height: 320px !important;
    }
    
    .product-info {
        min-height: 140px !important;
    }
}

@media (max-width: 480px) {
    .product-card {
        min-height: 300px !important;
    }
    
    .product-info {
        min-height: 120px !important;
    }
}