/* Header Custom Styles */

/* Top Bar Styles */
.header-top {
    font-size: 14px;
}

.location-selector select {
    font-size: 14px;
    color: #666;
}

.location-selector select:focus {
    box-shadow: none;
    border-color: #007bff;
}

/* Main Header Styles */
.header-middle {
    background-color: #fff;
    border-bottom: 2px solid #e9ecef;
}

.logo img {
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Search Form Styles */
.search-form .input-group {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease;
    min-height: 50px;
}

.search-form .input-group:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.search-form .form-control {
    border: none;
    font-size: 16px;
    padding: 15px 18px;
    height: auto;
}

.search-form .form-control:focus {
    box-shadow: none;
}

.search-form .input-group-text {
    border: none;
    padding: 15px 18px;
    display: flex;
    align-items: center;
}

.search-form .btn {
    border: none;
    padding: 15px 24px;
    font-weight: 600;
    font-size: 16px;
    height: auto;
}

/* Location Selector Standalone */
.location-section {
    padding: 0 10px;
    height: 50px;
    display: flex;
    align-items: center;
}

.location-selector {
    max-width: 220px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.location-selector select {
    font-size: 14px;
    color: #666;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background-color: white;
    transition: border-color 0.3s ease;
    height: auto;
    width: 100%;
}

.location-selector select:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    border-color: #007bff;
    outline: none;
}

.location-selector select option {
    font-size: 14px;
    padding: 8px 12px;
}



/* Header Actions Styles */
.header-action-item {
    position: relative;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
}

.header-action-item:hover {
    background-color: #f8f9fa;
}

.header-action-item i {
    font-size: 20px;
    transition: color 0.3s ease;
    color: #333 !important;
}

.header-action-item:hover i {
    color: #000 !important;
}

.header-action-item a {
    height: 100%;
    display: flex;
    align-items: center;
}

.header-actions {
    height: 50px;
}

.header-action-item .badge {
    font-size: 10px;
    padding: 2px 6px;
}

/* Cart Dropdown Styles */
.cart-dropdown-wrap {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 350px;
}

.header-action-item:hover .cart-dropdown-wrap {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    border-color: #007bff;
}

/* Navigation Menu Styles */
.header-bottom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.main-nav .nav-link {
    color: white;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    background-color: rgba(255,255,255,0.2);
    color: white;
    transform: translateY(-2px);
}

.main-nav .nav-link i {
    font-size: 16px;
}

/* Search Suggestions Styles */
.search-suggestions {
    border: 2px solid #e9ecef;
    max-height: 500px;
    overflow-y: auto;
}

.search-suggestions:focus-within {
    border-color: #007bff;
}

.popular-search-tag,
.recent-search-tag {
    transition: all 0.3s ease;
}

.popular-search-tag:hover {
    background-color: #007bff !important;
    color: white !important;
    transform: translateY(-1px);
}

.recent-search-tag:hover {
    background-color: #6c757d !important;
    transform: translateY(-1px);
}

.hover-shadow {
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
    .header-top {
        display: none !important;
    }
    
    .header-bottom {
        display: none !important;
    }
    
    .search-form .btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .header-action-item {
        padding: 4px;
    }
    
    .header-action-item i {
        font-size: 20px;
    }
}

@media (max-width: 767.98px) {
    .search-form .input-group {
        border-radius: 6px;
    }
    
    .search-form .form-control {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .search-form .btn {
        padding: 10px 15px;
    }
    
    .header-actions {
        justify-content: center !important;
        margin-top: 15px;
    }
    
    .cart-dropdown-wrap {
        min-width: 300px;
        right: -50px;
    }
}

/* Animation for icons */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.header-action-item:hover i {
    animation: pulse 0.5s ease-in-out;
}

/* Social Links Styles */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #007bff;
    color: white !important;
    transform: translateY(-2px);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 8px 0;
}

.dropdown-item {
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
    transform: translateX(5px);
}

/* Product Card Styles */
.product-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-card .card-img-top {
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .badge {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 123, 255, 0.9) !important;
}

.product-card .text-warning .fas {
    font-size: 14px;
}

.product-card .text-warning .far {
    font-size: 14px;
}

.product-card .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-card .btn:hover {
    transform: translateY(-2px);
}

.product-card .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.product-card .btn-outline-secondary {
    border-color: #e9ecef;
    color: #6c757d;
}

.product-card .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #6c757d;
    color: #495057;
}

/* Product Grid Responsive */
@media (max-width: 767.98px) {
    .product-card {
        margin-bottom: 20px;
    }
    
    .product-card .card-img-top {
        height: 200px !important;
    }
}

@media (max-width: 575.98px) {
    .product-card .card-img-top {
        height: 180px !important;
    }
    
    .product-card .badge {
        font-size: 11px;
        padding: 4px 8px;
    }
}