/* XiaomiMarket â€” CATEGORY CSS (HARD OVERRIDE)
 * Strictly scoped to #xm-category-root / .xm-cat-host.
 * Never touches homepage selectors (.xm-homepage / #xm-root) and never sets
 * global html/body styles.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

/* ---- Safety net: hide ANY Shoptet category-shell remnant that escaped JS */
.xm-cat-host > #category-header,
.xm-cat-host > #products.products-page,
.xm-cat-host > .category-top,
.xm-cat-host > .category-perex,
.xm-cat-host > .category-content-wrapper,
.xm-cat-host > .products-top-wrapper,
.xm-cat-host > .listingControls,
.xm-cat-host > .pagination,
.xm-cat-host > #filters,
.xm-cat-host > #filters-wrapper,
.xm-cat-host > .box-filters,
.xm-cat-host > .category-empty,
.xm-cat-host > .no-items,
.xm-cat-host > .category-description,
.xm-cat-host > .category-bottom-description,
.xm-cat-host > aside.sidebar,
.xm-cat-host > #sidebar-position,
.xm-cat-host > .sidebar-position { display: none !important; }

/* ---- Root ----------------------------------------------------------- */
#xm-category-root.xm-cat {
  --xm-bg: #f5f5f7;
  --xm-surface: #ffffff;
  --xm-ink: #111111;
  --xm-ink-soft: #6b7280;
  --xm-line: #e6e6e9;
  --xm-brand: #F26522;
  --xm-brand-light: #FFF0E6;
  --xm-brand-ink: #ffffff;
  --xm-radius: 14px;
  --xm-radius-sm: 8px;
  --xm-shadow: 0 2px 6px rgba(0,0,0,.06);
  --xm-shadow-hover: 0 2px 6px rgba(0,0,0,.06), 0 16px 40px rgba(0,0,0,.12);

  font-family: 'Inter', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--xm-ink);
  background: var(--xm-bg);
  padding: 20px;
  border-radius: var(--xm-radius);
  margin: 14px 0 32px;
  box-sizing: border-box;
}
#xm-category-root *, #xm-category-root *::before, #xm-category-root *::after { box-sizing: border-box; }
#xm-category-root img, #xm-category-root svg { display:block; max-width:100%; }
#xm-category-root a { color: inherit; text-decoration: none; }
#xm-category-root ul { list-style: none; padding: 0; margin: 0; }

/* ---- Crumbs --------------------------------------------------------- */
#xm-category-root .xm-cat-crumbs {
  font-size: 13px; color: var(--xm-ink-soft); margin-bottom: 12px;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
#xm-category-root .xm-cat-crumbs a { color: var(--xm-ink-soft); }
#xm-category-root .xm-cat-crumbs a:hover { color: var(--xm-brand); }
#xm-category-root .xm-cat-crumbs__sep { opacity: .5; }

/* ---- Hero ----------------------------------------------------------- */
#xm-category-root .xm-cat-hero {
  background: linear-gradient(135deg, var(--xm-brand-light) 0%, #ffffff 60%);
  border: 1px solid var(--xm-line); border-radius: var(--xm-radius);
  padding: 28px 24px; margin-bottom: 14px;
}
#xm-category-root .xm-cat-hero__row { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom: 6px; }
#xm-category-root .xm-cat-hero__title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 0;
  letter-spacing: -0.01em;
}
#xm-category-root .xm-cat-hero__count {
  background: var(--xm-brand-light); color: var(--xm-brand);
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 100px;
}
#xm-category-root .xm-cat-hero__perex { color: var(--xm-ink-soft); font-size: 15px; line-height: 1.55; max-width: 70ch; margin: 8px 0 0; }

/* ---- Trust strip ---------------------------------------------------- */
#xm-category-root .xm-cat-trust {
  display:flex; align-items:center; justify-content:space-around; gap:12px;
  background:#fff; border:1px solid var(--xm-line);
  border-radius:var(--xm-radius); padding:12px 16px; margin-bottom:16px;
  flex-wrap:wrap;
}
#xm-category-root .xm-cat-trust__item { font-size:13px; font-weight:500; color:var(--xm-ink); display:inline-flex; align-items:center; gap:6px; }
#xm-category-root .xm-cat-trust__sep { width:1px; height:18px; background:var(--xm-line); }

