/* ============================================================
   MAISON THEME — header.css
============================================================ */

.wishlist-count {
    position: absolute;
    top: -6px; right: -8px;
    background: var(--gold);
    color: white;
    font-size: 9px;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
}

/* Кнопка избранного в товаре */
.header-icon.in-wishlist svg {
    fill: var(--gold);
    color: var(--gold);
}
.wc-block-grid__products .wc-block-grid__product-image img{
    object-fit: cover !important;
}
.wishlist-btn {
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    position: absolute;
    background: #f9eaf3;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
    top: 10px;
    right: 10px;
    transition: all 0.3s;
}

.wishlist-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.wishlist-btn.in-wishlist {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.wishlist-btn svg {
    width: 16px;
    height: 16px;
}

.wishlist-btn.in-wishlist svg {
    fill: currentColor;
}

.announcement {
    background: var(--black);
    color: var(--gold-light);
    text-align: center;
    padding: 10px;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

#site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s;
}
#site-header.scrolled {
    box-shadow: 0 2px 30px rgba(0,0,0,0.07);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 60px;
    position: relative;
}
#site-header.scrolled .header-inner { height: 64px; }

/* NAV */
.header-nav .nav-list {
    display: flex;
    gap: 40px;
    list-style: none;
}
.header-nav .nav-list a {
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 3px;
}
.header-nav .nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.3s;
}
.header-nav .nav-list a:hover::after { width: 100%; }

/* LOGO */
.site-logo {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.site-logo img { height: 40px; width: auto; }

/* ICONS RIGHT */
.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}
.header-icon {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--black);
    position: relative;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}
.header-icon:hover { color: var(--gold); }

.cart-count {
    position: absolute;
    top: -6px; right: -8px;
    background: var(--gold);
    color: white;
    font-size: 9px;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
}

/* SEARCH BAR */
.header-search-bar {
    background: var(--white);
    border-top: 1px solid rgba(0,0,0,0.06);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.header-search-bar.open { max-height: 80px; }

.search-bar-inner {
    display: flex;
    align-items: center;
    padding: 0 60px;
    height: 70px;
    gap: 16px;
}
.search-field {
    flex: 1;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.15);
    background: transparent;
    padding: 10px 0;
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 300;
    color: var(--black);
    outline: none;
}
.search-field::placeholder { color: rgba(0,0,0,0.25); }
.search-close {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--gray);
    transition: color 0.3s;
}
.search-close:hover { color: var(--black); }

@media (max-width: 1024px) {
    .header-inner { padding: 0 24px; }
    .header-nav .nav-list { gap: 20px; }
    .search-bar-inner { padding: 0 24px; }
}
@media (max-width: 768px) {
    .header-nav { display: none; }
    .site-logo {
        position: relative; 
        transform: translateX(0%);
        left: 0;
    }
}
