.testarticle-wrap {
  max-width: var(--maxsirka);
  margin: 0 auto;
  padding: 1rem;
}


.aside {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 1rem;
  align-self: start;
  position: sticky;
  top: 1rem;
}

.aside h3 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
}

.filter-group {
  margin-bottom: 1rem;
}

.filter-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.filter-group input[type="text"],
.filter-group select {
  width: 100%;
  height: 2.5rem;
  border: 1px solid var(--line);
  padding: 0 0.75rem;
  background: #fff;
  font-size: 0.95rem;
}

.btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 0.9rem;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.category-header {
  margin-bottom: 1rem;
}

.category-header h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
}

.clanek-info {
  margin-bottom: 1rem;
  color: var(--muted);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.article-image {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--bgseda);
}

.article-image img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  display: block;
}

.article-content {
  padding: 1rem;
}

.article-title {
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 600;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-title a
{
  color: var(--ink);
  text-decoration: none;
}
.read-more {
  align-self: flex-start;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.article-excerpt {
  font-size: 0.85rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

.next-info {
  margin-top: 1.25rem;
}

.testarticle-layout {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  gap: 1.5rem;
}

.testarticle-sidebar {
  border: 1px solid var(--line);
  background: #fff;
  padding: 1rem;
  align-self: start;
  position: sticky;
  top: 1rem;
}

.testarticle-sidebar__box + .testarticle-sidebar__box {
  margin-top: 1.25rem;
}

.testarticle-sidebar__box h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
}

.testarticle-sidebar__toc a,
.testarticle-sidebar__links a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 0.35rem 0;
}

.testarticle-sidebar__toc .lvl3 {
  padding-left: 1rem;
  color: var(--muted);
}

.testarticle-content {
  min-width: 0;
}

.testarticle-content img {
  max-width: 100%;
  height: auto;
}

.testarticle-hero {
  margin-bottom: 1rem;
  background: var(--bgseda);
}

.testarticle-hero img {
  display: block;
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
}

.testarticle-meta {
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.testarticle-debug {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bgseda);
  border: 1px dashed var(--line);
  font-size: 0.9rem;
}

.testarticle-empty {
  padding: 2rem;
  border: 1px solid var(--line);
  background: #fff;
}

.testarticle-subsection {
  margin-top: 2rem;
}

.testarticle-subsection h2 {
  margin: 0 0 1rem 0;
}

.faq-generated .faq-item {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
/* =========================
   TABULKY V ČLÁNCÍCH
========================= */

.testarticle-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.testarticle-content table th,
.testarticle-content table td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

/* hlavička */
.testarticle-content table thead th {
  background: var(--bgseda1);
  font-weight: 600;
}

/* zebra */
.testarticle-content table tbody tr:nth-child(even) {
  background: var(--bgseda);
}

/* první sloupec zvýraznit */
.testarticle-content table td:first-child,
.testarticle-content table th:first-child {
  font-weight: 500;
  color: var(--ink);
}

/* responsivní scroll */
.testarticle-content {
  overflow-x: auto;
}
.testarticle-content table {
  min-width: 480px;
}

/*placeholdery*/
.testarticle-layout .sc-box {
    margin: 2rem 0;
    padding: 1rem;
    border: 1px solid var(--line);
    background: var(--bg);
    box-shadow: var(--shadow);
}

.testarticle-layout .sc-box__head {
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.testarticle-layout .sc-box__head h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--ink);
}

.testarticle-layout .sc-box__body {
    color: var(--ink);
}

.testarticle-layout .sc-box__grid {
    display: grid;
    gap: 1rem;
}

.testarticle-layout .sc-box__grid--categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testarticle-layout .sc-box__grid--products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.testarticle-layout .sc-box__grid--articles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* =========================================================
   CARD
========================================================= */

.testarticle-layout .sc-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid var(--line);
    background: var(--bg);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.testarticle-layout .sc-card:hover {
    transform: translateY(-0.125rem);
    box-shadow: var(--shadow);
    border-color: var(--accent);
    text-decoration: none;
}

.testarticle-layout .sc-card__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bgseda);
    border-bottom: 1px solid var(--line);
}

.testarticle-layout .sc-card__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testarticle-layout .sc-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.875rem;
}

.testarticle-layout .sc-card__title {
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 700;
    color: var(--ink);
}

.testarticle-layout .sc-card__desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--muted);
}

.testarticle-layout .sc-card__price {
    margin-top: auto;
    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--primary);
}

/* =========================================================
   CATEGORY BOX
========================================================= */

.testarticle-layout .sc-box-categories .sc-card-category .sc-card__title {
    color: var(--ink);
}

/* =========================================================
   PRODUCT BOX
========================================================= */

.testarticle-layout .sc-box-products .sc-card-product .sc-card__title {
    min-height: 2.7em;
}

.testarticle-layout .sc-box-products .sc-card-product .sc-card__price {
    padding-top: 0.25rem;
}

/* =========================================================
   ARTICLE BOX
========================================================= */

.testarticle-layout .sc-box-articles .sc-card-article .sc-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
     line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================================
   SHOP BOX
========================================================= */

.testarticle-layout .sc-box-shop {
    background: var(--bgseda);
}

.testarticle-layout .sc-shop__name {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
}