/* ---- Layout: sidebar + main ---------------------------------------- */
#xm-category-root .xm-cat-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items:flex-start;
}
#xm-category-root .xm-cat-layout:not(:has(.xm-cat-filters)) { grid-template-columns: 1fr; }
#xm-category-root .xm-cat-main { min-width: 0; }

/* ---- Filter cards (target screenshot 2) ---------------------------- */
#xm-category-root .xm-cat-filters {
  display: flex; flex-direction: column; gap: 14px; align-self: start;
  position: sticky; top: 80px;
  background: transparent; border: none; padding: 0; border-radius: 0;
}
#xm-category-root .xm-filter-card {
  background: var(--xm-surface);
  border: 1px solid var(--xm-line);
  border-radius: var(--xm-radius);
  padding: 16px;
}
#xm-category-root .xm-filter-card__head {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--xm-ink-soft);
  font-weight: 600;
  margin-bottom: 10px;
}

/* Kategorie */
#xm-category-root .xm-f-cat { display: flex; flex-direction: column; gap: 2px; }
#xm-category-root .xm-f-cat__item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 8px;
  font-size: 14px; color: var(--xm-ink);
  transition: background .15s, color .15s;
}
#xm-category-root .xm-f-cat__item:hover { background: var(--xm-bg); }
#xm-category-root .xm-f-cat__item.is-active {
  background: var(--xm-brand-light); color: var(--xm-brand); font-weight: 500;
}
#xm-category-root .xm-f-cat__dot {
  width: 6px; height: 6px; border-radius: 50%; background: transparent; flex-shrink: 0;
}
#xm-category-root .xm-f-cat__item.is-active .xm-f-cat__dot { background: var(--xm-brand); }
#xm-category-root .xm-f-cat__label { flex: 1; }
#xm-category-root .xm-f-cat__count {
  font-size: 12px; color: var(--xm-ink-soft); font-variant-numeric: tabular-nums;
}

/* VÃ½robce / sÃ©rie */
#xm-category-root .xm-f-man { display: flex; flex-direction: column; gap: 6px; }
#xm-category-root .xm-f-man__row {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 13px; color: var(--xm-ink);
}
#xm-category-root .xm-f-man__input { position: absolute; opacity: 0; width: 0; height: 0; }
#xm-category-root .xm-f-man__box {
  width: 16px; height: 16px; border: 1.5px solid var(--xm-line);
  border-radius: 3px; flex-shrink: 0; position: relative;
  transition: border-color .15s, background .15s;
}
#xm-category-root .xm-f-man__input:checked + .xm-f-man__box {
  background: var(--xm-brand); border-color: var(--xm-brand);
}
#xm-category-root .xm-f-man__input:checked + .xm-f-man__box::after {
  content: ''; position: absolute; left: 4px; top: 1px;
  width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
#xm-category-root .xm-f-man__label { flex: 1; }
#xm-category-root .xm-f-man__count {
  font-size: 12px; color: var(--xm-ink-soft); font-variant-numeric: tabular-nums;
}

/* Cena */
#xm-category-root .xm-f-price { display: flex; flex-direction: column; gap: 14px; }
#xm-category-root .xm-f-price__slider {
  position: relative; height: 20px; display: flex; align-items: center;
}
#xm-category-root .xm-f-price__track {
  position: absolute; left: 0; right: 0; height: 4px;
  background: #eee; border-radius: 2px;
}
#xm-category-root .xm-f-price__fill {
  position: absolute; height: 4px; background: var(--xm-brand); border-radius: 2px; z-index: 1;
}
#xm-category-root .xm-f-price__range {
  position: absolute; width: 100%; pointer-events: none;
  -webkit-appearance: none; appearance: none; background: none; z-index: 2; height: 20px; margin: 0;
}
#xm-category-root .xm-f-price__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%; background: var(--xm-brand);
  border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18);
  pointer-events: auto; cursor: pointer; margin-top: -6px;
}
#xm-category-root .xm-f-price__range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: var(--xm-brand);
  border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18);
  pointer-events: auto; cursor: pointer;
}
#xm-category-root .xm-f-price__inputs {
  display: flex; align-items: flex-end; gap: 8px;
}
#xm-category-root .xm-f-price__field {
  flex: 1; display: flex; flex-direction: column; gap: 4px;
}
#xm-category-root .xm-f-price__field-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--xm-ink-soft); font-weight: 500;
}
#xm-category-root .xm-f-price__input {
  width: 100%; height: 38px; border: 1px solid var(--xm-line);
  border-radius: var(--xm-radius-sm); padding: 0 10px;
  font-family: inherit; font-size: 13px; color: var(--xm-ink);
  text-align: center;
}
#xm-category-root .xm-f-price__dash {
  color: var(--xm-ink-soft); font-size: 12px; padding-bottom: 10px;
}

