/* Flex layout — sekcje obok siebie gdy width < 100% */
/* display:flex!important potrzebne bo motyw ma #product .product-container>div{display:block} o wyższej specyficzności
   width:100% potrzebne żeby percent flex-basis dzieci (50%) miał definite parent size (bez tego circular dependency → 0px) */
.ds-acf-sections{display:flex!important;flex-wrap:wrap!important;flex-direction:row!important;align-items:flex-start;width:100%}
.ds-acf-section{box-sizing:border-box;flex:0 0 100%;width:100%;min-width:0;background-color:#fff}
@media(max-width:767px){.ds-acf-section{flex:0 0 100%!important;width:100%!important}}

/* 1.0.9: odstęp sekcji (ustawienie „Odstęp sekcji”) jest jeden: nad pierwszą, między sekcjami i pod ostatnią. Do 1.0.8 każda sekcja
   miała go jako padding góra/dół, więc między dwiema sekcjami wychodził podwójny. Sekcja z kolorem tła ma go też wewnątrz. */
.ds-acf-sections{--ds-acf-gap:var(--ds-acf-m,40px);row-gap:var(--ds-acf-gap);padding-top:var(--ds-acf-gap);padding-bottom:var(--ds-acf-gap)}
@media(max-width:991px){.ds-acf-sections{--ds-acf-gap:var(--ds-acf-m-t,28px)}}
@media(max-width:767px){.ds-acf-sections{--ds-acf-gap:var(--ds-acf-m-m,20px)}}
.ds-acf-section--bg{padding-top:var(--ds-acf-gap);padding-bottom:var(--ds-acf-gap)}

/* Tło sekcji — pełna szerokość przez ::before wyłamujące się z kontenera motywu */
.ds-acf-section{position:relative;isolation:isolate}
/* Cień zamiast szerokości 100vw: 100vw liczy też pasek przewijania i robił poziome przewijanie strony (ADD-10). */
.ds-acf-section::before{content:'';position:absolute;top:0;bottom:0;left:0;right:0;background-color:var(--ds-bg);box-shadow:0 0 0 100vmax var(--ds-bg,transparent);clip-path:inset(0 -100vmax);z-index:-1;pointer-events:none}
/* Sekcje węższe niż 100% — tło zostaje w obrębie sekcji, nie wybija na całą stronę */
.ds-acf-section--partial::before{box-shadow:none;clip-path:none}

/* Benefits */
.ds-acf-benefit-icon{max-width:64px !important;}
.ds-acf-section--benefits_3icons[data-ds-heading] h4{color:var(--ds-heading)}
.ds-acf-section--benefits_3icons[data-ds-text] .ds-acf-benefit__desc{color:var(--ds-text)}

/* Steps */
.ds-acf-step-icon-wrap{position:relative;display:inline-block;margin-bottom:8px}
.ds-acf-step-number{position:absolute;top:-6px;right:-10px;background:#333;color:#fff;width:24px;height:24px;border-radius:50%;font-size:13px;font-weight:700;line-height:24px;text-align:center}
.ds-acf-step-icon{max-width:48px}
.ds-acf-section--steps[data-ds-num] .ds-acf-step-number{background-color:var(--ds-num)}
.ds-acf-section--steps[data-ds-heading] .ds-acf-step__title{color:var(--ds-heading)}
.ds-acf-section--steps[data-ds-text] .ds-acf-step__desc{color:var(--ds-text)}

/* Google maps */
.ds-acf-map-iframe{border:0;display:block}

/* FAQ */
.ds-acf-faq-header{cursor:pointer}
.ds-acf-section--faq_accordion[data-ds-header-bg] .ds-acf-faq-header{background-color:var(--ds-header-bg)}
.ds-acf-section--faq_accordion[data-ds-header-text] .ds-acf-faq-header{color:var(--ds-header-text)}

/* Table */
.ds-acf-tbl-data{display:none}
.ds-acf-section--table[data-ds-header-bg] .ds-acf-tbl thead th{background-color:var(--ds-header-bg)}
.ds-acf-section--table[data-ds-header-text] .ds-acf-tbl thead th{color:var(--ds-header-text)}
.ds-acf-section--table[data-ds-text] .ds-acf-tbl td{color:var(--ds-text)}

/* Video */
.ds-acf-video-wrap{width:var(--ds-acf-video-w,100%);margin:0 auto}
.ds-acf-video--left{margin-left:0}
.ds-acf-video--right{margin-right:0}
@media(max-width:767px){.ds-acf-video-wrap{width:100%!important;margin:0}}

/* Nagłówek + tekst */
.ds-acf-section--heading_text[data-ds-heading] h2,.ds-acf-section--heading_text[data-ds-heading] h4{color:var(--ds-heading)}
.ds-acf-section--heading_text[data-ds-text] .ds-acf-text{color:var(--ds-text)}
.ds-acf-section--heading_text[data-ds-btn-bg] .btn-border{background-color:var(--ds-btn-bg);border-color:var(--ds-btn-bg)}
.ds-acf-section--heading_text[data-ds-btn-text] .btn-border{color:var(--ds-btn-text)}

/* Full-width banner */
.ds-acf-banner{background-size:cover;background-position:center}
.ds-acf-section--full_width_banner[data-ds-text] h2,.ds-acf-section--full_width_banner[data-ds-text] p.lead{color:var(--ds-text)}
.ds-acf-section--full_width_banner[data-ds-btn-bg] .btn-primary{background-color:var(--ds-btn-bg);border-color:var(--ds-btn-bg)}
.ds-acf-section--full_width_banner[data-ds-btn-text] .btn-primary{color:var(--ds-btn-text)}

/* Text + image 50/50 */
.ds-acf-section--text_image_50_50[data-ds-heading] h3,.ds-acf-section--text_image_50_50[data-ds-heading] h4{color:var(--ds-heading)}
.ds-acf-section--text_image_50_50[data-ds-btn-bg] .btn-border{background-color:var(--ds-btn-bg);border-color:var(--ds-btn-bg)}
.ds-acf-section--text_image_50_50[data-ds-btn-text] .btn-border{color:var(--ds-btn-text)}

/* Text 2 columns */
.ds-acf-section--text_2col[data-ds-heading] h3{color:var(--ds-heading)}

/* Quote */
.ds-acf-section--quote[data-ds-text] .ds-acf-quote__text{color:var(--ds-text)}
.ds-acf-section--quote[data-ds-author] .ds-acf-quote__author{color:var(--ds-author)}

/* Karuzele (produkty, zdjęcia): pas przewijany poziomo + strzałki z ds_acf.js, bez slicka */
.ds-acf-carousel{position:relative}
.ds-acf-track,.ds-acf-gallery{--c:var(--cols,4);--gap:16px;display:flex;flex-wrap:nowrap;gap:var(--gap);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin:0;padding:0}
.ds-acf-gallery{--c:var(--cols,3)}
.ds-acf-track::-webkit-scrollbar,.ds-acf-gallery::-webkit-scrollbar{display:none}
.ds-acf-track>*,.ds-acf-gallery>*{flex:0 0 calc((100% - (var(--c) - 1) * var(--gap)) / var(--c));min-width:0;max-width:none;scroll-snap-align:start;box-sizing:border-box}
@media(max-width:991.98px){.ds-acf-track,.ds-acf-gallery{--c:min(var(--cols,4),3)}}
@media(max-width:767.98px){.ds-acf-track,.ds-acf-gallery{--c:min(var(--cols,4),2)}}
@media(max-width:479.98px){.ds-acf-track,.ds-acf-gallery{--c:min(var(--cols,4),1.4)}}
.ds-acf-carousel__btn{position:absolute;top:50%;z-index:2;display:flex;align-items:center;justify-content:center;width:40px;height:40px;margin-top:-20px;padding:0;border:1px solid rgba(0,0,0,.15);border-radius:50%;background:#fff;color:#222;box-shadow:0 2px 6px rgba(0,0,0,.12);cursor:pointer}
.ds-acf-carousel__btn--prev{left:-12px}
.ds-acf-carousel__btn--next{right:-12px}
.ds-acf-carousel__btn--next svg{transform:rotate(180deg)}
.ds-acf-carousel__btn[hidden]{display:none}
.ds-acf-carousel__btn:disabled{opacity:.35;cursor:default}
@media(max-width:767.98px){.ds-acf-carousel__btn--prev{left:0}.ds-acf-carousel__btn--next{right:0}}
.ds-acf-gallery-item img{display:block;width:100%;height:var(--item-h,250px);object-fit:cover}
.ds-acf-gallery-caption{margin-top:6px;font-size:14px;text-align:center}

/* Product carousel */
.ds-acf-product-carousel .product-miniature{text-align:center}
.ds-acf-product-carousel .product-miniature a{display:block;color:inherit;text-decoration:none}
.ds-acf-product-carousel .product-miniature img{display:block;width:100%;height:auto;border-radius:4px}
.ds-acf-product-carousel .product-title{font-size:14px;margin-top:8px}
.ds-acf-product-carousel .product-price{font-size:15px;font-weight:700;margin-top:4px}
.ds-acf-product-carousel .product-price-old{text-decoration:line-through;color:#999;font-weight:400;font-size:13px;margin-right:6px}
.ds-acf-product-carousel .product-price-sale{color:#e74c3c}
.ds-acf-section--product_carousel[data-ds-heading] .ds-acf-section-title{color:var(--ds-heading)}

/* Hide native PS blocks when ACF placeholder is present on the page */
body:has(#ds-acf-products-target) #main>#products,
body:has(#ds-acf-products-target) #main>.container>#products{display:none}
body:has(#ds-acf-product-desc-target) .product-container-bottom>.col-md-12>.inner>#product-description{display:none}
body:has(#ds-acf-product-specs-target) .product-container-bottom>.col-md-12>.inner>#product-details{display:none}
body:has(#ds-acf-product-reviews-target) .product-container-bottom>.col-md-12>.inner>#productopinions,
body:has(#ds-acf-product-reviews-target) .product-container-bottom>.col-md-12>.inner>#extra-0{display:none}

/* ── 1.0.6: wygląd sekcji niezależny od motywu (classic, hummingbird, motywy klientów) ── */
.ds-acf-section img{max-width:100%}
.ds-acf-cover{display:block;width:100%;height:100%;object-fit:cover}

/* Korzyści: liczba kolumn dopasowana do liczby elementów */
.ds-acf-benefits__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:28px 32px}
.ds-acf-benefit{text-align:center}
.ds-acf-benefit-icon{display:block;width:64px;height:64px;max-width:64px !important;object-fit:contain;margin:0 auto 12px}
.ds-acf-benefit__title{font-size:1.15rem;margin:0 0 6px}
.ds-acf-benefit__desc>*:last-child{margin-bottom:0}

/* Kroki: układ wyśrodkowany / rozciągnięty / do lewej */
.ds-acf-steps__grid{display:flex;flex-wrap:wrap;gap:28px 32px;justify-content:center}
.ds-acf-step{flex:0 1 240px;text-align:center}
.ds-acf-steps--stretch .ds-acf-steps__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr))}
.ds-acf-steps--left .ds-acf-steps__grid{justify-content:flex-start}
.ds-acf-steps--left .ds-acf-step{text-align:left}
.ds-acf-step-icon{display:block;width:56px;height:56px;max-width:56px;object-fit:contain}
.ds-acf-step__title{font-size:1.05rem;margin:4px 0 6px}
.ds-acf-step__desc>*:last-child{margin-bottom:0}

/* FAQ: <details> - rozwija się bez skryptów motywu */
.ds-acf-faq__list{display:flex;flex-direction:column;gap:12px;max-width:880px;margin:0 auto}
.ds-acf-faq__item{border:1px solid rgba(0,0,0,.1);border-radius:12px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.04);overflow:hidden;transition:box-shadow .2s,border-color .2s}
.ds-acf-faq__item:hover{border-color:rgba(0,0,0,.2)}
.ds-acf-faq__item[open]{border-color:var(--ds-acf-accent,rgba(0,0,0,.3));box-shadow:0 6px 20px rgba(0,0,0,.08)}
.ds-acf-faq-header{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;font-size:1.05rem;font-weight:600;line-height:1.35;cursor:pointer}
.ds-acf-faq-header::-webkit-details-marker{display:none}
.ds-acf-faq-header:focus-visible{outline:2px solid currentColor;outline-offset:-4px}
.ds-acf-faq-header::after{content:'';flex-shrink:0;width:30px;height:30px;border-radius:50%;background:rgba(0,0,0,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5l4 4 4-4' fill='none' stroke='%23333' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;transition:transform .25s,background-color .2s}
.ds-acf-faq__item[open]>.ds-acf-faq-header::after{transform:rotate(180deg);background-color:rgba(0,0,0,.1)}
.ds-acf-faq__a{padding:0 22px 20px;line-height:1.6;opacity:.85}
.ds-acf-faq__a>*:last-child{margin-bottom:0}

/* Cytat */
.ds-acf-quote__figure{max-width:780px;margin:0 auto;text-align:center}
.ds-acf-quote__text{margin:0;padding:0;border:0;font-size:clamp(1.2rem,2.2vw,1.7rem);line-height:1.45;font-style:italic}
.ds-acf-quote__text::before{content:'\201C';display:block;font-size:4.5rem;line-height:.8;font-style:normal;opacity:.25}
.ds-acf-quote__text p{margin:0}
.ds-acf-quote__author{margin-top:14px;font-size:1rem;font-style:normal;opacity:.75}
.ds-acf-quote__author::before{content:'\2014\00a0'}

/* Wideo (YouTube / Vimeo): proporcje 16:9, szerokość z ustawień */
.ds-acf-video-wrap{width:var(--ds-acf-video-w,100%);max-width:100%;margin:0 auto}
/* 1.1.0: wyrównanie po regule ogólnej (wcześniej margin:0 auto powyżej zawsze centrował wideo) */
.ds-acf-video-wrap.ds-acf-video--left{margin-left:0;margin-right:auto}
.ds-acf-video-wrap.ds-acf-video--right{margin-left:auto;margin-right:0}
.ds-acf-video-frame{position:relative;width:100%;aspect-ratio:16/9;background:#000}
.ds-acf-video-frame iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}

/* Baner pełnej szerokości (obraz tła + tekst) */
.ds-acf-banner{position:relative;display:flex;align-items:center;justify-content:center;min-height:clamp(260px,38vw,520px);padding:48px 24px;background-color:var(--ds-bg,#1f2937);background-size:cover;background-position:center;color:#fff;text-align:center;overflow:hidden}
.ds-acf-banner--image::before{content:'';position:absolute;top:0;right:0;bottom:0;left:0;background:var(--ds-overlay,rgba(0,0,0,.35))}
.ds-acf-banner__inner{position:relative;max-width:820px}
.ds-acf-banner__title{color:inherit;font-size:clamp(1.7rem,4vw,3rem);line-height:1.15;margin:0 0 12px}
.ds-acf-banner__lead{color:inherit;font-size:clamp(1rem,1.6vw,1.25rem);margin:0 0 22px}

/* Baner strony głównej (zdjęcie + ramka CTA) */
.ds-acf-hero{position:relative;overflow:hidden;border-radius:8px}
.ds-acf-hero__media img{display:block;width:100%;height:clamp(240px,40vw,560px);object-fit:cover}
.ds-acf-hero__cta{position:absolute;left:24px;bottom:24px;max-width:min(520px,calc(100% - 48px))}
.ds-acf-hero__box{background:rgba(255,255,255,.94);color:#111;padding:20px 24px;border-radius:8px;box-shadow:0 6px 24px rgba(0,0,0,.15)}
.ds-acf-hero__box>*:last-child{margin-bottom:0}
@media(max-width:767.98px){.ds-acf-hero__cta{position:static;max-width:none}.ds-acf-hero__box{border-radius:0;box-shadow:none;background:#f5f5f5}}

/* Kolekcja: zdjęcie główne + 1-4 miniatury, równe kafle */
.ds-acf-coll{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
.ds-acf-coll--thumbs-0{grid-template-columns:1fr}
.ds-acf-coll--right .ds-acf-coll__main{order:2}
.ds-acf-coll__media,.ds-acf-coll__thumb{overflow:hidden;border-radius:8px;background:#f2f2f2;min-height:0}
.ds-acf-coll__media{aspect-ratio:1/1}
.ds-acf-coll__media>*,.ds-acf-coll__thumb>*{width:100%;height:100%;margin:0}
.ds-acf-coll__media img,.ds-acf-coll__thumb img{display:block;width:100%;height:100%;object-fit:cover}
.ds-acf-coll__grid{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:16px;aspect-ratio:1/1}
.ds-acf-coll--thumbs-1 .ds-acf-coll__grid,.ds-acf-coll--thumbs-2 .ds-acf-coll__grid{grid-template-columns:1fr}
.ds-acf-coll--thumbs-3 .ds-acf-coll__thumb:first-child{grid-column:1 / -1}
.ds-acf-coll__cta{margin-top:20px;font-size:1.05rem;line-height:1.5}
.ds-acf-coll__cta h2,.ds-acf-coll__cta h3{margin:0 0 8px;font-size:clamp(1.3rem,2vw,1.75rem);line-height:1.2}
.ds-acf-coll__cta p{margin:0 0 12px}
.ds-acf-coll__cta a:not([class]){text-decoration:underline}
.ds-acf-coll__cta>*:last-child{margin-bottom:0}
@media(max-width:767.98px){.ds-acf-coll{grid-template-columns:1fr}.ds-acf-coll--right .ds-acf-coll__main{order:0}}

/* Wyróżniony produkt: zdjęcie + opis */
.ds-acf-split{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center}
.ds-acf-split__media img{display:block;width:100%;height:auto;border-radius:8px}
@media(max-width:767.98px){.ds-acf-split{grid-template-columns:1fr;gap:16px}}

/* Karuzele: strzałki wewnątrz (bez przewijania strony w poziomie), przeciąganie myszą, powiększenie zdjęć */
.ds-acf-carousel{overflow:hidden}
.ds-acf-carousel__btn--prev{left:6px}
.ds-acf-carousel__btn--next{right:6px}
.ds-acf-track.is-draggable{cursor:grab}
.ds-acf-track.is-dragging{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto;user-select:none}
.ds-acf-track.is-dragging *{pointer-events:none}
.ds-acf-gallery-item img{cursor:zoom-in}
.ds-acf-lightbox{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(0,0,0,.88)}
.ds-acf-lightbox img{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 10px 40px rgba(0,0,0,.5)}
.ds-acf-lightbox__close,.ds-acf-lightbox__nav{position:absolute;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.9);color:#111;font-size:26px;line-height:1;cursor:pointer}
.ds-acf-lightbox__close{top:16px;right:16px}
.ds-acf-lightbox__nav--prev{left:16px;top:50%;margin-top:-22px}
.ds-acf-lightbox__nav--next{right:16px;top:50%;margin-top:-22px}
/* Nowości / Polecane / Bestsellery / Promocje z modułów sklepu jako karuzela */
.ds-acf-track.products,.ds-acf-track.row{display:flex !important;flex-wrap:nowrap !important;margin-left:0 !important;margin-right:0 !important}
.ds-acf-track.products>*{max-width:none !important;flex:0 0 calc((100% - (var(--c) - 1) * var(--gap)) / var(--c)) !important;width:auto !important;padding-left:0;padding-right:0}

/* Pasek informacji (1.1.0, bez siatki Bootstrapa): 1-3 kolumny w rzędzie, na telefonie jedna pod drugą */
.ds-acf-info{display:grid;grid-template-columns:repeat(var(--ds-acf-info-cols,3),minmax(0,1fr));gap:24px}
.ds-acf-info__col{padding:20px 24px;background:var(--ds-acf-info-bg,#f5f5f5);border-radius:8px}
.ds-acf-info__col>*:last-child{margin-bottom:0}
.ds-acf-info__col h2,.ds-acf-info__col h3,.ds-acf-info__col h4{margin:0 0 6px;font-size:1.15rem;line-height:1.3}
.ds-acf-info__col img{max-width:100%;height:auto}
@media(max-width:767.98px){.ds-acf-info{grid-template-columns:1fr;gap:12px}}

/* Wyróżniony produkt (1.1.0): zdjęcie + nazwa, opis, cena i przycisk z karty produktu */
.ds-acf-sp__eyebrow{margin:0 0 8px;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;opacity:.7}
.ds-acf-sp__name{margin:0 0 12px;font-size:clamp(1.5rem,2.6vw,2.25rem);line-height:1.15}
.ds-acf-sp__name a{color:inherit;text-decoration:none}
.ds-acf-sp__desc{margin:0 0 16px;line-height:1.55}
.ds-acf-sp__desc>*:last-child{margin-bottom:0}
.ds-acf-sp__price{display:flex;gap:10px;align-items:baseline;margin:0 0 20px;font-size:1.5rem;font-weight:600}
.ds-acf-sp__price s{font-size:1rem;font-weight:400;opacity:.6}
.ds-acf-sp__media img{display:block;width:100%;height:auto;max-height:560px;object-fit:contain;border-radius:8px}

