/* =========================================================================
   LA ELITE – stránka kategorie / výpis produktů (Shoptet)
   Vzhled → Editor vzhledu → Vlastní CSS (vložte ZA menu.css a homepage.css)
   -------------------------------------------------------------------------
   Vše je zapouzdřeno pod body.type-category, jiné stránky se nezmění.
   Sjednocuje písmo, barvy, linky a hover efekty s úvodní stránkou.
   ========================================================================= */

body.type-category {
  --le-ink:      #14171a;
  --le-ink-soft: #5a6470;
  --le-line:     #e3e6ea;
  --le-bg-alt:   #f5f4f1;
  --le-accent:   #b0894f;
  --le-radius:   2px;
}

body.type-category .content-wrapper-in {
  padding-top: clamp(8px, 1.2vw, 16px);
  padding-bottom: clamp(48px, 6vw, 96px);
}

/* ================================================================ nadpis */
body.type-category .category-top { margin-bottom: clamp(28px, 4vw, 52px); }
body.type-category .category-title {
  margin: 0 0 clamp(20px, 2.4vw, 32px);
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--le-ink);
}
/* tenká mosazná linka pod nadpisem jako akcent */
body.type-category .category-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 18px;
  background: var(--le-accent);
}

/* ============================================================ podkategorie */
/* místo „složek" (folder.svg) elegantní textové dlaždice */
body.type-category .subcategories {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 clamp(24px, 3vw, 40px);
  padding: 0;
  list-style: none;
}
body.type-category .subcategories li {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}
body.type-category .subcategories .image { display: none !important; }
body.type-category .subcategories li a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--le-line);
  border-radius: var(--le-radius);
  background: #fff;
  color: var(--le-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
body.type-category .subcategories li a:hover,
body.type-category .subcategories li a:focus {
  background: var(--le-ink);
  border-color: var(--le-ink);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}
body.type-category .subcategories .text { display: inline; padding: 0; color: inherit; font: inherit; }

/* „Nejprodávanější" jen zdvojuje celý výpis níže (u 9 produktů) */
body.type-category .products-top-wrapper { display: none !important; }

/* =========================================================== řazení produktů */
body.type-category .category-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 0 0 clamp(20px, 2.4vw, 32px);
  padding: 0 0 14px;
  border-bottom: 1px solid var(--le-line);
  background: none;
}
body.type-category .listSorting__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.type-category .listSorting__control {
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--le-ink-soft);
  cursor: pointer;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 2px);
  background-size: 0 1px;
  transition: color .25s ease, background-size .35s ease;
}
body.type-category .listSorting__control:hover { color: var(--le-accent); background-size: 100% 1px; }
body.type-category .listSorting__control--current,
body.type-category .listSorting__control--current:hover {
  color: var(--le-ink);
  background-size: 100% 1px;
  background-color: transparent;
}
body.type-category .listItemsTotal { font-size: 13px; color: var(--le-ink-soft); letter-spacing: .04em; }
body.type-category .listItemsTotal strong { color: var(--le-ink); font-weight: 600; }

/* ============================================================ karty produktů */
body.type-category #products.products-page,
body.type-category #products.products-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
  margin: 0;
}
body.type-category #products .product {
  float: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
}
body.type-category #products .product .p {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  background: #fff;
  border: 1px solid var(--le-line);
  border-radius: 0;
  box-shadow: none;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
body.type-category #products .product .p:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(20, 23, 26, .13);
}

/* fotka: celá, bez ořezu, na bílém podkladu */
body.type-category #products .product .p > .image {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--le-line);
}
body.type-category #products .product .p > .image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .7s ease;
}
body.type-category #products .product .p:hover > .image img { transform: scale(1.04); }