/* HodnocenÃ­ */
#xm-category-root .xm-f-rating { display: flex; flex-direction: column; gap: 6px; }
#xm-category-root .xm-f-rating__row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--xm-ink); padding: 4px 0;
}
#xm-category-root .xm-f-rating__stars { display: inline-flex; gap: 1px; letter-spacing: 0; }
#xm-category-root .xm-f-rating__star { color: #e5e5e5; font-size: 14px; line-height: 1; }
#xm-category-root .xm-f-rating__star.is-on { color: var(--xm-brand); }
#xm-category-root .xm-f-rating__label { color: var(--xm-ink-soft); }

/* Dostupnost */
#xm-category-root .xm-f-avail__row {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; font-size: 14px; color: var(--xm-ink);
}
#xm-category-root .xm-f-avail__input { position: absolute; opacity: 0; width: 0; height: 0; }
#xm-category-root .xm-f-avail__switch {
  width: 36px; height: 20px; border-radius: 10px; background: var(--xm-line);
  position: relative; transition: background .2s; flex-shrink: 0;
}
#xm-category-root .xm-f-avail__input:checked + .xm-f-avail__switch { background: var(--xm-brand); }
#xm-category-root .xm-f-avail__knob {
  position: absolute; left: 2px; top: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
  transition: transform .2s;
}
#xm-category-root .xm-f-avail__input:checked + .xm-f-avail__switch .xm-f-avail__knob { transform: translateX(16px); }

/* ---- Toolbar + Sort ------------------------------------------------- */
#xm-category-root .xm-cat-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center;
  justify-content: space-between; background: var(--xm-surface);
  border: 1px solid var(--xm-line); border-radius: var(--xm-radius-sm);
  padding: 10px 14px; margin: 0 0 16px;
}
#xm-category-root .xm-cat-toolbar__count { font-size: 13px; color: var(--xm-ink-soft); }

#xm-category-root .xm-cat-sort {
  display: flex; align-items: center; gap: 8px;
}
#xm-category-root .xm-cat-sort__label {
  font-size: 12px; color: var(--xm-ink-soft); font-weight: 500;
}
#xm-category-root .xm-cat-sort__select-wrap {
  position: relative;
}
#xm-category-root .xm-cat-sort__select {
  appearance: none; -webkit-appearance: none;
  background: #fff; border: 1px solid var(--xm-line);
  color: var(--xm-ink); font-size: 13px; font-family: inherit;
  padding: 6px 28px 6px 12px; border-radius: 999px;
  cursor: pointer; min-width: 160px;
}
#xm-category-root .xm-cat-sort__chevron {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid var(--xm-ink-soft);
  pointer-events: none;
}

/* Sort dropdown (links mode) */
#xm-category-root .xm-cat-sort__dropdown { position: relative; }
#xm-category-root .xm-cat-sort__btn {
  appearance: none; background: #fff; border: 1px solid var(--xm-line);
  color: var(--xm-ink); font-size: 13px; font-family: inherit;
  padding: 6px 28px 6px 12px; border-radius: 999px; cursor: pointer; min-width: 160px;
  text-align: left; position: relative;
}
#xm-category-root .xm-cat-sort__menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--xm-line);
  border-radius: var(--xm-radius-sm); box-shadow: var(--xm-shadow-hover);
  min-width: 180px; display: none; flex-direction: column; z-index: 10; overflow: hidden;
}
#xm-category-root .xm-cat-sort__dropdown:hover .xm-cat-sort__menu,
#xm-category-root .xm-cat-sort__dropdown:focus-within .xm-cat-sort__menu { display: flex; }
#xm-category-root .xm-cat-sort__opt {
  padding: 8px 12px; font-size: 13px; color: var(--xm-ink); white-space: nowrap;
}
#xm-category-root .xm-cat-sort__opt:hover { background: var(--xm-bg); }
#xm-category-root .xm-cat-sort__opt.is-active {
  background: var(--xm-brand-light); color: var(--xm-brand); font-weight: 600;
}

