/* Menší mezery mezi bloky na celém webu (2. 11. 2026, měření 36 typů stránek mobil + PC).
   Mění jen svislé okraje sekcí – obsah, karty produktů a rozložení zůstávají. */

/* pruh „Milujeme Kameny naživo“ nad patičkou (na všech stránkách) */
section.pr-band{margin-top:8px!important;margin-bottom:0!important}
@media(min-width:981px){section.pr-band{margin-top:16px!important;margin-bottom:8px!important}}

/* výpisy produktů (kategorie, obchod, hledání, znamení, čakry, účinky) */
section.products-section{padding-top:24px!important;padding-bottom:16px!important}
nav.pagination{margin-top:24px!important}
section.seo-block{padding-top:32px!important;padding-bottom:32px!important}
section.subcat{padding-bottom:6px!important}

/* detail produktu */
section.product-hero{padding-bottom:18px!important}
section.product-tabs{padding-top:22px!important;padding-bottom:22px!important}
section.atlas-link{padding-bottom:24px!important}
section.related{padding-top:24px!important;padding-bottom:24px!important}

/* rozcestníky (účinky, čakry), Atlas – přehled */
section.atlas-section{padding-top:26px!important;padding-bottom:32px!important}
section.lk-hub{margin-bottom:24px!important}

/* O nás, prodejny, kalendář úplňků */
section.on-sec{padding-top:28px!important;padding-bottom:28px!important}
section.on-sec.on-tight{padding-top:6px!important}
section.pr-sec{padding-top:24px!important;padding-bottom:24px!important}
section.uplnek-list{padding-top:24px!important;padding-bottom:32px!important}
article.uplnek-item{margin-bottom:16px!important}

/* úvodní stránka (Divi): řádky v sekcích a karty sekcí */
body.home .et_pb_section .et_pb_row + .et_pb_row{margin-top:18px!important}
body.home .atlas-stats{margin-top:8px!important;padding-top:14px!important}
body.home .et_pb_section_10{padding-top:28px!important;padding-bottom:28px!important}
@media(max-width:980px){
 body.home .et_pb_section_4,body.home .et_pb_section_5,body.home .et_pb_section_6,body.home .et_pb_section_8,body.home .et_pb_section_9{padding-top:22px!important;padding-bottom:22px!important;margin-top:8px!important;margin-bottom:8px!important}
}
@media(min-width:981px){
 body.home .et_pb_section .et_pb_row + .et_pb_row{margin-top:26px!important}
 body.home .et_pb_section_10{padding-top:40px!important;padding-bottom:40px!important}
}

/* ---- NAHOŘE pod hlavičkou (Martin 2. 11.: hledání → drobečky → karta) ---- */
@media(max-width:980px){
 html body .breadcrumb{padding-top:8px!important;padding-bottom:4px!important}
 html body section.cat-hero{padding-top:2px!important;margin-top:0!important}
 html body section.cat-hero > .container{padding-top:14px!important}
 html body section.mk-hub{margin-top:2px!important;padding-top:14px!important}
 section.product-hero{padding-top:8px!important}
 section.kp{margin-top:8px!important;padding-top:8px!important}
 header.post-hero{padding-top:14px!important}
 section.blog-head{padding-top:16px!important}
 /* stránky ze šablony „stránka“ (výročí, kontakt, doprava…): velký horní okraj obsahu */
 #main-content > div > .container,body.page-template-default #main-content .container:first-child{padding-top:12px!important}
}
@media(min-width:981px){
 .breadcrumb{padding-top:10px!important;padding-bottom:8px!important}
 section.cat-hero{padding-top:4px!important}
 header.post-hero{padding-top:24px!important}
 section.blog-head{padding-top:28px!important}
}

/* ---- karta nahoře na mobilu: bez malého růžového nadpisu (opakuje drobečky), místo něj víc popisu ---- */
@media(max-width:980px){
 html body section.cat-hero > .container > .eyebrow{display:none!important}
 body.tax-product_cat #main .cat-hero > .container > p:not(.is-expanded),body[class*=" tax-pa_"] #main .cat-hero > .container > p:not(.is-expanded){-webkit-line-clamp:5!important;line-clamp:5!important}
}

