/* header.php — винесено з inline <style> 20260908_2104 */
/* ЗАГАЛЬНІ СТИЛІ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* TOP BAR СТИЛІ */
.top-bar {
    background: #000000;
    color: #ffffff;
    padding: 0.875rem 0;
    position: relative;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #4A90E2;
}

.phone-number {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-number:hover {
    color: #4A90E2;
}

.phone-icon {
    width: 16px;
    height: 16px;
}

.burger-menu {
    display: none;
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

/* HEADER СТИЛІ */
.header {
    background: #ffffff;
    padding: 1.125rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-container {
    display: flex;
    align-items: center;
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 25px;
    padding: 5px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    width: 300px;
}

.search-form:focus-within {
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 15px;
    font-size: 0.9rem;
    flex: 1;
    color: #333;
}

.search-input::placeholder {
    color: #666666;
}

.search-btn {
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-btn:hover {
    background: #e0e0e0;
}

.search-icon {
    width: 20px;
    height: 20px;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

.user-action:hover {
    background: #f5f5f5;
}

.user-action-icon {
    width: 24px;
    height: 24px;
}

/* Лічільник кошика */
.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #4A90E2;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
}

.cart-badge.show {
    display: flex;
}

/* Приховати мобільну кнопку пошуку на десктопі */
.mobile-search-btn {
    display: none;
}

/* МОБІЛЬНІ СТИЛІ */
@media (max-width: 1024px) {
    .burger-menu {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    /* Мобільне меню - активний стан */
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000000;
        padding: 1rem 2rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        z-index: 1000;
        gap: 1rem;
    }
    
    .nav-menu.active li {
        width: 100%;
    }
    
    .nav-menu.active a {
        display: block;
        padding: 0.5rem 0;
    }
    
    .burger-menu.active {
        color: #4A90E2;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        position: static;
        transform: none;
        margin-bottom: 1rem;
    }

    .logo img {
        height: 50px;
    }

    .search-container {
        width: 100%;
    }

    .search-form {
        width: 100%;
    }

    .user-actions {
        width: 100%;
        justify-content: center;
    }

    /* Показати мобільну кнопку пошуку на малих екранах */
    .mobile-search-btn {
        display: flex;
    }

    /* Приховати десктопний пошук на мобільних */
    .search-container {
        display: none;
    }
}
