/**
 * Стили для компонентов (header, footer)
 */

/* ========== Header ========== */
.header {
    position: relative;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.header__inner {
    width: 100%;
}

.header__body {
    padding: 16px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}

.logoAll {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    max-width: 88%;
    position: relative;
}

.logoAll img {
    position: relative;
    width: auto;
    height: 26px;
    padding: 4px;
    border-radius: 4px;
    border: 1px solid var(--primary-red);
}

.logoSite {
    position: relative;
    display: contents;
    margin: 0;
    padding: 0;
    width: auto;
    height: auto;
}

.newMenuButton {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.newMenuButton svg {
    width: 24px;
    height: 24px;
}

.headerSearth {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.header__search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.header__search-bar-form {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
}

.header__search-bar-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.header__search-bar-form button {
    padding: 10px 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.header__search-bar-form button:hover {
    background: var(--primary-red);
}

.nav-utilities {
    display: flex;
    align-items: center;
}

.nav-utilities ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
    align-items: center;
}

.nav-utilities li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-cart {
    position: relative;
    display: inline-block;
    line-height: 0;
    font-size: 24px;
}

.link-cart .count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.link-cart .count.hidden {
    display: none;
}

/* ========== Промокод баннер ========== */
.hdr-top-banner-promocode {
    background: #282828;
    padding: 6px;
}

.hdr-top-banner-promo-code {
    display: flex;
    flex-wrap: nowrap;
    text-transform: uppercase;
    font-size: 11px;
    flex-direction: row;
    line-height: normal;
    font-weight: normal;
    justify-content: center;
    padding: 6px;
    color: #FFFFFF;
    align-items: center;
}

.button_small5 {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
    border-radius: 6px;
    padding: 4px 12px;
    margin-left: 12px;
    margin-right: 12px;
    line-height: normal;
    display: flex;
    align-items: center;
    letter-spacing: 0.8px;
    justify-content: space-between;
    border: 1px solid #666;
    cursor: pointer;
}

#popup {
    display: none;
    position: fixed;
    top: 5%;
    left: auto;
    right: 2%;
    padding: 16px;
    background-color: #000;
    border-color: #000;
    color: #fff;
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

/* ========== Footer ========== */
#footer {
    color: #000;
    background: #fafafa;
    border-top: 1px solid #fafafa;
    margin-top: 60px;
}

.main-footer {
    padding: 40px 0;
}

.footer-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-column {
    margin-bottom: 30px;
}

.footer-logo {
    max-width: 100%;
    height: 20px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 20px;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.textwidget {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    margin-bottom: 10px;
}

.menu-item a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.menu-item a:hover {
    color: var(--primary-red);
}

.copyright-area {
    background: #f0f0f0;
    padding: 15px 0;
}

.copyright-area p {
    margin: 0;
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* ========== Адаптивность ========== */
@media (max-width: 767px) {
    .header__body {
        padding: 12px;
    }
    
    .logoAll {
        max-width: 84%;
    }
    
    .headerSearth {
        max-width: 200px;
        margin: 0 10px;
    }
    
    .nav-utilities ul {
        gap: 10px;
    }
    
    .footer-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .logoAll {
        max-width: 80%;
    }
    
    .headerSearth {
        display: none;
    }
}

