/* ============================================================
   SHOP — listing page (/sklep/)
   Class names copied verbatim from docs/design/screens/shop-redesign.html
   ============================================================ */

.shop-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad) var(--space-12);
}

/* ===================== BREADCRUMB ===================== */
.breadcrumb {
  padding: var(--space-4) 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-hint);
}
.breadcrumb a {
  color: var(--color-text-hint);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current {
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ===================== PAGE TITLE ===================== */
.page-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
  position: relative;
  padding-bottom: var(--space-3);
}
.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* ===================== SHOP LAYOUT TOKENS ===================== */
/* Where the search bar sticks, and its height (offsets the sticky category list). */
.shop-page {
  --sticky-top: var(--space-3);
  --search-bar-height: 70px;
}
/* cart.css / checkout.css load later and give .breadcrumb horizontal padding. */
.shop-page .breadcrumb { padding: var(--space-4) 0 0; }

/* ===================== SEARCH BAR (sticky) ===================== */
.shop-search-bar {
  position: sticky;
  top: var(--sticky-top);
  z-index: 30;
  margin-top: var(--space-3);
  padding: var(--space-2);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius-xl) + var(--space-2));
  box-shadow: var(--shadow-md);
}
/* One field: search with the Filtry button inside, behind a divider. */
.shop-search-row {
  display: flex;
  align-items: center;
  background: var(--color-bg-subtle);
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.shop-search-row:focus-within {
  background: var(--color-bg-surface);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-badge-new-bg);
}
.shop-search {
  flex: 1;
  min-width: 0;
  height: 52px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-5);
}
.shop-search-icon { width: 18px; height: 18px; color: var(--color-text-secondary); flex-shrink: 0; }
.shop-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--color-text-primary);
}
.shop-search-input::placeholder { color: var(--color-text-hint); }
.shop-search-kbd {
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  line-height: 20px;
  padding: 0 6px;
  color: var(--color-text-hint);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.shop-filters-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 40px;
  margin-right: 6px;
  margin-left: var(--space-2);
  padding: 0 var(--space-4);
  border: 0;
  border-radius: calc(var(--radius-xl) - 6px);
  background: none;
  cursor: pointer;
  font-family: var(--font-primary);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s;
}
.shop-filters-btn::before {
  content: "";
  position: absolute;
  left: calc(var(--space-2) * -1);
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--color-border);
}
.shop-filters-btn:hover { background: var(--color-bg-surface); box-shadow: var(--shadow-sm); }
.shop-filters-btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.shop-filters-icon { width: 18px; height: 18px; }
.shop-filters-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: 0.6875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.shop-filters-count[hidden] { display: none; }

/* ===================== LAYOUT: categories | results ===================== */
.shop-layout {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
  margin-top: var(--space-5);
}

/* ----- Category list (sticky) ----- */
.category-nav {
  position: sticky;
  top: calc(var(--sticky-top) + var(--search-bar-height) + var(--space-5));
  max-height: calc(100vh - var(--sticky-top) - var(--search-bar-height) - var(--space-8));
  overflow-y: auto;
  scrollbar-width: thin;
}
.category-nav ul { list-style: none; margin: 0; padding: 0; }
.category-nav-title {
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-hint);
}
.category-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px var(--space-3);
  margin-left: calc(var(--space-3) * -1);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.category-nav-link:hover { color: var(--color-text-primary); background: var(--color-bg-subtle); }
.category-nav-link.is-active { color: var(--color-primary); background: var(--color-badge-new-bg); font-weight: 600; }
.category-nav-count { font-size: var(--text-xs); font-weight: 400; color: var(--color-text-hint); font-variant-numeric: tabular-nums; }
.category-nav ul.category-nav-sub { margin: var(--space-1) 0 var(--space-2); }
.category-nav-sublink {
  display: block;
  padding: 4px var(--space-1) 4px var(--space-3);
  border-left: 2px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
}
.category-nav-sublink:hover { color: var(--color-text-primary); }
.category-nav-sublink.is-active { color: var(--color-primary); font-weight: 600; border-left-color: var(--color-accent); }

