/* ============================================
   Modern IzzieShop Design - 2025
   Clean, Professional E-commerce UI
   ============================================ */

/* ============================================
   1. MODERN NAVIGATION
   ============================================ */

.modern-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: #f8f9fa;
    padding: 4px 0;
    font-size: 11px;
    border-bottom: 1px solid #e9ecef;
}

.top-bar .text-end {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
}

.top-bar a {
    color: #666;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
    font-size: 11px;
    display: inline-block;
    white-space: nowrap;
}

.top-bar a:hover {
    color: #28a745;
}

.top-bar small {
    font-size: 11px;
    line-height: 1.3;
}

.main-nav {
    padding: 8px 0;
}

.main-nav .row {
    margin: 0;
}

.main-nav .row > * {
    padding-left: 8px;
    padding-right: 8px;
}

.logo-modern {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #192f59 0%, #28a745 50%, #af8b28 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: inline-block;
    line-height: 1;
}

.search-bar-modern {
    max-width: 600px;
    margin: 0 auto;
}

.search-bar-modern .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.search-bar-modern input {
    border: none;
    padding: 10px 15px;
    font-size: 13px;
}

.search-bar-modern input:focus {
    box-shadow: none;
    border-color: transparent;
}

.search-bar-modern button {
    background: #28a745;
    border: none;
    padding: 10px 20px;
    color: white;
    font-weight: 500;
    white-space: nowrap;
    font-size: 13px;
}

.search-bar-modern button:hover {
    background: #218838;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.nav-icon-btn {
    position: relative;
    background: none;
    border: none;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 8px;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-btn:hover {
    color: #28a745;
}

.nav-icon-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: none;
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.user-profile-btn:hover {
    background: #e9ecef;
}

.user-profile-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Category Navigation */
.category-nav {
    background: #fff;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.category-nav::-webkit-scrollbar {
    height: 4px;
}

.category-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.category-nav::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 4px;
}

.category-nav .nav {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 5px;
    min-width: max-content;
}

.category-nav .nav-link {
    color: #333;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
}

.category-nav .nav-link:hover {
    color: #28a745;
    background: #f8f9fa;
}

.category-nav .nav-link.active {
    color: #28a745;
}

.category-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #28a745;
}

/* Category Dropdown Styles */
.category-nav .nav {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 5px;
    min-width: max-content;
    align-items: center;
}

.category-nav .nav-item {
    position: relative;
}

.category-nav .nav-item.dropdown {
    position: relative;
    display: inline-block;
}

.category-nav .dropdown-toggle {
    color: #333;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    background: none;
    border: none;
    cursor: pointer;
}

.category-nav .dropdown-toggle:hover {
    color: #28a745;
    background: #f8f9fa;
}

.category-nav .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
    display: inline-block;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.category-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 280px;
    padding: 8px 0;
    margin: 0;
    font-size: 14px;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Show dropdown on hover - CSS only */
.category-nav .nav-item.dropdown:hover .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Show dropdown when has .show class - JS controlled */
.category-nav .dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.category-dropdown {
    min-width: 280px;
    max-height: 400px;
    overflow-y: auto;
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 0;
}

.category-dropdown .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    text-decoration: none;
    clear: both;
    font-weight: 400;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    width: 100%;
}

.category-dropdown .dropdown-item:hover,
.category-dropdown .dropdown-item:focus {
    background: #f8f9fa;
    color: #28a745;
    padding-left: 25px;
}

.category-dropdown .dropdown-item img {
    object-fit: contain;
}

.category-dropdown .badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
}

.category-dropdown::-webkit-scrollbar {
    width: 6px;
}

.category-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.category-dropdown::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 3px;
}

.category-dropdown::-webkit-scrollbar-thumb:hover {
    background: #218838;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle:hover {
    color: #28a745;
}

/* ============================================
   2. MODERN PRODUCT CARDS
   ============================================ */

