/* ========================================
   ШАПКА САЙТА (.site-header)
   ======================================== */

.site-header {
    background: white;
    border-bottom: 1px solid var(--border-gray);
    padding: 10px 0 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.header-top-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-links {
    display: flex;
    gap: 20px;
    font-size: 11px;
    flex-wrap: wrap;
}

.top-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.top-links a:hover {
    color: var(--primary-yellow);
}

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

/* ----- Логотип ----- */
.logo {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--primary-yellow);
}

/* the_custom_logo() выводит свою обёртку .custom-logo-link — на случай
   если в Customizer загрузят картинку вместо текстового логотипа */
.logo .custom-logo-link {
    display: flex;
    align-items: center;
}

/* ----- Меню (.main-nav) ----- */
.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: 20px;
}

.main-nav .menu {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-yellow);
}

/* ----- Корзина ----- */
.cart-icon {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.cart-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--dark-gray);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-yellow);
    color: white;
    border-radius: 20px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    padding: 0 6px;
    transition: all 0.3s ease;
    animation: breathe 2s ease-in-out infinite;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart-badge.has-items {
    border-radius: 50%;
    width: 20px;
    padding: 0;
}

@keyframes breathe {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.9;
        background: #FFD54F;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cart-badge:hover {
    animation: none;
    transform: scale(1.1) !important;
}

/* ----- Кнопка мобильного меню (появится в mobile.css для брейкпоинтов) ----- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark-gray);
}
