/* ==========================================================================
   NENO — narzędzia na listingu: kreator wyboru, porównywarka, okna
   (kolory i font z neno-category.css: --nc-*)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Nagłówek kategorii + kafelki (uzupełnienie)
   -------------------------------------------------------------------------- */
.woocommerce-category-section-products .pre-header {
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--nc-kicker);
    font-size: 14px;
}

.nsc-lead {
    margin: 10px auto 0;
    max-width: 720px;
    color: var(--nc-muted);
    font-family: var(--nc-font);
    font-size: 17px;
    line-height: 1.5;
}

.nsc-tile .nsc-img--product {
    object-fit: contain;
    padding: 10% 14% 30%;
    mix-blend-mode: multiply;
}

.nsc-pill > span {
    min-width: 0;
}

@media (max-width: 767.98px) {
    .nsc-lead {
        font-size: 15px;
    }

    .nsc-tile .nsc-img--product {
        padding: 8% 10% 34%;
    }
}

/* --------------------------------------------------------------------------
   Okno (wspólne dla kreatora i porównywarki)
   -------------------------------------------------------------------------- */
.nmod[hidden] {
    display: none !important;
}

.nmod {
    position: fixed;
    inset: 0;
    z-index: 100005;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: var(--nc-font);
    color: var(--nc-text);
}

.nmod-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(31, 27, 24, .55);
    backdrop-filter: blur(2px);
    animation: nmod-fade .2s ease;
}

.nmod-box {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 48px);
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(31, 27, 24, .25);
    overflow: hidden;
    animation: nmod-up .25s ease;
}

.nmod-box--wide {
    max-width: 1180px;
}

.nmod-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px 14px;
}

.nmod-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.2;
    color: var(--nc-ink);
}

.nmod-close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--nc-line);
    border-radius: 50%;
    background: #fff;
    color: var(--nc-ink);
    cursor: pointer;
}

.nmod-close:hover {
    border-color: var(--nc-brand);
}

.nmod-body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 10px 28px 24px;
    -webkit-overflow-scrolling: touch;
}

.nmod-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 28px 22px;
    border-top: 1px solid var(--nc-line);
}

.nmod-foot:empty {
    display: none;
}

.nmod-loading {
    display: flex;
    justify-content: center;
    padding: 48px 0;
}

.nmod-loading .nc-spin {
    display: block;
    width: 34px;
    height: 34px;
    border: 3px solid var(--nc-line);
    border-top-color: var(--nc-ink);
    border-radius: 50%;
    animation: nc-spin .7s linear infinite;
}

body.nmod-open {
    overflow: hidden;
}

@keyframes nmod-fade {
    from { opacity: 0; }
}

@keyframes nmod-up {
    from { opacity: 0; transform: translateY(16px); }
}

@media (max-width: 767.98px) {
    .nmod {
        padding: 0;
        align-items: flex-end;
    }

    .nmod-box,
    .nmod-box--wide {
        max-width: none;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
    }

    .nmod-head {
        padding: 18px 18px 10px;
    }

    .nmod-title {
        font-size: 22px;
    }

    .nmod-body {
        padding: 8px 18px 18px;
    }

    .nmod-foot {
        padding: 12px 18px 16px;
    }
}

/* --------------------------------------------------------------------------
   Przyciski wspólne
   -------------------------------------------------------------------------- */
.nbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 26px;
    border: 1px solid var(--nc-brand);
    border-radius: 999px;
    background: var(--nc-brand);
    color: #fff;
    font-family: var(--nc-font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, opacity .2s ease;
}

.nbtn:hover {
    background: var(--nc-brand-d);
}

.nbtn[disabled] {
    opacity: .35;
    cursor: not-allowed;
}

.nbtn--ghost {
    background: #fff;
    color: var(--nc-ink);
    border-color: var(--nc-line);
}

.nbtn--ghost:hover {
    background: var(--nc-soft);
}

/* --------------------------------------------------------------------------
   Kreator: baner nad listingiem
   -------------------------------------------------------------------------- */
