.product-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.product-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
    gap: 48px;
    align-items: start;
    margin-bottom: 64px;
}

.single_add_to_cart_button {
    font-size: 14px !important;
}

.product-left,
.product-right,
.section-left,
.section-right {
    width: 100%;
    min-width: 0;
}

.product-gallery-box .woocommerce-product-gallery {
    margin-bottom: 0 !important;
    position: relative;
}

.product-gallery-box .woocommerce-product-gallery__wrapper {
    border-radius: 12px;
    overflow: hidden;
}

.product-gallery-box .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.product-gallery-box .flex-control-thumbs {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 16px !important;
    margin-left:0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.product-gallery-box .flex-control-thumbs li {
    margin: 0 !important;
    float: none !important;
    width: 100% !important;
}

.product-gallery-box .flex-control-thumbs img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #d8deea;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    opacity: 1 !important;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-gallery-box .flex-control-thumbs img:hover,
.product-gallery-box .flex-control-thumbs .flex-active {
    border-color: #223c66;
    transform: translateY(-1px);
}

.product-right h1 {
    font-size: 44px;
    line-height: 1.02;
    margin: 0 0 18px;
    font-weight: 700;
    color: #223c66;
}

.product-right .price,
.price {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #223c66;
}

.product-benefits,
.short-desc {
    margin-bottom: 26px;
    font-size: 18px;
    line-height: 1.7;
    color: #23395d;
    padding: 16px;
    border: 1px solid #223c66;
    border-radius: 18px;
    background-color: #fff;
}

.product-benefits ul,
.product-benefits p,
.short-desc ul,
.short-desc p {
    margin: 0 0 10px 20px;
}

.product-benefits li,
.short-desc li {
    margin-bottom: 10px;
}


.add-to-cart-box .variations {
    margin-bottom: 20px !important;
    border: 0 !important;
}

.add-to-cart-box .variations td,
.add-to-cart-box .variations th {
    padding: 0 0 12px !important;
    border: 0 !important;
}

.add-to-cart-box .woocommerce-variation-price {
    margin: 14px 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f1d3a;
}

.add-to-cart-box .single_variation_wrap {
    margin-top: 8px;
}

.add-to-cart-box .quantity {
    margin-right: 14px !important;
}

.add-to-cart-box .single_add_to_cart_button {
    min-height: 52px;
    padding: 0 28px !important;
    border-radius: 12px !important;
    background: #223c66 !important;
    border: 1px solid #223c66 !important;
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    text-transform: none !important;
}

.add-to-cart-box .single_add_to_cart_button:hover {
    background: #1a2f52 !important;
    border-color: #1a2f52 !important;
}

.product-section {
    max-width: 1280px;
    margin: 0 auto 72px;
    padding: 0 20px;
}

.product-section h2 {
    font-size: 36px;
    line-height: 1.1;
    margin: 0 0 24px;
    font-weight: 700;
}


.product-disclaimer {
    margin: 0 auto 90px;
    padding: 20px 0;
    border-top: 1px solid #cfd5df;
}

.product-disclaimer h3{
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 26px;
}


.product-disclaimer p {
    margin: 0 0 16px;
    line-height: 1.85;
    font-size: 16px;
    color: #223c66;
}

.product-disclaimer p:last-child {
    margin-bottom: 0;
}

.product-accordion-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-accordion,
.faq-item {
    border: 1px solid #d9d9d9;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.accordion-toggle,
.faq-question {
    width: 100%;
    border: 0;
    background: #fff;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.accordion-content,
.faq-answer {
    display: none;
    padding: 24px 24px 0 24px;
}

.content-accordion.active .accordion-content,
.faq-item.active .faq-answer {
    display: block;
}

.accordion-actions {
    margin-bottom: 16px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #223c66;
    color: #223c66;
    text-decoration: none;
    font-weight: 600;
}

.download-btn:hover {
    background: #223c66;
    color: #fff;
}

.accordion-text,
.faq-answer {
    line-height: 1.85;
    font-size: 15px;
}

.accordion-icon,
.faq-icon {
    font-size: 20px;
    line-height: 1;
    margin-left: 12px;
}

.faq-list {
    padding: 30px 0 0;
}

.related-products-custom .products {
    margin-top: 24px;
}

.related-products-custom .products li.product {
    text-align: center;
    border: 1px solid #d9d9d9;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
}

.related-products-custom .products li.product img {
    border-radius: 12px;
}

@media (max-width: 991px) {
    .product-top,
    .section-inner {
        grid-template-columns: 1fr;
    }

    .product-right h1 {
        font-size: 40px;
    }

    .product-section h2 {
        font-size: 30px;
    }

    .cert-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-gallery-box .flex-control-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 575px) {
    .product-right h1 {
        font-size: 32px;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

    .product-gallery-box {
        padding: 14px;
    }

    .product-gallery-box .flex-control-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }

    .add-to-cart-box {
        padding: 16px;
    }
}

/* =========================
   CUSTOM GALERIA PRODUKTU
========================= */

.product-gallery-box .woocommerce-product-gallery__wrapper {
    position: relative;
}

.product-gallery-box .woocommerce-product-gallery__trigger {
    display: none !important;
}

.product-gallery-box .flex-control-thumbs img {
    cursor: pointer;
}

.product-gallery-box .flex-control-thumbs img.is-active-thumb {
    border-color: #223c66 !important;
    transform: translateY(-1px);
}

.custom-gallery-arrow:hover {
    background: #223c66;
}

.custom-gallery-arrow:hover span {
    border-color: #fff;
}

.custom-gallery-prev {
    left: 16px;
}

.custom-gallery-next {
    right: 16px;
}

.custom-gallery-arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border: solid #223c66;
    border-width: 0 2px 2px 0;
}

.custom-gallery-prev span {
    transform: rotate(135deg);
}

.custom-gallery-next span {
    transform: rotate(-45deg);
}

.custom-gallery-arrow {
    display: flex !important;
}

/* =========================
   LIGHTBOX
========================= */

.custom-product-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 22, 38, 0.92);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.custom-product-lightbox.is-open {
    display: flex;
}

.custom-product-lightbox-inner {
    max-width: min(1100px, 90vw);
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-product-lightbox-inner img {
    max-width: 100%;
    max-height: 85vh;
    display: block;
    border-radius: 12px;
    background: #fff;
}

.custom-product-lightbox-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.custom-product-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-product-lightbox-prev {
    left: 24px;
}

.custom-product-lightbox-next {
    right: 24px;
}

.custom-product-lightbox-arrow span {
    display: block;
    width: 14px;
    height: 14px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.custom-product-lightbox-prev span {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.custom-product-lightbox-next span {
    transform: rotate(45deg);
    margin-right: 4px;
}

body.product-lightbox-open {
    overflow: hidden;
}

@media (max-width: 575px) {
    .custom-gallery-arrow {
        width: 40px;
        height: 40px;
    }

    .custom-gallery-prev {
        left: 10px;
    }

    .custom-gallery-next {
        right: 10px;
    }

    .custom-product-lightbox {
        padding: 20px;
    }

    .custom-product-lightbox-prev {
        left: 10px;
    }

    .custom-product-lightbox-next {
        right: 10px;
    }

    .custom-product-lightbox-close {
        top: 10px;
        right: 10px;
    }
}

.product-gallery-box {
    position: relative !important;
}

.custom-gallery-prev,
.custom-gallery-next {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.custom-gallery-arrow {
    position: absolute !important;
    top: 45% !important;
    transform: translateY(-50%) !important;
    z-index: 999 !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 999px !important;
    border: 1px solid #d8deea !important;
    background: rgba(255,255,255,0.95) !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08) !important;
    padding: 10px;
}

.custom-gallery-prev {
    left: 16px !important;
}

.custom-gallery-next {
    right: 16px !important;
}

.custom-gallery-arrow span {
    display: block !important;
    width: 10px !important;
    height: 10px !important;
    border: solid #223c66 !important;
    border-width: 0 2px 2px 0 !important;
}

.custom-gallery-prev span {
    transform: rotate(135deg) !important;
}

.custom-gallery-next span {
    transform: rotate(-45deg) !important;
}


/* =========================
   CERTYFIKACJA - WERSJA Z MAKiety
========================= */

.product-certificates {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 90px;
}

.cert-header-band {
    background: #223c66;
    padding: 18px 20px;

    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 26px;

    /* 🔥 to jest klucz */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.cert-header-title {
    min-width: 320px;
    max-width: 620px;
    width: 100%;
    text-align: center;
    border: 2px solid rgba(255,255,255,0.9);
    border-radius: 18px;
    color: #fff;
    padding: 16px 28px;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 500;
    text-transform: uppercase;
}

.cert-copy {
    max-width: 1180px;
    margin: 0 auto 24px;
    padding: 0 20px;
    font-size: 17px;
    line-height: 1.8;
    color: #223c66;
}

.cert-copy p {
    margin: 0 0 16px;
}

.cert-grid-flat {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, max-content));
    justify-content: center;
    gap: 0;
    border-top: 1px solid #d7dbe5;
    border-bottom: 1px solid #d7dbe5;
    background: #f5f6fa;
}

.cert-box-flat {
    min-height: 96px;
    border: 0;
    border-right: 1px solid #d7dbe5;
    border-radius: 0;
    background: transparent;
    color: #223c66;
    font-weight: 700;
    font-size: 17px;
    padding: 20px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.cert-box-flat:last-child {
    border-right: 0;
}

.cert-box-flat:hover {
    background: #e9edf5;
    color: #223c66;
    transform: none;
}

.product-characteristics .section-inner {
    display: grid;
    grid-template-columns: 1fr 420px; /* 🔥 kontrola szerokości obrazka */
    gap: 48px;
    align-items: start;
}

/* charakterystyka trochę bardziej techniczna */
.product-characteristics {
    max-width: 1180px;
    margin: 0 auto 90px;
    padding: 0 20px;
    border-top: 1px solid #cfd5df;
    padding-top: 36px;
}

.product-characteristics h2 {
    font-size: 26px;
    line-height: 1.1;
    font-weight: 700;
    color: #111;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.characteristics-list li {
    color: #111;
    font-size: 17px;
    line-height: 1.85;
}

.characteristics-list li strong {
    color: #111;
    font-weight: 700;
}

.section-right img {
    border-radius: 0;
    border: 1px solid #7e7e7e;
    padding: 0;
    background: #fff;
    max-width: 540px;
}
.product-characteristics .section-right {
    width: 100%;
}

.product-characteristics .section-right img {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
}

/* responsywność */
@media (max-width: 991px) {
    .cert-header-title {
        min-width: 0;
        font-size: 24px;
        padding: 14px 20px;
    }

    .cert-grid-flat {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1px;
        background: #d7dbe5;
    }

    .cert-box-flat {
        background: #f5f6fa;
        border-right: 0;
        min-height: 84px;
    }

    .product-characteristics {
        padding-top: 28px;
    }
}

@media (max-width: 575px) {
    .cert-header-band {
        padding: 14px 12px;
    }

    .cert-header-title {
        font-size: 20px;
        border-radius: 14px;
        padding: 12px 16px;
    }

    .cert-grid-flat {
        grid-template-columns: 1fr;
    }

    .product-characteristics h2 {
        font-size: 22px;
    }

    .characteristics-list li {
        font-size: 15px;
    }
}

/* =========================
   POJEDYNCZE SEKCJE DOKUMENTACJI
========================= */

.doc-single-section {
    max-width: 1180px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.doc-single-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 0 18px;
}

.doc-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: #223c66;
    text-decoration: underline;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 8px 12px;
}

.doc-single-box {
    border: 2px solid #223c66;
    border-radius: 18px;
    background: #fff;
    padding: 24px 24px 18px;
}

.doc-single-content {
    color: #223c66;
    font-size: 16px;
    line-height: 1.8;
}

.doc-single-content p {
    margin: 0 0 16px;
}

.doc-single-content ul {
    margin: 0 0 18px 0;
    padding-left: 22px;
}

.doc-single-content li {
    margin-bottom: 6px;
}

@media (max-width: 575px) {
    .doc-single-actions {
        padding: 14px 0;
    }

    .doc-download-btn {
        font-size: 16px;
    }

    .doc-single-box {
        padding: 18px 16px 14px;
        border-radius: 14px;
    }

    .doc-single-content {
        font-size: 14px;
    }
}

/* =========================
   SEKCJA TEKSTOWA - DANE PENA
========================= */

.doc-text-section {
    max-width: 1180px;
    margin: 0 auto 70px;
    padding: 0 20px;
}

.doc-text-topline {
    width: 100%;
    height: 1px;
    background: #8f8f8f;
    margin-bottom: 26px;
}

.doc-text-title {
    margin: 0 0 28px;
    text-align: center;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
    text-transform: uppercase;
    color: #111;
}

.doc-text-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.doc-text-content {
    max-width: 1060px;
    margin: 0 auto;
    color: #111;
    font-size: 17px;
    line-height: 1.7;
}

.doc-text-content p {
    margin: 0 0 22px;
}

.doc-text-content ul {
    margin: 0 0 18px;
    padding-left: 24px;
}

.doc-text-content li {
    margin-bottom: 6px;
}

@media (max-width: 991px) {
    .doc-text-title {
        font-size: 24px;
    }

    .doc-text-content {
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .doc-text-section {
        margin-bottom: 50px;
    }

    .doc-text-topline {
        margin-bottom: 18px;
    }

    .doc-text-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .doc-text-content {
        font-size: 14px;
        line-height: 1.65;
    }
}

/* =========================
   DAWKOWANIE / PROCEDURA LABORATORYJNA
========================= */

.doc-dose-section {
    max-width: 1180px;
    margin: 0 auto 70px;
    padding: 0 20px;
}

.doc-dose-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding: 18px 0 22px;
}

.doc-dose-toggle-btn,
.doc-dose-actions .doc-download-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: #223c66;
    text-decoration: underline;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 10px 16px;
    cursor: pointer;
}

.doc-dose-toggle-btn.is-active {
    background: #d7dbe5;
    text-decoration: none;
}

.doc-dose-box {
    display: none;
    border: 2px solid #223c66;
    border-radius: 18px;
    background: #fff;
    padding: 26px 28px 20px;
}

.doc-dose-box.is-open {
    display: block;
}

.doc-dose-content {
    color: #223c66;
    font-size: 16px;
    line-height: 1.8;
}

.doc-dose-content p {
    margin: 0 0 18px;
}

.doc-dose-content strong {
    font-weight: 700;
}

.doc-dose-content ul {
    margin: 0 0 18px;
    padding-left: 22px;
}

.doc-dose-content li {
    margin-bottom: 6px;
}

@media (max-width: 991px) {
    .doc-dose-actions {
        gap: 16px;
    }
}

@media (max-width: 575px) {
    .doc-dose-actions {
        padding: 14px 0 18px;
        gap: 10px;
    }

    .doc-dose-toggle-btn,
    .doc-dose-actions .doc-download-btn {
        font-size: 16px;
        padding: 8px 10px;
    }

    .doc-dose-box {
        padding: 18px 16px 14px;
        border-radius: 14px;
    }

    .doc-dose-content {
        font-size: 14px;
        line-height: 1.7;
    }
}

.characteristics-image-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.characteristics-image-link img {
    display: block;
}

.characteristics-image-link::after {
    content: "🔍";
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.characteristics-image-link:hover::after {
    opacity: 1;
    transform: scale(1.04);
}

li span.current {
    color: #fff !important;
}