/* =========================================================
   PLEASY — KOMPLETNY CSS WYSZUKIWARKI
   ZASTĘPUJE CAŁY POPRZEDNI CSS KOMPONENTU
   ========================================================= */

:root {
    --pleasy-shell-width: 1350px;

    --pleasy-pink: #f24e7f;
    --pleasy-pink-dark: #d93b6f;
    --pleasy-pink-deep: #bd2f62;
    --pleasy-pink-light: #fff4f8;
    --pleasy-pink-soft: #ffe5ee;

    --pleasy-ink: #2b1c23;
    --pleasy-text: #4d3942;
    --pleasy-muted: #8e7881;
    --pleasy-line: #f0dfe5;
    --pleasy-white: #ffffff;

    --pleasy-radius-large: 22px;
    --pleasy-radius-medium: 15px;
    --pleasy-transition: 180ms ease;
}


/* =========================================================
   RESET KOMPONENTU
   ========================================================= */

.pleasy-header,
.pleasy-header *,
.pleasy-header *::before,
.pleasy-header *::after,
#phx-ajax-results,
#phx-ajax-results *,
#phx-ajax-results *::before,
#phx-ajax-results *::after,
.phx-voice-notice,
.phx-voice-notice *,
.phx-voice-notice *::before,
.phx-voice-notice *::after {
    box-sizing: border-box;
}


/* =========================================================
   HEADER
   ========================================================= */

.pleasy-header {
    position: sticky;
    top: 0;
    z-index: 9000;

    width: 100%;

    border-bottom: 1px solid rgba(242, 78, 127, 0.1);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.99),
            rgba(255, 255, 255, 0.965)
        );

    box-shadow:
        0 5px 20px rgba(62, 27, 42, 0.055);

    backdrop-filter: blur(16px) saturate(125%);
    -webkit-backdrop-filter: blur(16px) saturate(125%);

    isolation: isolate;
}

.pleasy-header::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 129, 169, 0.65) 15%,
            rgba(242, 78, 127, 0.8) 50%,
            rgba(217, 59, 111, 0.65) 85%,
            transparent 100%
        );
}


/* =========================================================
   SZEROKOŚĆ I WYRÓWNANIE Z MENU
   ========================================================= */

.pleasy-header__inner {
    display: grid !important;

    grid-template-columns:
        190px
        minmax(0, 1fr) !important;

    align-items: center;

    gap: 24px !important;

    width: min(
        calc(100% - 32px),
        var(--pleasy-shell-width)
    ) !important;

    max-width: var(--pleasy-shell-width) !important;
    min-height: 70px;

    margin: 0 auto !important;
    padding: 7px 0 !important;
}

.pleasy-header__balance {
    display: none !important;
}


/*
 * Wyrównanie nawigacji do dokładnie tej samej szerokości
 * co logo i wyszukiwarka.
 */

.navigation-row > .container-inner,
.navigation-row .container-inner {
    width: min(
        calc(100% - 32px),
        var(--pleasy-shell-width)
    ) !important;

    max-width: var(--pleasy-shell-width) !important;

    margin-right: auto !important;
    margin-left: auto !important;
}


/* =========================================================
   LOGO
   ========================================================= */

.pleasy-header__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    justify-self: center;

    color: inherit;
    text-decoration: none;

    transition:
        transform var(--pleasy-transition),
        opacity var(--pleasy-transition);
}

.pleasy-header__logo:hover {
    transform: translateY(-1px);
}

.pleasy-header__logo:active {
    transform: translateY(0) scale(0.98);
}

.pleasy-header__logo:focus-visible {
    outline: 3px solid rgba(242, 78, 127, 0.22);
    outline-offset: 5px;
    border-radius: 9px;
}

.pleasy-header__logo img {
    display: block;

    width: auto;
    max-width: 165px;
    height: auto;
    max-height: 39px;

    object-fit: contain;
}


/* =========================================================
   WYSZUKIWARKA
   ========================================================= */

.phx-live-search {
    position: relative;
    z-index: 20;

    width: 100%;
    min-width: 0;

    justify-self: stretch;
}

.phx-search__form {
    width: 100%;
    margin: 0;
}

.phx-search__box {
    position: relative;

    width: 100%;
    padding: 1.5px;

    border-radius: 999px;

    background:
        linear-gradient(
            110deg,
            #ff82aa 0%,
            var(--pleasy-pink) 54%,
            var(--pleasy-pink-dark) 100%
        );

    box-shadow:
        0 5px 15px rgba(242, 78, 127, 0.11),
        0 1px 4px rgba(54, 25, 38, 0.04);

    transition:
        box-shadow var(--pleasy-transition),
        transform var(--pleasy-transition);
}

