/* ══════════════════════════════
   MAGAZIN — Breadcrumb
══════════════════════════════ */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--faint);
  padding: 14px 0;
  font-family: 'DM Sans', sans-serif;
}
.breadcrumb a {
  color: var(--faint); text-decoration: none;
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--orange) }
.breadcrumb-sep {
  color: var(--orange); font-size: 14px; font-weight: 600;
  line-height: 1; flex-shrink: 0;
}
.breadcrumb-current {
  color: var(--text); font-weight: 600;
}

/* ══════════════════════════════
   MAGAZIN — Catalog Layout
══════════════════════════════ */
.catalog-row {
  display: flex; gap: 20px; align-items: flex-start;
}

/* ══════════════════════════════
   MAGAZIN — Filter Sidebar
══════════════════════════════ */
.filter-sidebar {
  width: 240px; flex-shrink: 0;
  position: sticky; top: 82px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* Header */
.filter-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border-lt);
  position: sticky; top: 0; background: var(--card); z-index: 1;
}
.filter-header-title {
  font-family: 'Nunito', sans-serif;
  font-size: 15px; font-weight: 700; color: var(--text);
}
.filter-reset {
  border: none; background: none; padding: 0;
  font-size: 12px; font-weight: 600; color: var(--orange);
  font-family: 'DM Sans', sans-serif; cursor: pointer;
  transition: color var(--transition);
}
.filter-reset:hover { color: var(--orange-dk) }

/* Filter group / accordion */
.filter-group {
  border-bottom: 1px solid var(--border-lt);
}
.filter-group:last-child { border-bottom: none }

.filter-title {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 18px;
  font-family: 'Nunito', sans-serif;
  font-size: 12px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text); background: none; border: none;
  cursor: pointer; transition: color var(--transition);
}
.filter-title:hover { color: var(--orange) }
.filter-chevron {
  transition: transform var(--transition); flex-shrink: 0;
}
.filter-title[aria-expanded="false"] .filter-chevron {
  transform: rotate(-90deg);
}

/* Collapsible body */
.filter-body {
  padding: 0 18px;
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.filter-body.open {
  max-height: 600px; padding: 0 18px 16px;
}

/* Checkbox list — max 7 visible, scrollable */
.filter-list {
  list-style: none;
  max-height: calc(7 * 29px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.filter-list::-webkit-scrollbar { width: 4px }
.filter-list::-webkit-scrollbar-track { background: transparent }
.filter-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px }
.filter-list::-webkit-scrollbar-thumb:hover { background: var(--faint) }
.filter-list li { margin-bottom: 2px }

.filter-check {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0; font-size: 13px; color: var(--muted);
  cursor: pointer; transition: color var(--transition);
}
.filter-check:hover { color: var(--text) }
.filter-count {
  margin-left: auto; font-size: 11px; color: var(--faint); font-weight: 400;
}
.filter-check input[type="checkbox"] {
  width: 16px; height: 16px; border-radius: 4px;
  border: 1.5px solid var(--border); appearance: none;
  background: var(--bg); cursor: pointer; flex-shrink: 0;
  transition: all var(--transition);
}
.filter-check input[type="checkbox"]:checked {
  background: var(--orange); border-color: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ══════════════════════════════
   MAGAZIN — Price Range Slider
══════════════════════════════ */
.range-slider {
  position: relative; height: 32px; margin-bottom: 10px;
}
.range-track {
  position: absolute; top: 50%; left: 0; right: 0;
  height: 4px; background: var(--border-lt);
  border-radius: 2px; transform: translateY(-50%);
}
.range-fill {
  position: absolute; height: 100%;
  background: var(--orange); border-radius: 2px;
}
.range-thumb {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 100%; margin: 0; padding: 0;
  appearance: none; background: none;
  pointer-events: none; z-index: 2;
}
.range-thumb::-webkit-slider-thumb {
  appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange); border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  cursor: pointer; pointer-events: all;
  transition: transform var(--transition), box-shadow var(--transition);
}
.range-thumb::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(229,118,37,.4);
}
.range-thumb::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange); border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  cursor: pointer;
}
.range-thumb::-moz-range-track { background: transparent }

.price-range {
  display: flex; align-items: center; gap: 6px;
}
.price-input {
  width: 70px; height: 34px; padding: 0 8px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 12.5px; color: var(--text); background: var(--bg);
  font-family: 'DM Sans', sans-serif; outline: none;
  transition: border-color var(--transition);
}
.price-input:focus { border-color: var(--orange) }
.price-input::placeholder { color: var(--faint) }
.price-sep { color: var(--faint); font-size: 13px }
.price-unit { font-size: 12px; color: var(--faint); white-space: nowrap }

/* ══════════════════════════════
   MAGAZIN — Brand Search + Show More
══════════════════════════════ */
.brand-search {
  width: 100%; height: 32px; padding: 0 10px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 12px; color: var(--text); background: var(--bg);
  font-family: 'DM Sans', sans-serif; outline: none;
  margin-bottom: 8px; transition: border-color var(--transition);
}
.brand-search:focus { border-color: var(--orange) }
.brand-search::placeholder { color: var(--faint) }

