.lm-product-series {
  --lm-fp-accent: #b8956a;
  --lm-fp-primary: #2c1810;
  --lm-fp-secondary: #f5f1ed;
  --lm-fp-card-bg: #ffffff;
  --lm-fp-card-shadow: 0 16px 35px rgba(44, 24, 16, 0.12);
  --lm-fp-card-shadow-hover: 0 24px 50px rgba(44, 24, 16, 0.18);
  --lm-fp-border: rgba(44, 24, 16, 0.08);
  --lm-fp-muted: #7c6a60;
  --lm-fp-variant-size: 48px;
  --lm-ps-bg: #f5f1ed;
  --lm-ps-panel: #ffffff;
  --lm-ps-card: #ffffff;
  --lm-ps-border: rgba(44, 24, 16, 0.12);
  --lm-ps-text: #2c1810;
  --lm-ps-muted: #70655c;
  --lm-ps-accent: #b8956a;
  background: var(--lm-ps-bg);
  padding: 30px 0 40px;
}

.lm-product-series.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.lm-ps__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.lm-ps__filters-toggle {
  display: none;
}

.lm-ps__filters {
  background: var(--lm-ps-panel);
  border-radius: 24px;
  padding: 26px 20px 20px;
  position: sticky;
  top: 16px;
}

.lm-ps__filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.lm-ps__filters-title {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--lm-ps-text);
}

.lm-ps__filters-close {
  display: none;
}

.lm-ps__filters-body {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.lm-ps__filter-group {
  border-top: 1px solid rgba(44, 24, 16, 0.08);
  padding: 18px 0;
}

.lm-ps__filter-group:first-child {
  border-top: 0;
  padding-top: 8px;
}

.lm-ps__group-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--lm-ps-text);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.lm-ps__group-icon {
  transition: transform 0.25s ease;
  transform: rotate(180deg);
  color: var(--lm-ps-muted);
}

.lm-ps__filter-group.is-open .lm-ps__group-icon {
  transform: rotate(0deg);
}

.lm-ps__group-options {
  display: none;
  margin-top: 12px;
  gap: 10px;
}

.lm-ps__filter-group.is-open .lm-ps__group-options {
  display: grid;
}

.lm-ps__option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #3c3733;
  cursor: pointer;
}

.lm-ps__option-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lm-ps__option-box {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1px solid rgba(44, 24, 16, 0.26);
  background: #fff;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lm-ps__option-input:checked + .lm-ps__option-box {
  background: var(--lm-ps-accent);
  border-color: var(--lm-ps-accent);
}

.lm-ps__option-input:checked + .lm-ps__option-box::after {
  content: "";
  display: block;
  width: 5px;
  height: 10px;
  margin: 2px auto 0;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.lm-ps__option-label {
  min-width: 0;
}

.lm-ps__option-count {
  color: #79716b;
  font-size: 14px;
}

.lm-ps__content {
  min-width: 0;
}

.lm-ps__title {
  margin: 0 0 20px;
  font-size: clamp(38px, 3.2vw, 56px);
  line-height: 1.05;
  color: var(--lm-ps-text);
}

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

.lm-ps__item .lm-product-card {
  height: 100%;
  background: var(--lm-ps-card);
}

.lm-ps__item.is-hidden {
  display: none;
}

.lm-ps__dots {
  display: none;
}

@media (max-width: 1024px) {
  .lm-ps__layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .lm-ps__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .lm-product-series {
    padding: 16px 0 22px;
  }

  .lm-ps__inner {
    padding: 0 14px;
  }

  .lm-ps__layout {
    display: block;
  }

  .lm-ps__filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    background: #fff;
    color: var(--lm-ps-text);
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(44, 24, 16, 0.12);
    margin-bottom: 12px;
    cursor: pointer;
  }

  .lm-ps__filters {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 70px;
    z-index: 50;
    max-height: 74vh;
    border-radius: 18px;
    transform: translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 18px 16px 14px;
  }

  .lm-product-series.is-filters-open .lm-ps__filters {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .lm-ps__filters-title {
    font-size: 28px;
  }

  .lm-ps__filters-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(44, 24, 16, 0.18);
    background: #fff;
    font-size: 24px;
    line-height: 1;
    color: #443830;
    cursor: pointer;
  }

  .lm-ps__filters-body {
    max-height: 58vh;
  }

  .lm-ps__title {
    margin-bottom: 14px;
    font-size: 34px;
  }

  .lm-ps__cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0;
  }

  .lm-ps__cards::-webkit-scrollbar {
    display: none;
  }

  .lm-ps__page {
    flex: 0 0 100%;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    scroll-snap-align: start;
    padding: 0 1px;
  }

  .lm-ps__item {
    width: 100%;
  }

  .lm-ps__dots {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
  }

  .lm-ps__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    background: rgba(44, 24, 16, 0.25);
    cursor: pointer;
  }

  .lm-ps__dot.is-active {
    background: var(--lm-ps-accent);
    transform: scale(1.2);
  }
}