.phx-search__box:hover {
    box-shadow:
        0 7px 19px rgba(242, 78, 127, 0.15),
        0 2px 5px rgba(54, 25, 38, 0.045);
}

.phx-search__box:focus-within {
    transform: translateY(-1px);

    box-shadow:
        0 0 0 4px rgba(242, 78, 127, 0.075),
        0 8px 22px rgba(242, 78, 127, 0.16);
}


/* =========================================================
   INPUT
   ========================================================= */

.phx-search__input,
#phx-ajax-search {
    display: block;

    width: 100%;
    height: 48px;

    margin: 0;
    padding: 0 151px 0 24px;

    border: 0 !important;
    border-radius: 999px !important;
    outline: 0 !important;

    background: rgba(255, 255, 255, 0.995) !important;
    color: var(--pleasy-ink) !important;

    font-family: inherit;
    font-size: 15px;
    font-weight: 520;
    line-height: 1;

    box-shadow: none !important;

    appearance: none;
    -webkit-appearance: none;

    transition:
        background var(--pleasy-transition),
        color var(--pleasy-transition);
}

.phx-search__input::placeholder,
#phx-ajax-search::placeholder {
    color: #a18b94;
    opacity: 1;

    font-size: 15px;
    font-weight: 440;
}

.phx-search__input:focus,
#phx-ajax-search:focus {
    background: #ffffff !important;
}

.phx-search__input::-webkit-search-cancel-button,
#phx-ajax-search::-webkit-search-cancel-button {
    margin-right: 4px;
    cursor: pointer;
}


/* =========================================================
   PRZYCISK SZUKANIA
   ========================================================= */

.phx-search__submit {
    position: absolute;
    top: 50%;
    right: 5px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #fa6794,
            var(--pleasy-pink) 55%,
            #dc3b70
        );

    color: #ffffff;

    box-shadow:
        0 4px 10px rgba(242, 78, 127, 0.2);

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        transform var(--pleasy-transition),
        box-shadow var(--pleasy-transition),
        filter var(--pleasy-transition);
}

.phx-search__submit svg {
    display: block;

    width: 19px;
    height: 19px;
}

.phx-search__submit:hover {
    transform: translateY(-50%) scale(1.045);

    box-shadow:
        0 6px 14px rgba(242, 78, 127, 0.27);
}

.phx-search__submit:active {
    transform: translateY(-50%) scale(0.96);
}

.phx-search__submit:focus-visible {
    outline: 3px solid rgba(242, 78, 127, 0.22);
    outline-offset: 2px;
}


/* =========================================================
   PRZYCISK GŁOSOWY
   ========================================================= */

.phx-search__voice {
    position: absolute;
    top: 50%;
    right: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    margin: 0;
    padding: 0;

    border: 1px solid rgba(242, 78, 127, 0.2);
    border-radius: 50%;

    background: #fff3f7;
    color: #e44275;

    box-shadow: none;

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        color var(--pleasy-transition),
        background var(--pleasy-transition),
        border-color var(--pleasy-transition),
        transform var(--pleasy-transition),
        box-shadow var(--pleasy-transition),
        opacity var(--pleasy-transition);
}

.phx-search__voice svg {
    display: block;

    width: 17px;
    height: 17px;
}

.phx-search__voice:hover {
    border-color: rgba(242, 78, 127, 0.35);

    background: #ffe8f0;
    color: #d8376c;

    transform: translateY(-50%) scale(1.045);
}

.phx-search__voice:active {
    transform: translateY(-50%) scale(0.95);
}

.phx-search__voice:focus-visible {
    outline: 3px solid rgba(242, 78, 127, 0.21);
    outline-offset: 2px;
}

.phx-search__voice.is-requesting {
    cursor: wait;
    opacity: 0.7;
}

.phx-search__voice.is-listening {
    border-color: var(--pleasy-pink);

    background: var(--pleasy-pink);
    color: #ffffff;

    box-shadow:
        0 0 0 5px rgba(242, 78, 127, 0.11);

    animation: pleasy-voice-pulse 1.15s infinite;
}

@keyframes pleasy-voice-pulse {
    0%,
    100% {
        box-shadow:
            0 0 0 4px rgba(242, 78, 127, 0.1);
    }

    50% {
        box-shadow:
            0 0 0 9px rgba(242, 78, 127, 0.025);
    }
}


/* =========================================================
   SKRÓT CTRL / CMD + K
   ========================================================= */

