/* Top Header */
.top-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.header-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    color: var(--primary-color);
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.phone-icon {
    font-size: 1.2rem;
}

.phone-number {
    font-weight: 600;
    color: var(--dark);
}

.header-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-form {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.search-form:focus-within {
    border-color: var(--primary-color);
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 0.95rem;
}

.search-btn {
    padding: 10px 20px;
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.2rem;
}

.search-btn:hover {
    background-color: #4a9429;
}

/* Search Results Dropdown */
.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 450px;
    overflow-y: auto;
    z-index: 9999;
}

.search-results.show {
    display: block;
    z-index: 9999;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--dark);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: linear-gradient(to right, rgba(255, 107, 107, 0.05), transparent);
    padding-left: 1.25rem;
}

.search-result-image {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    object-fit: cover;
    background-color: var(--light-gray);
    flex-shrink: 0;
}

.search-result-placeholder {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--light-gray), #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.search-result-name {
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-meta {
    font-size: 0.8125rem;
    color: var(--gray);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-result-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.search-result-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, var(--primary-color), #ff8a8a);
    color: var(--white);
    border-radius: 12px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.search-no-results,
.search-loading {
    padding: 2rem;
    text-align: center;
    color: var(--gray);
    font-size: 0.95rem;
}

.search-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.header-hours {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.hours-icon {
    font-size: 1.2rem;
}

.hours-text {
    color: var(--gray);
}

/* Header Auth */
.header-auth .btn-login {
    padding: 10px 24px;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.header-auth .btn-login:hover {
    background-color: #02302e;
    transform: translateY(-2px);
}

/* User Profile Link */
.header-auth .user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease;
}

.header-auth .user-profile:hover {
    background-color: rgba(91, 172, 50, 0.1);
    transform: translateY(-2px);
}

.header-auth .user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.header-auth .user-icon {
    font-size: 1.75rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
}

.header-auth .user-name {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Banner Section */
.home-banner {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 50%, #f0f8ff 100%);
    padding: 60px 20px;
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.banner-content {
    padding: 2rem 0;
}

.banner-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.banner-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Responsive Header */
@media (max-width: 992px) {
    .header-container {
        gap: 1rem;
    }
    
    .header-search {
        order: 5;
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .header-logo,
    .header-phone,
    .header-hours,
    .header-auth {
        justify-content: center;
    }
    
    .header-auth .user-name {
        display: none;
    }
    
    .banner-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-buttons {
        justify-content: center;
    }
}