/* ---- Grid + cards --------------------------------------------------- */
#xm-category-root .xm-cat-grid {
  /* Základ (desktop ≥1440px): 4 produkty v řadě.
     Počet sloupců dále řídí breakpoint systém níže. */
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
#xm-category-root .xm-cat-card { margin: 0; padding: 0; }
#xm-category-root .xm-cat-card__inner {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--xm-surface); border: 1px solid var(--xm-line);
  border-radius: var(--xm-radius); overflow:hidden;
  box-shadow: var(--xm-shadow);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
#xm-category-root .xm-cat-card__inner:hover {
  box-shadow: var(--xm-shadow-hover); border-color: transparent; transform: translateY(-3px);
}
#xm-category-root .xm-cat-card__media {
  display:block; aspect-ratio: 1/1; overflow:hidden; background:#fafafa; position:relative;
}
#xm-category-root .xm-cat-card__media img {
  width:100%; height:100%; object-fit: contain; padding:12px; transition: transform .3s ease;
}
#xm-category-root .xm-cat-card__inner:hover .xm-cat-card__media img { transform: scale(1.05); }
#xm-category-root .xm-cat-card__media--ph { background: var(--xm-bg); }

/* ── Bublinky v levém horním rohu fotky: sleva % + odpočet ── */
#xm-category-root .xm-card-bubbles {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}
#xm-category-root .xm-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 700;
}
#xm-category-root .xm-bubble--sale {
  background: var(--xm-brand);
  color: #fff;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px -3px rgba(242,101,34,.6);
}
#xm-category-root .xm-bubble--timer {
  background: rgba(13,13,13,.88);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  padding: 4px 8px;
  border-radius: 7px;
}
@media (max-width: 480px) {
  #xm-category-root .xm-card-bubbles { top: 6px; left: 6px; gap: 4px; }
  #xm-category-root .xm-bubble--sale { font-size: 12px; padding: 5px 8px; }
  #xm-category-root .xm-bubble--timer { font-size: 10px; padding: 3px 6px; }
}

#xm-category-root .xm-cat-card__flags {
  position:absolute; top:10px; left:10px; display:flex; flex-direction:column; gap:4px; z-index:2;
}
#xm-category-root .xm-cat-flag {
  background: var(--xm-brand); color: var(--xm-brand-ink);
  font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 100px;
  letter-spacing: .04em; text-transform: uppercase; line-height: 1.2;
}

#xm-category-root .xm-cat-card__body { padding: 14px 16px 16px; display:flex; flex-direction:column; gap:6px; flex:1; }
#xm-category-root .xm-cat-card__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; color: var(--xm-ink); font-size: 14px; font-weight: 600;
  line-height: 1.4; min-height: 2.7em;
}
#xm-category-root .xm-cat-card__title:hover { color: var(--xm-brand); }
#xm-category-root .xm-cat-card__stock { font-size: 12px; color: var(--xm-ink-soft); display:flex; align-items:center; gap:6px; }
#xm-category-root .xm-cat-card__stock.is-in { color:#22a855; font-weight:500; }
#xm-category-root .xm-cat-card__stock.is-in::before { content:""; width:6px; height:6px; border-radius:50%; background:#22a855; }
#xm-category-root .xm-cat-card__stock.is-out::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--xm-ink-soft); }

#xm-category-root .xm-cat-card__prices { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; margin-top: 2px; }
#xm-category-root .xm-cat-card__price,
#xm-category-root .xm-cat-card__price strong {
  font-family: 'Outfit', 'Inter', sans-serif; font-size: 20px; font-weight: 700; color: var(--xm-ink);
}
#xm-category-root .xm-cat-card__price-old { font-size: 13px; color: var(--xm-ink-soft); text-decoration: line-through; }
#xm-category-root .xm-cat-card__discount {
  background: var(--xm-brand-light); color: var(--xm-brand);
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 100px;
}