.phx-search__hotkey {
    position: absolute;
    top: 50%;
    right: 90px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 50px;
    height: 27px;

    padding: 0 7px;

    border: 1px solid #eadce2;
    border-bottom-width: 2px;
    border-radius: 7px;

    background: #fffafd;
    color: #8d7881;

    font-family: inherit;
    font-size: 10px;
    font-weight: 760;
    line-height: 1;

    pointer-events: none;

    transform: translateY(-50%);
}

.phx-search__box:not(.has-voice) #phx-ajax-search {
    padding-right: 102px;
}

.phx-search__box:not(.has-voice) .phx-search__hotkey {
    right: 48px;
}


/* =========================================================
   WARSTWY MENU I WYNIKÓW
   ========================================================= */

.navigation-row,
#site-navigation,
.main-navigation,
.main-menu-wrap,
.header-bottom,
.mega-menu-wrap {
    position: relative;
    z-index: 9200 !important;
}


/* =========================================================
   PANEL WYNIKÓW PRZENIESIONY DO BODY
   ========================================================= */

body > .phx-search__results--portal {
    position: fixed !important;

    top: 0;
    left: 0;
    right: auto !important;
    bottom: auto !important;

    z-index: 2147482500 !important;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(285px, 325px);

    align-items: stretch;

    max-width: calc(100vw - 16px);
    max-height: var(--pleasy-panel-height, 590px);

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    border: 1px solid rgba(242, 78, 127, 0.18) !important;
    border-radius: var(--pleasy-radius-large) !important;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.998),
            rgba(255, 249, 251, 0.998)
        ) !important;

    box-shadow:
        0 25px 65px rgba(57, 24, 39, 0.18),
        0 8px 22px rgba(57, 24, 39, 0.085) !important;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform: translateY(-7px) scale(0.993);
    transform-origin: top center;

    transition:
        opacity var(--pleasy-transition),
        visibility var(--pleasy-transition),
        transform var(--pleasy-transition);

    backdrop-filter: blur(19px);
    -webkit-backdrop-filter: blur(19px);
}

body > .phx-search__results--portal.is-open {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transform: translateY(0) scale(1);
}

body > .phx-search__results--portal[hidden] {
    display: none !important;
}

body > .phx-search__results--portal:not(.has-preview) {
    display: block;
}


/* =========================================================
   LEWA CZĘŚĆ PANELU
   ========================================================= */

.phx-search__dynamic-list {
    min-width: 0;
    max-height: var(--pleasy-panel-height, 590px);

    overflow-x: hidden;
    overflow-y: auto;

    background: #ffffff;

    overscroll-behavior: contain;

    scrollbar-width: thin;
    scrollbar-color: #f6c7d7 transparent;
}

.phx-search__dynamic-list::-webkit-scrollbar {
    width: 8px;
}

.phx-search__dynamic-list::-webkit-scrollbar-track {
    background: transparent;
}

.phx-search__dynamic-list::-webkit-scrollbar-thumb {
    border: 2px solid #ffffff;
    border-radius: 999px;

    background: #f6c7d7;
}


/* =========================================================
   NAGŁÓWEK SEKCJI
   ========================================================= */

.phx-search__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    min-height: 45px;

    padding: 11px 16px;

    border-bottom: 1px solid var(--pleasy-line);

    background:
        linear-gradient(
            135deg,
            #fff9fb,
            #fff2f7
        );
}

