:root {
  color-scheme: light;
  --text: #171717;
  --muted: #6c6c70;
  --surface: #f5f5f7;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Arial, "Helvetica Neue", sans-serif;
}

img, video { max-width: 100%; }

.product-index {
  min-height: 100vh;
  padding: 52px clamp(24px, 5vw, 80px) 72px;
}

.product-grid {
  width: min(1600px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  min-height: 430px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border-radius: 20px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .1);
}

.product-card__visual {
  flex: 1;
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 20px;
}

.product-card__visual img {
  width: 100%;
  height: 280px;
  object-fit: contain;
}

.product-card__copy { padding: 0 26px 28px; }

.product-card__name {
  margin: 0 0 7px;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.product-card__type,
.product-card__slogan {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.product-card__slogan { margin-top: 3px; }

body.product-detail > main { margin-top: 0 !important; }

/*
 * Product sources use a 1600px desktop artboard. Keep every detail page on the
 * same review scale instead of letting its original template choose a
 * different apparent size on wide and ultra-wide displays.
 */
@media (min-width: 1920px) and (max-width: 2559px) {
  body.product-detail > main,
  body.product-detail main.scaffold { zoom: .83333333 !important; }
}

@media (min-width: 2560px) {
  body.product-detail > main,
  body.product-detail main.scaffold { zoom: .66666667 !important; }
}

.detail-header {
  position: relative;
  z-index: 9990;
  color: #fff;
  background: #09090a;
}

.detail-header__shell {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
}

.detail-header__primary,
.detail-header__product-bar {
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.detail-header__primary-inner,
.detail-header__product-inner {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-header__wordmark {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}

.detail-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.2vw, 46px);
}

.detail-header__nav-item,
.detail-header__product-name,
.detail-header__all-products {
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  line-height: 1;
}

.detail-header__nav-item {
  text-decoration: none;
  transition: color 180ms ease;
}

.detail-header__nav-item:hover,
.detail-header__nav-item:focus-visible {
  color: #fff;
  outline: none;
}

.detail-header__nav-item--active {
  color: #f26a2c;
  font-weight: 700;
}

.detail-header__product-name {
  color: #fff;
  font-weight: 600;
}

.detail-header__all-products {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.detail-header__all-products:hover,
.detail-header__all-products:focus-visible {
  color: #111;
  background: #fff;
  outline: none;
}

body.product-detail [class*="KeyVisionScreen_is-fade-in-up"] {
  opacity: 1 !important;
  transform: none !important;
}

body.product-detail video {
  object-fit: cover;
}

body.product-detail a[href=""],
body.product-detail a:not([href]) {
  cursor: default;
}

@media (max-width: 760px) {
  .detail-header__shell { width: calc(100% - 32px); }
  .detail-header__primary-inner { min-height: 54px; }
  .detail-header__product-inner { min-height: 46px; }
  .detail-header__nav { display: none; }
  .detail-header__wordmark { font-size: 18px; }
  .detail-header__nav-item,
  .detail-header__product-name,
  .detail-header__all-products { font-size: 12px; }
  .detail-header__all-products { min-height: 30px; padding: 0 12px; }
  .product-index { padding: 24px 16px 48px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 390px; }
}
