.lmcat {
  --lmcat-accent: #d45500;
  --lmcat-accent-dark: #aa4500;
  --lmcat-accent-soft: #fff3ea;
  --lmcat-text: #1f1f1d;
  --lmcat-muted: #6b6b66;
  --lmcat-line: #e7e3dc;
  width: 100%;
  overflow-x: hidden;
  background: #f7f7f4;
  color: var(--lmcat-text);
  font-family: "Poppins", Arial, sans-serif;
}

.lmcat *,
.lmcat *::before,
.lmcat *::after {
  box-sizing: border-box;
}

.lmcat button,
.lmcat input,
.lmcat select {
  font: inherit;
}

.lmcat__wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.lmcat__dynamic {
  position: relative;
  transition: opacity .18s ease;
}

.lmcat__dynamic.is-loading {
  opacity: .5;
  pointer-events: none;
}

.lmcat__dynamic.is-loading::after {
  content: attr(data-loading-label);
  position: fixed;
  z-index: 9999;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 18px;
  border-radius: 999px;
  background: #1f1f1d;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}

.lmcat__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #7b7b75;
  font-size: 13px;
}

.lmcat__breadcrumbs a {
  color: #4d4d48;
  text-decoration: none;
}

.lmcat__breadcrumbs a:hover {
  color: var(--lmcat-accent);
}

.lmcat__top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.lmcat__heading-wrap {
  max-width: 760px;
}

.lmcat__eyebrow {
  margin: 0 0 8px;
  color: var(--lmcat-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.lmcat__title {
  margin: 0;
  color: #1d1d1b;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.025em;
}

.lmcat__intro {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--lmcat-muted);
  font-size: 14px;
  line-height: 1.65;
}

.lmcat__tools {
  display: grid;
  min-width: min(100%, 300px);
  gap: 10px;
  align-self: flex-start;
}

.lmcat__sort-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #62625d;
  font-size: 14px;
}

.lmcat__sort-label select {
  min-width: 210px;
  min-height: 44px;
  padding: 11px 38px 11px 14px;
  border: 1px solid #ddd8cf;
  border-radius: 12px;
  background: #fff;
  color: #252522;
  font-size: 14px;
}

.lmcat__layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.lmcat__mobile-categories {
  display: none;
}

.lmcat__sidebar {
  position: sticky;
  top: 100px;
  padding: 18px;
  border: 1px solid var(--lmcat-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 31, 29, .06);
}

.lmcat__sidebar h2 {
  margin: 0 0 14px;
  color: #252522;
  font-size: 17px;
  font-weight: 600;
}

.lmcat__all-categories,
.lmcat__category-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 11px;
  color: #42423e;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

.lmcat__all-categories:hover,
.lmcat__category-list a:hover {
  background: var(--lmcat-accent-soft);
  color: var(--lmcat-accent);
}

.lmcat__all-categories.is-active,
.lmcat__category-item.is-active > a {
  background: var(--lmcat-accent);
  color: #fff;
}

.lmcat__category-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lmcat__category-list--children {
  margin: 3px 0 5px 10px;
  padding-left: 8px;
  border-left: 1px solid var(--lmcat-line);
}

.lmcat__products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lmcat__product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e6e2da;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(31, 31, 29, .055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.lmcat__product-card:hover {
  transform: translateY(-3px);
  border-color: #d8d0c5;
  box-shadow: 0 14px 30px rgba(31, 31, 29, .09);
}

.lmcat__product-image-link {
  position: relative;
  display: block;
  width: 100%;
  height: 278px;
  overflow: hidden;
  background: #efefeb;
}

.lmcat__product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .22s ease;
}

.lmcat__product-card:hover .lmcat__product-image {
  transform: scale(1.025);
}

.lmcat__sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--lmcat-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.lmcat__product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px 14px 14px;
}

.lmcat__product-title {
  min-height: 40px;
  color: #252522;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lmcat__product-title:hover {
  color: var(--lmcat-accent);
}

