/* SPORTLAB 05.12.2026 (Kristo; Fable makett „kategooria”): kategoorialehe lõpus pikk kirjeldus (vasakul) ja „Seotud artiklid”
   (moodul ybc_blog) paremas veerus. Telefonis üksteise all; kui artikleid pole (blogi on ainult eesti keeles), kirjeldus täislaiuses.
   Laaditakse ainult kategoorialehel (catalog/listing/category.tpl). Mall: plokk product_list_footer. Muud lehe osad puutumata.
   Arvutis: ujuvad veerud (float), mitte grid — #main-i teiste plokkide vahed jäävad samaks. */
body#category #main > .sl-kat-kirjeldus,
body#category #main > .ybc_block_related_category_page { box-sizing: border-box; margin: 40px 0 0 !important; padding: 32px 0 0 !important; border-top: 1px solid #e5e5e5; }
body#category #main > .sl-kat-kirjeldus + .ybc_block_related_category_page { margin-top: 32px !important; padding-top: 0 !important; border-top: 0; }
body#category #main > .sl-kat-kirjeldus, body#category #main > .ybc_block_related_category_page { margin-bottom: 32px !important; }

/* kirjeldus */
body#category .sl-kat-kirjeldus.category-description { display: block !important; }
body#category .sl-kat-kirjeldus .rte-content { max-width: 72ch; font-size: 16px; line-height: 26px; color: #212529; }
body#category .sl-kat-kirjeldus .rte-content > :first-child { margin-top: 0; }
body#category .sl-kat-kirjeldus .rte-content h2 { margin: 24px 0 12px; font-size: 20px; font-weight: 700; line-height: 26px; color: #212529; text-transform: none; letter-spacing: 0; }
body#category .sl-kat-kirjeldus .rte-content h3 { margin: 24px 0 12px; font-size: 18px; font-weight: 700; line-height: 24px; color: #212529; text-transform: none; letter-spacing: 0; }
body#category .sl-kat-kirjeldus .rte-content p { margin: 0 0 12px; }
body#category .sl-kat-kirjeldus .rte-content ul, body#category .sl-kat-kirjeldus .rte-content ol { margin: 0 0 12px; padding-left: 20px; }
body#category .sl-kat-kirjeldus .rte-content li + li { margin-top: 4px; }
body#category .sl-kat-kirjeldus .rte-content a { color: #212529; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { body#category .sl-kat-kirjeldus .rte-content a:hover { color: #c32525; } }

/* „Seotud artiklid”: lingiloend noolega, eraldusjoontega (pildid ja kategooriad peidus) */
body#category #main > .ybc_block_related_category_page { float: none; width: auto; background: none; box-shadow: none; }
body#category .ybc_block_related_category_page .title_blog.title_block { margin: 0 0 12px !important; padding: 0 !important; border: 0; background: none; font-size: 20px !important; font-weight: 700; line-height: 26px !important; text-align: left; text-transform: none; letter-spacing: 0; color: #212529; }
body#category .ybc_block_related_category_page .title_blog::before, body#category .ybc_block_related_category_page .title_blog::after { display: none !important; }
body#category .ybc_block_related_category_page .ybc_blog_content_block { display: block !important; margin: 0 !important; padding: 0 !important; border-top: 1px solid #e5e5e5; }
body#category .ybc_block_related_category_page .ybc_blog_content_block_item { position: relative; float: none !important; display: block !important; width: 100% !important; max-width: none !important; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 14px 28px 14px 0 !important; border: 0 !important; border-bottom: 1px solid #e5e5e5 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; flex: none !important; }
body#category .ybc_block_related_category_page .ybc_blog_content_block_item::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border: solid #6b6b6b; border-width: 2px 2px 0 0; transform: rotate(45deg); }
body#category .ybc_block_related_category_page .ybc_item_img,
body#category .ybc_block_related_category_page .ybc-blog-sidear-post-meta,
body#category .ybc_block_related_category_page .post-date,
body#category .ybc_block_related_category_page .ybc-blog-related-content > :not(.ybc_title_block) { display: none !important; }
body#category .ybc_block_related_category_page .ybc-blog-related-content { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
body#category .ybc_block_related_category_page .ybc_title_block { display: block !important; height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; margin: 0 !important; padding: 0 !important; color: #212529 !important; font-size: 16px !important; font-weight: 400 !important; line-height: 22px !important; text-decoration: none; text-transform: none; }
body#category .ybc_block_related_category_page .ybc_title_block::before { content: ""; position: absolute; inset: 0; }
@media (hover: hover) { body#category .ybc_block_related_category_page .ybc_blog_content_block_item:hover .ybc_title_block { color: #c32525; } }
body#category .ybc_block_related_category_page .clear { display: none; }

@media (min-width: 768px) {
  body#category #main > .sl-kat-kirjeldus, body#category #main > .ybc_block_related_category_page { margin-top: 56px !important; }
  /* kaks veergu ainult siis, kui mõlemad on olemas: kirjeldus vasakul, artiklid 380 px paremal, üks ühine joon üleval */
  body#category #main > .sl-kat-kirjeldus:has(+ .ybc_block_related_category_page) { float: left; width: calc(100% - 380px); padding-right: 56px !important; }
  body#category #main > .sl-kat-kirjeldus + .ybc_block_related_category_page { float: right; width: 380px; margin-top: 56px !important; padding-top: 32px !important; border-top: 1px solid #e5e5e5; }
  body#category #main:has(> .sl-kat-kirjeldus + .ybc_block_related_category_page)::after { content: ""; display: table; clear: both; }
}
