
/* ========================================
   NAGŁÓWEK – PEŁNA SZEROKOŚĆ
   ======================================== */

.site-header-row-container-inner > .site-container {
    width: 100%;
    max-width: 1920px !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
}

/* ========================================
   IKONY W NAGŁÓWKU – UKŁAD OBOK SIEBIE
   ======================================== */

/* Kontener ikon – wyszukiwarka, ulubione, koszyk */
.site-header .header-html,
.site-header .header-item,
.site-header .header-mobile-toggle-open-container {
    box-sizing: border-box;
}

/* Wyszukiwarka */
.site-header .wp-block-search {
    position: relative;
    display: flex;
    align-items: center;
    width: auto;
    max-width: none;
    margin: 0;
}

/* Kontener przycisku i pola wyszukiwania */
.site-header .wp-block-search__inside-wrapper {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    max-width: none;
    border: none;
    margin: 0;
}

/* Przycisk wyszukiwarki */
.site-header button.wp-block-search__button {
    position: relative;
    z-index: 1002;
    display: flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 0 !important;
    margin: 0;
    border: 0 !important;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

/* Ukrycie domyślnej ikony WordPressa */
.wp-block-search__button .search-icon {
    display: none !important;
}

/* Własna ikona lupy */
.site-header .wp-block-search__button::before {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    background-image: url("/wp-content/uploads/2026/10/search.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Pole wyszukiwania */
.site-header .wp-block-search__input {
    position: absolute !important;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    z-index: 1001;
    display: block;
    width: 320px !important;
    min-width: 320px;
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
    padding: 14px 16px;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #222;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: 0 4px 15px rgb(0 0 0 / 10%);
}

/* Ukrycie pola, gdy WordPress ustawia aria-hidden */
.site-header .wp-block-search__input[aria-hidden="true"] {
    display: none !important;
}

/* Placeholder */
.site-header .wp-block-search__input::placeholder {
    color: #777;
    opacity: 1;
}

/* ========================================
   LISTA ŻYCZEŃ
   ======================================== */

.site-header .sol-wishlist-header {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin: 0;
    text-decoration: none;
    color: inherit;
}

.sol-wishlist-heart {
    font-size: 20px;
    line-height: 1.3;
}

/* Ikona serca */
img.serduszko {
    display: block;
    width: 25px;
    height: auto;
    margin-top: 3px;
}

/* ========================================
   KOSZYK WOOCOMMERCE
   ======================================== */

/* Przycisk koszyka */
.site-header .wc-block-mini-cart__button {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 30px;
    margin: 0;
    padding: 0;
    border: 0 !important;
    background: transparent;
    box-shadow: none;
}

/* Ukrycie domyślnej ikony SVG */
.wc-block-mini-cart__icon {
    display: none !important;
}

/* Własna ikona koszyka */
.wc-block-mini-cart__quantity-badge::before {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    background-image: url("/wp-content/uploads/2026/10/shopping-cart.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* ========================================
   LICZNIKI – KOSZYK I LISTA ŻYCZEŃ
   ======================================== */

.wc-block-mini-cart__badge,
.sol-wishlist-count {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    min-width: 18px;
    max-width: 18px;
    height: 18px;
    min-height: 18px;
    padding: 0;
    border-radius: 50%;
    background-color: #d9534f;
    color: #fff !important;
    font-size: 11px;
    line-height: 18px;
    box-sizing: border-box;
}

/* Licznik koszyka */
.site-header .wc-block-mini-cart__badge {
    top: -1px;
    right: -8px;
}

/* Licznik listy życzeń */
.site-header .sol-wishlist-count {
    top: -5px;
    right: -8px;
}
.mobile-header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mobile-header-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    padding: 4px;
    margin: 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
}

.mobile-header-actions button img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* ========================================
   WERSJA TABLETOWA
   ======================================== */

@media (max-width: 1024px) {
    img.serduszko {
        width: 22px;
    }
}

/* ========================================
   WERSJA MOBILNA
   ======================================== */

@media (max-width: 767px) {
    .site-header-row-container-inner > .site-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .site-header .wp-block-search__inside-wrapper {
        flex-wrap: nowrap;
    }

    .site-header .wp-block-search__button {
        flex-basis: 44px;
        width: 44px;
        min-width: 44px;
        height: 44px;
    }

    .site-header .wp-block-search__button::before {
        width: 28px;
        height: 28px;
    }

    .site-header .wp-block-search__input {
        width: min(320px, calc(100vw - 40px)) !important;
        min-width: 0;
    }
}