.phx-search__section-title {
    color: var(--pleasy-ink);

    font-size: 11px;
    font-weight: 850;
    line-height: 1.3;

    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.phx-search__section-description {
    color: var(--pleasy-muted);

    font-size: 11px;
    font-weight: 550;
    line-height: 1.3;

    text-align: right;
}


/* =========================================================
   SZYBKI STRZAŁ
   ========================================================= */

.phx-search__quickbar {
    position: relative;
    z-index: 5;

    display: flex;
    align-items: center;
    gap: 7px;

    min-width: 0;
    min-height: 51px;

    padding: 9px 12px;

    overflow-x: auto;
    overflow-y: hidden;

    border-bottom: 1px solid var(--pleasy-line);

    background:
        linear-gradient(
            90deg,
            #fffafd,
            #fff3f7
        );

    pointer-events: auto;

    scrollbar-width: none;
}

.phx-search__quickbar::-webkit-scrollbar {
    display: none;
}

.phx-search__quick-label {
    flex: 0 0 auto;

    margin-right: 2px;

    color: #987f89;

    font-size: 9px;
    font-weight: 850;

    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.phx-search__chip {
    position: relative;
    z-index: 6;

    flex: 0 0 auto;

    min-height: 30px;

    margin: 0;
    padding: 0 11px;

    border: 1px solid #edd6df;
    border-radius: 999px;

    background: #ffffff;
    color: #694f59;

    font-family: inherit;
    font-size: 11px;
    font-weight: 750;
    line-height: 1;

    cursor: pointer;

    pointer-events: auto;
    touch-action: manipulation;

    box-shadow:
        0 3px 9px rgba(65, 29, 44, 0.04);

    transition:
        color 160ms ease,
        border-color 160ms ease,
        background 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.phx-search__chip:hover {
    border-color: var(--pleasy-pink);

    background: #fff0f5;
    color: var(--pleasy-pink-dark);

    transform: translateY(-1px);

    box-shadow:
        0 6px 13px rgba(242, 78, 127, 0.1);
}

.phx-search__chip:active {
    transform: translateY(0) scale(0.97);
}

.phx-search__chip:focus-visible {
    outline: 3px solid rgba(242, 78, 127, 0.2);
    outline-offset: 2px;
}

.phx-search__chip.is-recent::before {
    content: "↺";

    margin-right: 5px;

    color: var(--pleasy-pink);
    font-weight: 900;
}


/* =========================================================
   POJEDYNCZY PRODUKT
   ========================================================= */

.phx-search__item {
    position: relative;

    display: grid;

    grid-template-columns:
        58px
        minmax(0, 1fr)
        27px;

    align-items: center;
    gap: 13px;

    min-height: 82px;

    padding: 11px 14px;

    border-bottom: 1px solid #f4e7ec;

    background: var(--pleasy-white);
    color: var(--pleasy-text);

    text-decoration: none !important;

    transition:
        background var(--pleasy-transition),
        transform var(--pleasy-transition),
        box-shadow var(--pleasy-transition);
}

.phx-search__item:hover,
.phx-search__item.is-active {
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            #fff1f5 0%,
            #ffffff 92%
        ) !important;

    box-shadow:
        inset 4px 0 0 var(--pleasy-pink),
        0 7px 18px rgba(68, 28, 44, 0.05) !important;

    transform: translateX(2px);
}

.phx-search__item:focus-visible {
    outline: 3px solid rgba(242, 78, 127, 0.22);
    outline-offset: -3px;
}


/* =========================================================
   MINIATURA PRODUKTU
   ========================================================= */

.phx-search__thumbnail {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    overflow: hidden;

    border: 1px solid #efdee5;
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fff2f7
        );

    box-shadow:
        0 4px 11px rgba(54, 25, 38, 0.055);
}

.phx-search__thumbnail img {
    display: block;

    width: 100%;
    height: 100%;

    padding: 3px;

    object-fit: contain;

    transition: transform 240ms ease;
}

.phx-search__item:hover .phx-search__thumbnail img,
.phx-search__item.is-active .phx-search__thumbnail img {
    transform: scale(1.06);
}

.phx-search__thumbnail.is-empty::before {
    content: "P";

    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    background: var(--pleasy-pink-soft);
    color: var(--pleasy-pink);

    font-size: 14px;
    font-weight: 900;
}


/* =========================================================
   INFORMACJE O PRODUKCIE
   ========================================================= */

.phx-search__item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;

    min-width: 0;
}

.phx-search__item-name {
    display: -webkit-box;
    overflow: hidden;

    color: var(--pleasy-ink);

    font-size: 14px;
    font-weight: 760;
    line-height: 1.35;

    text-overflow: ellipsis;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.phx-search__item-name mark {
    padding: 0 2px;

    border-radius: 4px;

    background: #ffe1eb;
    color: var(--pleasy-pink-dark);

    font-weight: inherit;
}

.phx-search__price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.phx-search__price {
    color: var(--pleasy-pink-dark);

    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
}

.phx-search__old-price {
    color: #a8929b;

    font-size: 11px;
    font-weight: 550;
    line-height: 1.2;
}

.phx-search__sale-label {
    display: inline-flex;
    align-items: center;

    min-height: 19px;

    padding: 0 7px;

    border-radius: 999px;

    background: #fff0f5;
    color: var(--pleasy-pink-dark);

    font-size: 9px;
    font-weight: 850;

    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.phx-search__item-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 27px;
    height: 27px;

    border-radius: 50%;

    color: var(--pleasy-pink);

    font-size: 18px;
    font-weight: 750;

    opacity: 0.5;

    transition:
        opacity var(--pleasy-transition),
        transform var(--pleasy-transition),
        background var(--pleasy-transition);
}

.phx-search__item:hover .phx-search__item-arrow,
.phx-search__item.is-active .phx-search__item-arrow {
    background: var(--pleasy-pink-soft);

    opacity: 1;

    transform: translateX(2px);
}


/* =========================================================
   ZOBACZ WSZYSTKIE WYNIKI
   ========================================================= */

.phx-search__view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;

    width: auto;

    margin: 10px;
    padding: 13px 17px;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #ff709d,
            var(--pleasy-pink) 48%,
            var(--pleasy-pink-dark)
        );

    color: var(--pleasy-white) !important;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;

    text-align: center;
    text-decoration: none !important;

    box-shadow:
        0 7px 17px rgba(242, 78, 127, 0.21);

    transition:
        transform var(--pleasy-transition),
        box-shadow var(--pleasy-transition),
        filter var(--pleasy-transition);
}

