/* ════════════════════════════════════════════════════════════════
   PRODUK.CSS — Katalog Produk Page Styles
   MBGPLG.COM — B2B Food Supplier
════════════════════════════════════════════════════════════════ */

/* ─── KATALOG HERO ─── */
.katalog-hero {
  background: var(--navy);
  padding: calc(var(--header-h) + 2.5rem) 0 2.5rem;
  text-align: center;
}
.katalog-title {
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.katalog-desc {
  color: var(--gray-300);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ─── SEARCH SECTION (MINIMALIST & CLEAN) ─── */
.katalog-search-section {
  background: var(--white);
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.45rem 0.35rem 1.25rem;
  gap: 0.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  max-width: 760px;
  margin: 0 auto;
}
.search-bar:focus-within {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(41,128,185,.12);
  background: var(--white);
}
.search-icon {
  color: var(--gray-400);
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--gray-700);
  outline: none;
  padding: 0.5rem 0;
}
.search-input::placeholder {
  color: var(--gray-400);
}
.search-clear-btn {
  background: transparent;
  border: none;
  font-size: 1.35rem;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0 0.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}
.search-clear-btn:hover {
  color: var(--navy);
}
.search-btn {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--white);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  font-family: var(--font-head);
}
.search-btn:hover {
  box-shadow: 0 4px 14px rgba(26,82,118,.35);
  transform: translateY(-1px);
}

/* ─── KATALOG LAYOUT ─── */
.katalog-content {
  background: var(--gray-50);
  padding: 2rem 0 3.5rem;
  min-height: 65vh;
}
.katalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ─── SIDEBAR ─── */
.katalog-sidebar {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 90px);
  box-shadow: var(--shadow-sm);
}
.sidebar-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--gray-200);
}
.sidebar-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.filter-group {
  margin-bottom: 1.35rem;
}
.filter-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
  font-family: var(--font-head);
  text-transform: uppercase;
}

/* ─── Modern Filter Select Box ─── */
.filter-select-wrapper {
  position: relative;
}
.filter-select {
  width: 100%;
  padding: 0.65rem 2.2rem 0.65rem 0.85rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 0.75rem center;
  font-size: 0.86rem;
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-head);
  transition: all var(--transition);
}
.filter-select:hover {
  border-color: var(--blue-light);
}
.filter-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.12);
}

/* ─── Special Featured Card Toggle ─── */
.filter-switch-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.08), rgba(243, 156, 18, 0.08));
  border: 1.5px solid rgba(243, 156, 18, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}
.filter-switch-card:hover {
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.15), rgba(243, 156, 18, 0.15));
  border-color: #f39c12;
}
.filter-switch-card.active,
.filter-switch-card:has(input:checked) {
  background: #fff8e1;
  border-color: #f57f17;
  box-shadow: 0 2px 8px rgba(245, 127, 23, 0.15);
}
.filter-switch-card input[type="checkbox"] {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: #f57f17;
}
.switch-icon {
  font-size: 1.25rem;
  line-height: 1;
}
.switch-info {
  display: flex;
  flex-direction: column;
}
.switch-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.switch-sub {
  font-size: 0.68rem;
  color: var(--gray-500);
}

/* ─── Price Range Inputs & Presets ─── */
.price-inputs-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.price-input-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.5rem;
  transition: border-color var(--transition), background var(--transition);
}
.price-input-box:focus-within {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 2px rgba(41, 128, 185, 0.1);
}
.currency-prefix {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-400);
  margin-right: 0.3rem;
}
.price-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  color: var(--gray-800);
  font-weight: 600;
  outline: none;
  padding: 0;
  -moz-appearance: textfield;
}
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.price-separator {
  color: var(--gray-400);
  font-weight: 700;
}

.price-presets {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.price-preset-btn {
  flex: 1;
  padding: 0.3rem 0.4rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  font-family: var(--font-head);
  white-space: nowrap;
}
.price-preset-btn:hover {
  background: var(--gray-200);
  color: var(--navy);
}
.price-preset-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ─── Status Radios ─── */
.filter-radio-item {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.5rem;
  margin-bottom: 0.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--gray-700);
  transition: all var(--transition);
  user-select: none;
}
.filter-radio-item:hover {
  background: var(--gray-50);
  color: var(--blue);
}
.filter-radio-item.checked {
  background: rgba(26, 82, 118, 0.08);
  color: var(--navy);
  font-weight: 600;
}
.filter-radio-item input[type="radio"] {
  display: none;
}
.radio-mark {
  width: 16px;
  height: 16px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  margin-right: 0.6rem;
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition);
}
.filter-radio-item.checked .radio-mark {
  border-color: var(--blue);
  background: var(--white);
}
.filter-radio-item.checked .radio-mark::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}
.filter-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.filter-count {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--gray-500);
  font-weight: 600;
  margin-left: 0.5rem;
}
.filter-radio-item.checked .filter-count {
  background: var(--navy);
  color: var(--white);
}