.brand-list .brand-hidden { display: none }
.brand-list.show-all .brand-hidden { display: list-item }

.brand-toggle {
  border: none; background: none; padding: 4px 0;
  font-size: 12px; font-weight: 600; color: var(--orange);
  font-family: 'DM Sans', sans-serif; cursor: pointer;
  transition: color var(--transition);
}
.brand-toggle:hover { color: var(--orange-dk) }

/* ══════════════════════════════
   MAGAZIN — Toggle Switch
══════════════════════════════ */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; padding: 2px 0;
}
.toggle-label {
  font-size: 13px; color: var(--muted); font-weight: 500;
}
.toggle-switch {
  position: relative; display: inline-block;
  width: 38px; height: 22px; flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--border); border-radius: 22px;
  transition: background var(--transition);
  cursor: pointer;
}
.toggle-slider::after {
  content: '';
  position: absolute; left: 3px; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: transform var(--transition);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--orange);
}
.toggle-switch input:checked + .toggle-slider::after {
  transform: translateX(16px);
}

/* ══════════════════════════════
   MAGAZIN — Promo Check
══════════════════════════════ */
.promo-check { padding: 4px 0 }
.promo-badge {
  margin-left: auto;
  font-size: 10px; font-weight: 800; letter-spacing: .03em;
  padding: 2px 7px; border-radius: 6px;
  background: #e74c3c; color: #fff;
  font-family: 'Nunito', sans-serif;
}

/* ══════════════════════════════
   MAGAZIN — Products Main
══════════════════════════════ */
.products-main { flex: 1; min-width: 0 }

/* Toolbar */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px; margin-bottom: 16px;
}
.toolbar-count {
  font-size: 14px; color: var(--muted);
  font-family: 'DM Sans', sans-serif;
}
.toolbar-count strong { color: var(--text); font-weight: 600 }
.toolbar-right {
  display: flex; align-items: center; gap: 10px;
}
.toolbar-sort {
  height: 36px; padding: 0 32px 0 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 12.5px; color: var(--muted);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23aaa'/%3E%3C/svg%3E") no-repeat right 11px center;
  appearance: none; outline: none; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: border-color var(--transition);
}
.toolbar-sort:focus { border-color: var(--orange) }

/* View toggle (grid / list) */
.view-toggle {
  display: flex; gap: 4px;
}
.view-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); color: var(--muted);
  cursor: pointer; transition: all var(--transition);
}
.view-btn:hover { border-color: var(--orange); color: var(--orange) }
.view-btn.active {
  background: var(--orange); border-color: var(--orange); color: #fff;
}

/* Product grid — 4 columns */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.product-grid .pc {
  flex: none;
}

/* NOU badge (green) */
.pc-badge.new-badge {
  background: #27ae60;
}

/* ══════════════════════════════
   MAGAZIN — List View
══════════════════════════════ */
.product-grid.list-view {
  grid-template-columns: 1fr;
  gap: 10px;
}
.product-grid.list-view .pc {
  display: flex; flex-direction: row; align-items: stretch;
}
.product-grid.list-view .pc-img {
  width: 100px; min-width: 100px; height: auto;
  aspect-ratio: auto; border-radius: var(--radius) 0 0 var(--radius);
}
.product-grid.list-view .pc-img img {
  height: 100%; object-fit: cover;
}
.product-grid.list-view .pc-body {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 10px 14px;
}
.product-grid.list-view .pc-foot {
  margin-top: auto;
}

/* ══════════════════════════════
   MAGAZIN — Pagination
══════════════════════════════ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--border-lt);
}
.pg-btn {
  min-width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--card); padding: 0 4px;
  text-decoration: none;
  transition: all var(--transition); cursor: pointer;
  font-family: 'Nunito', sans-serif;
}
.pg-btn:hover {
  border-color: var(--orange); color: var(--orange);
  background: var(--orange-pale);
}
.pg-btn.active {
  background: var(--orange); border-color: var(--orange);
  color: #fff; font-weight: 700; cursor: default;
}
.pg-btn.active:hover {
  background: var(--orange); color: #fff;
}
.pg-btn.disabled {
  opacity: .4; cursor: default; pointer-events: none;
}
.pg-arrow {
  color: var(--muted);
}
.pg-dots {
  font-size: 14px; color: var(--faint); padding: 0 4px;
  user-select: none;
}

/* ══════════════════════════════
   MAGAZIN — Responsive
══════════════════════════════ */
@media (max-width:1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr) }
}
@media (max-width:860px) {
  .catalog-row { flex-direction: column }
  .filter-sidebar {
    width: 100%; position: static;
    max-height: none; overflow-y: visible;
  }
  .product-grid { grid-template-columns: repeat(2, 1fr) }
}
@media (max-width:580px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px }
  .toolbar { flex-direction: column; align-items: flex-start; gap: 8px }
  .filter-sidebar { border-radius: 10px }
  .catalog-heading { font-size: 20px }
  .pg-btn { width: 34px; height: 34px; font-size: 12px }
}
@media (max-width:400px) {
  .product-grid { grid-template-columns: 1fr }
}