/* ----- Category chips (replace the list ≤ 1024px) ----- */
.category-chips { display: none; }

/* Pill is a <label> wrapping a hidden radio/checkbox, or a link (categories). */
.filter-pill, .filter-subpill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg-surface);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  user-select: none;
}
.filter-pill input, .filter-subpill input { position: absolute; opacity: 0; pointer-events: none; }
.filter-pill:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-pill:has(input:checked) { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-inverse); }
.filter-pill:has(input:checked):hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.filter-pill:has(input:focus-visible), .filter-subpill:has(input:focus-visible) { outline: 2px solid var(--color-primary); outline-offset: 2px; }
/* Subcategories: indented under a thin guide line, smaller dashed chips. */
.filter-subrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-left: var(--space-1);
  padding: var(--space-1) 0 var(--space-1) var(--space-3);
  border-left: 2px solid var(--color-border);
}

/* Category pills are links (navigation), so the active one is marked with .is-active. */
.filter-pill.is-active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-inverse); }
.filter-subpill { border-style: dashed; }
.filter-subpill:hover { border-color: var(--color-primary-light); color: var(--color-primary); }
.filter-subpill.is-active,
.filter-subpill:has(input:checked) { border-style: solid; background: var(--color-primary-light); border-color: var(--color-primary-light); color: var(--color-text-inverse); }

/* ===================== RESULTS TOOLBAR ===================== */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.active-filters { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; flex: 1; }
.shop-results-title { font-size: var(--text-xl); font-weight: 600; line-height: var(--line-height-tight); margin: 0 var(--space-2) 0 0; }
.shop-results-count { font-size: var(--text-sm); color: var(--color-text-secondary); margin-right: var(--space-2); white-space: nowrap; }
.shop-results-count strong { color: var(--color-text-primary); font-weight: 600; }

.active-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.2rem 0.65rem;
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.active-chip:hover { opacity: 0.8; }
.active-chip svg { width: 10px; height: 10px; opacity: 0.7; }
.clear-filters {
  font-size: var(--text-xs);
  color: var(--color-text-hint);
  font-family: var(--font-primary);
  text-decoration: underline;
  white-space: nowrap;
  transition: color 0.15s;
}
.clear-filters:hover { color: var(--color-primary); }

/* Sort select */
.sort-select-wrap { display: inline-flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.sort-select-label { font-size: var(--text-xs); color: var(--color-text-hint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; }
.sort-select-shell { position: relative; display: inline-flex; align-items: center; }
.sort-select {
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  background: var(--color-bg-surface);
  cursor: pointer;
  appearance: none;
  transition: border-color 0.15s;
}
.sort-select:focus { outline: none; border-color: var(--color-primary); }
.sort-select-chevron { position: absolute; right: 0.75rem; top: 50%; width: 10px; height: 6px; transform: translateY(-50%); color: var(--color-text-hint); pointer-events: none; }

/* ===================== PRODUCT GRID — 18 per page, 3 / 2 columns, list view on phones ===================== */
/* Scoped: product.css sets a global 4-column .products-grid for the home and similar-products strips. */
.shop-results .products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }

/* Results stay in place, dimmed, while a filter request is in flight. */
.shop-results-region.is-loading { opacity: 0.5; pointer-events: none; transition: opacity 0.15s; }

/* ===================== EMPTY STATE ===================== */
.shop-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-12) var(--space-4);
  text-align: center;
  background: var(--color-bg-surface);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
}
.shop-empty-title { font-size: var(--text-xl); font-weight: 600; margin: 0; }
.shop-empty-text { max-width: 46ch; margin: 0; font-size: var(--text-sm); color: var(--color-text-secondary); }
.shop-empty .btn { width: auto; margin-top: var(--space-2); text-decoration: none; }