.product-card-modern {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-modern:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.product-image-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

/* Product Card Image Carousel */
.product-image-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.product-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-carousel-img.active {
    opacity: 1;
}

.product-image-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.product-image-indicators .indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-image-indicators .indicator.active {
    background: #fff;
    width: 20px;
    border-radius: 3px;
}

.product-image-carousel:hover .product-image-indicators .indicator {
    background: rgba(255, 255, 255, 0.8);
}

.product-card-modern:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.product-badge.new {
    background: #28a745;
}

.product-badge.hot {
    background: #ff6b6b;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card-modern:hover .product-actions {
    opacity: 1;
}

.product-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.product-action-btn:hover {
    background: #28a745;
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.stars {
    color: #ffc107;
    font-size: 14px;
}

.rating-count {
    font-size: 12px;
    color: #999;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
}

.product-price-old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.product-discount {
    background: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* ============================================
   3. MODERN SECTIONS
   ============================================ */

.section-modern {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #af8b28);
    margin: 20px auto;
    border-radius: 2px;
}

/* ============================================
   4. MODERN BANNER/HERO
   ============================================ */

.hero-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    margin-bottom: 40px;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #192f59;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.hero-cta:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
    color: white;
}

/* ============================================
   5. MODERN FILTERS & SIDEBAR
   ============================================ */

.filter-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.3s;
}

.filter-option:hover {
    color: #28a745;
}

.filter-option input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

/* ============================================
   6. MODERN FOOTER
   ============================================ */

.footer-modern {
    background: #192f59;
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #af8b28;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #28a745;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* Admin Access Buttons in Footer */
.admin-access-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.admin-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

.admin-btn i {
    font-size: 14px;
}

/* ============================================
   7. RESPONSIVE DESIGN
   ============================================ */

/* Mobile First Approach */
@media (max-width: 991px) {
    /* Top bar - simplify on tablets */
    .top-bar {
        padding: 3px 0;
    }
    
    .top-bar a {
        margin: 0 8px;
        font-size: 10px;
    }
    
    .top-bar small {
        font-size: 10px;
    }
    
    /* Navigation adjustments */
    .main-nav {
        padding: 6px 0;
    }
    
    .logo-modern {
        font-size: 20px;
    }
    
    .search-bar-modern {
        margin: 8px 0;
        max-width: 100%;
    }
    
    .search-bar-modern input {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .search-bar-modern button {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .nav-icons {
        gap: 6px;
        justify-content: flex-end;
    }
    
    .nav-icon-btn {
        font-size: 18px;
        min-width: 36px;
        min-height: 36px;
        padding: 6px;
    }
}

@media (max-width: 768px) {
    /* Top bar - stack on mobile */
    .top-bar {
        padding: 2px 0;
    }
    
    .top-bar .row {
        text-align: center;
    }
    
    .top-bar .col-md-6 {
        width: 100%;
        margin-bottom: 0;
    }
    
    .top-bar .text-end {
        text-align: center !important;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        margin-top: 2px;
    }
    
    .top-bar a {
        margin: 0 4px;
        font-size: 9px;
        display: inline-block;
    }
    
    .top-bar small {
        font-size: 8px;
        line-height: 1.1;
        display: block;
    }
    
    .top-bar .bi {
        font-size: 8px;
    }
    
    .top-bar .ms-2 {
        margin-left: 0.2rem !important;
    }
    
    /* Main navigation - mobile layout */
    .main-nav {
        padding: 6px 0;
    }
    
    .main-nav .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .main-nav .row > * {
        padding-left: 4px;
        padding-right: 4px;
    }
    
    .logo-modern {
        font-size: 18px;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
        font-size: 22px;
        padding: 6px;
        min-width: 40px;
        min-height: 40px;
    }
    
    /* Search bar full width */
    .search-bar-modern {
        margin: 6px 0;
    }
    
    .search-bar-modern .input-group {
        border-radius: 25px;
    }
    
    .search-bar-modern input {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .search-bar-modern button {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .search-bar-modern button span {
        display: none;
    }
    
    .search-bar-modern button i {
        margin: 0;
    }
    
    /* Nav icons - compact */
    .nav-icons {
        gap: 6px;
        flex-wrap: nowrap;
    }
    
    .nav-icon-btn {
        font-size: 18px;
        min-width: 40px;
        min-height: 40px;
        padding: 6px;
    }
    
    .nav-icon-badge {
        font-size: 9px;
        padding: 1px 4px;
        top: -4px;
        right: -4px;
        min-width: 16px;
    }
    
    /* Hero section */
    .hero-modern {
        padding: 30px 0;
        margin-bottom: 20px;
    }
    
    .hero-title {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .hero-cta {
        padding: 10px 25px;
        font-size: 13px;
    }
    
    /* Section spacing */
    .section-modern {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .section-subtitle {
        font-size: 13px;
    }
    
    .section-header {
        margin-bottom: 25px;
    }
}

@media (max-width: 576px) {
    /* Extra small devices */
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    /* Search bar full width */
    .search-bar-modern .input-group {
        border-radius: 25px;
    }
    
    .search-bar-modern input {
        font-size: 13px;
        padding: 10px 15px;
    }
    
    .search-bar-modern button {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* Nav icons smaller */
    .nav-icon-btn {
        font-size: 20px;
    }
    
    .nav-icon-badge {
        font-size: 10px;
        padding: 1px 5px;
    }
    
    /* Product cards adjustments - Better mobile display */
    .product-card-modern {
        border-radius: 10px;
    }
    
    .product-image-wrapper {
        padding-top: 100%;
    }
    
    .product-badge {
        font-size: 9px;
        padding: 3px 6px;
        top: 6px;
        left: 6px;
    }
    
    .product-actions {
        opacity: 1; /* Always visible on mobile */
        top: 6px;
        right: 6px;
        gap: 6px;
    }
    
    .product-action-btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-category {
        font-size: 10px;
        margin-bottom: 4px;
    }
    
    .product-title {
        font-size: 13px;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .product-rating {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .stars {
        font-size: 12px;
    }
    
    .rating-count {
        font-size: 10px;
    }
    
    .product-price-section {
        gap: 6px;
        margin-bottom: 10px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .product-price-old {
        font-size: 12px;
    }
    
    .product-discount {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .product-action-buttons {
        gap: 6px;
        margin-top: 10px;
    }
    
    .add-to-cart-btn {
        padding: 8px;
        font-size: 12px;
        border-radius: 6px;
    }
    
    .add-to-cart-btn i {
        font-size: 14px;
    }
    
    .whatsapp-order-btn {
        padding: 8px 12px;
        border-radius: 6px;
    }
    
    .whatsapp-order-btn i {
        font-size: 14px;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    /* Category cards */
    .col-6 .card {
        padding: 15px !important;
    }
    
    .col-6 .card h5 {
        font-size: 13px;
    }
    
    .col-6 .card img {
        width: 40px !important;
        height: 40px !important;
    }
    
    /* Product grid spacing */
    .row.g-4 {
        gap: 12px !important;
    }
    
    .col-6.mb-4 {
        margin-bottom: 12px !important;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-modern {
        padding: 30px 0;
    }
    
    .section-modern {
        padding: 30px 0;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Make buttons easier to tap */
    .nav-icon-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .product-action-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .add-to-cart-btn {
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .product-card-modern:hover {
        transform: none;
    }
    
    .product-card-modern:hover .product-image-wrapper img {
        transform: none;
    }
}

/* ============================================
   8. MOBILE MENU ENHANCEMENTS
   ============================================ */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
}

.mobile-menu-toggle:hover {
    color: #28a745;
}

/* Mobile Sidebar Menu */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-header {
    background: linear-gradient(135deg, #192f59 0%, #28a745 100%);
    padding: 20px;
    color: white;
}

.mobile-sidebar-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.mobile-sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-sidebar-menu li {
    border-bottom: 1px solid #e9ecef;
}

.mobile-sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
}

.mobile-sidebar-menu a:hover,
.mobile-sidebar-menu a.active {
    background: #f8f9fa;
    color: #28a745;
    padding-left: 25px;
}

.mobile-sidebar-menu a i {
    margin-right: 12px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.mobile-sidebar-user {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.mobile-sidebar-user img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.mobile-sidebar-user h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.mobile-sidebar-user p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hide category nav on mobile - will be in sidebar */
    .category-nav {
        display: none;
    }
}

/* Mobile search overlay */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.mobile-search-overlay.active {
    display: block;
}

.mobile-search-content {
    background: white;
    padding: 20px;
    margin: 20px;
    border-radius: 12px;
}

/* ============================================
   9. PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Reduce animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Lazy loading placeholder */
img[loading="lazy"] {
    background: #f8f9fa;
}

/* ============================================
   10. UTILITY CLASSES
   ============================================ */

.text-primary-custom {
    color: #28a745 !important;
}

.bg-primary-custom {
    background: #28a745 !important;
}

.text-secondary-custom {
    color: #af8b28 !important;
}

.bg-secondary-custom {
    background: #af8b28 !important;
}

.text-dark-custom {
    color: #192f59 !important;
}

.bg-dark-custom {
    background: #192f59 !important;
}


/* ============================================
   11. CATEGORY CAROUSEL
   ============================================ */

.category-card {
    background: white;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card-link {
    display: block;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-color: #28a745;
}

.category-icon {
    margin-bottom: 15px;
}

.category-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.category-card h5 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 12px;
    color: #666;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: #28a745;
}

.carousel-control-icon {
    font-size: 24px;
    color: #333;
}

.carousel-control-prev:hover .carousel-control-icon,
.carousel-control-next:hover .carousel-control-icon {
    color: white;
}

.carousel-indicators {
    bottom: -40px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background-color: #28a745;
}

/* Mobile adjustments for carousel */
@media (max-width: 768px) {
    .category-card {
        padding: 15px 10px;
    }
    
    .category-icon img {
        width: 45px;
        height: 45px;
    }
    
    .category-card h5 {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .category-card p {
        font-size: 10px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    .carousel-control-prev {
        left: -5px;
    }
    
    .carousel-control-next {
        right: -5px;
    }
    
    .carousel-control-icon i {
        font-size: 18px;
    }
    
    /* Category carousel - 2 per row on mobile */
    #categoryCarousel .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .carousel-control-icon {
        font-size: 20px;
    }
}
