:root {
    --hb3-navy: #071d3b;
    --hb3-orange: #f67810;
    --hb3-orange-dark: #df6200;
    --hb3-border: #dce4ed;
    --hb3-muted: #64748b;
    --hb3-soft: #f7f9fc;
    --hb3-green: #16a36a;
}

.hb3-shell,
.hb3-content-shell,
.hb3-associations-shell,
.hb3-subnav-inner {
    width: min(1520px, calc(100% - 48px));
    margin-inline: auto;
}

.hb3-product-top {
    padding: 28px 0 44px;
}

.hb3-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid var(--hb3-border);
    border-top: 4px solid var(--hb3-navy);
    background: #fff;
}

.hb3-fact {
    min-width: 0;
    padding: 12px 14px;
    border-right: 1px solid var(--hb3-border);
}

.hb3-fact:last-child { border-right: 0; }
.hb3-fact span {
    display: block;
    margin-bottom: 4px;
    color: var(--hb3-muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.hb3-fact strong {
    display: block;
    color: var(--hb3-navy);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.hb3-main-grid {
    display: grid;
    grid-template-columns: minmax(410px, .92fr) minmax(330px, .74fr) minmax(360px, .72fr);
    gap: 30px;
    align-items: start;
}

.hb3-gallery {
    min-width: 0;
}

.hb3-info {
    min-width: 0;
    padding: 8px 4px 0;
}

.hb3-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.hb3-title {
    color: var(--hb3-navy);
    font-size: clamp(26px, 2vw, 34px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -.03em;
}

.hb3-wishlist {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid var(--hb3-border);
    border-radius: 50%;
    background: #fff;
}

.hb3-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 14px;
    color: var(--hb3-muted);
    font-size: 12px;
}
.hb3-meta strong { color: var(--hb3-navy); }

.hb3-stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.hb3-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hb3-green);
    box-shadow: 0 0 0 4px rgba(22,163,106,.12);
}

.hb3-short {
    margin-top: 24px;
    color: #475569;
    font-size: 14px;
    line-height: 1.72;
}

.hb3-info-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}
.hb3-info-links a {
    padding: 8px 11px;
    border: 1px solid var(--hb3-border);
    border-radius: 8px;
    color: var(--hb3-navy);
    font-size: 12px;
    font-weight: 750;
}
.hb3-info-links a:hover { border-color: #9aa9ba; }

.hb3-buybox {
    position: sticky;
    top: 18px;
    overflow: hidden;
    border: 1px solid var(--hb3-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 30, 52, .08);
}

.hb3-buybox-head {
    padding: 22px;
    border-bottom: 1px solid var(--hb3-border);
}
.hb3-buybox-head > span {
    display: block;
    color: var(--hb3-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.hb3-price {
    margin-top: 4px;
    color: var(--hb3-navy);
    font-size: 32px;
    font-weight: 900;
    line-height: 1.05;
}
.hb3-price-gross {
    margin-top: 5px;
    color: var(--hb3-muted);
    font-size: 12px;
}

.hb3-buybox-body {
    display: grid;
    gap: 16px;
    padding: 20px 22px 22px;
}

.hb3-unit-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}
.hb3-unit-title span {
    color: var(--hb3-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.hb3-unit-title strong {
    color: var(--hb3-navy);
    font-size: 13px;
}

.hb3-unit-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
    gap: 7px;
}
.hb3-unit-options button {
    min-height: 38px;
    padding: 7px 8px;
    border: 1px solid #ccd7e3;
    border-radius: 8px;
    background: #fff;
    color: var(--hb3-navy);
    font-size: 11px;
    font-weight: 800;
}
.hb3-unit-options button.is-active {
    border-color: var(--hb3-navy);
    background: var(--hb3-navy);
    color: #fff;
}

.hb3-order-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--hb3-border);
    border-radius: 9px;
    background: var(--hb3-border);
    gap: 1px;
}
.hb3-order-summary > div {
    padding: 10px 11px;
    background: var(--hb3-soft);
}
.hb3-order-summary span {
    display: block;
    color: var(--hb3-muted);
    font-size: 9px;
    font-weight: 750;
    text-transform: uppercase;
}
.hb3-order-summary strong {
    display: block;
    margin-top: 3px;
    color: var(--hb3-navy);
    font-size: 12px;
    font-weight: 850;
}

.hb3-buy-actions {
    display: grid;
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 9px;
}
.hb3-qty {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    min-height: 48px;
    overflow: hidden;
    border: 1px solid #bfcbd8;
    border-radius: 9px;
    background: #fff;
}
.hb3-qty button,
.hb3-qty input {
    width: 100%;
    text-align: center;
    color: var(--hb3-navy);
    font-weight: 800;
}
.hb3-qty input {
    border-inline: 1px solid #edf1f5;
    -moz-appearance: textfield;
}
.hb3-qty input::-webkit-inner-spin-button,
.hb3-qty input::-webkit-outer-spin-button { -webkit-appearance: none; }

.hb3-add-button.secondary-button {
    width: 100% !important;
    max-width: none !important;
    min-height: 48px;
    border-radius: 9px !important;
    background: var(--hb3-orange) !important;
    color: #fff !important;
    font-weight: 850 !important;
}
.hb3-add-button.secondary-button:hover { background: var(--hb3-orange-dark) !important; }

.hb3-availability {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 11px;
    border-radius: 8px;
    background: #f5f8fb;
}
.hb3-availability strong {
    display: block;
    color: var(--hb3-navy);
    font-size: 11px;
}
.hb3-availability small {
    display: block;
    margin-top: 2px;
    color: var(--hb3-muted);
    font-size: 10px;
}

.hb3-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.hb3-secondary-actions a,
.hb3-secondary-actions button {
    color: var(--hb3-navy);
    font-size: 11px;
    font-weight: 750;
}

.hb3-subnav {
    position: sticky;
    top: 0;
    z-index: 31;
    border-block: 1px solid var(--hb3-border);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(9px);
}
.hb3-subnav-inner {
    display: flex;
    gap: 30px;
    overflow-x: auto;
}
.hb3-subnav a {
    position: relative;
    flex: 0 0 auto;
    padding: 15px 0 13px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}
.hb3-subnav a:hover,
.hb3-subnav a.is-active { color: var(--hb3-orange-dark); }
.hb3-subnav a.is-active::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: var(--hb3-orange);
    content: '';
}

.hb3-content-shell {
    padding-block: 14px 52px;
}
.hb3-section {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 42px;
    padding: 38px 0;
    border-bottom: 1px solid var(--hb3-border);
    scroll-margin-top: 72px;
}
.hb3-section:last-child { border-bottom: 0; }
.hb3-section-heading span {
    display: block;
    color: var(--hb3-orange-dark);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.hb3-section-heading h2 {
    margin-top: 5px;
    color: var(--hb3-navy);
    font-size: 22px;
    font-weight: 850;
    line-height: 1.2;
}
.hb3-description {
    color: #334155;
    font-size: 14px;
    line-height: 1.75;
}
.hb3-description p + p { margin-top: 10px; }

.hb3-spec-table {
    overflow: hidden;
    border: 1px solid var(--hb3-border);
    border-radius: 10px;
}
.hb3-spec-row {
    display: grid;
    grid-template-columns: minmax(190px, .48fr) minmax(0, 1fr);
    gap: 24px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--hb3-border);
}
.hb3-spec-row:last-child { border-bottom: 0; }
.hb3-spec-row span { color: var(--hb3-muted); font-size: 12px; }
.hb3-spec-row strong { color: var(--hb3-navy); font-size: 12px; font-weight: 800; }