.btn-reset-filter {
  width: 100%;
  padding: 0.65rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-600);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-head);
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.btn-reset-filter:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(231, 76, 60, 0.05);
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--gray-600);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-head);
  cursor: pointer;
  margin-bottom: 1rem;
  transition: all var(--transition);
}
.mobile-filter-toggle.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.mobile-filter-toggle.active svg { stroke: white; }

/* Backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sidebar-backdrop.open {
  display: block;
  opacity: 1;
}

/* ─── TOOLBAR ─── */
.katalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.results-info {
  font-size: 0.88rem;
  color: var(--gray-500);
}
.results-info strong {
  color: var(--navy);
}

.katalog-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.katalog-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.katalog-sort-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 600;
}
.katalog-sort-select {
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white) 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='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 0.6rem center;
  font-size: 0.82rem;
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-head);
  transition: border-color var(--transition);
}
.katalog-sort-select:focus {
  border-color: var(--blue-light);
}

.view-toggle {
  display: flex;
  gap: 0.25rem;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: transparent;
  color: var(--gray-400);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.view-btn.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* ─── PRODUCT GRID ─── */
.katalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ─── PRODUCT CARD ─── */
.katalog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.katalog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.katalog-card-img {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.katalog-img-placeholder {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-slow);
}
.katalog-img-placeholder span {
  font-size: 3.5rem;
}
.katalog-card:hover .katalog-img-placeholder {
  transform: scale(1.05);
}

.katalog-img-box {
  height: 180px;
  overflow: hidden;
  background: var(--gray-100);
}
.katalog-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}
.katalog-card:hover .katalog-real-img {
  transform: scale(1.05);
}

.katalog-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-head);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.katalog-badge.tersedia {
  background: var(--green-pale);
  color: var(--green);
}
.katalog-badge.pre-order {
  background: #fff3e0;
  color: #e65100;
}
.katalog-badge.musiman {
  background: #e1f5fe;
  color: #0288d1;
}

.katalog-featured-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  background: #fff8e1;
  color: #f57f17;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.katalog-card-body {
  padding: 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.katalog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}
.katalog-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-head);
}
.katalog-sku {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: 0.04em;
}
.katalog-card-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}
.katalog-card-body h3 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}
.katalog-card-body h3 a:hover {
  color: var(--blue-light);
}
.katalog-unit {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-bottom: 0.6rem;
}
.katalog-unit strong {
  color: var(--gray-700);
}

.katalog-price-tag {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
  padding: 0.4rem 0.6rem;
  background: rgba(39, 174, 96, 0.08);
  border-radius: var(--radius-sm);
}
.price-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green);
  font-family: var(--font-head);
}
.price-unit {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
}

.katalog-price-lock {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-bottom: 0.85rem;
  padding: 0.5rem 0.6rem;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
}
.katalog-price-lock svg {
  flex-shrink: 0;
  color: var(--gray-400);
}

.katalog-card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: auto;
}
.katalog-detail-btn {
  flex: 1;
  text-align: center;
  justify-content: center;
  font-size: 0.82rem;
  padding: 0.5rem 0.75rem;
}
.btn-wa-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #25d366;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-wa-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,211,102,.4);
}

/* Mobile Quick Action Button */
.katalog-add-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.55rem;
  background: var(--green-pale);
  border: 1.5px solid var(--green);
  border-radius: var(--radius-sm);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-head);
  text-decoration: none;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all var(--transition);
}
.katalog-add-btn:hover {
  background: var(--green);
  color: var(--white);
}

/* ─── LIST VIEW MODE ─── */
.katalog-grid.list-view {
  grid-template-columns: 1fr;
  gap: 1rem;
}
.katalog-grid.list-view .katalog-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: stretch;
}
.katalog-grid.list-view .katalog-img-placeholder,
.katalog-grid.list-view .katalog-img-box {
  height: 100%;
  min-height: 160px;
}
.katalog-grid.list-view .katalog-card-body {
  padding: 1.25rem;
}
.katalog-grid.list-view .katalog-card-actions {
  max-width: 340px;
  margin-top: 0.85rem;
}