/* ---- nad pruhem „Milujeme Kameny naživo“: spodní okraj posledního bloku stránky (každý typ stránky má jiný) ---- */
html body div:has(+ section.pr-band){padding-bottom:0!important}
html body div:has(+ section.pr-band) main{padding-bottom:0!important}
/* jen bloky, které mají dole velký okraj (jiné by se naopak zvětšily) */
html body div:has(+ section.pr-band) main :is(section.seo-block,section.related,section.uplnek-list,section.atlas-section,section.on-sec,section.pr-sec,section.atlas-notes,section.products-section,section.blog-list,section.lk-hub):last-child{padding-bottom:16px!important;margin-bottom:0!important}
html body div:has(+ section.pr-band) main section.uplnek-list article:last-child{margin-bottom:0!important}
html body div:has(+ section.pr-band) .et_builder_inner_content > .et_pb_section:last-child{padding-bottom:16px!important;margin-bottom:0!important}

/* ---- dlaždice produktů: těsnější vnitřek karty (fotka, písmo a tlačítko beze změny) ---- */
html body .products-grid > article.product .stars{height:16px!important;line-height:16px!important;margin-bottom:6px!important}
html body .products-grid > article.product .price{margin-bottom:10px!important}
@media(max-width:980px){
 html body .products-grid > article.product .product-body{padding-top:8px!important;padding-bottom:10px!important}
 html body .products-grid > article.product .woocommerce-loop-product__title{margin-bottom:6px!important}
}
@media(min-width:981px){html body .products-grid > article.product .product-body{padding-top:14px!important;padding-bottom:14px!important}}

/* ---- mezery mezi odstavci (Divi dává p padding-bottom 1em + šablona margin → 31–43 px; nově ~20 px) ---- */
html body :is(.atlas-prose,.atlas-notes,.atlas-single-intro,.tab-panel,.post-content,.on-story-text,.on-box,.uplnek-text) p{padding-bottom:0!important;margin-bottom:.75em!important}
html body :is(.atlas-prose,.atlas-notes,.atlas-single-intro,.tab-panel,.post-content,.on-story-text,.on-box,.uplnek-text) p:last-child{margin-bottom:0!important}

/* ---- drobečky na mobilu jako velké e-shopy: jeden řádek, bez názvu aktuální stránky (je pod tím jako nadpis),
   domeček místo „Domů“ (text zůstává pro čtečky), plocha pro prst 40 px; celou cestu má Google ve schema datech ---- */
@media(max-width:980px){
 html body .breadcrumb{padding-top:10px!important;padding-bottom:8px!important;font-size:13px!important}
 html body .breadcrumb .container{column-gap:5px!important}
 html body .breadcrumb .current,html body .breadcrumb .sep:has(+ .current){display:none!important}
 html body .breadcrumb .container{flex-wrap:nowrap!important;white-space:nowrap!important;overflow:hidden!important}
 html body .breadcrumb a{display:inline-block!important;padding:8px 4px!important;margin:-8px -4px!important}
 html body .breadcrumb .container > a:first-child,html body .breadcrumb > a:first-child{font-size:0!important;color:transparent!important;width:22px!important;height:40px!important;padding:0!important;margin:-10px -2px -10px -3px!important;vertical-align:middle;
  background:no-repeat center/18px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6255' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V20h5v-6h4v6h5V9.5'/%3E%3C/svg%3E")!important}
}

/* dlouhá cesta (4 a více odkazů): domeček › … › poslední 2 úrovně, příliš dlouhý název se zkrátí „…“ (jako IKEA/dm) */
@media(max-width:980px){
 html body .breadcrumb .container > a:not(:first-child):not(:nth-last-of-type(-n+2)),
 html body .breadcrumb .container > a:not(:first-child):not(:nth-last-of-type(-n+2)) + .sep{display:none!important}
 html body .breadcrumb .container:has(> a:nth-of-type(4)) > .sep:first-of-type::after{content:"  …  ›";white-space:pre}
 html body .breadcrumb .container > a:not(:first-child){max-width:44vw;overflow:hidden!important;text-overflow:ellipsis;vertical-align:middle}
}
