/* MOCATEHNO — catalog glue: maps OpenCart core markup onto the static reference look.
   Owned by the catalog/product lane. Loaded from product/{category,search,product}.twig. */

/* --- pagination: core renders <ul class="pagination"><li class="page-item"> --- */
.mk-pagination ul.pagination { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.mk-pagination .page-item { margin: 0; }
.mk-pagination .page-item > a,
.mk-pagination .page-item > span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--nb-line, #EAEAEA); border-left-width: 0;
  background: #fff; color: var(--nb-ink, #222); font-weight: 700; font-size: 14px;
  text-decoration: none;
}
.mk-pagination .page-item:first-child > a,
.mk-pagination .page-item:first-child > span { border-left-width: 1px; border-radius: 4px 0 0 4px; }
.mk-pagination .page-item:last-child > a,
.mk-pagination .page-item:last-child > span { border-radius: 0 4px 4px 0; }
.mk-pagination .page-item.active > a,
.mk-pagination .page-item.active > span,
.mk-pagination .page-item > a:hover { background: var(--nb-orange, #FF7700); border-color: var(--nb-orange, #FF7700); color: #fff; }
.mk-results { text-align: center; margin-top: 10px; font-size: 13px; }

/* --- category filter list --- */
.mk-filter-list li > a.label { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; }
.mk-filter-list li > a.label:hover span { color: var(--nb-orange, #FF7700); }
.mk-filter-box {
  width: 18px; height: 18px; flex: 0 0 18px;
  border: 1px solid #cfcfcf; border-radius: 3px; background: #fff;
}

/* PDP rating sits under the title, left aligned (cards center theirs) */
.mk-pdp-info .mk-stars { justify-content: flex-start; margin-bottom: 10px; }
.mk-pdp-form { margin: 0; }

/* --- search page --- */
.mk-search-page { max-width: 560px; margin-bottom: 14px; }
.mk-search-head { margin-top: 6px; }

/* --- product page: options, tables, reviews --- */
.mk-pdp-options { border-top: 1px solid var(--nb-line, #EAEAEA); padding-top: 14px; margin-bottom: 14px; }
.mk-opt { margin-bottom: 12px; }
.mk-opt-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.mk-opt-choice { display: flex; align-items: center; gap: 8px; padding: 2px 0; font-size: 14px; justify-content: flex-start; }
.mk-input, .mk-pdp-options .select { border: 1px solid var(--nb-line, #EAEAEA); border-radius: 4px; width: 100%; max-width: 340px; }
.mk-pdp-options .invalid-feedback { color: #c0392b; font-size: 12px; }
.mk-pdp-options .invalid-feedback:not(.d-block) { display: none; }
.mk-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mk-stock { color: #1a9d4b; font-weight: 700; font-size: 14px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

/* reviews rendered by core product/review.twig */
.mk-prose form .form-control,
.mk-prose form .form-select,
.mk-prose form textarea,
.mk-prose form input[type="text"] {
  border: 1px solid var(--nb-line, #EAEAEA); border-radius: 4px; padding: 8px 10px; width: 100%; max-width: 520px;
}
.mk-prose form .btn-primary,
.mk-prose form button[type="submit"] {
  background: var(--nb-orange, #FF7700); border-color: var(--nb-orange, #FF7700); color: #fff;
  border-radius: 4px; font-weight: 700; padding: 10px 22px;
}

/* --- category grid: 4 cards per row (12 per page = 3 rows) --- */
.mk-listing .mk-prod-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1279px) { .mk-listing .mk-prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .mk-listing .mk-prod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* --- listing head: sort select + products per page --- */
/* Leere Suche: Titel und Sortierung stehen untereinander, wenn es eng wird. */
.mk-listing-head-empty { flex-wrap: wrap; align-items: flex-end; }
.mk-listing-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.mk-listing-tools .mk-limit .mk-select { min-width: 90px; }
.mk-sort { display: flex; align-items: center; gap: 8px; }
.mk-sort-label { font-size: 13px; color: var(--nb-muted, #7a7a7a); white-space: nowrap; }
.mk-listing-head .mk-select { min-width: 230px; border: 1px solid var(--nb-line, #EAEAEA); border-radius: 4px; font-size: 14px; }

/* --- category filter form --- */
.mk-filter-form { margin: 0; }
.mk-filter-form .mk-filter-list li > label.label { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 14px; }
.mk-filter-form .mk-check { width: 16px; height: 16px; flex: 0 0 16px; accent-color: var(--nb-orange, #FF7700); }
.mk-filter-count { margin-left: auto; font-size: 12px; color: var(--nb-muted, #7a7a7a); }
.mk-price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.mk-price-field { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--nb-muted, #7a7a7a); }
.mk-price-input { width: 100%; height: 34px; border: 1px solid var(--nb-line, #EAEAEA); border-radius: 4px; padding: 0 8px; font-size: 14px; background: #fff; }
.mk-range { width: 100%; accent-color: var(--nb-orange, #FF7700); }
.mk-filter-select { width: 100%; height: 34px; min-height: 34px; border: 1px solid var(--nb-line, #EAEAEA); border-radius: 4px; font-size: 14px; }
.mk-filter-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.mk-filter-apply { width: 100%; min-height: 38px; height: 38px; flex-wrap: nowrap; font-size: 14px; }
.mk-filter-clear { text-align: center; font-size: 13px; color: var(--nb-muted, #7a7a7a); text-decoration: none; }
.mk-filter-clear:hover { color: var(--nb-orange, #FF7700); }

/* --- pagination (1 2 3) --- */
.mk-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 22px; }
.mk-pager-item {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--nb-line, #EAEAEA); border-radius: 6px;
  background: #fff; color: var(--nb-ink, #222); font-weight: 700; font-size: 14px;
  text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
a.mk-pager-item:hover { background: #fff3e8; border-color: var(--nb-orange, #FF7700); color: var(--nb-orange, #FF7700); }
.mk-pager-item.is-active { background: var(--nb-orange, #FF7700); border-color: var(--nb-orange, #FF7700); color: #fff; }
.mk-pager-item.is-disabled { opacity: .45; }
.mk-pager-prev, .mk-pager-next { font-size: 18px; line-height: 1; }

@media (max-width: 640px) {
  .mk-sort { flex: 1 1 0; min-width: 0; flex-direction: column; align-items: stretch; gap: 4px; }
  .mk-sort-label { white-space: normal; font-size: 12px; }
  .mk-listing-head .mk-select { min-width: 0; }
  .mk-pager-item { min-width: 34px; height: 34px; padding: 0 8px; font-size: 13px; }
  .mk-table th { width: 45%; font-size: 12px; }
  .mk-table td { font-size: 12px; }
  .mk-listing-head { flex-direction: column; align-items: flex-start; }
  .mk-listing-head .mk-select { width: 100%; }
  .mk-listing-tools { width: 100%; flex-direction: row; flex-wrap: nowrap; align-items: flex-end; gap: 8px; }
  .mk-listing-tools .mk-limit .mk-select { min-width: 0; }
  /* Sortier-Auswahl bekommt den restlichen Platz, damit "Precio: de mayor a
     menor" nicht abgeschnitten wird; Anzahl pro Seite bleibt schmal. */
  .mk-listing-tools .mk-sort { flex: 1 1 auto; }
  .mk-listing-tools .mk-sort.mk-limit { flex: 0 0 122px; }
  .mk-listing-head .mk-select { padding-inline: 10px; font-size: 13px; }
  .mk-pagination .page-item > a, .mk-pagination .page-item > span { min-width: 36px; height: 38px; padding: 0 8px; }
}


/* ============================================================ PDP-Galerie ===
   Hauptbild mit Pfeilen, Miniaturen direkt darunter (6 je Reihe, weich
   scrollend) und Vollbildansicht mit Pfeilen und Schliessknopf.            */
.mk-pdp-gallery { position: relative; }
.mk-pdp-main { position: relative; }
.mk-gal-stage {
  display: block; width: 100%; padding: 0; border: 0; background: transparent;
  cursor: zoom-in; line-height: 0;
}
.mk-gal-stage img { width: 100%; height: 380px; object-fit: contain; }
.mk-gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; padding: 0; border: 1px solid var(--nb-line, #EAEAEA);
  border-radius: 50%; background: rgba(255,255,255,.92); color: var(--nb-ink, #222);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: 20px; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.10);
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
}
.mk-gal-nav:hover { background: var(--nb-orange, #FF7700); border-color: var(--nb-orange, #FF7700); color: #fff; }
.mk-gal-prev { left: 10px; }
.mk-gal-next { right: 10px; }
.mk-gal-zoom {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92);
  border: 1px solid var(--nb-line, #EAEAEA); color: var(--nb-muted, #7a7a7a);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
  pointer-events: none;
}
.mk-gal-count {
  position: absolute; left: 10px; bottom: 10px; z-index: 3;
  background: rgba(255,255,255,.92); border: 1px solid var(--nb-line, #EAEAEA);
  border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700;
  color: var(--nb-muted, #7a7a7a); pointer-events: none;
}

/* --- Miniaturen: genau 6 sichtbar, der Rest scrollt weich weiter --- */
.mk-pdp-thumbs-wrap { position: relative; margin-top: 10px; padding-inline: 26px; }
.mk-pdp-thumbs {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 8px) / 6);
  gap: 8px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory;
  scrollbar-width: none; margin: 0;
}
.mk-pdp-thumbs::-webkit-scrollbar { display: none; }
.mk-gal-thumb {
  scroll-snap-align: start; padding: 4px; border: 1px solid var(--nb-line, #EAEAEA);
  border-radius: var(--nb-radius, 8px); background: #fff; cursor: pointer; line-height: 0;
  transition: border-color .15s, box-shadow .15s;
}
.mk-gal-thumb img { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: contain; }
.mk-gal-thumb:hover { border-color: var(--nb-orange, #FF7700); }
.mk-gal-thumb.is-active { border-color: var(--nb-orange, #FF7700); box-shadow: 0 0 0 1px var(--nb-orange, #FF7700) inset; }
.mk-gal-tnav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 22px; height: 42px; padding: 0; border: 1px solid var(--nb-line, #EAEAEA);
  border-radius: 6px; background: #fff; color: var(--nb-ink, #222); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.mk-gal-tnav:hover { background: var(--nb-orange, #FF7700); border-color: var(--nb-orange, #FF7700); color: #fff; }
.mk-gal-tprev { left: 0; }
.mk-gal-tnext { right: 0; }
.mk-pdp-thumbs-wrap.is-static { padding-inline: 0; }
.mk-pdp-thumbs-wrap.is-static .mk-gal-tnav { display: none; }
.mk-pdp-thumbs-wrap.is-static .mk-pdp-thumbs { justify-content: start; }

/* --- Vollbild --- */
.mk-gal-full {
  position: fixed; inset: 0; z-index: 9999; background: rgba(17,17,17,.94);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s ease;
}
.mk-gal-full.is-open { display: flex; opacity: 1; }
.mk-gal-full img { max-width: 88vw; max-height: 86vh; object-fit: contain; }
.mk-gal-full .mk-gal-nav {
  width: 52px; height: 52px; font-size: 26px; background: rgba(255,255,255,.9); border-color: transparent;
}
.mk-gal-full .mk-gal-prev { left: 2vw; }
.mk-gal-full .mk-gal-next { right: 2vw; }
.mk-gal-close {
  position: absolute; top: 18px; right: 18px; z-index: 4;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.9); color: #222; font-size: 22px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.mk-gal-close:hover, .mk-gal-full .mk-gal-nav:hover { background: var(--nb-orange, #FF7700); color: #fff; }
.mk-gal-full .mk-gal-count { top: auto; bottom: 18px; left: 50%; transform: translateX(-50%); }
@media (max-width: 640px) {
  .mk-pdp-thumbs { grid-auto-columns: calc((100% - 3 * 8px) / 4); }
  .mk-gal-stage img { height: 280px; }
}

/* ======================================= PDP: Menge und Merkzettel-Knopf === */
.mk-pdp-buy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.mk-pdp-buy > label { font-size: 13px; font-weight: 700; }
.mk-qty-box-lg { height: 46px; }
.mk-qty-box-lg .mk-qty-step { width: 40px; font-size: 20px; }
.mk-qty-box-lg .mk-qty-num { width: 54px; font-size: 15px; }
.mk-pdp-buy .mk-add-lg { height: 46px; min-height: 46px; min-width: 200px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.mk-pdp-buy .mk-wish {
  position: static; flex: 0 0 46px; width: 46px; height: 46px; border-radius: var(--nb-radius, 8px);
}
.mk-pdp-buy .mk-wish i { font-size: 19px; }

/* ================================= PDP: Reiter (Beschreibung/Merkmale/...) === */
.mk-tabs { border: 1px solid var(--nb-line, #EAEAEA); border-radius: 8px; background: #fff; overflow: hidden; }
.mk-tabs-head {
  display: flex; flex-wrap: wrap; gap: 0;
  border-bottom: 1px solid var(--nb-line, #EAEAEA); background: #fafafa;
}
.mk-tab {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: 14px 22px; font-size: 14px; font-weight: 800; letter-spacing: .02em;
  color: var(--nb-muted, #7a7a7a); text-transform: uppercase;
  border-bottom: 3px solid transparent; transition: color .15s, border-color .15s, background .15s;
}
.mk-tab:hover { color: var(--nb-orange, #FF7700); }
.mk-tab.is-active { color: var(--nb-ink, #222); background: #fff; border-bottom-color: var(--nb-orange, #FF7700); }
.mk-tab-panel { padding: 22px; }
.mk-tab-panel[hidden] { display: none; }
.mk-tab-panel .mk-table-scroll { margin: 0; }

/* ------------------------------------------- PDP: Bewertungen im Reiter ----- */
.mk-review { border: 1px solid var(--nb-line, #EAEAEA); border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; }
.mk-review-head { display: flex; align-items: center; justify-content: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.mk-review-author { font-weight: 800; font-size: 14px; }
.mk-review-head .mk-stars { margin-right: 0; }
.mk-review-date { font-size: 12px; color: var(--nb-muted, #7a7a7a); margin-left: auto; }
.mk-review-text { font-size: 14px; line-height: 1.6; margin: 0; }
.mk-review-empty { font-size: 14px; color: var(--nb-muted, #7a7a7a); }
.mk-review-form { margin-top: 22px; border-top: 1px solid var(--nb-line, #EAEAEA); padding-top: 18px; }
.mk-review-form .mk-h3 { font-size: 16px; font-weight: 800; text-transform: uppercase; margin-bottom: 12px; }
.mk-field { margin-bottom: 14px; }
.mk-field > label, .mk-field > .mk-opt-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.mk-field .mk-input, .mk-field textarea.mk-input { width: 100%; max-width: 560px; }
.mk-rate-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.mk-rate-row input { margin: 0 2px; }
/* Bewertung: fuenf Sterne statt Radio-Kreisen (DOM-Reihenfolge 5..1 fuer die ~-Regeln). */
.mk-rate-stars { display: inline-flex; align-items: center; gap: 5px; font-size: 22px; line-height: 1; }
.mk-rate-stars input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mk-rate-stars .mk-rate-star { display: inline-flex; margin: 0; color: #d9d9d9; cursor: pointer; transition: color .12s; }
.mk-rate-stars input:checked ~ .mk-rate-star { color: #f5a623; }
.mk-rate-stars:hover input:checked ~ .mk-rate-star { color: #d9d9d9; }
.mk-rate-stars .mk-rate-star:hover,
.mk-rate-stars .mk-rate-star:hover ~ .mk-rate-star,
.mk-rate-stars input:focus-visible ~ .mk-rate-star { color: #f5a623; }
.mk-review-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Blaetterleiste der Bewertungen: gleiche Optik wie die Liste (mk-pager). */
.mk-review-pager { display: flex; justify-content: center; margin-top: 18px; }
.mk-review-pager ul.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.mk-review-pager .page-item { margin: 0; }
.mk-review-pager .page-item > a,
.mk-review-pager .page-item > span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--nb-line, #EAEAEA); border-radius: 6px;
  background: #fff; color: var(--nb-ink, #222); font-weight: 700; font-size: 14px;
  text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
.mk-review-pager .page-item > a:hover { background: #fff3e8; border-color: var(--nb-orange, #FF7700); color: var(--nb-orange, #FF7700); }
.mk-review-pager .page-item.active > a,
.mk-review-pager .page-item.active > span { background: var(--nb-orange, #FF7700); border-color: var(--nb-orange, #FF7700); color: #fff; }
.mk-review-pager .page-item.disabled > a,
.mk-review-pager .page-item.disabled > span { opacity: .45; pointer-events: none; }

/* ===================================== PDP: Reihe verwandter Produkte ======= */
.mk-prodcar { position: relative; }
.mk-prodcar-viewport { overflow: hidden; }
.mk-prod-grid.mk-prodcar-track {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 5 * 12px) / 6);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.mk-prod-grid.mk-prodcar-track::-webkit-scrollbar { display: none; }
.mk-prodcar-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid #e2e2e2;
  background: #fff; color: #222; font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.14); transition: background .15s, color .15s, opacity .15s;
}
.mk-prodcar-arrow:hover { background: var(--nb-orange, #FF7700); color: #fff; border-color: transparent; }
.mk-prodcar-prev { left: -14px; }
.mk-prodcar-next { right: -14px; }
.mk-prodcar-arrow[disabled] { opacity: .35; cursor: default; pointer-events: none; }
.mk-prodcar-arrow[hidden] { display: none; }

@media (max-width: 1279px) { .mk-prod-grid.mk-prodcar-track { grid-auto-columns: calc((100% - 3 * 12px) / 4); } }
@media (max-width: 767px) {
  .mk-prod-grid.mk-prodcar-track { grid-auto-columns: calc((100% - 10px) / 2); }
  .mk-prodcar-prev { left: -6px; }
  .mk-prodcar-next { right: -6px; }
  .mk-tab { padding: 12px 14px; font-size: 13px; }
  .mk-tab-panel { padding: 16px 14px; }
}

/* ============================================ Listing bleibt seitlich fest ===
   Kein horizontales Scrollen der Seite, auch bei "100 Produkte pro Seite":
   Rasterspalten duerfen nie breiter werden als der Platz (minmax(0,1fr)),
   lange Produktnamen brechen um, Kopfzeile und Selects bleiben in der Breite. */
.mk-listing,
.mk-listing-main,
.mk-listing-head,
.mk-listing-tools { min-width: 0; max-width: 100%; }
.mk-listing .mk-prod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1279px) { .mk-listing .mk-prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .mk-listing .mk-prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mk-listing .mk-prod-grid > * { min-width: 0; max-width: 100%; }
.mk-listing .mk-prod-grid img { max-width: 100%; height: auto; }
.mk-listing .mk-prod-grid a,
.mk-listing .mk-prod-grid h3,
.mk-listing .mk-prod-grid p,
.mk-listing .mk-prod-grid span { overflow-wrap: anywhere; }
.mk-listing-tools .mk-sort,
.mk-listing-head .mk-select { max-width: 100%; }
@media (max-width: 1023px) {
  .mk-listing-tools .mk-sort { min-width: 0; }
  .mk-listing-head .mk-select { min-width: 0; }
  .mk-listing-main .mk-pager { max-width: 100%; flex-wrap: wrap; }
}
@media (min-width: 641px) and (max-width: 1023px) {
  .mk-listing-tools { flex-wrap: wrap; }
}

/* === Mobil-PDP: Brotkrumen, Kaufzeile und Reiter bleiben je in einer Reihe ===
   Auf schmalen Schirmen darf nichts seitlich rollen: die Brotkrumen kuerzen
   den Produktnamen mit "...", Menge/Merkzettel/Korb stehen nebeneinander und
   die drei Reiter teilen die Breite fest untereinander auf. */
@media (max-width: 767px) {
  /* --- 1. Brotkrumen: eine Reihe, kein Rollbalken, Name mit Auslassung --- */
  .mk-crumb { overflow: hidden; }
  .mk-crumb-nav { max-width: 100%; overflow: hidden; }
  .mk-crumb-nav::-webkit-scrollbar { width: 0; height: 0; display: none; }
  .mk-crumb-nav > ul {
    flex-wrap: nowrap; min-width: 0; max-width: 100%; overflow: hidden;
  }
  .mk-crumb-nav > ul > li { flex: 0 0 auto; min-width: 0; white-space: nowrap; }
  /* Trenner wandert vom naechsten Element auf das vorige, damit der letzte
     Eintrag ein reiner Blockkasten fuer text-overflow sein kann. */
  .mk-crumb-nav > ul > li + li::before { content: none; display: none; margin: 0; }
  .mk-crumb-nav > ul > li:not(:last-child)::after {
    content: "/"; margin: 0 6px; color: var(--nb-line, #EAEAEA); flex: 0 0 auto;
  }
  .mk-crumb-nav > ul > li:last-child {
    display: block; flex: 1 1 auto; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }

  /* --- 3. Reiter: drei feste Spalten, nichts rollt, nichts bricht um --- */
  .mk-tabs-head { flex-wrap: nowrap; overflow: hidden; }
  .mk-tab {
    flex: 1 1 0; min-width: 0; padding: 11px 4px; font-size: 11px;
    letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
}

@media (max-width: 400px) {
  .mk-tab { font-size: 10px; padding: 11px 2px; }
}

@media (max-width: 640px) {
  /* --- 2. Kaufzeile: Menge, Merkzettel und Korb in einer Reihe --- */
  .mk-pdp-buy { flex-wrap: nowrap; gap: 8px; min-width: 0; }
  .mk-pdp-buy > label { flex: 0 0 auto; white-space: nowrap; }
  .mk-pdp-buy .mk-qty-box-lg { flex: 0 0 auto; }
  .mk-qty-box-lg .mk-qty-step { width: 34px; }
  .mk-qty-box-lg .mk-qty-num { width: 40px; }
  .mk-pdp-buy .mk-add-lg {
    flex: 1 1 auto; min-width: 44px; width: auto; padding-inline: 8px;
  }
  /* Beschriftung faellt weg, das Korb-Zeichen genuegt auf dem Telefon. */
  .mk-pdp-buy .mk-add-lg span { display: none; }
  .mk-pdp-buy .mk-add-lg i { font-size: 19px; }
  .mk-pdp-buy .mk-wish { flex: 0 0 44px; width: 44px; height: 44px; }
}


/* ===================================== Marken, Sitemap, Vergleich ==========
   Diese drei Seiten kamen bis jetzt mit den Kernvorlagen (Bootstrap-Raster und
   FontAwesome-Zeichen, die der Laden gar nicht laedt). Die eigenen Vorlagen
   nutzen dieselbe Schrift und dieselben Abstaende wie die uebrigen Seiten. */

/* Markenverzeichnis */
.mk-brand-index { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 26px; }
.mk-brand-index-label { font-size: 13px; font-weight: 700; color: var(--nb-muted, #7a7a7a); margin-right: 6px; }
.mk-brand-letter {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 8px;
  border: 1px solid var(--nb-line, #EAEAEA); border-radius: 6px;
  background: #fff; color: var(--nb-ink, #222); font-weight: 700; font-size: 14px;
}
.mk-brand-letter:hover { background: #fff3e8; border-color: var(--nb-orange, #FF7700); color: var(--nb-orange, #FF7700); }
.mk-brand-group { margin-bottom: 26px; scroll-margin-top: 120px; }
.mk-brand-head { border-bottom: 1px solid var(--nb-line, #EAEAEA); padding-bottom: 6px; margin-bottom: 12px; }
.mk-brand-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mk-brand-list a { font-size: 14px; color: var(--nb-ink, #222); }
.mk-brand-list a:hover { color: var(--nb-orange, #FF7700); }
@media (max-width: 1023px) { .mk-brand-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px)  { .mk-brand-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Markenliste: gleiche Liste wie die Kategorie, nur ohne Filterspalte. */
.mk-listing-plain { grid-template-columns: 1fr; }

/* Sitemap */
.mk-sitemap { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) { .mk-sitemap { grid-template-columns: 1fr; } }
.mk-sitemap-col > h2 { border-bottom: 1px solid var(--nb-line, #EAEAEA); padding-bottom: 6px; margin-bottom: 12px; }
.mk-sitemap ul { list-style: none; margin: 0; padding: 0; }
.mk-sitemap li { font-size: 14px; line-height: 1.9; }
.mk-sitemap a { color: var(--nb-ink, #222); }
.mk-sitemap a:hover { color: var(--nb-orange, #FF7700); }
.mk-sitemap ul ul { margin-left: 16px; border-left: 1px solid var(--nb-line, #EAEAEA); padding-left: 12px; }
.mk-sitemap ul ul a { color: var(--nb-muted, #7a7a7a); }

/* Vergleich */
.mk-compare-wrap { overflow-x: auto; }
.mk-compare { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.mk-compare th, .mk-compare td { border: 1px solid var(--nb-line, #EAEAEA); padding: 10px; vertical-align: top; min-width: 190px; }
.mk-compare thead td, .mk-compare th { background: #fafafa; font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .02em; }
.mk-compare td:first-child { min-width: 150px; font-weight: 700; color: var(--nb-muted, #7a7a7a); }
.mk-compare img { max-width: 130px; height: auto; }
.mk-compare .mk-price-new { color: var(--nb-orange, #FF7700); font-weight: 800; }
.mk-compare-actions { display: flex; flex-direction: column; gap: 8px; }