.lmcat__product-description {
  min-height: 56px;
  margin: 13px 0 20px;
  color: #6d6d67;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lmcat__product-price {
  margin-top: auto;
  color: #252522;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
}

.lmcat__product-price .amount {
  color: inherit;
  font-weight: inherit;
}

.lmcat__product-price del {
  opacity: .55;
  font-size: .72em;
  font-weight: 500;
}

.lmcat__product-price ins {
  text-decoration: none;
}

.lmcat__price-prefix {
  margin-right: 3px;
  color: #6d6d67;
  font-size: 13px;
  font-weight: 600;
}

.lmcat__product-actions {
  margin-top: 14px;
}

.lmcat__add-cart,
.lmcat__view-product {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 43px;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: var(--lmcat-accent);
  color: #fff !important;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  text-transform: none;
  cursor: pointer;
  box-shadow: none;
  transition: transform .18s ease, background .18s ease;
}

.lmcat__add-cart:hover,
.lmcat__view-product:hover {
  background: var(--lmcat-accent-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

.lmcat__add-cart.is-loading {
  opacity: .65;
  pointer-events: none;
}

.lmcat__add-cart.is-added {
  background: #248150;
}

.lmcat__pagination {
  margin-top: 30px;
}

.lmcat__pagination ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lmcat__pagination a,
.lmcat__pagination span {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #e2ddd5;
  border-radius: 11px;
  background: #fff;
  color: #3d3d39;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.lmcat__pagination .current {
  border-color: var(--lmcat-accent);
  background: var(--lmcat-accent);
  color: #fff;
}

.lmcat__empty {
  padding: 28px;
  border: 1px solid var(--lmcat-line);
  border-radius: 18px;
  background: #fff;
  color: #6a6a64;
  font-size: 15px;
}

.lmcat__toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 999999;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 17px;
  border-radius: 999px;
  background: #1f1f1d;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .2);
  transition: opacity .2s ease, transform .2s ease;
}

.lmcat__toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1020px) {
  .lmcat__top {
    align-items: stretch;
    flex-direction: column;
  }

  .lmcat__tools {
    min-width: 0;
    width: 100%;
    max-width: 330px;
  }

  .lmcat__layout {
    display: block;
  }

  .lmcat__mobile-categories {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0 0 14px;
    border: 1px solid #ddd8cf;
    border-radius: 14px;
    background: #fff;
    color: #2d2d29;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
  }

  .lmcat__sidebar {
    display: none;
    position: static;
    margin-bottom: 18px;
  }

  .lmcat__sidebar.is-open {
    display: block;
  }

  .lmcat__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .lmcat__wrap {
    width: min(100% - 24px, 1180px);
    padding: 26px 0 54px;
  }

  .lmcat__breadcrumbs {
    margin-bottom: 18px;
    font-size: 12px;
  }

  .lmcat__title {
    font-size: 27px;
  }

  .lmcat__intro {
    font-size: 13px;
  }

  .lmcat__sort-label {
    width: 100%;
    justify-content: space-between;
  }

  .lmcat__sort-label select {
    flex: 1;
    min-width: 0;
  }

  .lmcat__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .lmcat__product-card {
    border-radius: 15px;
  }

  .lmcat__product-image-link {
    height: 170px;
  }

  .lmcat__product-content {
    padding: 12px;
  }

  .lmcat__product-title {
    min-height: 36px;
    font-size: 13px;
  }

  .lmcat__product-description {
    min-height: 50px;
    margin: 10px 0 15px;
    font-size: 12px;
  }

  .lmcat__product-price {
    font-size: 20px;
  }

  .lmcat__price-prefix {
    font-size: 12px;
  }

  .lmcat__add-cart,
  .lmcat__view-product {
    min-height: 39px;
    border-radius: 8px;
    padding: 0 8px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .lmcat__product-image-link {
    height: 150px;
  }

  .lmcat__product-description {
    display: none;
  }

  .lmcat__product-title {
    min-height: 48px;
    -webkit-line-clamp: 3;
  }

  .lmcat__pagination a,
  .lmcat__pagination span {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    font-size: 12px;
  }
}