.nadv-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 8px 0 18px;
    padding: 18px 22px;
    border-radius: 18px;
    background: linear-gradient(110deg, #f4ece4 0%, #efe4da 100%);
    font-family: var(--nc-font);
}

.nadv-banner-ico {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
    color: var(--nc-kicker);
}

.nadv-banner-text {
    flex: 1 1 auto;
    min-width: 0;
}

.nadv-banner-text strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--nc-ink);
}

.nadv-banner-text span {
    display: block;
    margin-top: 2px;
    font-size: 15px;
    color: #6f6660;
}

.nadv-banner-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: var(--nc-brand);
    color: #fff;
    font-family: var(--nc-font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.nadv-banner-btn:hover {
    background: var(--nc-sale);
    transform: translateY(-1px);
}

@media (max-width: 767.98px) {
    .nadv-banner {
        flex-wrap: wrap;
        gap: 12px 14px;
        padding: 16px;
    }

    .nadv-banner-ico {
        width: 44px;
        height: 44px;
    }

    .nadv-banner-text {
        flex-basis: calc(100% - 60px);
    }

    .nadv-banner-text strong {
        font-size: 16px;
    }

    .nadv-banner-text span {
        font-size: 13.5px;
    }

    .nadv-banner-btn {
        width: 100%;
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   Kreator: okno z pytaniami
   -------------------------------------------------------------------------- */
.nadv-kicker {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--nc-kicker);
}

.nadv-progress {
    height: 4px;
    margin: 0 28px;
    border-radius: 4px;
    background: var(--nc-soft);
    overflow: hidden;
}

.nadv-progress span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 4px;
    background: var(--nc-kicker);
    transition: width .3s ease;
}

.nadv-step-label {
    margin: 14px 0 12px;
    font-size: 13px;
    color: var(--nc-muted);
}

.nadv-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.nadv-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 18px 18px 52px;
    border: 1.5px solid var(--nc-line);
    border-radius: 16px;
    background: #fff;
    text-align: left;
    font-family: var(--nc-font);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.nadv-option::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 20px;
    width: 20px;
    height: 20px;
    border: 1.5px solid #cfc5bc;
    border-radius: 50%;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.nadv-option.is-multi::before {
    border-radius: 6px;
}

.nadv-option:hover {
    border-color: #cfc3b8;
    background: #fdfbf9;
}

.nadv-option.is-selected {
    border-color: var(--nc-brand);
    background: var(--nc-soft);
    box-shadow: 0 0 0 1px var(--nc-brand) inset;
}

.nadv-option.is-selected::before {
    border-color: var(--nc-brand);
    box-shadow: inset 0 0 0 5px var(--nc-brand);
}

.nadv-option.is-multi.is-selected::before {
    box-shadow: none;
    background: var(--nc-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.nadv-option-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--nc-ink);
    line-height: 1.3;
}

.nadv-option-hint {
    font-size: 13.5px;
    color: var(--nc-muted);
    line-height: 1.4;
}

.nadv-foot-info {
    font-size: 13px;
    color: var(--nc-muted);
}

/* Wyniki */
.nadv-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 6px;
}

.nadv-result {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.nadv-result-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 28px;
}

.nadv-best {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--nc-brand);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.nadv-match {
    padding: 4px 12px;
    border-radius: 999px;
    background: #e7f1ec;
    color: var(--nc-green);
    font-size: 12px;
    font-weight: 700;
}

.nadv-reasons {
    margin: 0;
    padding: 0;
    list-style: none;
    min-height: 0;
}

.nadv-reasons li {
    position: relative;
    margin: 0 0 4px;
    padding-left: 22px;
    font-size: 13.5px;
    line-height: 1.4;
    color: #4f4843;
    list-style: none;
}

.nadv-reasons li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--nc-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 9px no-repeat;
}

.nadv-result .nc {
    flex: 1 1 auto;
}

.nadv-result.is-best .nc {
    border-color: var(--nc-brand);
}

.nadv-result .nc-title {
    font-size: 18px;
}

