/* Carpathia Herbarium – kategórie v1. Načítať po štýloch Shoptetu.
   CSS mení iba kategórie a ich hlavný výpis #products. */
body.type-category {
 --chc-forest:#213c2c;
 --chc-paper:#f7f5ed;
 --chc-ink:#263b2d;
 --chc-muted:#687366;
 --chc-line:#dce1d7;
}
body.type-category #content {
 font-family:CHManrope,Arial,sans-serif;
 color:var(--chc-ink);
}
body.type-category #content .category-top {padding-top:12px;margin-bottom:32px}
body.type-category #content h1.category-title {
 font:400 clamp(36px,4vw,56px)/1.15 CHLora,Georgia,serif;
 color:var(--chc-forest);margin:0 0 24px;letter-spacing:-.025em;
}
body.type-category #content .category-perex,
body.type-category #content .category-description {
 max-width:820px;font:400 16px/1.65 CHManrope,Arial,sans-serif;
 color:var(--chc-muted);margin-bottom:28px;
}
body.type-category #content .category-perex p,
body.type-category #content .category-description p {margin:0 0 16px}
/* Zachované natívne tlačidlá radenia vrátane ich AJAX správania. */
body.type-category #category-header {
 border:0;border-bottom:1px solid var(--chc-line);background:transparent;
 padding:0 0 18px;margin:0 0 28px;min-height:0;
}
body.type-category #category-header .listSorting__controls {
 display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0;border:0;
}
body.type-category #category-header .listSorting__controls>li {margin:0;padding:0;border:0}
body.type-category #category-header .listSorting__control {
 font:500 13px/1.4 CHManrope,Arial,sans-serif;
 min-height:44px;padding:11px 18px;border:1px solid var(--chc-line);
 border-radius:0;background:transparent;color:var(--chc-forest);box-shadow:none;
}
body.type-category #category-header .listSorting__control--current {
 background:var(--chc-forest);border-color:var(--chc-forest);color:var(--chc-paper);
}
body.type-category #category-header .listSorting__control:hover:not(.listSorting__control--current) {
 background:var(--chc-paper);border-color:var(--chc-forest);
}
/* Jeden hlavný grid, bez zásahu do odporúčaných produktov alebo košíka. */
body.type-category #products.products-block {
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));
 gap:40px 28px;width:100%;margin:0;padding:0;border:0;
}
body.type-category #products.products-block::before,
body.type-category #products.products-block::after {display:none;content:none}
body.type-category #products.products-block>.product {
 float:none;width:auto!important;max-width:none;min-width:0;
 margin:0;padding:0!important;border:0;background:transparent;
}
body.type-category #products .product>.p {
 display:flex;flex-direction:column;height:100%;min-width:0;
 margin:0;padding:0;border:0!important;border-radius:0;
 background:transparent;text-align:left;box-shadow:none!important;
}
body.type-category #products .p>.image {
 display:block;position:relative;width:100%;height:auto!important;
 min-height:0;aspect-ratio:4/3;padding:0!important;margin:0;
 overflow:hidden;border:0;background:#eee8df;
}
body.type-category #products .p>.image::after {content:none}
body.type-category #products .p>.image>img {
 display:block;position:static;width:100%!important;height:100%!important;
 max-width:100%;max-height:none;min-height:0;margin:0!important;
 object-fit:contain;object-position:center;opacity:1!important;transform:none!important;
}
body.type-category #products .p-in {
 display:flex;flex-direction:column;flex:1;min-width:0;
 padding:18px 0 0!important;margin:0;border:0;
}
body.type-category #products .p-in-in {padding:0;min-width:0}
body.type-category #products .p .name {
 display:block!important;height:auto!important;min-height:2.8em;
 max-height:none;margin:0 0 10px!important;padding:0!important;
 overflow:visible!important;-webkit-line-clamp:unset;
 font:500 17px/1.4 CHManrope,Arial,sans-serif;text-transform:none;
 text-align:left;text-decoration:none;color:var(--chc-ink);
}
body.type-category #products .p .name:hover {color:var(--chc-muted);text-decoration:none}
body.type-category #products .availability {
 margin:0 0 12px;padding:0;text-align:left;font:400 12px/1.5 CHManrope,Arial,sans-serif;
}
body.type-category #products .p:has([data-micro-availability="https://schema.org/InStock"]) .availability>span {color:var(--chc-muted)!important}
body.type-category #products .p-bottom,
body.type-category #products .p-bottom.single-button {
 margin-top:auto;padding:0!important;text-align:left;
}
body.type-category #products .p-bottom>div {display:flex;flex-direction:column;width:100%}
body.type-category #products .p-bottom>div::before,
body.type-category #products .p-bottom>div::after {display:none;content:none}
body.type-category #products .prices {
 position:static!important;display:flex;flex-wrap:wrap;align-items:baseline;
 gap:4px 10px;margin:0 0 16px;padding:0;text-align:left;
}
body.type-category #products .price-final {font:600 18px/1.4 CHManrope,Arial,sans-serif;color:var(--chc-forest);margin:0}
body.type-category #products .price-final strong {font:inherit}
body.type-category #products .prices .price-standard,
body.type-category #products .prices .price-standard-wrapper {font:400 13px/1.4 CHManrope,Arial,sans-serif;color:var(--chc-muted)}
body.type-category #products .prices .price-standard {text-decoration:line-through}
body.type-category #products .prices .price-save,
body.type-category #products .price-additional,
body.type-category #products .price-measure {font-size:12px;color:var(--chc-muted)}
body.type-category #products .p-bottom .p-tools {
 position:static!important;display:flex!important;align-items:stretch;
 justify-content:flex-start;gap:8px;width:100%;padding:0!important;margin:0;
}
body.type-category #products .p-tools .pr-action {display:block;width:100%;margin:0}
body.type-category #products .p .p-bottom .p-tools .btn,
body.type-category #products .p .p-bottom .p-tools .btn.btn-cart {
 display:inline-flex;align-items:center;justify-content:center;
 width:100%;min-width:0;height:auto;min-height:46px;
 padding:12px 16px!important;margin:0;border:1px solid var(--chc-forest)!important;
 border-radius:0;background:var(--chc-forest);color:var(--chc-paper);
 font:600 13px/1.4 CHManrope,Arial,sans-serif;text-transform:none;
 text-decoration:none;box-shadow:none;transition:background .2s,border-color .2s;
}
body.type-category #products .p-tools .btn::before {content:none!important}
body.type-category #products .p .p-bottom .p-tools .btn:hover:not(:disabled) {background:#345440;border-color:#345440!important;color:var(--chc-paper)}
body.type-category #products .p-tools .btn:disabled {opacity:.5;cursor:not-allowed}
body.type-category #products .p-desc {display:none!important}
/* Zľava a pôvodná cena zostávajú v jednom drobnom obdĺžnikovom štítku. */
body.type-category #products .flags-extra {
 position:absolute;top:12px!important;right:12px!important;bottom:auto!important;
 left:auto!important;width:auto!important;display:flex!important;gap:6px;
}
body.type-category #products .flags-extra .flag.flag-discount {
 display:flex!important;flex:0 0 auto!important;flex-direction:row!important;
 align-items:center;gap:8px;float:none;min-width:0!important;width:auto!important;
 height:auto!important;min-height:0;padding:6px 9px!important;margin:0!important;
 border:0;border-radius:0!important;background:var(--chc-forest)!important;
 color:var(--chc-paper)!important;font:600 11px/1.4 CHManrope,Arial,sans-serif;
}
body.type-category #products .flag-discount .price-standard {
 display:inline!important;color:inherit;font:400 10px/1.4 CHManrope,Arial,sans-serif;
 text-decoration:line-through;opacity:.8;
}
body.type-category #products .flag-discount .price-save {display:inline!important;color:inherit;font:inherit;white-space:nowrap}
body.type-category #products .flags-default {position:absolute;top:12px;left:12px;display:flex;flex-direction:column;gap:6px}
body.type-category #products .flags-default .flag {
 display:block;width:fit-content;margin:0;padding:6px 9px;border:0;border-radius:0;
 background:var(--chc-paper);color:var(--chc-forest);font:600 11px/1.4 CHManrope,Arial,sans-serif;
}
body.type-category #products .flag::before,
body.type-category #products .flag::after {content:none!important}
body.type-category #products .p:has(.flag-discount) .flags-default .flag-action {display:none}
body.type-category #products a:focus-visible,
body.type-category #products button:focus-visible,
body.type-category #category-header button:focus-visible {outline:2px solid var(--chc-forest);outline-offset:3px}
/* Natívne načítanie ďalšej stránky ostáva funkčné. */
body.type-category #content .pagination-wrapper {margin-top:40px}
body.type-category #content .loadMore__button,
body.type-category #content .goToTop__button {
 min-height:44px;padding:12px 24px;border:1px solid var(--chc-forest);
 border-radius:0;background:transparent;color:var(--chc-forest);
 font:500 13px/1.4 CHManrope,Arial,sans-serif;
}
@media(max-width:991px){
 body.type-category #products.products-block {grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 20px}
 body.type-category #content h1.category-title {font-size:40px}
}
@media(max-width:700px){
 body.type-category #content .category-top {padding-top:8px;margin-bottom:24px}
 body.type-category #content h1.category-title {font-size:34px;margin-bottom:18px}
 body.type-category #content .category-perex,
 body.type-category #content .category-description {font-size:14px;line-height:1.6}
 body.type-category #category-header {margin-bottom:20px;padding-bottom:16px}
 body.type-category #category-header .listSorting__controls {flex-wrap:nowrap;overflow-x:auto;gap:6px;padding-bottom:4px}
 body.type-category #category-header .listSorting__controls>li {flex-shrink:0}
 body.type-category #category-header .listSorting__control {padding:10px 12px;font-size:12px}
 body.type-category #products.products-block {gap:28px 12px}
 body.type-category #products .p-in {padding-top:12px!important}
 body.type-category #products .p .name {font-size:13px;line-height:1.45;min-height:2.9em;margin-bottom:8px!important}
 body.type-category #products .availability {font-size:11px;margin-bottom:8px}
 body.type-category #products .price-final {font-size:16px}
 body.type-category #products .prices {gap:3px 6px;margin-bottom:12px}
 body.type-category #products .p .p-bottom .p-tools .btn,
 body.type-category #products .p .p-bottom .p-tools .btn.btn-cart {font-size:12px;min-height:44px;padding:11px 8px!important}
 body.type-category #products .flags-extra {top:6px!important;right:6px!important}
 body.type-category #products .flags-extra .flag.flag-discount {gap:4px;padding:4px 6px!important;font-size:10px}
 body.type-category #products .flag-discount .price-standard {font-size:9px}
 body.type-category #products .flags-default {top:6px;left:6px;gap:4px}
 body.type-category #products .flags-default .flag {font-size:9px;padding:4px 6px}
 body.type-category #content .pagination-wrapper {margin-top:28px}
}
@media(prefers-reduced-motion:reduce){body.type-category #products .p-tools .btn {transition:none}}

/* v2 – prehľadné názvy, samostatný objem a výraznejšia cena. */
body.type-category #content .products-top-wrapper {display:none!important}
body.type-category #products .p.chc-card-ready .name {
 font:400 22px/1.3 CHLora,Georgia,serif;min-height:2.6em;margin-bottom:8px!important;
 letter-spacing:-.015em;
}
body.type-category #products .chc-meta {margin:0 0 20px}
body.type-category #products .chc-herbs {margin:0 0 6px;color:var(--chc-muted);font:400 13px/1.5 CHManrope,Arial,sans-serif}
body.type-category #products .chc-volume {margin:0;color:var(--chc-muted);font:500 12px/1.5 CHManrope,Arial,sans-serif}
body.type-category #products .chc-purchase-line {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
body.type-category #products .chc-purchase-line .prices {margin:0;gap:6px 12px;flex:1;min-width:0}
body.type-category #products .chc-purchase-line .availability {margin:0;font-size:12px;flex-shrink:0}
body.type-category #products .price-final {font-size:24px;line-height:1.3;font-weight:600}
body.type-category #products .chc-old-price {color:var(--chc-muted);font:400 14px/1.4 CHManrope,Arial,sans-serif;text-decoration:line-through}
body.type-category #products .chc-card-ready .flag-discount .price-standard {display:none!important}
body.type-category #products .flags-extra .flag.flag-discount {font-size:12px;padding:7px 10px!important}
body.type-category #products .p .p-bottom .p-tools .btn,
body.type-category #products .p .p-bottom .p-tools .btn.btn-cart {font-size:14px;min-height:48px}
@media(max-width:700px){
 body.type-category #products .p.chc-card-ready .name {font-size:17px;line-height:1.3;min-height:3.9em}
 body.type-category #products .chc-meta {margin-bottom:14px}
 body.type-category #products .chc-herbs {font-size:11px;line-height:1.5;min-height:3em}
 body.type-category #products .chc-volume {font-size:11px}
 body.type-category #products .chc-purchase-line {flex-direction:column;align-items:flex-start;gap:6px;margin-bottom:12px}
 body.type-category #products .chc-purchase-line .prices {gap:4px 8px;width:100%}
 body.type-category #products .chc-purchase-line .availability {font-size:11px}
 body.type-category #products .price-final {font-size:21px}
 body.type-category #products .chc-old-price {font-size:12px}
 body.type-category #products .flags-extra .flag.flag-discount {font-size:11px;padding:5px 7px!important}
 body.type-category #products .p .p-bottom .p-tools .btn,
 body.type-category #products .p .p-bottom .p-tools .btn.btn-cart {font-size:12px;min-height:44px}
}

