.mat-catalog,
.mat-catalog * {
  box-sizing: border-box;
}

.mat-catalog {
  color: var(--mat-text);
  font-size: 16px;
  letter-spacing: 0;
  --mat-sidebar-text: #2b4566;
}

.mat-catalog a {
  color: inherit;
  text-decoration: none;
}

.mat-lucide {
  display: inline-block;
  flex: 0 0 auto;
  height: 20px;
  width: 20px;
}

.mat-categories-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(var(--mat-cat-cols-desktop), minmax(0, 1fr));
}

.mat-category-card,
.mat-product-card {
  background: var(--mat-bg);
  border: 1px solid var(--mat-border);
  border-radius: var(--mat-radius);
  box-shadow: var(--mat-shadow);
  overflow: hidden;
}

.mat-category-card {
  display: grid;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.mat-category-card:hover,
.mat-product-card:hover {
  border-color: color-mix(in srgb, var(--mat-secondary) 35%, var(--mat-border));
  transform: translateY(-2px);
}

.mat-category-image {
  aspect-ratio: var(--mat-cat-img-ratio);
  background: var(--mat-bg-alt);
  height: var(--mat-cat-img-height);
  overflow: hidden;
  width: 100%;
}

.mat-category-image img,
.mat-product-image img,
.mat-category-hero-image img {
  display: block;
  height: 100% !important;
  max-height: none !important;
  max-width: none !important;
  min-height: 100%;
  min-width: 100%;
  object-fit: cover !important;
  object-position: center center;
  transition: transform 220ms ease;
  width: 100% !important;
}

.mat-category-card:hover .mat-category-image img,
.mat-product-card:hover .mat-product-image img {
  transform: scale(1.025);
}

.mat-category-body {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.mat-category-body h3 {
  align-items: center;
  color: var(--mat-primary);
  display: flex;
  font-size: 18px;
  font-weight: 750;
  justify-content: space-between;
  line-height: 1.25;
  margin: 0;
}

.mat-category-body h3 span {
  align-items: center;
  background: var(--mat-secondary);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.mat-category-body h3 span .mat-lucide {
  height: 17px;
  width: 17px;
}

.mat-category-body p,
.mat-category-body small {
  color: var(--mat-muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.mat-catalog-shell {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
}

.mat-catalog-main {
  min-width: 0;
  position: relative;
}

.mat-catalog-toolbar,
.mat-catalog-mobilebar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
  width: 100%;
}

.mat-catalog-mobilebar {
  display: none;
}

.mat-catalog-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  justify-content: flex-end;
  margin-left: auto;
  min-width: 0;
}

.mat-results-count {
  color: var(--mat-primary);
  font-weight: 750;
}

.mat-sort-label {
  align-items: center;
  color: var(--mat-sidebar-text);
  display: inline-flex;
  gap: 8px;
  font-size: 14px;
  min-width: 0;
}

.mat-sort-label span {
  white-space: nowrap;
}

.mat-sort-label select,
.mat-filter-form input,
.mat-filter-form select {
  border: 1px solid var(--mat-border);
  border-radius: 8px;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 40px;
  padding: 8px 10px;
}

.mat-sort-label select {
  appearance: auto;
  background: #fff;
  color: var(--mat-sidebar-text);
  min-width: 145px;
}

.mat-catalog-view {
  display: inline-flex;
  gap: 6px;
}

.mat-catalog-view button,
.mat-filter-toggle,
.mat-filter-close,
.mat-active-filters button,
.mat-load-more,
.mat-pagination a {
  align-items: center;
  background: var(--mat-bg);
  border: 1px solid var(--mat-border);
  border-radius: 8px;
  color: var(--mat-primary);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  gap: 7px;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
}

.mat-catalog-view button {
  background: var(--mat-bg-alt);
  border-color: transparent;
  color: var(--mat-sidebar-text);
  height: 40px;
  padding: 0;
  width: 40px;
}

.mat-catalog-view button.is-active,
.mat-filter-toggle,
.mat-pagination a.is-current {
  background: var(--mat-sidebar-text);
  border-color: var(--mat-sidebar-text);
  color: #fff;
}

.mat-products-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.mat-products-grid.has-sidebar {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.mat-product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 180ms ease, border-color 180ms ease;
}

.mat-product-image {
  background: var(--mat-bg-alt);
  display: block;
  height: var(--mat-product-img-height);
  overflow: hidden;
  width: 100%;
}

.mat-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: var(--mat-card-padding);
}

.mat-product-body h3 {
  color: var(--mat-primary);
  font-size: var(--mat-product-title-size);
  font-weight: var(--mat-product-title-weight);
  line-height: 1.25;
  margin: 0;
  min-width: 0;
}

.mat-product-body h3 a {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mat-product-price {
  align-items: baseline;
  color: var(--mat-success);
  display: inline-flex;
  flex-wrap: wrap;
  font-size: var(--mat-product-price-size);
  font-weight: 800;
  gap: 5px;
  line-height: 1.15;
}

.mat-product-price .amount,
.mat-product-price bdi {
  font-size: inherit;
  font-weight: 850;
}

.mat-product-price .mat-price-tax {
  font-size: .68em;
  font-weight: 800;
  line-height: 1;
}

.mat-product-stock {
  align-items: center;
  color: var(--mat-success);
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 7px;
}

.mat-product-stock span {
  background: var(--mat-muted);
  border-radius: 999px;
  height: 10px;
  width: 10px;
}

.mat-product-stock.is-in-stock span {
  background: var(--mat-success);
}

.mat-product-features {
  color: var(--mat-muted);
  display: grid;
  font-size: 14px;
  gap: 6px;
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
}

.mat-product-features li::before {
  color: var(--mat-secondary);
  content: "\25A3";
  margin-right: 7px;
}

.mat-product-button,
.mat-help-button {
  align-items: center;
  background: var(--mat-sidebar-text);
  border: 1px solid var(--mat-sidebar-text);
  border-radius: var(--mat-button-radius);
  color: #fff !important;
  display: inline-flex;
  font-weight: 750;
  gap: 8px;
  justify-content: center;
  margin-top: auto;
  min-height: var(--mat-button-height);
  padding: 10px 16px;
  text-align: center;
}

.mat-filter-form .mat-help-button {
  background: var(--mat-sidebar-text);
  border-color: var(--mat-sidebar-text);
}

.mat-product-button .mat-lucide {
  height: 18px;
  width: 18px;
}

.mat-product-button.is-configurator {
  background: var(--mat-sidebar-text);
  border-color: var(--mat-sidebar-text);
}

.mat-filter-form {
  background: var(--mat-bg);
  border: 1px solid var(--mat-border);
  border-radius: var(--mat-radius);
  color: var(--mat-sidebar-text);
  display: grid;
  gap: 18px;
  overflow: hidden;
  padding: 22px 20px;
  position: sticky;
  top: 20px;
  width: 100%;
}

.mat-filter-form h2 {
  color: var(--mat-sidebar-text);
  font-size: 17px;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.mat-filter-group {
  border: 0;
  border-top: 1px solid var(--mat-border);
  display: grid;
  gap: 14px;
  margin: 0;
  min-width: 0;
  padding: 16px 0 0;
  width: 100%;
}

.mat-filter-group legend {
  color: var(--mat-sidebar-text);
  font-weight: 750;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0;
}

.mat-filter-options,
.mat-price-fields {
  display: grid;
  gap: 8px;
}

.mat-price-fields {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
}

.mat-price-fields label {
  display: grid;
  gap: 5px;
}

.mat-price-fields label span {
  color: var(--mat-sidebar-text);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.mat-price-fields input[type="number"] {
  border-color: color-mix(in srgb, var(--mat-border) 70%, #b5c0ca);
  border-radius: 12px;
  color: var(--mat-sidebar-text);
  font-size: 16px;
  font-weight: 650;
  min-height: 52px;
  min-width: 0;
  width: 100%;
}

.mat-price-range {
  --mat-price-min-pos: 0%;
  --mat-price-max-pos: 100%;
  --mat-price-min-left: 11px;
  --mat-price-max-right: 11px;
  display: grid;
  gap: 16px;
  min-width: 0;
  padding-top: 10px;
  width: 100%;
}

.mat-price-slider {
  height: 34px;
  margin: 0;
  position: relative;
  width: 100%;
}

.mat-price-slider::before,
.mat-price-slider::after {
  border-radius: 999px;
  content: "";
  height: 5px;
  left: 11px;
  position: absolute;
  right: 11px;
  top: 15px;
}

.mat-price-slider::before {
  background: var(--mat-border);
}

.mat-price-slider::after {
  background: var(--mat-sidebar-text);
  left: var(--mat-price-min-left);
  right: var(--mat-price-max-right);
}

.mat-price-slider input[type="range"] {
  appearance: none;
  background: transparent;
  border: 0;
  height: 34px;
  left: 11px;
  margin: 0;
  padding: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: calc(100% - 22px);
  z-index: 2;
}

.mat-price-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  background: #fff;
  border: 2px solid var(--mat-sidebar-text);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(11, 41, 66, .18);
  cursor: pointer;
  height: 22px;
  pointer-events: auto;
  width: 22px;
}

.mat-price-slider input[type="range"]::-webkit-slider-runnable-track {
  background: transparent;
  border: 0;
  height: 5px;
}

.mat-price-slider input[type="range"]::-moz-range-thumb {
  background: #fff;
  border: 2px solid var(--mat-sidebar-text);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(11, 41, 66, .18);
  cursor: pointer;
  height: 22px;
  pointer-events: auto;
  width: 22px;
}

.mat-price-slider input[type="range"]::-moz-range-track {
  background: transparent;
  border: 0;
}

.mat-price-limits {
  color: var(--mat-muted);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin-top: -4px;
  min-width: 0;
}

.mat-price-limits span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mat-filter-options label,
.mat-filter-group > label {
  align-items: center;
  color: var(--mat-sidebar-text);
  display: flex;
  gap: 8px;
  min-width: 0;
}

.mat-filter-options label span,
.mat-filter-group > label span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mat-filter-options.is-buttons {
  display: flex;
  flex-wrap: wrap;
}

.mat-filter-options.is-buttons label span {
  border: 1px solid var(--mat-border);
  border-radius: 999px;
  padding: 7px 10px;
}

.mat-filter-options.is-buttons input {
  position: absolute;
  opacity: 0;
}

.mat-filter-options.is-buttons input:checked + span {
  background: var(--mat-primary);
  border-color: var(--mat-primary);
  color: #fff;
}

.mat-active-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.mat-active-filters > span {
  color: var(--mat-muted);
  font-size: 14px;
}

.mat-help-block {
  background: var(--mat-bg-alt);
  border-radius: var(--mat-radius);
  display: grid;
  gap: 18px;
  padding: 20px;
}

.mat-help-head {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 42px minmax(0, 1fr);
}

.mat-help-head .mat-lucide {
  color: var(--mat-sidebar-text);
  height: 42px;
  width: 42px;
}

.mat-help-head div {
  display: grid;
  gap: 4px;
}

.mat-help-block strong {
  color: var(--mat-sidebar-text);
  font-size: 17px;
}

.mat-help-block span {
  color: var(--mat-sidebar-text);
  line-height: 1.35;
}

.mat-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.mat-load-more {
  margin: 24px auto 0;
}

.mat-empty-products {
  background: var(--mat-bg-alt);
  border: 1px solid var(--mat-border);
  border-radius: var(--mat-radius);
  color: var(--mat-muted);
  padding: 24px;
}

.mat-catalog.is-loading .mat-products-wrap {
  opacity: .45;
  pointer-events: none;
}

.mat-catalog.is-list-view .mat-products-grid {
  grid-template-columns: 1fr !important;
}

.mat-catalog.is-list-view .mat-product-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  min-height: 220px;
}

.mat-catalog.is-list-view .mat-product-image {
  height: 100%;
  min-height: 220px;
}

.mat-catalog.is-list-view .mat-product-body {
  align-content: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
  grid-template-rows: auto auto auto;
}

.mat-catalog.is-list-view .mat-product-body h3 {
  grid-column: 1;
}

.mat-catalog.is-list-view .mat-product-price {
  grid-column: 1;
}

.mat-catalog.is-list-view .mat-product-stock {
  grid-column: 1;
}

.mat-catalog.is-list-view .mat-product-button {
  align-self: center;
  grid-column: 2;
  grid-row: 1 / span 3;
  margin-top: 0;
}

.mat-category-hero {
  align-items: center;
  background: var(--mat-bg-alt);
  border: 1px solid var(--mat-border);
  border-radius: var(--mat-radius);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  margin-bottom: 28px;
  padding: 26px;
}

.mat-breadcrumb {
  align-items: center;
  color: var(--mat-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 7px;
  margin-bottom: 12px;
}

.mat-category-hero h1 {
  color: var(--mat-primary);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  margin: 0 0 12px;
}

.mat-category-hero p {
  color: var(--mat-muted);
  line-height: 1.55;
  margin: 0;
}

.mat-category-benefits {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.mat-category-benefits div {
  border-left: 3px solid var(--mat-accent);
  padding-left: 10px;
}

.mat-category-benefits strong,
.mat-category-benefits span {
  display: block;
}

.mat-category-benefits span {
  color: var(--mat-muted);
  font-size: 13px;
}

.mat-category-hero-image {
  border-radius: var(--mat-radius);
  height: 240px;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .mat-categories-grid {
    grid-template-columns: repeat(var(--mat-cat-cols-tablet), minmax(0, 1fr));
  }

  .mat-catalog-shell {
    grid-template-columns: 1fr;
  }

  .mat-catalog-mobilebar {
    display: flex;
  }

  .mat-catalog-toolbar .mat-sort-label {
    display: none;
  }

  .mat-catalog-sidebar {
    background: rgba(11, 41, 66, .42);
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 180ms ease;
    z-index: 999999;
  }

  .mat-catalog-sidebar.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mat-filter-form {
    border-radius: 18px 18px 0 0;
    bottom: 0;
    left: 0;
    max-height: 88vh;
    overflow: auto;
    position: absolute;
    right: 0;
    top: auto;
  }

  .mat-filter-close {
    display: inline-flex;
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 1;
  }

  .mat-help-block {
    display: none;
  }

  .mat-products-grid,
  .mat-products-grid.has-sidebar {
    grid-template-columns: repeat(var(--mat-products-cols-tablet), minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1025px) {
  .mat-filter-close {
    display: none;
  }
}

@media (max-width: 760px) {
  .mat-categories-grid {
    grid-template-columns: repeat(var(--mat-cat-cols-mobile), minmax(0, 1fr));
  }

  .mat-products-grid,
  .mat-products-grid.has-sidebar {
    grid-template-columns: repeat(var(--mat-products-cols-mobile), minmax(0, 1fr)) !important;
  }

  .mat-catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .mat-category-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .mat-category-benefits {
    grid-template-columns: 1fr;
  }

  .mat-catalog.is-list-view .mat-product-card {
    grid-template-columns: 1fr !important;
  }

  .mat-catalog.is-list-view .mat-product-image {
    height: var(--mat-product-img-height);
    min-height: 0;
  }

  .mat-catalog.is-list-view .mat-product-body {
    display: flex;
  }

  .mat-catalog.is-list-view .mat-product-button {
    align-self: stretch;
    grid-column: auto;
    grid-row: auto;
    margin-top: auto;
  }
}

@media (max-width: 420px) {
  .mat-categories-grid {
    grid-template-columns: 1fr;
  }
}