#xm-category-root .xm-cat-card__cart { margin-top: 8px; }
#xm-category-root .xm-cat-card__cart form { display: flex; gap: 6px; align-items:center; }
#xm-category-root .xm-cat-card__cart input[type="number"],
#xm-category-root .xm-cat-card__cart input.amount {
  width: 52px; height: 38px; border:1px solid var(--xm-line); border-radius: var(--xm-radius-sm);
  text-align:center; font-family:inherit; font-size:13px;
}
/* CTA "Do košíku" — oranžové, full-width, na hover ztmaví (smarty.cz styl) */
#xm-category-root .xm-cat-card__cart button[type="submit"],
#xm-category-root .xm-cat-card__cart .add-to-cart-button,
#xm-category-root .xm-cat-card__cart .add-to-cart {
  flex: 1; background: var(--xm-brand); color: #fff !important; border: 0;
  border-radius: var(--xm-radius-sm); padding: 10px 12px; font-weight: 700; cursor: pointer;
  font-size: 13px; transition: background .15s; display:inline-flex; align-items:center; justify-content:center; gap:6px;
  font-family: inherit;
}
#xm-category-root .xm-cat-card__cart button[type="submit"]:hover,
#xm-category-root .xm-cat-card__cart .add-to-cart-button:hover { background: #d94f10; }
#xm-category-root .xm-cat-card__detail {
  display: block; margin-top: 8px; text-align: center;
  background: var(--xm-brand); color: #fff; border-radius: var(--xm-radius-sm);
  padding: 10px 12px; font-size: 13px; font-weight: 700;
}
#xm-category-root .xm-cat-card__detail:hover { background: #d94f10; }

/* ---- Empty state ---------------------------------------------------- */
#xm-category-root .xm-cat-empty {
  background: var(--xm-surface); border: 1px solid var(--xm-line);
  border-radius: var(--xm-radius); padding: 48px 24px; text-align: center;
}
#xm-category-root .xm-cat-empty__title { font-size: 16px; margin-bottom: 16px; color: var(--xm-ink-soft); }
#xm-category-root .xm-cat-btn {
  background: var(--xm-brand); color: #fff; padding: 11px 22px;
  border-radius: var(--xm-radius-sm); font-weight: 600; display: inline-block;
}

/* ---- Pagination ----------------------------------------------------- */
#xm-category-root .xm-cat-pagination { margin-top: 20px; display: flex; justify-content: center; }
#xm-category-root .xm-cat-pagination .pagination { display: flex; flex-wrap: wrap; gap: 6px; }
#xm-category-root .xm-cat-pagination .pagination a,
#xm-category-root .xm-cat-pagination .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: var(--xm-radius-sm); border: 1px solid var(--xm-line);
  background:#fff; color: var(--xm-ink); font-size: 13px;
}
#xm-category-root .xm-cat-pagination .pagination .current,
#xm-category-root .xm-cat-pagination .pagination [aria-current="page"] {
  background: var(--xm-brand); color: var(--xm-brand-ink); border-color: var(--xm-brand);
}

/* ============================================================
   RESPONSIVE BREAKPOINT SYSTÉM — KATEGORIE (ÚKOL 1)
   Sloupce gridu produktů dle zařízení:
   ≥1440 → 4 | 1024–1440 → 3 (vč. MacBook 13" 1280) |
   768–1024 → 3 | 600–768 → 2 | <600 → 2 | <360 → 1
   ============================================================ */