/* v4 – rastlinné zložky a objem: vizuálne úpravy bez zmien skriptu. */
body.type-category #products .p.chc-card-ready .name {
 margin-bottom:10px!important;
}
body.type-category #products .chc-meta {
 display:flex;flex-wrap:wrap;align-items:flex-start;
 gap:10px 12px;margin:0 0 20px;min-width:0;
}
body.type-category #products .chc-herbs {
 flex:0 0 100%;min-width:0;min-height:0;margin:0;
 color:var(--chc-forest);font:600 14px/1.55 CHManrope,Arial,sans-serif;
 overflow-wrap:break-word;
}
body.type-category #products .chc-volume {
 display:inline-flex;align-items:center;justify-content:center;
 flex:0 0 auto;width:auto;max-width:100%;min-height:28px;
 margin:0;padding:4px 10px;border:1px solid #ddd7cc;border-radius:0;
 background:#f3efe8;color:var(--chc-forest);
 font:600 11px/1.5 CHManrope,Arial,sans-serif;
 letter-spacing:.025em;white-space:nowrap;
}
body.type-category #products .chc-purchase-line {
 align-items:baseline;gap:10px;margin-bottom:14px;
}
body.type-category #products .chc-purchase-line .prices {
 column-gap:10px;row-gap:3px;
}
body.type-category #products .chc-old-price {opacity:.75}
body.type-category #products .chc-purchase-line .availability {
 color:var(--chc-muted);font-size:11px;line-height:1.5;
}
@media(max-width:700px){
 body.type-category #products .p.chc-card-ready .name {margin-bottom:8px!important}
 body.type-category #products .chc-meta {gap:8px;margin-bottom:16px}
 body.type-category #products .chc-herbs {
  font-size:11px;line-height:1.6;min-height:3.2em;
 }
 body.type-category #products .chc-volume {
  min-height:25px;padding:3px 8px;font-size:10px;
 }
 body.type-category #products .chc-purchase-line {
  align-items:flex-start;gap:5px;margin-bottom:12px;
 }
 body.type-category #products .chc-purchase-line .prices {column-gap:7px}
 body.type-category #products .chc-purchase-line .availability {font-size:10px}
}
