.sidebar-header__discount,
.sidebar-header__price { font-size: 1.5rem; }
.amount bdi { white-space: nowrap; }
.product-box-small__price del { color: #202020; }

.gallery-columns-3 { display: flex; flex-direction: row; flex-wrap: wrap; width: 100%; gap: 15px; }
.gallery-columns-3 figure { flex: 30%; margin-bottom: 15px; }
.gallery-columns-3 figure img { width: 100%; height: auto; }

.js-omnibus-price { font-weight: bold; color: #1f1f1f; }

.trustbadge { background: url(../img/tb-custom.png) no-repeat 0 0; padding-left: 100px; display: flex; align-items: center; font-size: 12px; margin-bottom: 4rem; min-height: 81px; }
.trustbadge p { margin: 0; }

.sidebar-info { padding-bottom: 2rem; }

.content { position: relative; }
.content-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); display: none; }
.menu-overlay .content-overlay { display: block; }
.navbar { background: #FFF; z-index: 100; }

.promo-bar { background: #b0262a; padding: 10px; color: #FFF; text-align: center; font-weight: bold; }
.promo-bar a { color: #fff; }
.promo-bar .countdown small { margin: 0 4px 0 0; text-transform: uppercase; font-weight: normal; font-size: 0.7em; }

.promo-code { border: 1px solid #AAA; padding: 0.4rem; max-width: 260px; margin: 0 auto; }
.copy-button { width: 1rem; height: 1rem; display: inline-block; background-positon: 50% 50%; background-repeat: no-repeat; background-size: contain; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-clipboard' viewBox='0 0 16 16'%3E%3Cpath d='M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1v-1z'/%3E%3Cpath d='M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h3zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3z'/%3E%3C/svg%3E"); }

.margins-sm p { margin-bottom: 1rem; }

body, .body-s, .body-m, .trends-box__col-text p, .text-image p, .section-text p { color: #111; }

.section-product-desc .product-desc h2 { font-size: 1.8rem; }
.section-product-desc { padding-bottom: 4rem; }
.section-product-desc p { color: #111; }

/* Opis na mobile bez dolnej krawędzi */
.section-product-desc.mobile { border-bottom: none; }

/* Padding-top opisu tylko na desktopie */
@media (min-width: 992px) {
    .section-product-desc { padding-top: 2rem; }
}

/* Kompensacja scrolla do anchorów pod stałe menu (wysokość headera 84px) */
html { scroll-padding-top: 84px; }
html:has(#wpadminbar) { scroll-padding-top: 116px; }
@media (max-width: 782px) { html:has(#wpadminbar) { scroll-padding-top: 130px; } }

/* Sekcja "Podobne produkty" bez dolnej krawędzi */
.section-product-similar { border-bottom: none; }

/* Większy odstęp góry nagłówka "Pełna specyfikacja" na mobile (równe odstępy góra/dół) */
@media (max-width: 991.98px) {
    .section-product-additional-info h3 { margin-top: 1rem; }
}
.footer-menu__link { color: #DDD; } 

@media (max-width: 991.98px) {
	.section-product-desc .product-desc h2 { font-size: 1.5rem; }
}

.wp-post-image { max-width: 100%; height: auto; }

.section-static-slider { display: flex; }
.section-static-slider > a { flex: 0 0 50%; overflow: hidden; }
.section-static-slider img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.section-static-slider > a:hover img { transform: scale(1.02); }

.choice-box__bigtitle { font-size: 1.6rem; }

@media screen and (max-width: 640px) {
	.section-static-slider { display: block; }
}

.content-overlay { z-index: 99; }

.product-box__title { margin-bottom: 0; }

@media (max-width: 991.98px) {
	.navbar .nav-item.has-submenu .dropdown-menu.show, .navbar .nav-item.has-submenu .dropdown-menu.show-mobile {
		position: fixed !important;
	}
}

.table-basket tbody tr { gap: 10px; justify-content: space-between; }

/* Zapobieganie poziomemu scrollowi na mobile */
@media (max-width: 991.98px) {
    body { overflow-x: hidden; }
    .product-desc { overflow-x: hidden; }
    .product-desc img,
    .product-desc table,
    .product-desc iframe,
    .product-desc video { max-width: 100% !important; }
}

/* Galeria miniaturek produktu (Splide) rozjeżdżała się poza ekran przy wielu zdjęciach — nadpisanie starego overflow:visible */
.gallery-thumbs__track { overflow: hidden !important; }

/* Mobile — opis produktu z rozwijaniem */
.mob-desc-body.collapsed { max-height: 7.5rem; overflow: hidden; position: relative; }
.mob-desc-body.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1.25rem;
    background: linear-gradient(to bottom, transparent, #fff);
}
.mob-desc-btn {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: none;
    border: none;
    padding: .5rem 0 0;
    font-size: .8125rem;
    font-weight: 500;
    color: #b0262a;
    cursor: pointer;
}
.mob-desc-btn::after {
    content: '';
    display: inline-block;
    width: 10px; height: 10px;
    border-right: 1.5px solid #b0262a;
    border-bottom: 1.5px solid #b0262a;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s;
}
.mob-desc-btn[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
.mob-desc-btn__close { display: none; }
.mob-desc-btn[aria-expanded="true"] .mob-desc-btn__open { display: none; }
.mob-desc-btn[aria-expanded="true"] .mob-desc-btn__close { display: inline; }

/* Whitespace nad danymi technicznymi */
.section-product-tabs { margin-top: 2rem; padding-bottom: 1.5rem !important; }

/* "Zobacz pozostałe parametry" — przycisk w ramce */
.section-product-data .btn-data-more,
.btn-data-more {
    display: inline-block;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: .55rem 1.4rem;
    border: 1px solid #1f1f1f;
    border-radius: 2px;
    font-size: .8125rem;
    font-weight: 500;
    color: #1f1f1f;
    text-decoration: none !important;
    letter-spacing: .02em;
    transition: border-color .15s, color .15s, background .15s;
}
.section-product-data .btn-data-more:hover,
.btn-data-more:hover {
    border-color: #b0262a;
    color: #b0262a;
    text-decoration: none !important;
}

/* Informacje dodatkowe — jedna struktura, accordion mobile / taby desktop */

/* Mobile: accordion */
.ai-widget { border-top: 1px solid #e0e0e0; }
.ai-group  { border-bottom: 1px solid #e0e0e0; }
.ai-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .9rem 0 .9rem 1rem;
    cursor: pointer;
    color: #1f1f1f;
    font-size: .8125rem;
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1.4;
    position: relative;
    user-select: none;
    transition: color .15s;
}
.ai-hd::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 2px; height: 1rem;
    background: #b0262a;
    transition: transform .18s ease;
}
.ai-hd.active::before { transform: translateY(-50%) scaleY(1); }
.ai-hd:hover { color: #787c7d; }
.ai-chevron {
    flex-shrink: 0;
    width: 14px; height: 14px;
    margin-left: 1rem;
    color: #787c7d;
    transition: transform .2s ease, color .15s;
    overflow: visible;
}
.ai-hd.active .ai-chevron { transform: rotate(180deg); color: #b0262a; }
.ai-panel { display: none; padding-bottom: .75rem; }
.ai-panel.active { display: block; }
.acc-supplier-text { font-size: .8125rem; color: #787c7d; line-height: 1.6; padding: .5rem 0; }

/* Desktop: taby (JS buduje .ai-tabs-row z nagłówków accordion) */
@media (min-width: 992px) {
    .ai-widget { border-top: none; }
    .ai-group  { border-bottom: none; }
    .ai-hd     { display: none; }   /* ukryte — JS buduje tab nav */
    .ai-tabs-row {
        display: flex;
        flex-wrap: wrap;
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: .5rem;
    }
    .ai-tab-btn {
        padding: .6rem 1.25rem;
        cursor: pointer;
        font-size: .8125rem;
        font-weight: 500;
        color: #787c7d;
        border-bottom: 2px solid transparent;
        margin-bottom: -1px;
        white-space: nowrap;
        transition: color .15s, border-color .15s;
        user-select: none;
    }
    .ai-tab-btn:hover  { color: #1f1f1f; }
    .ai-tab-btn.active { color: #1f1f1f; border-bottom-color: #b0262a; }
    .ai-panel { display: none; padding: 25px 0 .5rem; }
    .ai-panel.active { display: block; }
}

@media (max-width: 600px) {
    .wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__media {
        max-width: 130px;
        margin: 0 auto 1rem;
    }
    .wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__media img {
        width: 100%;
        height: auto;
    }
}

.img-collage:has(> .img-collage__wrap:only-child) {
    height: auto;
    max-height: none;
}
.img-collage:has(> .img-collage__wrap:only-child) .img-collage__wrap {
    max-width: 9.375rem;
}


.similar-splide:not(.is-active) {
    height: auto;
    max-height: none;
    background-color: transparent;
}
.similar-splide:not(.is-active) .splide__track,
.similar-splide:not(.is-active) .splide__list {
    height: auto;
}
.similar-splide:not(.is-active) .splide__list {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    width: auto !important;
}
.similar-splide:not(.is-active) .splide__slide {
    flex-shrink: 0;
    width: calc((100% - 7.5rem) / 6);
    margin-right: 1.5rem;
}
@media (max-width: 991px) {
    .similar-splide:not(.is-active) .splide__slide { width: calc((100% - 3rem) / 3); }
}
@media (max-width: 575px) {
    .similar-splide:not(.is-active) .splide__slide { width: calc((100% - 1rem) / 2); margin-right: 1rem; }
}

/* Kontakt (mobile) — pojedynczy obrazek w kolażu nie może nachodzić na tytuł */
.img-collage:has(> .img-collage__wrap:only-child) .img-collage__wrap {
    position: static;
    left: auto;
    right: auto;
    border: 0;
}
.img-collage:has(> .img-collage__wrap:only-child) .img-collage__img {
    display: block;
    max-width: 100%;
    height: auto;
}
@media (max-width: 991px) {
    .section-architect-top .img-collage:has(> .img-collage__wrap:only-child) {
        margin-bottom: 1.5rem;
    }
}

/* Treści stron (np. zwroty) — mniejsze odstępy na mobile; max-height wygrywa z inline height */
@media (max-width: 767px) {
    .body-s .wp-block-spacer { max-height: 1.5rem; }
    .body-s .wp-block-image.alignfull { margin-bottom: 1rem; }
}

/* Wybór koloru (mobile) — odstęp od przycisku/komunikatu poniżej, większy obszar kliknięcia */
@media (max-width: 575.98px) {
    .sidebar-tools__colors-wrap { margin-bottom: 1.5rem; align-items: center; flex-wrap: wrap; }
    .sidebar-tools__colors-wrap .colors-radio { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
    .sidebar-tools__colors-wrap .colors-radio__item { margin-right: 0 !important; height: 1.5rem; width: 1.5rem; }
}

/* Kolor "wielokolorowy" — gradient zamiast jednego koloru */
[data-color="#fa01fa"] .checkmark:after,
[data-color="#fa01fa"] span.single-color {
    background: conic-gradient(#e53935, #fdd835, #43a047, #1e88e5, #8e24aa, #e53935) !important;
}

@media (max-width: 991.98px) {
    .section-architect-top .c-text h2 { margin-bottom: 1.25rem; }
    .section-architect-top .back-btn { margin-bottom: .5rem; }
}