.phx-search__view-all strong {
    font-weight: 900;
}

.phx-search__view-all:hover {
    color: var(--pleasy-white) !important;

    box-shadow:
        0 10px 22px rgba(242, 78, 127, 0.31);

    transform: translateY(-1px);

    filter: saturate(1.06);
}


/* =========================================================
   PODGLĄD PRODUKTU
   ========================================================= */

.phx-search__preview {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    max-width: 100%;
    max-height: var(--pleasy-panel-height, 590px);

    padding: 18px;

    overflow-x: hidden;
    overflow-y: auto;

    border-left: 1px solid var(--pleasy-line);

    background:
        radial-gradient(
            circle at 88% 5%,
            rgba(242, 78, 127, 0.13),
            transparent 34%
        ),
        linear-gradient(
            155deg,
            #fffafd 0%,
            #fff2f7 100%
        );

    scrollbar-width: thin;
    scrollbar-color: #f7c7d7 transparent;
}

.phx-search__preview::-webkit-scrollbar {
    width: 7px;
}

.phx-search__preview::-webkit-scrollbar-track {
    background: transparent;
}

.phx-search__preview::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;

    background: #f7c7d7;
    background-clip: padding-box;
}

.phx-search__preview::before {
    content: "";

    position: absolute;
    top: -63px;
    right: -50px;

    width: 155px;
    height: 155px;

    border: 1px solid rgba(242, 78, 127, 0.13);
    border-radius: 50%;

    pointer-events: none;
}

.phx-search__preview-badge {
    position: relative;
    z-index: 1;

    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 7px;

    margin-bottom: 13px;
    padding: 6px 10px;

    border: 1px solid rgba(242, 78, 127, 0.18);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.84);
    color: var(--pleasy-pink-dark);

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.phx-search__preview-badge::before {
    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--pleasy-pink);

    box-shadow:
        0 0 0 4px rgba(242, 78, 127, 0.11);
}


/* =========================================================
   ZDJĘCIE W PODGLĄDZIE
   ========================================================= */

.phx-search__preview-media {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 100%;
    min-height: 190px;
    aspect-ratio: 1 / 0.84;

    margin-bottom: 15px;

    overflow: hidden;

    border: 1px solid #efdee5;
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #ffedf3
        );

    box-shadow:
        0 11px 26px rgba(73, 31, 49, 0.08);
}

.phx-search__preview-media img {
    display: block;

    width: 100%;
    height: 100%;

    padding: 7px;

    object-fit: contain;

    transition:
        transform 300ms ease,
        filter 300ms ease;
}

.phx-search__preview:hover .phx-search__preview-media img {
    transform: scale(1.03);
}

.phx-search__preview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 66px;
    height: 66px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #ff759f,
            var(--pleasy-pink)
        );

    color: #ffffff;

    font-size: 28px;
    font-weight: 900;

    box-shadow:
        0 12px 24px rgba(242, 78, 127, 0.23);
}


/* =========================================================
   NAZWA I OPIS W PODGLĄDZIE
   ========================================================= */

.phx-search__preview-name {
    display: -webkit-box;
    overflow: hidden;

    margin: 0 0 8px;

    color: var(--pleasy-ink);

    font-size: 17px;
    font-weight: 850;
    line-height: 1.34;

    overflow-wrap: anywhere;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.phx-search__preview-description {
    display: -webkit-box;
    overflow: hidden;

    margin: 0 0 12px;

    color: #77616a;

    font-size: 12px;
    font-weight: 470;
    line-height: 1.52;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}


/* =========================================================
   META: OCENA, DOSTĘPNOŚĆ, PROMOCJA
   ========================================================= */

.phx-search__preview-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;

    margin-bottom: 12px;
}