.testarticle-layout .sc-shop__row {
    margin: 0 0 0.65rem 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ink);
}

.testarticle-layout .sc-shop__row strong {
    color: var(--ink);
}

.testarticle-layout .sc-shop__text {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
}

.testarticle-layout .sc-shop__actions {
    margin-top: 1rem;
}

.testarticle-layout .sc-shop__map iframe {
    display: block;
    width: 100%;
    min-height: 22rem;
    border: 0;
}

/* =========================================================
   OPENING HOURS
========================================================= */

.testarticle-layout .sc-opening {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.testarticle-layout .sc-opening__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
}

.testarticle-layout .sc-opening__row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.testarticle-layout .sc-opening__day {
    font-weight: 600;
    color: var(--ink);
}

.testarticle-layout .sc-opening__time {
    color: var(--muted);
    text-align: right;
}

/* =========================================================
   TLACITKO
========================================================= */

.testarticle-layout .sc-btn-wrap {
    margin: 1rem 0;
}

.testarticle-layout .sc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.875rem;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.testarticle-layout .sc-btn:hover {
    text-decoration: none;
    transform: translateY(-0.0625rem);
}

/* varianty */
.testarticle-layout .sc-btn--primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.testarticle-layout .sc-btn--primary:hover {
    background: var(--bgtmseda);
    border-color: var(--bgtmseda);
    color: #fff;
}

.testarticle-layout .sc-btn--secondary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.testarticle-layout .sc-btn--secondary:hover {
    background: var(--bgtmseda);
    border-color: var(--bgtmseda);
    color: #fff;
}

.testarticle-layout .sc-btn--linkgreen {
    background: var(--zelena);
    border-color: var(--zelena);
    color: var(--bgtmseda);
}

.testarticle-layout .sc-btn--linkgreen:hover {
    background: var(--tmzelena);
    border-color: var(--tmzelena);
    color: #fff;
}

.testarticle-layout .sc-btn--linkred {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.testarticle-layout .sc-btn--linkred:hover {
    background: var(--bgtmseda);
    border-color: var(--bgtmseda);
    color: #fff;
}

.testarticle-layout .sc-btn--linkblue {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.testarticle-layout .sc-btn--linkblue:hover {
    background: var(--bgtmseda);
    border-color: var(--bgtmseda);
    color: #fff;
}

.testarticle-layout .sc-btn--outline {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}

.testarticle-layout .sc-btn--outline:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.testarticle-layout .sc-btn--dark {
    background: var(--bgtmseda);
    border-color: var(--bgtmseda);
    color: #fff;
}

.testarticle-layout .sc-btn--dark:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

/* =========================================================
   ODKAZY UVNITŘ BOXŮ
========================================================= */
.testarticle-content .clanek-info {
    margin: 0 0 1.25rem 0;
}

.testarticle-content .clanek-info p {
    margin: 0;
}

.testarticle-content .testarticle-flow::after {
    content: "";
    display: block;
    clear: both;
}

.testarticle-content .testarticle-flow__thumb {
    float: right;
    width: 20rem;
    max-width: 40%;
    margin: 0 0 1rem 1.5rem;
}

.testarticle-content .testarticle-flow__thumb img {
    display: block;
    width: 100%;
    height: auto;
}



.sub-categories .sub-tags {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    align-items: stretch;
}
.sub-categories .sub-tag, .sub-categories_p .sub-tag {
    display: block;
    text-align: center;
    min-width: 0;
}
.sub-categories .sub-tag a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: var(--ink);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
    border: 1px solid var(--bgseda1);
    border-radius: 0px;
    padding: 12px 12px 10px 12px;
    width: 100%;
    height: 210px;
    transition: all 0.25s ease;
    border: 1px solid var(--seda);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
.sub-categories .sub-tag a::after {
    content: "\203A";
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--blue);
    opacity: 0.65;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.sub-categories .sub-tag a:hover::after {
    opacity: 1;
    transform: translateX(3px);
}
.sub-categories .sortvyrobce_polozka_img_top {
    width: 100%;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
    box-sizing: border-box;
}
.sub-categories .sortvyrobce_polozka_img_top img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.sub-categories .sortvyrobce_polozka_txt_top {
    margin-top: auto;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    width: 100%;
    padding-right: 24px;
    line-height: 1.25;
}
#faqscroll {
  scroll-margin-top: 100px;
}
/* =========================================================
   RESPONSIVE
========================================================= */


@media (max-width: 64rem) {
  .pagecat,
  .testarticle-layout {
    grid-template-columns: 1fr;
  }

  .aside,
  .testarticle-sidebar {
    display: none;
  }

  .articles-grid {
    grid-template-columns: 2fr;
  }

  .testarticle-hero img {
    max-height: none;
    aspect-ratio: 1 / 1;
  }
}
@media (max-width: 48rem) {
  .pagecat,
  .testarticle-layout {
    grid-template-columns: 1fr;
  }
  .testarticle-content table
  {
    min-width: unset;
    font-size: 0.75rem;
  }
  .aside,
  .testarticle-sidebar {
    display: none;
  }

  .articles-grid {
    grid-template-columns: 2fr;
  }

  .testarticle-hero img {
    max-height: none;
    aspect-ratio: 1 / 1;
  }
}