.nadv-result .nc-body {
    padding: 16px 16px 14px;
}

.nadv-empty {
    padding: 30px 0;
    text-align: center;
    color: var(--nc-muted);
}

@media (max-width: 991.98px) {
    .nadv-results {
        grid-template-columns: 1fr;
    }

    .nadv-result .nc {
        flex-direction: row;
    }

    .nadv-result .nc-media {
        flex: 0 0 130px;
        width: 130px;
        aspect-ratio: auto;
        border-bottom: 0;
        border-right: 1px solid var(--nc-line);
    }

    .nadv-result .nc-wish {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .nadv-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .nadv-option {
        padding: 14px 14px 14px 46px;
    }

    .nadv-option::before {
        left: 14px;
        top: 16px;
    }

    .nadv-progress {
        margin: 0 18px;
    }

    .nadv-result .nc-media {
        flex-basis: 108px;
        width: 108px;
    }
}

/* --------------------------------------------------------------------------
   Porównywarka: przycisk na karcie
   -------------------------------------------------------------------------- */
.nc-compare {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    padding: 2px 0;
    border: 0;
    background: none;
    color: #6f6660;
    font-family: var(--nc-font);
    font-size: 13.5px;
    cursor: pointer;
}

.nc-compare:hover {
    color: var(--nc-ink);
}

.nc-compare-box {
    width: 16px;
    height: 16px;
    border: 1.5px solid #cbbfb4;
    border-radius: 4px;
    background: #fff;
    transition: background .15s ease, border-color .15s ease;
}

.nc-compare[aria-pressed="true"] {
    color: var(--nc-ink);
    font-weight: 600;
}

.nc-compare[aria-pressed="true"] .nc-compare-box {
    border-color: var(--nc-brand);
    background: var(--nc-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.nadv-result .nc-compare {
    display: none;
}

@media (max-width: 575.98px) {
    .nc-compare {
        font-size: 12px;
        gap: 5px;
    }

    .nc-compare-box {
        width: 14px;
        height: 14px;
    }
}

/* --------------------------------------------------------------------------
   Porównywarka: pasek u dołu
   -------------------------------------------------------------------------- */
.ncmp-bar[hidden] {
    display: none !important;
}

.ncmp-bar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 9990;
    width: min(760px, calc(100% - 24px));
    transform: translateX(-50%);
    font-family: var(--nc-font);
    animation: nmod-up .25s ease;
}

.ncmp-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 10px 10px 14px;
    border-radius: 999px;
    background: var(--nc-brand);
    box-shadow: 0 18px 44px rgba(31, 27, 24, .3);
    color: #fff;
}

.ncmp-bar-items {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.ncmp-chip {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
}

.ncmp-chip img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.ncmp-chip button {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(31, 27, 24, .65);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    opacity: 0;
    cursor: pointer;
    transition: opacity .15s ease;
}

.ncmp-chip:hover button,
.ncmp-chip button:focus-visible {
    opacity: 1;
}

.ncmp-slot {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border: 1.5px dashed rgba(255, 255, 255, .35);
    border-radius: 50%;
}

.ncmp-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.ncmp-bar-clear {
    border: 0;
    background: none;
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 10px;
}

.ncmp-bar-clear:hover {
    color: #fff;
}

.ncmp-bar-go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--nc-ink);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.ncmp-bar-go span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--nc-brand);
    color: #fff;
    font-size: 12px;
}

.ncmp-bar-go[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

@media (max-width: 575.98px) {
    .ncmp-bar {
        bottom: 10px;
    }

    .ncmp-chip,
    .ncmp-slot {
        width: 38px;
        height: 38px;
    }

    .ncmp-bar-go {
        min-height: 40px;
        padding: 0 14px;
        font-size: 14px;
    }

    .ncmp-bar-clear {
        padding: 6px;
        font-size: 13px;
    }
}

/* --------------------------------------------------------------------------
   Porównywarka: tabela
   -------------------------------------------------------------------------- */
.ncmp-scroll {
    overflow-x: auto;
    margin: 0 -28px;
    padding: 0 28px 6px;
    -webkit-overflow-scrolling: touch;
}

.ncmp-table {
    width: 100%;
    min-width: calc(180px + var(--ncmp-cols, 2) * 210px);
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 14.5px;
}

.ncmp-table th,
.ncmp-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--nc-line);
    vertical-align: top;
    text-align: left;
    line-height: 1.45;
    word-break: break-word;
}

