/* New Header Styles */

/* Header styling */
.logo-bar-area {
    border-bottom: 1px solid #f0f0f0;
}

/* Enhanced Right Side Elements */
.header-right-actions {
    gap: 16px;
    align-items: center;
    display: flex;
}

/* Modern Search Bar Styling */
.search-container {
    margin-right: 8px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 280px;
    height: 42px;
    border: 2px solid #f0f2f5;
    background: #f8f9fa;
    border-radius: 21px;
    padding: 0 45px 0 20px;
    font-size: 14px;
    color: #495057;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.search-input::placeholder {
    color: #8e9297;
    font-weight: 400;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: color 0.2s ease;
}

/* .search-btn:hover {
    color: #007bff;
    background: transparent;
    transform: translateY(-50%);
} */

/* .search-btn:focus {
    outline: none;
    color: #007bff;
} */

.search-btn i {
    font-size: 16px;
}

/* Header Action Buttons */
.header-action-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #f0f2f5;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    padding: 0;
}

.header-action-btn {
    background: #f8f9fa;
   
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

/* .header-action-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.header-action-btn i {
    font-size: 20px;
    color: #495057;
    transition: color 0.3s ease;
}

.header-action-btn:hover i {
    color: #007bff;
} */

/* Profile Button Specific */
.profile-btn {
    width: 44px;
    height: 44px;
    border: 3px solid #f0f2f5;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.profile-btn:hover {
   
    transform: translateY(-2px);
    /* box-shadow: 0 6px 20px rgba(0, 123, 255, 0.2); */
}

.profile-btn::after {
    display: none;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-btn:hover .profile-avatar {
    transform: scale(1.05);
}

/* .profile-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #28a745;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
} */

/* Cart Container */
.cart-container {
    order: 3;
}

.profile-container {
    order: 2;
}

.search-container {
    order: 1;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    background: #dc3545;
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border: 2px solid #fff;
  
}
/* 
@keyframes cartBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    60% { transform: translateY(-2px); }
} */

/* Enhanced Dropdowns */
.profile-dropdown, .cart-dropdown {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    margin-top: 8px;
    min-width: 240px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.cart-dropdown {
    min-width: 320px;
    max-width: 400px;
}

.profile-dropdown .dropdown-item {
    padding: 12px 20px;
    font-size: 14px;
    color: #495057;
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.2s ease;
}

.profile-dropdown .dropdown-item:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    transform: translateX(2px);
}

.profile-dropdown .dropdown-item i {
    width: 18px;
    margin-right: 10px;
    text-align: center;
}

.profile-dropdown .dropdown-divider {
    margin: 8px 16px;
    border-color: #e9ecef;
}

/* Mobile search overlay */
.mobile-search-overlay {
    z-index: 9999;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.5);
}

.mobile-search-overlay .container {
    max-width: 100%;
    padding: 0 20px;
}

.mobile-search-overlay .bg-white {
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* Search results positioning */
.typed-search-box {
    z-index: 9999 !important;
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    margin-top: 8px;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-input {
        width: 240px;
    }
    
    .header-action-btn {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .profile-btn {
        width: 40px;
        height: 40px;
    }
    
    .header-right-actions {
        gap: 10px;
    }
    
    /* Hide profile on mobile */
    .profile-container {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .header-action-btn {
        width: 36px;
        height: 36px;
    }
    
    .profile-btn {
        width: 36px;
        height: 36px;
    }
    
    .header-action-btn i {
        font-size: 18px;
    }
    
    .header-right-actions {
        gap: 8px;
    }
}
    top: -5px;
    right: -5px;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0;
}

/* Mobile sidebar improvements */
.aiz-top-menu-sidebar .collapse-sidebar {
    width: 300px;
}

/* Button styling consistency */
.btn[style*="width: 40px"] {
    transition: all 0.2s ease;
    background-color: #fff;
}

.btn[style*="width: 40px"]:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
}

/* Mobile cart/wishlist/compare grid */
.nav-user-info .row .col-4 a {
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-user-info .row .col-4 a:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
}

/* Search results positioning */
.typed-search-box {
    z-index: 9999 !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .logo-bar-area .row .col {
        flex: 1;
    }

    .logo-bar-area .row .col-auto {
        flex: 0 0 auto;
    }

    .mobile-search-overlay .input-group {
        margin-bottom: 15px;
    }
}

/* Ensure proper spacing */
.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Logo centering */
.col.text-center a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.col.text-center a:hover {
    transform: scale(1.02);
}

/* Mobile sidebar improvements */
.aiz-top-menu-sidebar .collapse-sidebar {
    width: 320px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
}

/* Mobile cart/wishlist/compare grid enhancements */
.nav-user-info .row .col-4 a {
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    padding: 12px 8px;
}

.nav-user-info .row .col-4 a:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Button focus states */
.header-action-btn:focus,
.profile-btn:focus,
.search-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Improved accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .header-action-btn {
        border-width: 3px;
    }
    
    .search-input {
        border-width: 3px;
    }
}