.hb3-logistics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--hb3-border);
    border-radius: 10px;
    background: var(--hb3-border);
    gap: 1px;
}
.hb3-logistics > div {
    min-height: 78px;
    padding: 13px 14px;
    background: var(--hb3-soft);
}
.hb3-logistics span {
    display: block;
    color: var(--hb3-muted);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}
.hb3-logistics strong {
    display: block;
    margin-top: 5px;
    color: var(--hb3-navy);
    font-size: 13px;
    font-weight: 850;
}

.hb3-documents {
    display: grid;
    gap: 8px;
}
.hb3-document {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--hb3-border);
    border-radius: 9px;
    background: #fff;
}
.hb3-document strong { color: var(--hb3-orange-dark); font-size: 11px; }
.hb3-empty {
    padding: 22px;
    border: 1px dashed #cad5e1;
    border-radius: 9px;
    color: var(--hb3-muted);
    text-align: center;
    font-size: 12px;
}

.hb3-associations {
    padding: 10px 0 58px;
    border-top: 1px solid var(--hb3-border);
    background: #fff;
}
.hb3-association-block + .hb3-association-block { margin-top: 26px; }
.hb3-association-label {
    margin-bottom: -4px;
    color: var(--hb3-muted);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .06em;
}

@media (min-width: 1700px) {
    .hb3-main-grid {
        grid-template-columns: minmax(500px, 1fr) minmax(360px, .72fr) minmax(390px, .7fr);
        gap: 40px;
    }
}