/* Full HD / wide (1440–1920) i 4K (≥1920): 4 v řadě (základ) */
@media (min-width: 1440px) {
  #xm-category-root .xm-cat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* MacBook 13"/14" a menší laptopy (1024–1440) → 3 v řadě — PRIORITA */
@media (max-width: 1439px) and (min-width: 1024px) {
  #xm-category-root .xm-cat-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet landscape (768–1024) → 3 v řadě, sidebar → drawer */
@media (max-width: 1023px) {
  #xm-category-root .xm-cat-layout { grid-template-columns: 1fr !important; }
  #xm-category-root .xm-cat-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet portrait (600–768) → 2 v řadě */
@media (max-width: 767px) {
  #xm-category-root.xm-cat { padding: 14px; }
  #xm-category-root .xm-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Velké i standardní mobily (<600) → 2 menší karty */
@media (max-width: 599px) {
  #xm-category-root.xm-cat { padding: 12px; margin: 8px 0 24px; }
  #xm-category-root .xm-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  #xm-category-root .xm-cat-card__body { padding: 10px; gap: 4px; }
  #xm-category-root .xm-cat-card__title { font-size: 13px; min-height: 2.6em; }
  #xm-category-root .xm-cat-card__price { font-size: 17px; }
  #xm-category-root .xm-cat-card__cart button[type="submit"],
  #xm-category-root .xm-cat-card__detail { font-size: 12px; padding: 9px 8px; }
}

/* Malé mobily (<360) → 1 produkt v řadě */
@media (max-width: 359px) {
  #xm-category-root .xm-cat-grid { grid-template-columns: 1fr; }
}

/* ---- Informační (trust) lišta — responzivita ---------------- */
/* Desktop: 4 v řadě (výchozí flex). Tablet: 2×2. Mobil: 2×2 kompakt. */
@media (max-width: 1023px) {
  #xm-category-root .xm-cat-trust {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px;
    justify-content: stretch;
  }
  #xm-category-root .xm-cat-trust__sep { display: none; }
}
@media (max-width: 599px) {
  #xm-category-root .xm-cat-trust { padding: 12px; gap: 10px; }
  #xm-category-root .xm-cat-trust__item { font-size: 12px; }
}

/* ---- Breadcrumb — zkrácení na mobilu ------------------------ */
/* Na úzkých displejích zalomíme/ořízneme dlouhé drobečky. */
@media (max-width: 599px) {
  #xm-category-root .xm-cat-crumbs { font-size: 12px; flex-wrap: nowrap; overflow: hidden; }
  #xm-category-root .xm-cat-crumbs > * { white-space: nowrap; }
  /* Třída přidaná JS na zkrácený prostřední úsek "…" */
  #xm-category-root .xm-cat-crumbs .xm-crumb-ellipsis { color: var(--xm-ink-soft); }
}

/* ============================================================
   FILTRY JAKO DRAWER (<1024px) — ÚKOL 1
   Tlačítko "Filtrovat" (vkládá JS) otevře panel zleva přes overlay.
   ============================================================ */
/* Tlačítko "Filtrovat" — viditelné jen pod 1024px */
#xm-category-root .xm-cat-filter-toggle {
  display: none;
  align-items: center; gap: 8px;
  background: var(--xm-brand); color: #fff;
  border: 0; border-radius: var(--xm-radius-sm);
  font: 600 14px/1 'Inter', sans-serif;
  padding: 11px 18px; cursor: pointer;
  margin: 0 0 14px;
}
#xm-category-root .xm-cat-filter-toggle svg { width: 18px; height: 18px; stroke: #fff; fill: none; }

/* Overlay (tmavé pozadí za drawerem) */
.xm-cat-drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 1400; opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease;
}
.xm-cat-drawer-overlay.is-open { opacity: 1; visibility: visible; }

@media (max-width: 1023px) {
  #xm-category-root .xm-cat-filter-toggle { display: inline-flex; }
  /* Filtry schované mimo obrazovku vlevo */
  #xm-category-root .xm-cat-filters {
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    width: min(330px, 86vw);
    max-height: 100vh; overflow-y: auto;
    background: var(--xm-bg);
    z-index: 1401;
    padding: 18px 16px 32px;
    box-shadow: 6px 0 28px rgba(0,0,0,0.25);
    transform: translateX(-105%);
    transition: transform 0.32s cubic-bezier(0.2,0.7,0.2,1);
  }
  /* Slide-in zleva, když má root třídu .xm-filters-open */
  #xm-category-root.xm-filters-open .xm-cat-filters { transform: translateX(0); }
  /* Hlavička draweru s tlačítkem zavřít (vkládá JS) */
  #xm-category-root .xm-cat-filters-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--xm-line);
  }
  #xm-category-root .xm-cat-filters-head strong { font-size: 16px; }
  #xm-category-root .xm-cat-filters-close {
    background: transparent; border: 0; font-size: 26px; line-height: 1;
    cursor: pointer; color: var(--xm-ink); padding: 0 6px;
  }
}
/* Na desktopu hlavičku draweru nezobrazujeme */
#xm-category-root .xm-cat-filters-head { display: none; }

/* ============================================================
   KARTA PRODUKTU — doplňky smarty.cz (ÚKOL 2)
   ============================================================ */
/* Srdce (oblíbené) — na desktopu se objeví až na hover karty.
   Na dotykových zařízeních (bez hoveru) zůstává viditelné. */