/* ─── SKELETON SHIMMER ─── */
.katalog-card.skeleton {
  pointer-events: none;
  border-color: var(--gray-100);
}
.skeleton-img {
  height: 180px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-body {
  padding: 1rem;
}
.skeleton-line {
  height: 12px;
  margin-bottom: 0.6rem;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-line.sm { width: 40%; }
.skeleton-line.lg { width: 85%; height: 16px; margin-bottom: 0.8rem; }
.skeleton-line.md { width: 60%; }
.skeleton-line.btn { width: 100%; height: 36px; margin-top: 1rem; margin-bottom: 0; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── EMPTY STATE ─── */
.katalog-empty-state {
  grid-column: 1 / -1;
  background: var(--white);
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius-md);
  padding: 3.5rem 2rem;
  text-align: center;
  margin: 1rem 0;
}
.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.katalog-empty-state h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.katalog-empty-state p {
  color: var(--gray-500);
  font-size: 0.92rem;
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}
.btn-reset-empty {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
}

/* ─── PAGINATION ─── */
.katalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}
.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-head);
  background: var(--white);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all var(--transition);
}
.page-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(41,128,185,.05);
}
.page-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 2px 6px rgba(7,30,73,.25);
}
.page-btn.next, .page-btn.prev {
  background: var(--gray-100);
}
.page-btn.next:hover, .page-btn.prev:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.page-dots {
  color: var(--gray-400);
  font-weight: 700;
  padding: 0 0.25rem;
}

/* Load More — mobile */
.katalog-load-more {
  display: none;
  margin-top: 1.5rem;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — KATALOG
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .katalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .katalog-layout {
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
  }
  .katalog-grid.list-view .katalog-card {
    grid-template-columns: 180px 1fr;
  }
}

@media (max-width: 768px) {
  .katalog-hero {
    padding: calc(var(--header-h) + 1.5rem) 0 1.5rem;
  }
  .katalog-title {
    font-size: 1.35rem;
  }
  .katalog-desc {
    font-size: 0.85rem;
  }

  .katalog-search-section {
    padding: 1rem 0;
    position: relative;
    top: 0;
  }
  .search-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .katalog-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Sidebar — Slide-over drawer on mobile */
  .katalog-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    z-index: 999;
    overflow-y: auto;
    border-radius: 0 16px 16px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    margin: 0;
    padding: 1.5rem;
  }
  .katalog-sidebar.open {
    display: block;
    animation: drawerSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes drawerSlideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
  }

  .mobile-filter-toggle {
    display: inline-flex;
  }

  .katalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .katalog-grid.list-view {
    grid-template-columns: 1fr;
  }
  .katalog-grid.list-view .katalog-card {
    grid-template-columns: 130px 1fr;
  }

  .katalog-img-placeholder,
  .katalog-img-box {
    height: 130px;
  }
  .katalog-img-placeholder span {
    font-size: 2.5rem;
  }
  .katalog-card-body {
    padding: 0.75rem;
  }
  .katalog-card-body h3 {
    font-size: 0.82rem;
  }
  .katalog-unit {
    font-size: 0.72rem;
  }
  .price-val {
    font-size: 0.88rem;
  }
  .price-unit {
    font-size: 0.68rem;
  }
  .katalog-price-lock {
    font-size: 0.7rem;
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.6rem;
  }

  /* Badges positioning on mobile (clean & non-overlapping) */
  .katalog-badge {
    top: 0.4rem;
    left: 0.4rem;
    padding: 0.18rem 0.5rem;
    font-size: 0.62rem;
  }
  .katalog-featured-badge {
    top: auto;
    bottom: 0.4rem;
    right: 0.4rem;
    padding: 0.18rem 0.5rem;
    font-size: 0.62rem;
  }

  /* Desktop actions hidden, show mobile action */
  .katalog-card-actions {
    display: none;
  }
  .katalog-add-btn {
    display: flex;
  }

  .katalog-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .results-info {
    font-size: 0.78rem;
  }
  .view-toggle {
    display: none;
  }

  /* Pagination styling & generous bottom clearance above bottom navigation */
  .katalog-pagination {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 2rem;
    margin-bottom: 100px !important;
    padding: 0.75rem 0 1rem;
    position: relative;
    z-index: 10;
  }
  .page-btn {
    min-width: 38px;
    height: 38px;
    font-size: 0.84rem;
  }
  .katalog-load-more {
    display: none !important;
  }

  /* Bottom nav clearance */
  body { padding-bottom: 100px !important; }
  .katalog-content { padding-bottom: 3.5rem; }
}

@media (max-width: 400px) {
  .katalog-grid {
    gap: 0.5rem;
  }
  .katalog-card-body {
    padding: 0.6rem;
  }
  .katalog-card-body h3 {
    font-size: 0.78rem;
  }
  .katalog-badge {
    top: 0.35rem;
    left: 0.35rem;
    font-size: 0.58rem;
    padding: 0.14rem 0.42rem;
  }
  .katalog-featured-badge {
    bottom: 0.35rem;
    right: 0.35rem;
    font-size: 0.58rem;
    padding: 0.14rem 0.42rem;
  }
}