.phx-search__preview-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    min-height: 24px;

    padding: 0 8px;

    border: 1px solid #ead8df;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.76);
    color: #705961;

    font-size: 10px;
    font-weight: 750;
}

.phx-search__preview-meta-item.is-rating {
    color: #946900;
}

.phx-search__preview-meta-item.is-stock {
    color: #287e56;
}

.phx-search__preview-meta-item.is-out {
    color: #a94755;
}

.phx-search__preview-meta-item.is-sale {
    color: var(--pleasy-pink-dark);
}


/* =========================================================
   CENA W PODGLĄDZIE
   ========================================================= */

.phx-search__preview-prices {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 15px;
}

.phx-search__preview-price {
    color: var(--pleasy-pink-dark);

    font-size: 19px;
    font-weight: 950;
    line-height: 1.2;
}

.phx-search__preview-old-price {
    color: #a58e97;

    font-size: 12px;
    font-weight: 550;
}


/* =========================================================
   PRZYCISK PODGLĄDU — NAPRAWIONE ZAOKRĄGLENIE
   ========================================================= */

.phx-search__preview-button {
    position: relative;

    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;

    flex: 0 0 auto;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 50px;

    margin: 0 !important;
    padding: 12px 14px !important;

    overflow: hidden;

    border: 0 !important;
    border-radius: 15px !important;

    background:
        linear-gradient(
            135deg,
            #ff6f9c,
            var(--pleasy-pink) 52%,
            var(--pleasy-pink-dark)
        ) !important;

    color: #ffffff !important;

    font-size: 13px;
    font-weight: 850;
    line-height: 1.2;

    text-align: center;
    text-decoration: none !important;

    box-shadow:
        0 9px 20px rgba(242, 78, 127, 0.24);

    transition:
        transform var(--pleasy-transition),
        box-shadow var(--pleasy-transition),
        filter var(--pleasy-transition);
}

.phx-search__preview-button::after {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: inherit;

    background:
        linear-gradient(
            110deg,
            transparent 25%,
            rgba(255, 255, 255, 0.21) 45%,
            transparent 65%
        );

    pointer-events: none;

    transform: translateX(-120%);

    transition: transform 420ms ease;
}

.phx-search__preview-button:hover {
    color: #ffffff !important;

    transform: translateY(-2px);

    box-shadow:
        0 13px 26px rgba(242, 78, 127, 0.33);

    filter: saturate(1.05);
}

.phx-search__preview-button:hover::after {
    transform: translateX(120%);
}

.phx-search__preview-button:active {
    transform: translateY(0) scale(0.985);
}

.phx-search__preview-button:focus-visible {
    outline: 3px solid rgba(242, 78, 127, 0.24);
    outline-offset: 3px;
}

.phx-search__preview-button span {
    position: relative;
    z-index: 1;
}


/* =========================================================
   PODPOWIEDŹ KLAWIATURY
   ========================================================= */

.phx-search__preview-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;

    margin-top: 12px;

    color: #9b858e;

    font-size: 10px;
    font-weight: 550;

    text-align: center;
}

.phx-search__preview-tip kbd {
    padding: 3px 6px;

    border: 1px solid #dfcdd5;
    border-bottom-width: 2px;
    border-radius: 6px;

    background: #ffffff;
    color: #67525b;

    font-family: inherit;
    font-size: 9px;
    font-weight: 850;
}


/* =========================================================
   KOMUNIKATY W PANELU
   ========================================================= */

.phx-search__message {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 30px 22px 32px;

    text-align: center;
}

.phx-search__message-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-bottom: 13px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #fff0f5,
            #ffe0ea
        );

    color: var(--pleasy-pink);

    font-size: 21px;
    font-weight: 900;

    box-shadow:
        0 8px 18px rgba(242, 78, 127, 0.12);
}

.phx-search__message-title {
    margin-bottom: 6px;

    color: var(--pleasy-ink);

    font-size: 15px;
    font-weight: 850;
    line-height: 1.35;
}

.phx-search__message-text {
    max-width: 340px;

    color: var(--pleasy-muted);

    font-size: 13px;
    font-weight: 470;
    line-height: 1.55;
}


/* =========================================================
   SKELETON LOADING
   ========================================================= */

.phx-search__skeleton {
    display: grid;

    grid-template-columns:
        58px
        minmax(0, 1fr);

    align-items: center;
    gap: 13px;

    min-height: 82px;

    padding: 11px 14px;

    border-bottom: 1px solid #f4e7ec;
}

.phx-search__skeleton-image,
.phx-search__skeleton-line {
    position: relative;

    overflow: hidden;

    background: #f4eaee;
}