@media (hover: hover) and (pointer: fine) {
  #xm-category-root .xm-cat-card__wishlist { opacity: 0; transition: opacity 0.2s ease, color 0.2s, border-color 0.2s; }
  #xm-category-root .xm-cat-card__inner:hover .xm-cat-card__wishlist,
  #xm-category-root .xm-cat-card__wishlist:focus,
  #xm-category-root .xm-cat-card__wishlist.is-active { opacity: 1; }
}

/* Klíčové parametry (highlights) — volitelně plní JS z krátkého popisu */
#xm-category-root .xm-cat-card__highlights {
  list-style: none; padding: 0; margin: 2px 0 0;
  font-size: 12px; color: #555; display: flex; flex-direction: column; gap: 2px;
}
#xm-category-root .xm-cat-card__highlights li::before {
  content: "✓ "; color: var(--xm-brand); font-weight: 700;
}

/* Quick view — tlačítko "Rychlý náhled" uprostřed fotky (vkládá JS) */
#xm-category-root .xm-cat-card__media { position: relative; }
#xm-category-root .xm-cat-quickview {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -40%);
  background: rgba(17,17,17,0.86); color: #fff; border: 0;
  font: 600 12px/1 'Inter', sans-serif; padding: 9px 16px;
  border-radius: 999px; cursor: pointer; white-space: nowrap;
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3;
}
#xm-category-root .xm-cat-card__inner:hover .xm-cat-quickview {
  opacity: 1; visibility: visible; transform: translate(-50%, -50%);
}
#xm-category-root .xm-cat-quickview:hover { background: var(--xm-brand); }
@media (hover: none) { #xm-category-root .xm-cat-quickview { display: none; } }

/* ============================================================
   CLEAN VZHLED KATEGORIÃ (OdstranÄ›nÃ­ okrajÅ¯ a hover efektÅ¯)
   ============================================================ */

/* 1. OdstranÄ›nÃ­ bÃ­lÃ½ch okrajÅ¯ (wrapperu) POUZE pro strÃ¡nky kategoriÃ­ */
html[data-xm-category="1"] body.xm-enhanced #content-wrapper,
html[data-xm-category="1"] body.xm-enhanced .content-wrapper,
html[data-xm-category="1"] body.xm-enhanced #content {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* 2. HOVER karty (smarty.cz styl) — karta se lehce zdvihne + stín.
   Dříve bylo vypnuto; na přání (Úkol 2) znovu zapnuto. */
#xm-category-root .xm-cat-card__inner:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
}

/* 3. Zoom fotky produktu při najetí myší (smarty.cz styl) */
#xm-category-root .xm-cat-card__inner:hover .xm-cat-card__media img {
    transform: scale(1.06) !important;
}

/* ============================================================
   OPRAVA WISH LISTU (SrdÃ­Äka) A STROMEÄŒKOVÃ‰HO MENU
   ============================================================ */

/* 1. UmÃ­stÄ›nÃ­ a zmenÅ¡enÃ­ srdÃ­Äek na kartÄ› produktu */
#xm-category-root .xm-cat-card__wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 1px solid var(--xm-line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--xm-ink-soft);
    padding: 6px;
    transition: all 0.2s ease;
}

#xm-category-root .xm-cat-card__wishlist svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

#xm-category-root .xm-cat-card__wishlist:hover,
#xm-category-root .xm-cat-card__wishlist.is-active {
    color: var(--xm-brand);
    border-color: var(--xm-brand);
}

/* 2. Oprava stromeÄkovÃ©ho uspoÅ™Ã¡dÃ¡nÃ­ kategoriÃ­ (sidebar) */
#xm-category-root .xm-f-cat--tree {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#xm-category-root .xm-f-cat__item {
    display: flex;
    flex-direction: column; /* ZajistÃ­, Å¾e podkategorie budou pod hlavnÃ­ */
    padding: 0;
    background: transparent !important;
}

#xm-category-root .xm-f-cat__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

#xm-category-root .xm-f-cat__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--xm-ink);
    flex: 1;
    transition: background 0.15s;
    text-decoration: none;
}

#xm-category-root .xm-f-cat__link:hover {
    background: var(--xm-bg);
}

#xm-category-root .xm-f-cat__toggle {
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--xm-ink-soft);
}

#xm-category-root .xm-f-cat__toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

