@font-face {
  font-family: "Space Colony";
  src: url("../webfonts/SpaceColony-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Colony";
  src: url("../webfonts/SpaceColony-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --products-accent: #e65f16;
  --products-ink: #111111;
  --products-muted: #777777;
  --products-line: #d9d6d2;
  --products-paper: #fbfaf8;
}

html {
  scroll-behavior: auto;
}

body.products-tabs-page {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #ffffff;
  color: var(--products-ink);
}

.products-tabs-page .nav-menu {
  min-height: 92px;
  background: #ffffff;
}

.products-tabs-app {
  width: 100%;
  min-height: 100dvh;
  overflow: visible;
  background: #ffffff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.product-catalog {
  min-height: 100dvh;
  padding-top: 92px;
  background: var(--products-paper);
  font-family: "Space Colony", "Space Grotesk", sans-serif;
}

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

.products-noscript {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px;
  color: #111;
  font-family: system-ui, sans-serif;
}

.products-noscript ul {
  margin-top: 16px;
  padding-inline-start: 20px;
}

.products-noscript a {
  color: #bd450f;
}

.product-tabs-region {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 6px;
  align-items: center;
  height: 56px;
  padding: 6px 20px;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid #e2dfdc;
}

.tabs-scroll-control {
  display: grid;
  width: 28px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1c1c1c;
  font-size: 12px;
  cursor: pointer;
  transition: color 90ms ease, opacity 90ms ease;
}

.tabs-scroll-control:hover:not(:disabled),
.tabs-scroll-control:focus-visible {
  color: var(--products-accent);
}

.tabs-scroll-control:focus-visible {
  outline: 2px solid var(--products-accent);
  outline-offset: 2px;
}

.tabs-scroll-control:disabled {
  opacity: 0.28;
  cursor: default;
}

.tabs-scroll-control[hidden] {
  display: none;
}

.product-tabs-scroll {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  height: 40px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.product-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.product-tab {
  position: relative;
  flex: 0 0 auto;
  min-width: max-content;
  height: 40px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: #282828;
  font: 400 12.5px / 1 "Space Colony", "Space Grotesk", sans-serif;
  letter-spacing: 0.015em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 90ms ease;
}

.product-tab:hover {
  color: var(--products-accent);
}

.product-tab[aria-selected="true"] {
  color: var(--products-accent);
  font-weight: 400;
}

.product-tab:focus-visible {
  outline: none;
  text-decoration: underline;
  text-decoration-color: var(--products-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.product-display {
  display: grid;
  grid-template-columns: minmax(0, 57.2%) minmax(0, 42.8%);
  min-height: calc(100dvh - 148px);
  background: var(--products-paper);
  outline: none;
}

.product-visual {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #cfcfcf;
}

.product-visual-image {
  display: block;
  width: min(84%, 760px);
  height: 88%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transform: translateY(-4%) scale(1.48);
  transition: opacity 180ms ease, transform 180ms ease;
}

.product-display.is-updating .product-visual-image,
.product-display.is-updating .product-info > * {
  opacity: 0.25;
}

.product-display.is-updating .product-visual-image {
  transform: translateY(calc(-4% + 5px)) scale(1.48);
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(24px, 3.2vh, 34px) clamp(32px, 4vw, 58px);
  overflow: hidden;
  background: var(--products-paper);
}

.product-info > * {
  transition: opacity 180ms ease;
}

.product-category {
  margin: 0 0 12px;
  color: var(--products-accent);
  font: 400 11px / 1.25 "Space Colony", "Space Grotesk", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-title {
  max-width: 590px;
  margin: 0;
  color: #050505;
  font: 300 clamp(40px, 3.6vw, 58px) / 1.02 "Space Colony", "Space Grotesk", sans-serif;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.product-description {
  max-width: 570px;
  margin: 16px 0 0;
  color: var(--products-muted);
  font: 300 clamp(14px, 1.12vw, 16px) / 1.55 "Inter", system-ui, sans-serif;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
  border-top: 1px solid var(--products-line);
  border-bottom: 1px solid var(--products-line);
}

.spec-item {
  display: flex;
  min-width: 0;
  min-height: 94px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
}

.spec-item + .spec-item {
  border-inline-start: 1px solid var(--products-line);
}

.spec-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 6px;
  color: #171717;
  font: 300 clamp(16px, 1.22vw, 21px) / 1.25 "Space Colony", "Space Grotesk", sans-serif;
}

.spec-number,
.spec-unit {
  white-space: nowrap;
}

.spec-label {
  color: #848484;
  font: 400 10.5px / 1.3 "Space Colony", "Space Grotesk", sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: 14px;
  margin-top: 20px;
}

.product-action {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #202020;
  color: #171717;
  font: 400 clamp(10px, 0.82vw, 12.5px) / 1.25 "Space Colony", "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.product-action i {
  flex: 0 0 auto;
  font-size: 17px;
}

.product-action-primary {
  justify-content: space-between;
  border-color: #090909;
  background: #090909;
  color: var(--products-accent);
}

.product-action:hover,
.product-action:focus-visible {
  border-color: var(--products-accent);
  background: var(--products-accent);
  color: #090909;
}

.product-action:focus-visible {
  outline: 2px solid #090909;
  outline-offset: 3px;
}

html[dir="rtl"] .product-action-primary i {
  transform: rotate(180deg);
}

html[dir="rtl"] .tabs-scroll-control i {
  transform: rotate(180deg);
}

@media (min-width: 901px) {
  html,
  body.products-tabs-page {
    height: 100%;
    overflow: hidden;
  }

  .products-tabs-app,
  .product-catalog {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .product-display {
    height: calc(100dvh - 148px);
    min-height: 0;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .product-tabs-region {
    padding-inline: 16px;
  }

  .product-display {
    grid-template-columns: minmax(0, 55%) minmax(0, 45%);
  }

  .product-info {
    padding: 24px 30px;
  }

  .product-title {
    font-size: clamp(38px, 4.2vw, 50px);
  }

  .product-actions {
    gap: 14px;
  }

  .product-action {
    padding-inline: 12px;
    letter-spacing: 0.05em;
  }
}

@media (min-width: 901px) and (max-height: 680px) {
  .products-tabs-page .nav-menu {
    min-height: 86px;
  }

  .product-catalog {
    padding-top: 86px;
  }

  .product-tabs-region {
    height: 54px;
    padding-block: 8px;
  }

  .product-display {
    height: calc(100dvh - 140px);
  }

  .product-info {
    padding-block: 18px;
  }

  .product-title {
    font-size: clamp(36px, 3.35vw, 50px);
  }

  .product-description {
    margin-top: 12px;
    font-size: 13.5px;
  }

  .product-specs,
  .product-actions {
    margin-top: 14px;
  }

  .spec-item {
    min-height: 82px;
    padding-block: 10px;
  }

  .product-action {
    min-height: 50px;
  }
}

@media (max-width: 900px) {
  html,
  body.products-tabs-page {
    height: 100%;
    overflow: hidden;
  }

  .products-tabs-app,
  .product-catalog {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .products-tabs-page .nav-menu {
    min-height: 80px;
  }

  .product-catalog {
    padding-top: 80px;
  }

  .product-tabs-region {
    grid-template-columns: 26px minmax(0, 1fr) 26px;
    gap: 5px;
    height: 54px;
    padding: 5px 12px;
  }

  .product-tabs-scroll {
    height: 40px;
    gap: 14px;
  }

  .tabs-scroll-control {
    width: 26px;
    height: 34px;
    font-size: 11px;
  }

  .product-tab {
    height: 38px;
    padding: 0 4px;
    font-size: 11.5px;
  }

  .product-display {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(190px, 42%) minmax(0, 58%);
    height: calc(100dvh - 134px);
    min-height: 0;
  }

  .product-visual {
    min-height: 0;
  }

  .product-visual-image {
    width: min(76%, 620px);
    height: 92%;
    transform: translateY(-2%) scale(1.18);
  }

  .product-display.is-updating .product-visual-image {
    transform: translateY(calc(-2% + 5px)) scale(1.18);
  }

  .product-info {
    padding: 18px clamp(22px, 5vw, 42px);
  }

  .product-title {
    max-width: 700px;
    font-size: clamp(30px, 5.8vw, 46px);
  }

  .product-description {
    max-width: 720px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.45;
  }

  .product-specs,
  .product-actions {
    margin-top: 12px;
  }

  .spec-item {
    min-height: 70px;
    padding-block: 8px;
  }

  .product-action {
    min-height: 48px;
  }
}

@media (max-width: 560px) {
  .products-tabs-page .nav-menu {
    min-height: 72px;
  }

  .product-catalog {
    padding-top: 72px;
  }

  .product-tabs-region {
    grid-template-columns: 24px minmax(0, 1fr) 24px;
    gap: 4px;
    height: 52px;
    padding: 4px 10px;
  }

  .product-tabs-scroll {
    height: 40px;
    gap: 12px;
  }

  .tabs-scroll-control {
    width: 24px;
    height: 32px;
    font-size: 10px;
  }

  .product-tab {
    height: 38px;
    padding: 0 3px;
    font-size: 11px;
  }

  .product-display {
    grid-template-rows: minmax(170px, 40%) minmax(0, 60%);
    height: calc(100dvh - 124px);
  }

  .product-visual {
    min-height: 0;
  }

  .product-visual-image {
    width: 90%;
    height: 96%;
    transform: translateY(-2%) scale(1.12);
  }

  .product-display.is-updating .product-visual-image {
    transform: translateY(calc(-2% + 4px)) scale(1.12);
  }

  .product-info {
    padding: 12px 18px 14px;
  }

  .product-category {
    margin-bottom: 6px;
    font-size: 9px;
  }

  .product-title {
    font-size: clamp(27px, 8.3vw, 34px);
    line-height: 1;
  }

  .product-description {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.4;
  }

  .product-specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 10px;
  }

  .spec-item {
    min-height: 64px;
    gap: 4px;
    padding: 7px 3px;
  }

  .spec-item + .spec-item {
    border-top: 0;
    border-inline-start: 1px solid var(--products-line);
  }

  .spec-value {
    column-gap: 3px;
    font-size: 13px;
  }

  .spec-label {
    font-size: 8px;
    letter-spacing: 0.05em;
  }

  .product-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 8px;
    margin-top: 10px;
  }

  .product-action {
    min-height: 44px;
    gap: 7px;
    padding: 8px;
    font-size: 8.5px;
    letter-spacing: 0.05em;
  }

  .product-action i {
    font-size: 13px;
  }
}

@media (max-width: 900px) and (max-height: 600px) {
  .products-tabs-page .nav-menu {
    min-height: 64px;
  }

  .product-catalog {
    padding-top: 64px;
  }

  .product-tabs-region {
    height: 50px;
    padding-block: 6px;
  }

  .product-display {
    grid-template-columns: minmax(0, 46%) minmax(0, 54%);
    grid-template-rows: 1fr;
    height: calc(100dvh - 114px);
  }

  .product-info {
    padding: 12px 20px;
  }

  .product-category {
    margin-bottom: 5px;
  }

  .product-title {
    font-size: clamp(25px, 5vw, 34px);
  }

  .product-description {
    margin-top: 6px;
    font-size: 11px;
  }

  .product-specs,
  .product-actions {
    margin-top: 8px;
  }

  .spec-item {
    min-height: 58px;
  }

  .product-action {
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .product-tab,
  .product-visual-image,
  .product-info > *,
  .product-action,
  .tabs-scroll-control {
    transition: none !important;
  }
}