.phx-search__skeleton-image::after,
.phx-search__skeleton-line::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.88),
            transparent
        );

    transform: translateX(-100%);

    animation: pleasy-search-shimmer 1.2s infinite;
}

.phx-search__skeleton-image {
    width: 58px;
    height: 58px;

    border-radius: 14px;
}

.phx-search__skeleton-content {
    display: flex;
    flex-direction: column;
    gap: 11px;

    min-width: 0;
}

.phx-search__skeleton-line {
    display: block;

    height: 11px;

    border-radius: 999px;
}

.phx-search__skeleton-line--long {
    width: min(80%, 330px);
}

.phx-search__skeleton-line--short {
    width: min(35%, 120px);
}

@keyframes pleasy-search-shimmer {
    to {
        transform: translateX(100%);
    }
}


/* =========================================================
   WIDOCZNY KOMUNIKAT WYSZUKIWANIA GŁOSOWEGO
   ========================================================= */

.phx-voice-notice {
    position: fixed;
    top: 18px;
    left: 50%;

    z-index: 999999;

    display: flex;
    align-items: center;
    gap: 9px;

    width: auto;
    max-width: min(
        430px,
        calc(100vw - 24px)
    );

    padding: 11px 15px;

    border: 1px solid rgba(242, 78, 127, 0.19);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.98);
    color: #543d47;

    font-family: inherit;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;

    box-shadow:
        0 12px 35px rgba(52, 21, 35, 0.15);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform: translate(-50%, -10px);

    transition:
        opacity var(--pleasy-transition),
        visibility var(--pleasy-transition),
        transform var(--pleasy-transition);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.phx-voice-notice.is-visible {
    opacity: 1;
    visibility: visible;

    transform: translate(-50%, 0);
}

.phx-voice-notice__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: #fff0f5;
    color: var(--pleasy-pink);

    font-size: 14px;
    font-weight: 900;
}

.phx-voice-notice.is-success
.phx-voice-notice__icon {
    background: #eaf8f1;
    color: #23805a;
}

.phx-voice-notice.is-error
.phx-voice-notice__icon {
    background: #fff0f2;
    color: #c83f58;
}


/* =========================================================
   TEKST TYLKO DLA CZYTNIKÓW EKRANU
   ========================================================= */

.pleasy-sr-only {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;

    border: 0 !important;

    white-space: nowrap !important;
}


/* =========================================================
   MNIEJSZY DESKTOP
   ========================================================= */

@media (max-width: 1150px) {
    .pleasy-header__inner {
        grid-template-columns:
            160px
            minmax(0, 1fr) !important;

        gap: 20px !important;

        min-height: 66px;
    }

    .pleasy-header__logo img {
        max-width: 145px;
        max-height: 35px;
    }
}


/* =========================================================
   TABLET — UKRYCIE PRAWEGO PODGLĄDU
   ========================================================= */

@media (max-width: 900px) {
    body > .phx-search__results--portal,
    body > .phx-search__results--portal.has-preview {
        display: block;
    }

    .phx-search__preview {
        display: none !important;
    }

    .phx-search__hotkey {
        display: none;
    }

    .phx-search__box.has-voice #phx-ajax-search {
        padding-right: 93px;
    }

    .phx-search__box:not(.has-voice) #phx-ajax-search {
        padding-right: 52px;
    }
}


/* =========================================================
   MOBILE — LOGO CAŁKOWICIE UKRYTE
   ========================================================= */