/* ===================== PRODUCT CARD ===================== */
.product-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* flex: 1 keeps "Dodaj do koszyka" at the bottom whatever the name length. */
.product-card-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.product-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-bg-subtle);
}
/* Full-bleed photo, no padding. */
.product-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

.product-card-badges {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  right: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  pointer-events: none;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
}
.badge-new   { background: var(--color-badge-new-bg);  color: var(--color-primary); }
.badge-promo { background: var(--color-accent-light);  color: var(--color-accent); }
.badge-low   { background: var(--color-accent);        color: var(--color-text-inverse); }

.product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3) var(--space-4) var(--space-2);
}
.product-card-cat {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-hint);
}
.product-card-name {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-primary);
}
.product-card-prices {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-top: var(--space-1);
}
.product-card-price {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-price);
  font-variant-numeric: tabular-nums;
}
.product-card-price-old {
  font-size: var(--text-xs);
  color: var(--color-text-hint);
  text-decoration: line-through;
}
.product-card-unit,
.product-card-price-history {
  font-size: 0.6875rem;
  color: var(--color-text-hint);
}

.product-card-foot { padding: var(--space-2) var(--space-4) var(--space-4); }

/* ===================== FILTER DRAWER ===================== */
/* Above the (non-sticky) site header at z 500; the cart sidebar (600) stays on top. */
.filter-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 540;
  background: color-mix(in srgb, var(--color-text-primary) 45%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.filter-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 550;
  width: 420px;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(102%);
  transition: transform 0.28s ease;
}
.filter-drawer.is-open { transform: none; }
.filter-drawer-overlay.is-open { opacity: 1; pointer-events: auto; }
.filter-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}
.filter-drawer-title { font-size: var(--text-xl); font-weight: 600; margin: 0; }
.filter-drawer-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius-md);
  background: none;
  cursor: pointer;
  color: var(--color-text-secondary);
}
.filter-drawer-close:hover { background: var(--color-bg-subtle); color: var(--color-text-primary); }
.filter-drawer-close svg { width: 14px; height: 14px; }
.filter-drawer-body { flex: 1; overflow-y: auto; padding: 0 var(--space-6); }
.filter-drawer-foot {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
}
.filter-drawer-foot .btn { flex: 1; font-size: var(--text-base); }