#xm-category-root .xm-f-cat__item.is-open .xm-f-cat__toggle svg {
    transform: rotate(180deg);
}

#xm-category-root .xm-f-cat__sub {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding-left: 28px; /* OdsazenÃ­ podkategoriÃ­ doprava */
    margin-top: 4px;
}

#xm-category-root .xm-f-cat__sub.is-visible {
    display: flex; /* ZobrazÃ­ podkategorie, kdyÅ¾ mÃ¡ rodiÄ is-visible */
}

#xm-category-root .xm-f-cat__sub-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--xm-ink-soft);
    padding: 6px 8px;
    text-decoration: none;
    transition: color 0.15s;
}

#xm-category-root .xm-f-cat__sub-item:hover {
    color: var(--xm-brand);
}

#xm-category-root .xm-f-cat__sub-dot {
    width: 4px;
    height: 4px;
    background: var(--xm-ink-soft);
    border-radius: 50%;
}

/* ============================================================
   SKRYTÍ PŮVODNÍ DROBEČKOVÉ NAVIGACE SHOPTETU
   ============================================================ */
html[data-xm-category="1"] .breadcrumbs-wrapper,
html[data-xm-category="1"] .breadcrumbs {
    display: none !important;
}

/* Vybarvení srdíčka po kliknutí */
#xm-category-root .xm-cat-card__wishlist.is-active svg {
    fill: var(--xm-brand) !important;
}

/* ============================================================
   QUICK VIEW MODAL (Rychlý náhled) — ÚKOL 2
   Samostatný overlay (mimo #xm-category-root), tmavé pozadí.
   ============================================================ */
.xm-quickview-modal {
    position: fixed; inset: 0; z-index: 1600;
    display: flex; align-items: center; justify-content: center;
    background: rgba(8,8,8,0.72);
    opacity: 0; visibility: hidden; transition: opacity 0.25s ease;
    padding: 20px;
    font-family: 'Inter', system-ui, sans-serif;
}
.xm-quickview-modal.is-open { opacity: 1; visibility: visible; }
.xm-quickview-box {
    background: #fff; border-radius: 14px; overflow: hidden;
    width: min(720px, 100%); max-height: 90vh; overflow-y: auto;
    display: grid; grid-template-columns: 1fr 1fr;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
    transform: translateY(12px); transition: transform 0.25s ease;
}
.xm-quickview-modal.is-open .xm-quickview-box { transform: translateY(0); }
.xm-quickview-media { background: #f6f6f8; display: flex; align-items: center; justify-content: center; padding: 24px; }
.xm-quickview-media img { max-width: 100%; max-height: 320px; object-fit: contain; }
.xm-quickview-info { padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.xm-quickview-name { font-size: 18px; font-weight: 700; line-height: 1.35; color: #111; }
.xm-quickview-stock { font-size: 13px; font-weight: 600; }
.xm-quickview-stock.is-in { color: #22a855; }
.xm-quickview-stock.is-out { color: #888; }
.xm-quickview-prices { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.xm-quickview-price { font-family: 'Outfit','Inter',sans-serif; font-size: 26px; font-weight: 800; color: #111; }
.xm-quickview-price-old { font-size: 15px; color: #999; text-decoration: line-through; }
.xm-quickview-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.xm-quickview-btn {
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 9px; padding: 12px 16px; cursor: pointer;
    font: 700 14px/1 'Inter', sans-serif; text-decoration: none;
}
.xm-quickview-btn--cart { background: #ff6600; color: #fff; }
.xm-quickview-btn--cart:hover { background: #d94f10; }
.xm-quickview-btn--detail { background: #111; color: #fff; }
.xm-quickview-btn--detail:hover { background: #333; }
.xm-quickview-close {
    position: absolute; top: 12px; right: 14px;
    background: rgba(0,0,0,0.06); border: 0; border-radius: 50%;
    width: 34px; height: 34px; font-size: 22px; line-height: 1; cursor: pointer; color: #111;
}
.xm-quickview-close:hover { background: rgba(0,0,0,0.12); }
@media (max-width: 600px) {
    .xm-quickview-box { grid-template-columns: 1fr; }
    .xm-quickview-media { padding: 18px; }
    .xm-quickview-media img { max-height: 220px; }
    .xm-quickview-info { padding: 20px; }
}