body.type-category #products .product .p-in {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: clamp(22px, 2.2vw, 30px);
}
body.type-category #products .product .p-in-in { flex: 1 1 auto; }
body.type-category #products .product .name {
  display: block;
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--le-ink);
  text-decoration: none;
}
/* šablona ořezává název pevnou výškou / line-clamp – zrušíme */
body.type-category #products .product .p-in-in,
body.type-category #products .product .name,
body.type-category #products .product .name span {
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}
body.type-category #products .product .name { display: block; padding-bottom: 2px; }
body.type-category #products .product .name span { display: inline; }
body.type-category #products .product .name:hover { color: var(--le-accent); text-decoration: none; }

body.type-category #products .product .availability { font-size: 13px; letter-spacing: .04em; }
body.type-category #products .product .stars-placeholder { display: none; }
body.type-category #products .product .p-desc {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--le-ink-soft);
}

/* cena + tlačítko dole, oddělené linkou (jako seznam rozměrů u karet na homepage) */
body.type-category #products .product .p-bottom {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--le-line);
}
body.type-category #products .product .price-final,
body.type-category #products .product .price-final strong {
  font-size: 22px;
  font-weight: 400;
  color: var(--le-ink);
}
body.type-category #products .product .p-tools { margin-top: 16px; }
body.type-category #products .product .btn-cart,
body.type-category #products .product .add-to-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid var(--le-accent);
  border-radius: var(--le-radius);
  background: var(--le-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: none;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
body.type-category #products .product .btn-cart:hover,
body.type-category #products .product .add-to-cart-button:hover {
  background: var(--le-ink);
  border-color: var(--le-ink);
  color: #fff;
  transform: translateY(-2px);
}
body.type-category #products .product > .p > .p-code {
  padding: 0 clamp(22px, 2.2vw, 30px) 20px;
  font-size: 12px;
  letter-spacing: .06em;
  color: #8a929c;
}

/* ============================================================== postranní panel */
body.type-category .sidebar .box {
  margin-bottom: 28px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
body.type-category .sidebar .pageElement__heading,
body.type-category .sidebar .filters h4,
body.type-category .sidebar .slider-wrapper h4 {
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--le-line);
  background: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--le-accent);
}

/* kategorie */
body.type-category #categories,
body.type-category #categories ul { margin: 0; padding: 0; list-style: none; background: none; border: 0; }
body.type-category #categories .topic > a,
body.type-category #categories li > a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--le-ink);
  background: none;
  text-decoration: none;
  transition: color .22s ease, padding-left .28s ease;
}
body.type-category #categories .topic > a { font-weight: 600; }
body.type-category #categories ul { padding-left: 14px; margin: 2px 0 8px; border-left: 1px solid var(--le-line); }
body.type-category #categories ul li > a { color: var(--le-ink-soft); font-size: 14px; }
body.type-category #categories a:hover { color: var(--le-accent); padding-left: 6px; text-decoration: none; }

/* filtry */
body.type-category .filters-wrapper,
body.type-category #filters { background: none; border: 0; padding: 0; }
body.type-category .filter-label { font-size: 14px; color: var(--le-ink-soft); }
body.type-category .filter-count { color: #8a929c; }
body.type-category .filter-section-button a { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--le-ink); }
body.type-category .filter-section-button a:hover { color: var(--le-accent); }
body.type-category .filters .slider-header { font-size: 13px; color: var(--le-ink-soft); }
body.type-category .ui-slider { background: var(--le-line); border: 0; height: 2px; }
body.type-category .ui-slider .ui-slider-range { background: var(--le-accent); }
body.type-category .ui-slider .ui-slider-handle {
  top: -6px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--le-accent);
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
}

/* zbytečné boxy v panelu (loga plateb, Top 10 zdvojuje výpis) */
body.type-category .box-onlinePayments,
body.type-category .box-topProducts { display: none !important; }

/* ================================================================= responz */
@media (max-width: 1199px) {
  body.type-category #products.products-page,
  body.type-category #products.products-block { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  body.type-category #products.products-page,
  body.type-category #products.products-block { grid-template-columns: 1fr; }
  body.type-category .subcategories li a { min-height: 44px; padding: 0 20px; }
  body.type-category .category-header { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  body.type-category #products .product .p,
  body.type-category #products .product .p > .image img { transition: none; }
}