.filter-section { border-bottom: 1px solid var(--color-border); }
.filter-section-summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.filter-section-summary::-webkit-details-marker { display: none; }
.filter-section-value { margin-left: auto; font-size: var(--text-sm); font-weight: 500; color: var(--color-primary); }
.filter-section-chevron { width: 10px; height: 6px; margin-left: auto; color: var(--color-text-hint); transition: transform 0.2s; }
.filter-section-value + .filter-section-chevron { margin-left: var(--space-2); }
.filter-section[open] .filter-section-chevron { transform: rotate(180deg); }
.filter-section-body { display: flex; flex-direction: column; gap: var(--space-2); padding-bottom: var(--space-5); }
.filter-section-hint { margin: 0; font-size: var(--text-xs); color: var(--color-text-hint); }
.filter-pill-cloud { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filter-section.is-mobile-only { display: none; }

.filter-check { position: relative; display: flex; align-items: center; gap: var(--space-3); padding: 5px 0; font-size: var(--text-sm); cursor: pointer; }
.filter-check input { position: absolute; opacity: 0; pointer-events: none; }
.filter-check-box {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-bg-surface);
  transition: background 0.12s, border-color 0.12s;
}
.filter-check-box svg { width: 12px; height: 12px; color: var(--color-text-inverse); opacity: 0; }
.filter-check input:checked + .filter-check-box { background: var(--color-primary); border-color: var(--color-primary); }
.filter-check input:checked + .filter-check-box svg { opacity: 1; }
.filter-check input:focus-visible + .filter-check-box { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* Price — dual-thumb slider + number inputs synced via Alpine, stacked in the drawer. */
.price-filter { display: flex; flex-direction: column; gap: var(--space-4); padding-top: var(--space-2); }
.price-slider-wrap { padding: 0 8px; }
.price-slider-track { position: relative; height: 4px; background: var(--color-border); border-radius: 2px; }
.price-slider-range { position: absolute; height: 100%; background: var(--color-primary); border-radius: 2px; }
.price-slider-inputs { position: relative; height: 4px; }
.price-slider-inputs input[type=range] {
  position: absolute;
  width: 100%;
  height: 4px;
  top: 0;
  left: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
}
.price-slider-inputs input[type=range]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-bg-surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  pointer-events: all;
}
.price-slider-inputs input[type=range]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-bg-surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  pointer-events: all;
}
.price-slider-inputs input[type=range]:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}
.price-text-row { display: flex; align-items: center; gap: var(--space-2); }
.price-text-input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.65rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  background: var(--color-bg-surface);
  text-align: center;
  -moz-appearance: textfield;
  transition: border-color 0.15s;
}
.price-text-input::-webkit-outer-spin-button,
.price-text-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-text-input:focus { outline: none; border-color: var(--color-primary); }
.price-text-sep { font-size: var(--text-sm); color: var(--color-text-hint); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
  width: 100%;
}
.btn-primary:hover:not(:disabled) { background: var(--color-btn-primary-hover); }
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ===================== PAGINATION ===================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  margin-top: var(--space-10);
}
.page-btn {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-bg-surface);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  padding: 0 var(--space-2);
}
a.page-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.page-btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}
.page-btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-btn.dots {
  min-width: 24px;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-text-hint);
  cursor: default;
}

/* ===================== RESPONSIVE ===================== */
/* Tablet: the category list becomes rows of chips above the results. */
@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .category-nav { display: none; }
  .category-chips { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
  .category-chips-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
  .category-chips .filter-pill { font-size: var(--text-sm); }
}

/* Tablet portrait: two larger cards per row. */
@media (max-width: 900px) {
  .shop-results .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
}

/* Mobile: full-bleed bar at the very top, categories and sort move into the drawer. */
@media (max-width: 640px) {
  .shop-page { --sticky-top: 0px; --search-bar-height: 62px; --container-pad: 1rem; }
  .shop-search-bar {
    margin-inline: calc(var(--container-pad) * -1);
    padding: var(--space-2) var(--container-pad);
    border-radius: 0;
    border-inline: 0;
  }
  .shop-search { height: 46px; padding: 0 var(--space-4); }
  .shop-search-kbd, .sort-select-wrap { display: none; }
  .shop-filters-btn { height: 36px; padding: 0 var(--space-3); }
  .shop-results-title { font-size: var(--text-lg); }
  .filter-section.is-mobile-only { display: block; }
  .category-chips { display: none; }
  .filter-drawer { width: 100vw; }
  .filter-drawer-head, .filter-drawer-body, .filter-drawer-foot { padding-inline: var(--container-pad); }

  /* List view — one product per row: photo left (full row height), details and button right. */
  .shop-results .products-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .shop-results .product-card { position: relative; min-height: 132px; }
  .shop-results .product-card:hover { transform: none; }
  .shop-results .product-card-img { position: absolute; top: 0; bottom: 0; left: 0; width: 116px; aspect-ratio: auto; }
  .shop-results .product-card-link,
  .shop-results .product-card-foot { margin-left: 116px; }
  .shop-results .product-card-badges { top: var(--space-1); left: var(--space-1); right: auto; flex-direction: column; align-items: flex-start; }
  .shop-results .product-card-body { padding: var(--space-3) var(--space-3) var(--space-2); }
  .shop-results .product-card-foot { padding: 0 var(--space-3) var(--space-3); }
  .shop-results .product-card-foot .btn { min-height: 38px; padding: 8px var(--space-3); }
  .shop-results .product-card-price { font-size: var(--text-base); }
}