@media (max-width: 768px) {
    .pleasy-header {
        box-shadow:
            0 4px 16px rgba(62, 27, 42, 0.055);
    }

    .pleasy-header__inner {
        display: block !important;

        width: 100% !important;
        min-height: auto;

        padding: 7px 10px !important;
    }

    .pleasy-header__logo,
    .pleasy-header__logo img {
        display: none !important;
    }

    .phx-live-search {
        width: 100%;
        max-width: none;
    }

    .phx-search__box {
        padding: 1.5px;
    }

    .phx-search__input,
    #phx-ajax-search {
        height: 46px;

        padding-left: 17px;

        font-size: 16px;
    }

    .phx-search__input::placeholder,
    #phx-ajax-search::placeholder {
        font-size: 14px;
    }

    .phx-search__submit {
        right: 5px;

        width: 36px;
        height: 36px;
    }

    .phx-search__submit svg {
        width: 18px;
        height: 18px;
    }

    .phx-search__voice {
        right: 45px;

        width: 32px;
        height: 32px;
    }

    .phx-search__voice svg {
        width: 16px;
        height: 16px;
    }

    .phx-search__hotkey {
        display: none !important;
    }

    .phx-search__box.has-voice #phx-ajax-search {
        padding-right: 87px !important;
    }

    .phx-search__box:not(.has-voice) #phx-ajax-search {
        padding-right: 50px !important;
    }

    body > .phx-search__results--portal {
        border-radius: 17px !important;
    }

    .phx-search__section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;

        padding: 10px 12px;
    }

    .phx-search__section-description {
        text-align: left;
    }

    .phx-search__quickbar {
        min-height: 48px;

        padding: 8px 9px;
    }

    .phx-search__quick-label {
        display: none;
    }

    .phx-search__chip {
        min-height: 29px;

        padding-right: 10px;
        padding-left: 10px;

        font-size: 10px;
    }

    .phx-search__item {
        grid-template-columns:
            52px
            minmax(0, 1fr)
            22px;

        gap: 10px;

        min-height: 75px;

        padding: 10px 11px;
    }

    .phx-search__thumbnail {
        width: 52px;
        height: 52px;

        border-radius: 13px;
    }

    .phx-search__item-name {
        font-size: 13px;
    }

    .phx-search__price {
        font-size: 13px;
    }

    .phx-search__old-price {
        font-size: 10px;
    }

    .phx-search__item-arrow {
        width: 22px;
        height: 22px;

        font-size: 16px;
    }

    .phx-search__view-all {
        margin: 8px;
        padding: 12px 14px;

        border-radius: 13px;
    }

    .phx-search__skeleton {
        grid-template-columns:
            52px
            minmax(0, 1fr);

        gap: 10px;

        min-height: 75px;

        padding: 10px 11px;
    }

    .phx-search__skeleton-image {
        width: 52px;
        height: 52px;

        border-radius: 13px;
    }

    .phx-voice-notice {
        top: 10px;

        width: calc(100vw - 20px);
        max-width: none;
    }
}


/* =========================================================
   BARDZO MAŁE TELEFONY
   ========================================================= */

@media (max-width: 380px) {
    .pleasy-header__inner {
        padding-right: 8px !important;
        padding-left: 8px !important;
    }

    .phx-search__input,
    #phx-ajax-search {
        padding-left: 15px;
    }

    .phx-search__item {
        grid-template-columns:
            48px
            minmax(0, 1fr);
    }

    .phx-search__thumbnail {
        width: 48px;
        height: 48px;
    }

    .phx-search__item-arrow {
        display: none;
    }
}


/* =========================================================
   OGRANICZENIE ANIMACJI
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .pleasy-header *,
    .pleasy-header *::before,
    .pleasy-header *::after,
    #phx-ajax-results *,
    #phx-ajax-results *::before,
    #phx-ajax-results *::after,
    .phx-voice-notice,
    .phx-voice-notice *,
    .phx-voice-notice *::before,
    .phx-voice-notice *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   PLEASY HEADER 1.2 - izolacja wyszukiwarki
   ========================================================= */
.phx-header {
    --pleasy-shell-width: var(--phx-max);
    --pleasy-pink: var(--phx-accent);
    --pleasy-pink-light: #fff4f8;
    --pleasy-pink-soft: var(--phx-soft);
}
.phx-header .phx-live-search,
.phx-header .phx-search__form,
.phx-header .phx-search__box {
    width:100%;
    min-width:0;
}
.phx-sr-only {
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
}
body > #phx-ajax-results.phx-search__results--portal {
    z-index:100050!important;
}
@media (max-width:1024px) {
    .phx-header .phx-search__input,
    .phx-header #phx-ajax-search {
        min-height:48px;
        height:48px;
        font-size:16px;
    }
}

/* Pleasy Header 1.3.3: panel wyników zawsze ponad treścią WooCommerce,
   ale pod samym headerem. */
body > .phx-search__results--portal { z-index:2147482500!important; }

/* Pleasy Header 1.3.4: podczas otwartego menu mobilnego wyszukiwarka
   nie może wejść nad drawer ani pozostać aktywna pod nim. */
@media (max-width:1024px) {
    body.phx-mobile-menu-open > .phx-search__results--portal,
    body.phx-mobile-menu-open > #phx-ajax-results.phx-search__results--portal {
        display:none!important;
        opacity:0!important;
        visibility:hidden!important;
        pointer-events:none!important;
    }
}


/* Drawer koszyka ma pierwszeństwo przed wynikami wyszukiwania. */
body.pcd-open > .phx-search__results--portal,
body.pcd-open > #phx-ajax-results.phx-search__results--portal {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