.ncmp-table .ncmp-label {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 180px;
    background: #fff;
    color: var(--nc-muted);
    font-weight: 600;
    font-size: 13.5px;
}

.ncmp-table tbody tr:nth-child(odd) td,
.ncmp-table tbody tr:nth-child(odd) .ncmp-label {
    background: #fcfaf8;
}

.ncmp-table td {
    color: var(--nc-ink);
}

.ncmp-table.is-diff tr.is-same {
    display: none;
}

.ncmp-table thead th {
    border-bottom: 1px solid var(--nc-line);
    vertical-align: bottom;
}

.ncmp-prod {
    position: relative;
    font-weight: 400;
}

.ncmp-img {
    display: block;
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;
    border: 1px solid var(--nc-line);
    border-radius: 14px;
    overflow: hidden;
}

.ncmp-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8%;
}

.ncmp-name {
    display: block;
    color: var(--nc-ink) !important;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.ncmp-sub {
    display: -webkit-box;
    margin-top: 4px;
    color: var(--nc-muted);
    font-size: 13px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ncmp-price {
    display: inline-block;
    margin-top: 10px;
    margin-right: 6px;
    font-size: 20px;
    font-weight: 700;
    color: var(--nc-ink);
}

.ncmp-price.is-sale {
    color: var(--nc-sale);
}

.ncmp-old {
    color: #8b827b;
    font-size: 14px;
}

.ncmp-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin-top: 12px;
    border-radius: 999px;
    background: var(--nc-brand);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
}

.ncmp-cart:hover {
    background: var(--nc-sale);
}

.ncmp-cart .nc-spin {
    display: none;
}

.ncmp-cart.is-loading .nc-spin {
    display: block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: nc-spin .7s linear infinite;
}

.ncmp-cart.is-added {
    background: var(--nc-green);
}

.ncmp-cart--ghost {
    background: #fff;
    color: var(--nc-ink) !important;
    border: 1px solid var(--nc-line);
}

.ncmp-cart--off {
    background: #d8d1cb;
}

.ncmp-remove {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--nc-line);
    border-radius: 50%;
    background: #fff;
    color: var(--nc-ink);
    cursor: pointer;
}

.ncmp-remove:hover {
    border-color: var(--nc-sale);
    color: var(--nc-sale);
}

.ncmp-diff {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--nc-ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.ncmp-diff input {
    width: 18px;
    height: 18px;
    accent-color: var(--nc-ink);
}

.ncmp-hint {
    margin: 16px 0 0;
    color: var(--nc-muted);
    font-size: 14px;
}

@media (max-width: 767.98px) {
    .ncmp-scroll {
        margin: 0 -18px;
        padding: 0 18px 6px;
    }

    .ncmp-table {
        min-width: calc(120px + var(--ncmp-cols, 2) * 160px);
        font-size: 13px;
    }

    .ncmp-table th,
    .ncmp-table td {
        padding: 10px;
    }

    .ncmp-table .ncmp-label {
        width: 120px;
        font-size: 12px;
    }

    .ncmp-name {
        font-size: 15px;
    }

    .ncmp-price {
        font-size: 17px;
    }

    .ncmp-remove {
        top: 14px;
        right: 14px;
    }
}

/* Widżety zewnętrzne nie mogą zasłaniać okien kreatora / porównania */
body.nmod-open #ceneo-widget,
body.nmod-open .askspot-chat-widget,
body.nmod-open #CookiebotWidget,
body.nmod-open #arrowReturn,
body.nmod-open #nenoCompareBar {
    display: none !important;
}
