.catalog-page,
.product-page {
  --shop-accent: var(--action, #174e82);
  --shop-border: var(--line, #dce4ea);
  --shop-muted: var(--muted, #536475);
  --shop-tint: var(--panel, #f3f6f8);
  --shop-ink: var(--ink, #192735);
  color: var(--shop-ink);
}

.catalog-page a,
.product-page a {
  text-underline-offset: 3px;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  gap: 16px 24px;
  align-items: center;
  margin-bottom: 16px;
}

.catalog-header h1,
.product-page h1 {
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 720;
  line-height: 1.09;
  letter-spacing: -.038em;
  overflow-wrap: anywhere;
}

.catalog-page .catquiz {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin: 0;
  font-size: 14px;
  color: var(--shop-accent);
  font-weight: 680;
}

.catalog-page .catnav {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--shop-border);
  scrollbar-width: thin;
}

.catalog-page .catnav a {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 5px 5px 0 0;
  background: transparent;
  padding: 10px 11px;
  white-space: nowrap;
  color: var(--shop-muted);
  font-size: 13px;
  font-weight: 560;
}

.catalog-page .catnav a[aria-current] {
  color: var(--shop-accent);
  background: #e8f0f7;
  border-color: var(--shop-accent);
  font-weight: 680;
}

.catalog-page .catnav a:hover {
  color: var(--shop-accent);
  text-decoration: none;
  background: #f0f4fa;
}

@media (min-width: 1200px) {
  .catalog-page .catnav {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, auto));
    gap: 2px;
  }

  .catalog-page .catnav a {
    display: flex;
    align-items: center;
    padding-inline: 7px;
    line-height: 1.22;
    white-space: normal;
  }
}

.catalog-jumps {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 22px;
  padding: 1px 1px 5px;
  scrollbar-width: thin;
}

.catalog-jump {
  display: flex;
  flex: 1 0 163px;
  align-items: center;
  gap: 10px;
  min-height: 65px;
  border: 1px solid var(--shop-border);
  border-radius: 9px;
  padding: 8px 12px;
  background: #fff;
  line-height: 1.2;
  font-size: 13px;
}

.catalog-jump img {
  flex: 0 0 47px;
  width: 47px;
  height: 43px;
  object-fit: contain;
  display: block;
}

.catalog-jump strong {
  overflow-wrap: anywhere;
  font-weight: 640;
}

.catalog-jump:hover {
  border-color: var(--shop-accent);
  color: var(--shop-accent);
  text-decoration: none;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(194px, 230px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.catalog-sidebar {
  min-width: 0;
}

.catalog-page .catalog-filters {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--shop-border);
  border-radius: 10px;
  background: #fff;
}

.catalog-page .catalog-filters > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  color: var(--shop-ink);
  font-weight: 700;
}

.catalog-page .catalog-filters > summary::-webkit-details-marker {
  display: none;
}

.catalog-page .catalog-filters > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  margin-right: 4px;
  border: solid var(--shop-muted);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.catalog-page .catalog-filters[open] > summary::after {
  transform: rotate(225deg);
}

.catalog-page .catalog-filters > summary span {
  font-size: 12px;
  color: var(--shop-accent);
  background: #e8f0f7;
  padding: 2px 6px;
  border-radius: 4px;
}

.catalog-page .catalog-filters form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 13px;
  margin: 14px 0 0;
}

.catalog-page .catalog-filters fieldset {
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

.catalog-page .catalog-filters legend {
  padding: 0;
  margin-bottom: 5px;
}

.catalog-page .catalog-filters label,
.catalog-page .catalog-filters legend {
  color: var(--shop-ink);
  font-weight: 630;
  font-size: 13px;
}

.catalog-page .catalog-filters select,
.catalog-page .catalog-filters input,
.catalog-page .catalog-sort select {
  width: 100%;
  min-width: 0;
  min-height: 39px;
  background: #fff;
  border: 1px solid #cbd4df;
  border-radius: 6px;
  color: var(--shop-ink);
  padding: 7px 8px;
  font-size: 13px;
  font-weight: 480;
}

.catalog-price-range {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
}

.catalog-page .catalog-filters .cta {
  min-height: 40px;
  margin-top: 3px;
  background: var(--shop-accent);
  color: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
}

.catalog-page .catalog-filters .cta:hover,
.product-page .buy .cta:hover {
  filter: brightness(.93);
}

.catalog-page .catalog-reset {
  justify-self: center;
  color: var(--shop-muted);
  font-weight: 520;
  font-size: 13px;
}

.catalog-results {
  min-width: 0;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 12px;
  row-gap: 8px;
  min-height: 44px;
  margin: 0 0 10px;
}

.catalog-toolbar p {
  margin: 0;
  font-size: 15px;
  color: var(--shop-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.catalog-sort {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.catalog-sort button {
  border: 1px solid var(--shop-border);
  border-radius: 6px;
  background: #fff;
  color: var(--shop-accent);
  min-height: 39px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 650;
}

.catalog-sort button:hover,
.catalog-chip:hover {
  border-color: var(--shop-accent);
  text-decoration: none;
}

.catalog-applied {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.catalog-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d5e2ee;
  background: #edf3f8;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 13px;
  color: var(--shop-accent);
  overflow-wrap: anywhere;
  max-width: 100%;
}

.catalog-chip span {
  font-size: 18px;
  line-height: 1;
}

.catalog-results .products {
  grid-template-columns: repeat(4,minmax(0,1fr));
}

.catalog-page .catalog-empty {
  background: #fff;
  border: 1px solid var(--shop-border);
  border-radius: 10px;
  padding: 24px;
}

.catalog-empty h2 {
  font-size: 23px;
}

.catalog-empty p {
  color: var(--shop-muted);
}

.catalog-results .pagination {
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.catalog-results .pagination a {
  display: grid;
  place-items: center;
  border: 1px solid var(--shop-border);
  border-radius: 6px;
  min-width: 36px;
  min-height: 37px;
  padding: 4px 7px;
  color: var(--shop-ink);
  font-size: 13px;
  font-weight: 630;
}

.catalog-results .pagination a[aria-current] {
  background: var(--shop-accent);
  border-color: var(--shop-accent);
  color: #fff;
}

.catalog-results .pagination span {
  color: var(--shop-muted);
  padding: 0 4px;
}

.product-page h1 {
  font-size: clamp(27px, 2.7vw, 38px);
  max-width: 40ch;
  margin-bottom: 11px;
}

.product-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 15px;
  color: var(--shop-muted);
  font-size: 13px;
}

.product-meta a {
  color: var(--shop-accent);
}

.product-page .detail {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(265px,1fr);
  grid-template-areas: "gallery offer" "summary summary";
  gap: 24px;
  align-items: start;
  margin: 19px 0 30px;
}

.product-page .gallery {
  min-width: 0;
  grid-area: gallery;
}

.product-media {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: start;
}

.product-page .mainphoto {
  display: grid;
  place-items: center;
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: clamp(250px, 30vw, 395px);
  border: 1px solid var(--shop-border);
  border-radius: 12px;
  padding: clamp(18px, 2.5vw, 32px);
  background: #fff;
}

.product-page .mainphoto img {
  display: block;
  max-height: 100%;
  min-height: 0;
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.product-page .thumbs {
  flex: 0 0 55px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 2px;
  margin: 0;
  max-height: clamp(250px, 30vw, 395px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.product-page .thumbs button {
  display: grid;
  place-items: center;
  flex: 0 0 47px;
  min-width: 0;
  padding: 3px;
  background: #fff;
  border: 1px solid var(--shop-border);
  border-radius: 6px;
}

.product-page .thumbs button[aria-pressed=true],
.product-page .thumbs button:hover {
  border-color: var(--shop-accent);
  background: #edf3f8;
}

.product-page .thumbs button:focus-visible {
  outline-offset: -3px;
}

.product-page .thumbs img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-page .photo-caption {
  margin: 8px 0 0;
  color: var(--shop-muted);
  font-size: 13px;
  line-height: 1.4;
}

.product-summary {
  grid-area: summary;
  min-width: 0;
}

.product-summary h2 {
  margin: 1px 0 13px;
  font-size: 17px;
  font-weight: 710;
  letter-spacing: -.018em;
}

.product-highlights {
  display: grid;
  gap: 9px;
  margin: 0 0 13px;
}

.product-highlights > div {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,.8fr);
  gap: 7px;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--shop-border);
}

.product-highlights dt {
  color: var(--shop-muted);
  font-size: 13px;
}

.product-highlights dd {
  margin: 0;
  font-size: 13px;
  font-weight: 670;
  overflow-wrap: anywhere;
}

.product-summary a {
  font-size: 13px;
  font-weight: 630;
  color: var(--shop-accent);
}

.product-page .product-offer {
  grid-area: offer;
  min-width: 0;
}

.product-page .buy {
  border: 1px solid var(--shop-border);
  border-radius: 12px;
  background: #fff;
  padding: 21px;
}

.product-page .purchase-price strong {
  font-size: clamp(30px, 2.9vw, 40px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 740;
  overflow-wrap: anywhere;
}

.product-page .purchase-stock,
.product-page .purchase-forecast,
.product-page .purchase-delivery {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.38;
}

.product-page .purchase-stock {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: #166048;
  font-weight: 650;
}

.purchase-stock i {
  height: 7px;
  width: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #1d8b66;
}

.product-page .purchase-forecast {
  color: var(--shop-muted);
}

.product-page .purchase-delivery {
  margin-top: 9px;
  padding: 8px 9px;
  border-radius: 5px;
  background: #fff4db;
  color: #674b1f;
}

.product-page .buy .cta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  margin: 15px 0 0;
  padding: 10px 12px;
  background: var(--shop-accent);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 670;
}

.product-page .buy .cta span {
  color: inherit;
  font-size: 17px;
}

.product-specs {
  border: 1px solid var(--shop-border);
  border-radius: 11px;
  background: #fff;
  padding: 23px 26px;
  scroll-margin-top: 120px;
}

.product-specs h2 {
  font-size: clamp(22px, 2.3vw, 30px);
  margin-bottom: 14px;
  letter-spacing: -.03em;
}

.product-page .specs {
  margin: 0;
  max-width: 100%;
}

.product-page .specs > div {
  display: grid;
  grid-template-columns: minmax(170px, .75fr) minmax(0, 1.35fr);
  gap: 12px 20px;
  border: 0;
  padding: 8px 9px;
  font-size: 14px;
  line-height: 1.38;
}

.product-page .specs > div:nth-child(odd) {
  background: var(--shop-tint);
  border-radius: 4px;
}

.product-page .specs dt,
.product-page .specs dd {
  max-width: 88ch;
  overflow-wrap: anywhere;
}

.product-page .specs dt {
  color: var(--shop-muted);
}

.product-page .estimate-ref {
  color: var(--shop-accent);
  font-weight: 750;
  margin-left: .14em;
}

.product-page #reserve-estimate-note {
  margin: 14px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--shop-border);
  scroll-margin-top: 30px;
}

@media (min-width: 1080px) {
  .product-page .detail.with-summary {
    grid-template-columns: minmax(0,1.35fr) minmax(220px,.7fr) minmax(265px,.87fr);
    grid-template-areas: "gallery summary offer";
  }

  .product-page .product-summary {
    padding-top: 6px;
  }
}

@media (max-width: 1120px) {
  .catalog-results .products {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

@media (max-width: 870px) {
  .catalog-layout {
    grid-template-columns: minmax(174px, 195px) minmax(0, 1fr);
    gap: 13px;
  }

  .catalog-results .products {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 700px) {
  .catalog-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
  }

  .catalog-header h1,
  .product-page h1 {
    font-size: clamp(25px, 6.5vw, 31px);
  }

  .catalog-page .catnav {
    margin-bottom: 11px;
  }

  .catalog-page .catnav a {
    padding: 8px 9px;
  }

  .catalog-jumps {
    margin-bottom: 10px;
  }

  .catalog-jump {
    flex: 0 0 142px;
    gap: 6px;
    min-height: 55px;
    padding: 6px 7px;
    font-size: 12px;
  }

  .catalog-jump img {
    flex-basis: 36px;
    width: 36px;
    height: 34px;
  }

  .catalog-layout {
    display: block;
  }

  .catalog-page .catalog-filters {
    padding: 10px 12px;
    margin-bottom: 7px;
  }

  .catalog-page .catalog-filters > summary {
    min-height: 26px;
    font-size: 15px;
  }

  .catalog-page .catalog-filters form {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .catalog-page .catalog-filters .cta,
  .catalog-page .catalog-filters fieldset {
    grid-column: 1/-1;
  }

  .catalog-page .catalog-filters .catalog-reset {
    grid-column: 1/-1;
  }

  .catalog-toolbar {
    margin-bottom: 6px;
  }

  .catalog-toolbar p {
    font-size: 13px;
  }

  .catalog-sort button,
  .catalog-page .catalog-sort select {
    min-height: 33px;
    font-size: 12px;
    padding: 4px 5px;
  }

  .product-page .detail,
  .product-page .detail.with-summary {
    grid-template-columns: 1fr;
    grid-template-areas: "gallery" "offer" "summary";
    gap: 17px;
    margin: 13px 0 22px;
  }

  .product-media {
    flex-direction: column-reverse;
  }

  .product-page .mainphoto {
    flex-basis: auto;
    width: 100%;
    height: clamp(230px,63vw,315px);
    padding: 15px;
  }

  .product-page .thumbs {
    flex: 0 0 auto;
    flex-direction: row;
    max-width: 100%;
    overflow-y: hidden;
    overflow-x: auto;
  }

  .product-page .thumbs button {
    flex: 0 0 47px;
  }

  .product-page .buy {
    padding: 15px;
  }

  .product-specs {
    padding: 15px 12px;
    scroll-margin-top: 78px;
  }

  .product-page .specs > div {
    grid-template-columns: minmax(90px,.85fr) minmax(0,1fr);
    gap: 9px;
    padding: 7px 6px;
    font-size: 13px;
  }
}

@media (max-width: 370px) {
  .catalog-toolbar {
    flex-wrap: wrap;
  }
}