@media (max-width: 1280px) {
    .hb3-shell,
    .hb3-content-shell,
    .hb3-associations-shell,
    .hb3-subnav-inner { width: min(1180px, calc(100% - 32px)); }
    .hb3-main-grid { grid-template-columns: minmax(360px, .85fr) minmax(300px, .72fr) minmax(330px, .75fr); gap: 22px; }
    .hb3-logistics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1179px) {
    .hb3-product-top { padding-top: 0; }
    .hb3-main-grid { display: flex; flex-direction: column; }
    .hb3-gallery, .hb3-info, .hb3-buybox { width: 100%; }
    .hb3-info { padding: 18px 4px 0; }
    .hb3-buybox { position: static; }
    .hb3-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hb3-section { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
    .hb3-subnav { top: 0; }
}

@media (max-width: 640px) {
    .hb3-shell,
    .hb3-content-shell,
    .hb3-associations-shell,
    .hb3-subnav-inner { width: calc(100% - 24px); }
    .hb3-title { font-size: 24px; }
    .hb3-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hb3-fact { padding: 10px; }
    .hb3-buybox-head, .hb3-buybox-body { padding: 16px; }
    .hb3-unit-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hb3-buy-actions { grid-template-columns: 96px minmax(0,1fr); }
    .hb3-spec-row { grid-template-columns: 1fr; gap: 4px; }
    .hb3-logistics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* HIPERNET PDP BUYBOX V4.1 LIVE */

@media (min-width: 1280px) {
    .hb3-main-grid {
        grid-template-columns:
            minmax(390px, 1.05fr)
            minmax(360px, .92fr)
            minmax(430px, 440px) !important;
        gap: 28px !important;
        align-items: start;
    }

    .hb3-buybox {
        width: 100% !important;
        max-width: 440px !important;
        justify-self: end;
    }

    .hb3-shell {
        max-width: 1540px !important;
    }

    .hb4-main-price {
        font-size: 38px !important;
    }

    .hb4-tier-options {
        gap: 9px !important;
    }

    .hb4-tier-option {
        min-height: 156px !important;
        padding: 15px 12px 29px !important;
    }

    .hb4-tier-option.is-active {
        padding: 14px 11px 28px !important;
    }

    .hb4-tier-name {
        font-size: 13px !important;
    }

    .hb4-tier-pieces {
        font-size: 12px !important;
    }

    .hb4-cartons {
        font-size: 10px !important;
    }

    .hb4-tier-price {
        font-size: 12px !important;
    }

    .hb4-tier-total {
        font-size: 13px !important;
    }

    .hb4-saving {
        font-size: 13px !important;
        padding: 10px 12px !important;
    }
}

/* ===== HIPERNET BUYBOX V4.2 FINAL VISUAL ===== */

@media (min-width: 1180px) {

    .hb3-buybox {
        max-width: 440px !important;
        border-radius: 14px !important;
    }

    /* HEADER */

    .hb4-head {
        padding: 20px 20px 15px !important;
        background: #fff !important;
    }

    .hb4-head-top {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 14px !important;
    }

    .hb4-eyebrow {
        display: block !important;
        margin-bottom: 5px !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
        font-weight: 800 !important;
        letter-spacing: .04em !important;
        text-transform: uppercase !important;
    }

    .hb4-main-price {
        margin: 0 !important;
        font-size: 36px !important;
        line-height: 1 !important;
        font-weight: 900 !important;
        color: #10233f !important;
    }

    .hb4-main-price small {
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #53647a !important;
    }

    .hb4-best-badge {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 14px !important;
        border-radius: 999px !important;
        background: #0caf60 !important;
        color: #fff !important;
        font-size: 11px !important;
        line-height: 1 !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
    }

    .hb4-selected-total {
        margin-top: 8px !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
        color: #53647a !important;
    }

    .hb4-selected-total strong {
        color: #10233f !important;
        font-weight: 900 !important;
    }

    .hb4-base-price {
        margin-top: 6px !important;
        font-size: 12px !important;
        color: #7b8797 !important;
    }

    /* ZIELONY PASEK */

    .hb4-saving {
        display: flex !important;
        width: 100% !important;
        box-sizing: border-box !important;
        align-items: center !important;
        gap: 10px !important;
        margin-top: 12px !important;
        padding: 11px 13px !important;
        border: 0 !important;
        border-radius: 8px !important;
        background: #eaf8f0 !important;
        color: #0aa357 !important;
        font-size: 13px !important;
        line-height: 1.25 !important;
        font-weight: 700 !important;
    }

    .hb4-saving strong {
        color: #0aa357 !important;
        font-weight: 900 !important;
    }

    .hb4-saving-icon {
        flex: 0 0 20px !important;
        width: 20px !important;
        height: 20px !important;
        background: #0caf60 !important;
        color: #fff !important;
    }

    /* BODY */

    .hb3-buybox-body {
        padding: 15px 20px 20px !important;
    }

    .hb4-unit-title {
        margin: 0 0 11px !important;
    }

    .hb4-unit-title span {
        font-size: 9px !important;
        color: #718096 !important;
    }

    .hb4-unit-title strong {
        margin-top: 3px !important;
        font-size: 14px !important;
        color: #10233f !important;
    }

    /* 3 KARTY */

    .hb4-tier-options {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .hb3-tier-option.hb4-tier-option,
    .hb3-tier-option.hb4-tier-option.is-active {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;

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

        padding: 14px 11px 28px !important;

        border: 1px solid #dbe4ee !important;
        border-radius: 9px !important;

        background: #fff !important;
        color: #10233f !important;

        text-align: left !important;
        box-shadow: none !important;
        overflow: hidden !important;
    }

    /* AKTYWNA NIE JEST GRANATOWA */

    .hb3-tier-option.hb4-tier-option.is-active {
        border: 2px solid #102b52 !important;
        padding: 13px 10px 27px !important;
        background: #fff !important;
        color: #10233f !important;
    }

    .hb3-tier-option.hb4-tier-option.is-active *,
    .hb3-tier-option.hb4-tier-option * {
        color: inherit !important;
    }

    .hb4-selected-check {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;

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

        width: 20px !important;
        height: 20px !important;

        border-radius: 50% !important;
        background: #102b52 !important;
        color: #fff !important;

        font-size: 11px !important;
        font-weight: 900 !important;
    }

    .hb4-tier-name {
        display: block !important;
        padding-right: 20px !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
        font-weight: 900 !important;
        color: #10233f !important;
    }

    .hb4-tier-pieces {
        display: block !important;
        margin-top: 4px !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
        font-weight: 800 !important;
        color: #53647a !important;
    }

    .hb4-cartons {
        display: block !important;
        min-height: 15px !important;
        margin-top: 1px !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
        color: #7b8797 !important;
    }

    .hb4-tier-price {
        display: block !important;
        margin-top: 16px !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
        font-weight: 500 !important;
        color: #53647a !important;
    }

    .hb4-tier-price small {
        font-size: 10px !important;
    }

    .hb4-tier-total {
        display: block !important;
        margin-top: 5px !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
        font-weight: 900 !important;
        color: #10233f !important;
    }

    /* ZIELONY DOL PALETY */

    .hb4-tier-best {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;

        display: block !important;
        padding: 6px 4px !important;

        background: #0caf60 !important;
        color: #fff !important;

        text-align: center !important;
        font-size: 10px !important;
        line-height: 1 !important;
        font-weight: 900 !important;
    }

    .hb3-tier-option.hb4-tier-option.is-active .hb4-tier-best {
        color: #fff !important;
    }

    /* PODSUMOWANIE */

    .hb3-order-summary {
        margin-top: 13px !important;
    }

    /* LICZNIK + CTA */

    .hb3-package-qty {
        width: 112px !important;
        min-width: 112px !important;
        grid-template-columns: 36px 40px 36px !important;
    }
}

/* ===== HIPERNET PDP V4.4 TITLE FIX ===== */

@media (min-width: 1180px) {
    .hb3-title-row {
        display: flex !important;
        align-items: flex-start !important;
        gap: 12px !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .hb3-title {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;

        overflow: visible !important;
        text-overflow: unset !important;
        white-space: normal !important;

        word-break: normal !important;
        overflow-wrap: normal !important;

        font-size: 32px !important;
        line-height: 1.05 !important;
    }

    .hb3-wishlist {
        flex: 0 0 42px !important;
        width: 42px !important;
        height: 42px !important;
    }
}

@media (min-width: 1700px) {
    .hb3-title {
        font-size: 34px !important;
    }
}

/* ===== HIPERNET PDP V4.5 FULL PRODUCT TITLE ===== */

@media (min-width: 1180px) {

    .hb3-info {
        position: relative !important;
        min-width: 0 !important;
        overflow: visible !important;
        padding-right: 0 !important;
    }

    .hb3-title-row {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
        padding-right: 54px !important;
    }

    .hb3-title {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;

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

        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;

        font-size: 30px !important;
        line-height: 1.08 !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    .hb3-wishlist {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;

        width: 42px !important;
        height: 42px !important;
        margin: 0 !important;
    }
}

@media (min-width: 1700px) {
    .hb3-title {
        font-size: 32px !important;
    }
}

/* ============================================================
   HIPERNET PDP NAVIGATION V1
   ============================================================ */

.hb3-nav-professional {
    position: sticky;
    top: 0;
    z-index: 35;

    width: 100%;
    margin: 18px 0 24px;

    border-top: 1px solid #e7edf3;
    border-bottom: 1px solid #dce5ed;

    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: 0 6px 18px rgba(15,23,42,.04);
}

.hb3-nav-inner {
    display: flex;
    width: min(1760px, calc(100% - 32px));
    margin: 0 auto;

    align-items: stretch;
    justify-content: center;

    overflow-x: auto;
    scrollbar-width: none;
}

.hb3-nav-inner::-webkit-scrollbar {
    display: none;
}

.hb3-nav-link {
    position: relative;

    display: flex;
    min-height: 58px;

    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 0 26px;

    color: #607286;
    font-size: 13px;
    font-weight: 750;

    white-space: nowrap;
    text-decoration: none;

    transition:
        color .18s ease,
        background-color .18s ease;
}

.hb3-nav-link:hover {
    color: #172f4d;
    background: #f7f9fb;
}

.hb3-nav-link::after {
    content: "";

    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;

    height: 3px;
    border-radius: 3px 3px 0 0;

    background: transparent;
}

.hb3-nav-link.is-active {
    color: #ea650f;
    background: #fff;
}

.hb3-nav-link.is-active::after {
    background: #ea650f;
}

.hb3-nav-icon {
    display: grid;

    width: 25px;
    height: 25px;

    place-items: center;

    border: 1px solid #dce5ed;
    border-radius: 7px;

    background: #f7f9fb;

    color: #8a98a6;

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

.hb3-nav-link.is-active .hb3-nav-icon {
    border-color: rgba(234,101,15,.22);
    background: rgba(234,101,15,.08);
    color: #ea650f;
}

#hb3-buy,
#hb3-description,
#hb3-specification,
#hb3-logistics,
#hb3-documents {
    scroll-margin-top: 86px;
}

@media (min-width: 1180px) {
    .hb3-nav-professional {
        top: 0;
    }
}

@media (max-width: 767px) {
    .hb3-nav-professional {
        margin: 10px 0 18px;
    }

    .hb3-nav-inner {
        width: 100%;
        justify-content: flex-start;
        padding: 0 8px;
    }

    .hb3-nav-link {
        min-height: 52px;
        padding: 0 15px;
        font-size: 11px;
    }

    .hb3-nav-icon {
        display: none;
    }

    .hb3-nav-link::after {
        left: 12px;
        right: 12px;
    }
}


/* ============================================================
   HIPERNET PDP SUBNAV V2
   Real rendered navigation
   ============================================================ */

.hb3-subnav {
    position: sticky !important;
    top: 0 !important;
    z-index: 45 !important;

    width: 100% !important;
    margin: 18px 0 28px !important;

    border-top: 1px solid #e6ebf0 !important;
    border-bottom: 1px solid #d9e2ea !important;

    background: rgba(255,255,255,.97) !important;

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    box-shadow: 0 8px 24px rgba(15,23,42,.055) !important;
}

.hb3-subnav-inner {
    display: flex !important;

    width: min(1760px, calc(100% - 40px)) !important;
    max-width: none !important;

    margin: 0 auto !important;

    align-items: stretch !important;
    justify-content: flex-start !important;

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

    scrollbar-width: none;
}

.hb3-subnav-inner::-webkit-scrollbar {
    display: none;
}

.hb3-subnav-inner > a {
    position: relative !important;

    display: flex !important;

    min-width: 150px !important;
    min-height: 62px !important;

    align-items: center !important;
    justify-content: center !important;

    padding: 0 30px !important;

    border-left: 1px solid transparent !important;
    border-right: 1px solid transparent !important;

    background: transparent !important;

    color: #5f7082 !important;

    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1 !important;

    text-decoration: none !important;
    white-space: nowrap !important;

    transition:
        color .18s ease,
        background-color .18s ease,
        border-color .18s ease !important;
}

.hb3-subnav-inner > a:hover {
    color: #172f4d !important;
    background: #f7f9fb !important;
}

/* pomaranczowa kreska */
.hb3-subnav-inner > a::after {
    content: "" !important;

    position: absolute !important;

    left: 24px !important;
    right: 24px !important;
    bottom: 0 !important;

    height: 3px !important;

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

    background: transparent !important;
}

/* numer sekcji */
.hb3-subnav-inner > a::before {
    display: inline-grid !important;

    width: 27px !important;
    height: 27px !important;

    margin-right: 9px !important;

    place-items: center !important;

    border: 1px solid #dbe3eb !important;
    border-radius: 7px !important;

    background: #f7f9fb !important;

    color: #8795a4 !important;

    font-size: 9px !important;
    font-weight: 850 !important;
}

.hb3-subnav-inner > a:nth-child(1)::before { content: "01"; }
.hb3-subnav-inner > a:nth-child(2)::before { content: "02"; }
.hb3-subnav-inner > a:nth-child(3)::before { content: "03"; }
.hb3-subnav-inner > a:nth-child(4)::before { content: "04"; }
.hb3-subnav-inner > a:nth-child(5)::before { content: "05"; }

/* aktywna sekcja */
.hb3-subnav-inner > a.is-active {
    color: #ea650f !important;
    background: #fff !important;

    border-left-color: #edf1f5 !important;
    border-right-color: #edf1f5 !important;
}

.hb3-subnav-inner > a.is-active::after {
    background: #ea650f !important;
}

.hb3-subnav-inner > a.is-active::before {
    border-color: rgba(234,101,15,.28) !important;
    background: rgba(234,101,15,.08) !important;
    color: #ea650f !important;
}

/* anchor offset */
#hb3-buy,
#hb3-description,
#hb3-specification,
#hb3-logistics,
#hb3-documents {
    scroll-margin-top: 90px !important;
}

@media (min-width: 1180px) {
    .hb3-subnav-inner {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 767px) {
    .hb3-subnav {
        margin: 10px 0 20px !important;
    }

    .hb3-subnav-inner {
        width: 100% !important;
        padding: 0 8px !important;
    }

    .hb3-subnav-inner > a {
        min-width: auto !important;
        min-height: 52px !important;

        padding: 0 16px !important;

        font-size: 11px !important;
    }

    .hb3-subnav-inner > a::before {
        display: none !important;
    }

    .hb3-subnav-inner > a::after {
        left: 12px !important;
        right: 12px !important;
    }
}


/* ============================================================
   HIPERNET PDP BREADCRUMB V1
   ============================================================ */

.hb3-breadcrumb {
    width: 100%;
    border-bottom: 1px solid #edf1f5;
    background: #fff;
}

.hb3-breadcrumb-inner {
    display: flex;
    width: min(1760px, calc(100% - 40px));
    min-height: 48px;
    margin: 0 auto;

    align-items: center;
    gap: 8px;

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

    scrollbar-width: none;
}

.hb3-breadcrumb-inner::-webkit-scrollbar {
    display: none;
}

.hb3-breadcrumb-home,
.hb3-breadcrumb-link {
    color: #65778a;
    text-decoration: none;
    white-space: nowrap;
}

.hb3-breadcrumb-home {
    display: inline-grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;

    place-items: center;

    border-radius: 7px;

    color: #172f4d;
    font-size: 15px;
}

.hb3-breadcrumb-home:hover {
    background: #f3f6f8;
    color: #ea650f;
}

.hb3-breadcrumb-link {
    font-size: 12px;
    font-weight: 650;
}

.hb3-breadcrumb-link:hover {
    color: #ea650f;
}

.hb3-breadcrumb-separator {
    color: #a6b1bc;
    font-size: 13px;
}

.hb3-breadcrumb-current {
    overflow: hidden;

    color: #24384d;

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

    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .hb3-breadcrumb-inner {
        width: 100%;
        min-height: 42px;
        padding: 0 12px;
    }

    .hb3-breadcrumb-current {
        max-width: 220px;
    }
}


/* ===== HIPERNET BREADCRUMB PROFESSIONAL V3 ===== */

.hb3-breadcrumb {
    width: min(1760px, calc(100% - 40px));
    margin: 0 auto;
    background: #fff;
}

.hb3-breadcrumb-desktop {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 9px;

    overflow: hidden;

    color: #657587;
    font-size: 12px;
}

.hb3-breadcrumb-desktop a {
    flex: 0 0 auto;
    color: #5d7185;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.hb3-breadcrumb-desktop a:hover {
    color: #ea650f;
}

.hb3-breadcrumb-desktop > span {
    flex: 0 0 auto;
    color: #a9b4bf;
    font-size: 15px;
}

.hb3-breadcrumb-desktop strong {
    min-width: 0;
    overflow: hidden;

    color: #253b50;
    font-weight: 750;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.hb3-breadcrumb-home {
    display: inline-grid;
    width: 27px;
    height: 27px;
    place-items: center;

    border-radius: 7px;

    color: #40566c !important;
    font-size: 16px;
}

.hb3-breadcrumb-home:hover {
    background: #f5f7f9;
    color: #ea650f !important;
}

.hb3-breadcrumb-mobile {
    display: none;
}

@media (max-width: 767px) {

    .hb3-breadcrumb {
        width: 100%;
    }

    .hb3-breadcrumb-desktop {
        display: none;
    }

    .hb3-breadcrumb-mobile {
        display: flex;

        min-height: 42px;
        padding: 0 14px;

        align-items: center;
        gap: 8px;

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

        white-space: nowrap;
        scrollbar-width: none;
    }

    .hb3-breadcrumb-mobile::-webkit-scrollbar {
        display: none;
    }

    .hb3-breadcrumb-mobile a {
        flex: 0 0 auto;

        color: #66798c;
        font-size: 12px;
        font-weight: 650;
        text-decoration: none;
    }

    .hb3-breadcrumb-mobile a:last-of-type {
        color: #243d55;
        font-weight: 800;
    }

    .hb3-breadcrumb-mobile span {
        color: #a9b4bf;
    }
}


/* ============================================================
   HIPERNET PDP CLEANUP V1
   duplicate navigation + excessive empty space
   ============================================================ */

/* Usuwamy zdublowane linki przy opisie produktu */
.hb3-info-links {
    display: none !important;
}

/* Górna część PDP ma mieć wysokość wynikającą z treści */
.hb3-product-top,
.hb3-product-top .hb3-shell {
    min-height: 0 !important;
    height: auto !important;
}

/* Grid nie powinien rozciągać wszystkich kolumn do sztucznej wysokości */
.hb3-main-grid {
    min-height: 0 !important;
    height: auto !important;
    align-items: start !important;
}

/* Galeria, opis i buybox bez sztucznego rozciągania */
.hb3-gallery,
.hb3-info,
.hb3-buybox {
    min-height: 0 !important;
    height: auto !important;
    align-self: start !important;
}

/* Zmniejszamy przestrzeń przed nawigacją sekcji */
.hb3-product-top {
    padding-bottom: 22px !important;
    margin-bottom: 0 !important;
}

.hb3-subnav {
    margin-top: 0 !important;
}

/* Na desktopie sekcja ma być zwarta */
@media (min-width: 1180px) {
    .hb3-shell {
        padding-bottom: 0 !important;
    }

    .hb3-main-grid {
        margin-bottom: 0 !important;
    }
}



/* ===== HIPERNET PDP ASSOCIATIONS COMPACT V2 ===== */

.hb3-associations {
    padding: 34px 0 52px;
    border-top: 1px solid var(--hb3-border);
    background: #f7f9fc;
}

.hb3-association-block {
    padding: 20px 22px 22px;
    border: 1px solid var(--hb3-border);
    border-radius: 12px;
    background: #fff;
}

.hb3-association-block + .hb3-association-block {
    margin-top: 18px;
}

.hb3-association-label {
    margin: 0 0 4px;
    color: var(--hb3-orange-dark);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .07em;
}

/* Stock carousel: jedna szeroka karta na rząd */
.hb3-association-block .container {
    width: 100% !important;
    max-width: none !important;
    margin-top: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.hb3-association-block [ref="swiperContainer"] {
    display: block !important;
    overflow: visible !important;
    margin-top: 14px !important;
}

.hb3-association-block .hb2b-product-compact {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    margin: 0 !important;

    border: 1px solid #dce4ed;
    border-radius: 10px;
    background: #fff;
}

.hb3-association-block .hb2b-product-compact + .hb2b-product-compact {
    margin-top: 10px !important;
}

.hb3-association-block .hb2b-product-compact-image {
    flex: 0 0 96px;
    width: 96px;
    min-width: 96px;
    height: 96px;
}

.hb3-association-block .hb2b-product-compact-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 767px) {
    .hb3-association-block {
        padding: 14px;
    }

    .hb3-association-block .hb2b-product-compact-image {
        flex-basis: 74px;
        width: 74px;
        min-width: 74px;
        height: 74px;
    }
}

/* ============================================================
   HIPERNET PDP GALLERY NORMALIZATION V1
   ============================================================ */

@media (min-width: 1180px) {
    .hb3-gallery-desktop {
        width: 100%;
        max-width: 100%;
        align-items: flex-start;
        gap: 20px !important;
    }

    .hb3-gallery-stage {
        display: flex;
        width: min(100%, 560px);
        height: 560px;
        min-width: 0 !important;
        max-width: 560px;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background: #fff;
    }

    .hb3-gallery-main-image {
        display: block;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        max-height: 100% !important;
        margin: auto;
        object-fit: contain !important;
        object-position: center center !important;
    }

    .hb3-gallery-shimmer {
        width: 100%;
        height: 560px;
        min-width: 0 !important;
        min-height: 0 !important;
    }

    .hb3-gallery-thumb {
        width: 100px !important;
        height: 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;
        max-height: 100px !important;
        padding: 4px;
        background: #fff;
        object-fit: contain !important;
        object-position: center center !important;
    }
}

@media (max-width: 1179px) {
    .hb2b-v2-mobile-gallery-slide {
        height: min(100vw, 520px);
        align-items: center;
        justify-items: center;
        background: #fff;
    }

    .hb2b-v2-mobile-gallery-image {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        padding: 12px;
        object-fit: contain !important;
        object-position: center center !important;
    }
}

@media (max-width: 640px) {
    .hb2b-v2-mobile-gallery-slide {
        height: 92vw;
        max-height: 430px;
    }

    .hb2b-v2-mobile-gallery-image {
        padding: 10px;
    }
}

/* ============================================================
   HIPERNET PDP GALLERY HEIGHT V2
   compact desktop hero
   ============================================================ */

@media (min-width: 1180px) {
    .hb3-gallery-stage {
        height: 500px;
    }

    .hb3-gallery-shimmer {
        height: 500px;
    }
}

/* ============================================================
   HIPERNET PDP ASSOCIATIONS GRID V3
   related / upsell / cross-sell
   ============================================================ */

.hb3-association-block [ref="swiperContainer"] {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    overflow: visible !important;
    margin-top: 14px !important;
}

.hb3-association-block .hb2b-product-compact {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}

.hb3-association-block .hb2b-product-compact + .hb2b-product-compact {
    margin-top: 0 !important;
}

@media (max-width: 1279px) {
    .hb3-association-block [ref="swiperContainer"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .hb3-association-block [ref="swiperContainer"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

/* ============================================================
   HIPERNET COMPACT CAROUSEL V4
   PDP related / upsell / cross-sell only
   ============================================================ */

.hb3-association-block .hb3-compact-carousel {
    width: 100% !important;
    max-width: none !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
}

/* Naglowek zwarty */
.hb3-association-block .hb3-compact-carousel-head {
    margin: 0 !important;
}

/* Tytul wewnetrzny carouselu */
.hb3-association-block .hb3-compact-carousel-head h2 {
    margin: 2px 0 10px !important;
    font-family: inherit !important;
    color: var(--hb3-navy) !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
    font-weight: 850 !important;
}

/* W PDP nie potrzebujemy strzalek dla kilku kompaktowych kart */
.hb3-association-block .hb3-compact-carousel-head > div:last-child {
    margin-left: auto;
}

/* Wlasciwy grid */
.hb3-association-block .hb3-compact-carousel-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;

    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;
    white-space: normal !important;
}

/* Usuwamy min-width odziedziczone po zwyklym carouselu */
.hb3-association-block .hb3-compact-carousel-card {
    min-width: 0 !important;
    width: 100% !important;
    height: auto !important;
}

/* Sama karta ma miec wysokosc wynikajaca z tresci */
.hb3-association-block .hb2b-product-compact {
    min-height: 0 !important;
    height: auto !important;
    align-self: start !important;
}

/* Mniej powietrza wokolo calej sekcji */
.hb3-association-block {
    padding: 16px 18px 18px !important;
}

.hb3-association-block + .hb3-association-block {
    margin-top: 14px !important;
}

.hb3-associations {
    padding-top: 24px !important;
    padding-bottom: 36px !important;
}

@media (max-width: 1279px) {
    .hb3-association-block .hb3-compact-carousel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .hb3-association-block {
        padding: 14px !important;
    }

    .hb3-association-block .hb3-compact-carousel-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .hb3-association-block .hb3-compact-carousel-head h2 {
        font-size: 19px !important;
    }
}

/* ============================================================
   HIPERNET PDP ASSOCIATION CARD V5
   Full B2B cards for related / alternatives / buy together
   ============================================================ */

@media (min-width: 768px) {

    .hb3-association-block .hb2b-product-compact {
        display: grid !important;
        grid-template-columns: 128px minmax(0, 1fr) !important;
        grid-template-areas:
            "image main"
            "image price"
            "image logistics"
            "image stock"
            "image saleunit"
            "buy buy" !important;

        gap: 6px 14px !important;

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

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

        align-items: start !important;

        border: 1px solid #dce4ed !important;
        border-radius: 12px !important;
        background: #fff !important;
    }

    .hb3-association-block .hb2b-product-compact-image {
        grid-area: image !important;

        display: flex !important;
        width: 128px !important;
        min-width: 128px !important;
        height: 128px !important;

        padding: 6px !important;

        align-items: center !important;
        justify-content: center !important;

        border: 1px solid #edf1f5 !important;
        border-radius: 9px !important;
        background: #fff !important;
    }

    .hb3-association-block .hb2b-product-compact-image img {
        display: block !important;

        width: 100% !important;
        height: 100% !important;

        object-fit: contain !important;
        object-position: center !important;
    }

    .hb3-association-block .hb2b-product-compact-main {
        grid-area: main !important;
        min-width: 0 !important;
    }

    .hb3-association-block .hb2b-product-compact-name {
        display: -webkit-box !important;
        overflow: hidden !important;

        margin: 0 0 5px !important;

        color: #13213c !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        line-height: 1.3 !important;

        white-space: normal !important;

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

    .hb3-association-block .hb2b-product-compact-meta {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 3px 10px !important;

        color: #6b7280 !important;
        font-size: 10px !important;
        line-height: 1.3 !important;

        white-space: normal !important;
    }

    .hb3-association-block .hb2b-product-compact-price-box {
        grid-area: price !important;
        min-width: 0 !important;
        margin: 1px 0 0 !important;
    }

    .hb3-association-block .hb2b-product-compact-price-box > span {
        display: block !important;
        margin-bottom: 1px !important;

        color: #7b8494 !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: .04em !important;
    }

    .hb3-association-block .hb2b-product-compact-price {
        color: #13213c !important;
        font-size: 18px !important;
        font-weight: 850 !important;
        line-height: 1.15 !important;
    }

    .hb3-association-block .hb2b-product-compact-logistics {
        grid-area: logistics !important;

        display: flex !important;
        flex-wrap: wrap !important;
        gap: 3px 10px !important;

        margin: 1px 0 0 !important;

        color: #596579 !important;
        font-size: 10px !important;
        line-height: 1.3 !important;

        white-space: normal !important;
    }

    .hb3-association-block .hb2b-product-compact-stock {
        grid-area: stock !important;

        display: flex !important;
        align-items: center !important;
        gap: 5px !important;

        margin: 1px 0 0 !important;

        font-size: 10px !important;
        line-height: 1.3 !important;

        white-space: normal !important;
    }

    .hb3-association-block .hb2b-product-card-sale-unit {
        grid-area: saleunit !important;

        margin: 3px 0 0 !important;
        padding: 7px 0 0 !important;

        border-top: 1px solid #edf1f5 !important;

        font-size: 10px !important;
    }

    .hb3-association-block .hb2b-product-compact-buy {
        grid-area: buy !important;

        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;

        margin: 8px 0 0 !important;
        padding: 10px 0 0 !important;

        align-items: center !important;
        gap: 8px !important;

        border-top: 1px solid #edf1f5 !important;
    }

    .hb3-association-block .hb2b-compact-unit-switch {
        flex: 0 0 auto !important;
    }

    .hb3-association-block .hb2b-product-compact-quantity {
        flex: 0 0 auto !important;
        min-width: 112px !important;
    }

    .hb3-association-block .hb2b-product-compact-conversion {
        flex: 1 1 auto !important;
        min-width: 0 !important;

        font-size: 9px !important;
        line-height: 1.25 !important;

        white-space: normal !important;
    }

    .hb3-association-block .hb2b-product-compact-cart {
        flex: 0 0 42px !important;

        width: 42px !important;
        min-width: 42px !important;
        height: 38px !important;

        margin-left: auto !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* One card should not stretch over the whole PDP */
@media (min-width: 1280px) {
    .hb3-association-block .hb3-compact-carousel-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Tablet: two complete cards */
@media (min-width: 768px) and (max-width: 1279px) {
    .hb3-association-block .hb3-compact-carousel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .hb3-association-block .hb2b-product-compact {
        grid-template-columns: 104px minmax(0, 1fr) !important;
    }

    .hb3-association-block .hb2b-product-compact-image {
        width: 104px !important;
        min-width: 104px !important;
        height: 104px !important;
    }
}

/* Phone: full-width B2B card */
@media (max-width: 767px) {
    .hb3-association-block .hb3-compact-carousel-grid {
        grid-template-columns: 1fr !important;
    }

    .hb3-association-block .hb2b-product-compact {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;

        white-space: normal !important;
    }
}

/* ============================================================
   HIPERNET PDP RELATED CARD V1
   Scope: ONLY related / upsell / cross-sell on PDP
   ============================================================ */

.hb3-association-block .hb3-pdp-related-slide {
    min-width: 360px !important;
    width: 360px !important;
    max-width: 360px !important;
    height: auto !important;
}

.hb3-association-block .hb3c-pdp-related-card {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
}

/* Obraz czytelny, bez cropowania */
.hb3-association-block .hb3c-pdp-related-card .hb3c-grid-media {
    height: 190px !important;
}

.hb3-association-block .hb3c-pdp-related-card .hb3c-grid-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* Zwarty carousel PDP */
.hb3-association-block .hb3-compact-carousel {
    margin-top: 6px !important;
}

.hb3-association-block [ref="swiperContainer"] {
    margin-top: 10px !important;
}

/* Telefon */
@media (max-width: 767px) {
    .hb3-association-block .hb3-pdp-related-slide {
        min-width: min(86vw, 340px) !important;
        width: min(86vw, 340px) !important;
        max-width: min(86vw, 340px) !important;
    }

    .hb3-association-block .hb3c-pdp-related-card .hb3c-grid-media {
        height: 170px !important;
    }
}

/* ============================================================
   HIPERNET PDP RELATED CARD V2
   Fully isolated PDP card
   ============================================================ */

/* slide */
.hb3-association-block .hb3-pdp-related-slide {
    flex: 0 0 400px !important;
    width: 400px !important;
    min-width: 400px !important;
    max-width: 400px !important;
    height: auto !important;
}

/* card */
.hb3-association-block .hb3c-pdp-related-card {
    display: flex !important;
    flex-direction: column !important;

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

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

    overflow: hidden !important;

    border: 1px solid #dce4ed !important;
    border-radius: 12px !important;
    background: #fff !important;

    box-shadow: 0 2px 8px rgba(18, 38, 63, .04) !important;
}

/* image */
.hb3-association-block .hb3c-pdp-related-card .hb3c-grid-media {
    display: flex !important;

    width: 100% !important;
    height: 190px !important;
    min-height: 190px !important;

    padding: 14px !important;

    align-items: center !important;
    justify-content: center !important;

    border-bottom: 1px solid #edf1f5 !important;
    background: #fff !important;
}

.hb3-association-block .hb3c-pdp-related-card .hb3c-grid-media > a {
    display: flex !important;

    width: 100% !important;
    height: 100% !important;

    align-items: center !important;
    justify-content: center !important;
}

.hb3-association-block .hb3c-pdp-related-card .hb3c-grid-media img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;
    object-position: center !important;
}

/* body */
.hb3-association-block .hb3c-pdp-related-card .hb3c-grid-body {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;

    width: 100% !important;
    min-width: 0 !important;

    padding: 14px 16px 16px !important;
}

/* name */
.hb3-association-block .hb3c-pdp-related-card .hb3c-product-name {
    display: -webkit-box !important;

    margin: 0 0 7px !important;

    overflow: hidden !important;

    color: #102b52 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;

    text-decoration: none !important;
    white-space: normal !important;

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

/* meta */
.hb3-association-block .hb3c-pdp-related-card .hb3c-meta {
    display: flex !important;
    flex-wrap: wrap !important;

    gap: 4px 12px !important;

    margin-bottom: 10px !important;

    color: #778196 !important;
    font-size: 10px !important;
    line-height: 1.35 !important;

    white-space: normal !important;
}

.hb3-association-block .hb3c-pdp-related-card .hb3c-meta strong {
    color: #344054 !important;
    font-weight: 750 !important;
}

/* stock */
.hb3-association-block .hb3c-pdp-related-card .hb3c-stock {
    display: flex !important;
    align-items: center !important;

    gap: 6px !important;

    margin-bottom: 9px !important;

    color: #475467 !important;
    font-size: 11px !important;
    line-height: 1.3 !important;

    white-space: normal !important;
}

/* logistics */
.hb3-association-block .hb3c-pdp-related-card .hb3c-logistics {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

    gap: 6px !important;

    margin-bottom: 11px !important;
}

.hb3-association-block .hb3c-pdp-related-card .hb3c-logistics > span {
    display: flex !important;
    flex-direction: column !important;

    min-width: 0 !important;

    padding: 7px 8px !important;

    border: 1px solid #edf1f5 !important;
    border-radius: 7px !important;
    background: #f8fafc !important;

    color: #687386 !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
}

.hb3-association-block .hb3c-pdp-related-card .hb3c-logistics strong {
    margin-top: 2px !important;

    color: #102b52 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

/* price */
.hb3-association-block .hb3c-pdp-related-card .hb3c-price-box {
    margin: 0 0 12px !important;
}

.hb3-association-block .hb3c-pdp-related-card .hb3c-price-box > span {
    display: block !important;

    margin-bottom: 2px !important;

    color: #778196 !important;
    font-size: 9px !important;
    font-weight: 750 !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
}

.hb3-association-block .hb3c-pdp-related-card .hb3c-price {
    color: #102b52 !important;
    font-size: 20px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
}

/* sales unit */
.hb3-association-block .hb3c-pdp-related-card .hb3c-unit-selector {
    display: flex !important;

    gap: 6px !important;

    margin-top: auto !important;
    padding-top: 10px !important;

    border-top: 1px solid #edf1f5 !important;
}

.hb3-association-block .hb3c-pdp-related-card .hb3c-unit-selector button {
    min-height: 34px !important;

    padding: 0 13px !important;

    border: 1px solid #d7e0ea !important;
    border-radius: 7px !important;

    background: #fff !important;
    color: #344054 !important;

    font-size: 11px !important;
    font-weight: 750 !important;
}

.hb3-association-block .hb3c-pdp-related-card .hb3c-unit-selector button.is-active {
    border-color: #102b52 !important;
    background: #102b52 !important;
    color: #fff !important;
}

/* buy row */
.hb3-association-block .hb3c-pdp-related-card .hb3c-buy-row {
    display: flex !important;

    width: 100% !important;

    align-items: stretch !important;
    gap: 7px !important;

    margin-top: 10px !important;
}

/* quantity */
.hb3-association-block .hb3c-pdp-related-card .hb3c-qty {
    display: grid !important;
    grid-template-columns: 34px 44px 42px 34px !important;

    min-width: 154px !important;
    height: 40px !important;

    overflow: hidden !important;

    border: 1px solid #dce4ed !important;
    border-radius: 8px !important;
    background: #fff !important;
}

.hb3-association-block .hb3c-pdp-related-card .hb3c-qty button,
.hb3-association-block .hb3c-pdp-related-card .hb3c-qty input,
.hb3-association-block .hb3c-pdp-related-card .hb3c-qty span {
    display: flex !important;

    min-width: 0 !important;
    height: 38px !important;

    align-items: center !important;
    justify-content: center !important;

    border: 0 !important;
    background: transparent !important;

    color: #102b52 !important;
    font-size: 11px !important;
    font-weight: 750 !important;

    text-align: center !important;
}

.hb3-association-block .hb3c-pdp-related-card .hb3c-qty input {
    width: 44px !important;
    outline: none !important;
}

/* cart */
.hb3-association-block .hb3c-pdp-related-card .hb3c-cart-button {
    display: inline-flex !important;
    flex: 1 1 auto !important;

    min-width: 0 !important;
    height: 40px !important;

    padding: 0 14px !important;

    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;

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

    background: #f97316 !important;
    color: #fff !important;

    font-size: 11px !important;
    font-weight: 800 !important;

    white-space: nowrap !important;
}

.hb3-association-block .hb3c-pdp-related-card .hb3c-cart-button:hover:not(:disabled) {
    background: #ea650f !important;
}

/* conversion */
.hb3-association-block .hb3c-pdp-related-card .hb3c-conversion {
    display: block !important;

    margin-top: 7px !important;

    color: #778196 !important;
    font-size: 9px !important;
    line-height: 1.3 !important;

    white-space: normal !important;
}

/* desktop */
@media (min-width: 1280px) {
    .hb3-association-block .hb3-pdp-related-slide {
        flex-basis: 400px !important;
        width: 400px !important;
        min-width: 400px !important;
        max-width: 400px !important;
    }
}

/* tablet */
@media (min-width: 768px) and (max-width: 1279px) {
    .hb3-association-block .hb3-pdp-related-slide {
        flex-basis: 360px !important;
        width: 360px !important;
        min-width: 360px !important;
        max-width: 360px !important;
    }
}

/* phone */
@media (max-width: 767px) {
    .hb3-association-block .hb3-pdp-related-slide {
        flex: 0 0 min(88vw, 350px) !important;

        width: min(88vw, 350px) !important;
        min-width: min(88vw, 350px) !important;
        max-width: min(88vw, 350px) !important;
    }

    .hb3-association-block .hb3c-pdp-related-card .hb3c-grid-media {
        height: 165px !important;
        min-height: 165px !important;
    }

    .hb3-association-block .hb3c-pdp-related-card .hb3c-buy-row {
        flex-wrap: wrap !important;
    }

    .hb3-association-block .hb3c-pdp-related-card .hb3c-cart-button {
        flex-basis: 100% !important;
    }
}

/* ============================================================
   HIPERNET PDP RELATED TRACK FIX V1
   only pdp-related
   ============================================================ */

.hb3-association-block .hb3-pdp-related-track {
    display: flex !important;
    grid-template-columns: none !important;

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

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

    align-items: stretch !important;
    gap: 16px !important;

    overflow-x: auto !important;
    overflow-y: visible !important;

    white-space: normal !important;
    scroll-behavior: smooth;
}

/* direct child - real wrapper */
.hb3-association-block .hb3-pdp-related-track > .hb3-pdp-related-slide {
    display: block !important;

    flex: 0 0 400px !important;

    width: 400px !important;
    min-width: 400px !important;
    max-width: 400px !important;

    height: auto !important;
    min-height: 0 !important;
}

/* card fills its wrapper */
.hb3-association-block
.hb3-pdp-related-track
> .hb3-pdp-related-slide
> .hb3c-pdp-related-card {
    display: flex !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    height: 100% !important;
}

/* section height follows card */
.hb3-association-block .hb3-compact-carousel {
    height: auto !important;
    min-height: 0 !important;
}

@media (max-width: 1279px) {
    .hb3-association-block .hb3-pdp-related-track > .hb3-pdp-related-slide {
        flex-basis: 360px !important;
        width: 360px !important;
        min-width: 360px !important;
        max-width: 360px !important;
    }
}

@media (max-width: 767px) {
    .hb3-association-block .hb3-pdp-related-track {
        gap: 12px !important;
    }

    .hb3-association-block .hb3-pdp-related-track > .hb3-pdp-related-slide {
        flex-basis: min(88vw, 350px) !important;

        width: min(88vw, 350px) !important;
        min-width: min(88vw, 350px) !important;
        max-width: min(88vw, 350px) !important;
    }
}

/* ===== TEMP PDP RELATED DEBUG ===== */
.hb3-pdp-related-slide {
    outline: 5px solid red !important;
    background: rgba(255,0,0,.08) !important;
}

.hb3c-pdp-related-card {
    outline: 5px solid blue !important;
    background: rgba(0,80,255,.06) !important;
}

/* ============================================================
   HIPERNET PDP ASSOCIATIONS LAYOUT V5
   Scope: related / upsell / cross-sell on PDP only
   ============================================================ */

@media (min-width: 1280px) {

    .hb3-association-block [ref="swiperContainer"] {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
        overflow: visible !important;
        white-space: normal !important;
        scroll-behavior: auto !important;
        padding-bottom: 0 !important;
    }

    /* bezpośredni element carouselu */
    .hb3-association-block [ref="swiperContainer"] > * {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        flex: none !important;
    }

    .hb3-association-block .hb2b-product-compact {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;

        grid-template-columns:
            96px
            minmax(150px, 1fr)
            minmax(105px, auto) !important;

        grid-template-areas:
            "image main price"
            "image logistics stock"
            "image saleunit saleunit"
            "buy buy buy";

        align-items: start !important;
        gap: 10px 14px !important;
        padding: 14px !important;

        border: 1px solid #dce4ed !important;
        border-radius: 12px !important;
        background: #fff !important;
    }

    .hb3-association-block .hb2b-product-compact-image {
        grid-area: image;
        width: 96px !important;
        min-width: 96px !important;
        height: 96px !important;
    }

    .hb3-association-block .hb2b-product-compact-main {
        grid-area: main;
        min-width: 0;
    }

    .hb3-association-block .hb2b-product-compact-price-box {
        grid-area: price;
        text-align: right;
    }

    .hb3-association-block .hb2b-product-compact-logistics {
        grid-area: logistics;
    }

    .hb3-association-block .hb2b-product-compact-stock {
        grid-area: stock;
        justify-content: flex-end;
    }

    .hb3-association-block .hb2b-product-card-sale-unit {
        grid-area: saleunit;
    }

    .hb3-association-block .hb2b-product-compact-buy {
        grid-area: buy;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        padding-top: 10px;
        border-top: 1px solid #edf1f5;
    }
}

/* średnie ekrany: jedna pełna karta */
@media (min-width: 768px) and (max-width: 1279px) {

    .hb3-association-block [ref="swiperContainer"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        overflow: visible !important;
        white-space: normal !important;
    }

    .hb3-association-block [ref="swiperContainer"] > * {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        flex: none !important;
    }
}

/* mobile */
@media (max-width: 767px) {

    .hb3-association-block [ref="swiperContainer"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        overflow: visible !important;
        white-space: normal !important;
    }

    .hb3-association-block [ref="swiperContainer"] > * {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        flex: none !important;
    }
}


/* ============================================================
   HIPERNET PDP ASSOCIATIONS LAYOUT V6
   Stable selectors - PDP associations only
   ============================================================ */

.hb3-association-block .hb-products-carousel-track {
    width: 100% !important;
    margin-top: 14px !important;
    padding-bottom: 0 !important;
    white-space: normal !important;
}

/* DESKTOP */
@media (min-width: 1280px) {

    .hb3-association-block .hb-products-carousel-track {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
        overflow: visible !important;
    }

    .hb3-association-block .hb-products-carousel-slide {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        flex: none !important;
    }

    .hb3-association-block .hb2b-product-compact {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;

        grid-template-columns:
            96px
            minmax(170px, 1fr)
            minmax(115px, auto) !important;

        grid-template-areas:
            "image main price"
            "image logistics stock"
            "image saleunit saleunit"
            "buy buy buy" !important;

        gap: 10px 14px !important;
        padding: 14px !important;
        align-items: start !important;
    }

    .hb3-association-block .hb2b-product-compact-image {
        grid-area: image !important;
        width: 96px !important;
        min-width: 96px !important;
        height: 96px !important;
    }

    .hb3-association-block .hb2b-product-compact-main {
        grid-area: main !important;
        min-width: 0 !important;
    }

    .hb3-association-block .hb2b-product-compact-price-box {
        grid-area: price !important;
        text-align: right !important;
    }

    .hb3-association-block .hb2b-product-compact-logistics {
        grid-area: logistics !important;
    }

    .hb3-association-block .hb2b-product-compact-stock {
        grid-area: stock !important;
    }

    .hb3-association-block .hb2b-product-card-sale-unit {
        grid-area: saleunit !important;
    }

    .hb3-association-block .hb2b-product-compact-buy {
        grid-area: buy !important;
        width: 100% !important;
        padding-top: 10px !important;
        border-top: 1px solid #edf1f5 !important;
    }
}

/* TABLET */
@media (min-width: 768px) and (max-width: 1279px) {

    .hb3-association-block .hb-products-carousel-track {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        overflow: visible !important;
    }

    .hb3-association-block .hb-products-carousel-slide {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        flex: none !important;
    }
}

/* MOBILE */
@media (max-width: 767px) {

    .hb3-association-block .hb-products-carousel-track {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        overflow: visible !important;
    }

    .hb3-association-block .hb-products-carousel-slide {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        flex: none !important;
    }
}


/* ============================================================
   HIPERNET PDP ASSOCIATIONS V7
   short description left / purchase card right
   ============================================================ */

.hb3-association-block .hb-products-carousel-track {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    overflow: visible !important;
    white-space: normal !important;
}

.hb3-association-block .hb-pdp-association-row {
    display: grid !important;
    grid-template-columns: minmax(260px, .8fr) minmax(520px, 1.2fr) !important;
    gap: 22px !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    padding: 0 !important;
    align-items: stretch !important;
}

.hb3-association-block .hb-pdp-association-copy {
    display: flex;
    flex-direction: column;

    min-width: 0;
    padding: 20px 22px;

    border: 1px solid #e1e7ee;
    border-radius: 12px;
    background: #f8fafc;
}

.hb3-association-block .hb-pdp-association-copy-label {
    margin-bottom: 10px;

    color: #ea650f;
    font-size: 10px;
    font-weight: 850;

    text-transform: uppercase;
    letter-spacing: .07em;
}

.hb3-association-block .hb-pdp-association-short {
    color: #334155;
    font-size: 14px;
    line-height: 1.55;
}

.hb3-association-block .hb-pdp-association-short p {
    margin: 0 0 8px;
}

.hb3-association-block .hb-pdp-association-short p:last-child {
    margin-bottom: 0;
}

.hb3-association-block .hb-pdp-association-short.is-empty {
    color: #778196;
}

.hb3-association-block .hb-pdp-association-link {
    display: inline-flex;

    width: max-content;
    margin-top: auto;
    padding-top: 18px;

    color: #102b52;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.hb3-association-block .hb-pdp-association-link:hover {
    color: #ea650f;
}

.hb3-association-block .hb-pdp-association-card {
    min-width: 0;
}

.hb3-association-block .hb-pdp-association-card .hb2b-product-compact {
    width: 100% !important;
    height: 100% !important;
}

/* tablet */
@media (max-width: 1279px) {
    .hb3-association-block .hb-pdp-association-row {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* phone */
@media (max-width: 767px) {
    .hb3-association-block .hb-pdp-association-copy {
        padding: 14px;
    }

    .hb3-association-block .hb-pdp-association-short {
        font-size: 13px;
    }
}

