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

:root {
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(26px, 3vw, 42px);
}

h3 {
  font-size: 20px;
}

em {
  color: var(--gold);
  font-style: normal;
}

.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 72px);
}

.icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
  vertical-align: middle;
}

.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip:focus {
  position: fixed;
  z-index: 30;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: var(--gold);
  color: #111;
}

/* Header */
.header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid #292929;
  background: #111;
}

.nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.logo img {
  display: block;
  width: 190px;
  height: auto;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 35px);
}

.nav nav a {
  position: relative;
  padding-block: 26px;
  font-size: 14px;
  white-space: nowrap;
}

.nav nav a::after {
  position: absolute;
  right: 0;
  bottom: 15px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.65);
  transition: opacity var(--motion), transform var(--motion);
}

.nav nav a.active::after,
.nav nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.tools {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.icon-btn {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  background: transparent;
  transition: color var(--motion);
}

.icon-btn:hover {
  color: var(--gold);
}

.cart #count {
  position: absolute;
  top: 1px;
  right: 1px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #111;
  font-size: 11px;
}

.menu {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  background: #101010;
}

.hero-picture {
  position: absolute;
  z-index: -2;
  top: 0;
  right: max(0px, calc((100% - var(--max)) / 2));
  bottom: 0;
  width: min(61%, 878px);
  background: url("../assets/images/hero-product-scene.webp") center right / cover no-repeat;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    90deg,
    #101010 0%,
    #101010 31%,
    rgb(16 16 16 / 88%) 40%,
    rgb(16 16 16 / 35%) 54%,
    transparent 68%
  );
  content: "";
  pointer-events: none;
}

.hero::before {
  position: absolute;
  z-index: -1;
  bottom: 0;
  left: 0;
  width: 160px;
  height: 160px;
  background: url("../assets/images/diagonal-accent.svg") left bottom / cover no-repeat;
  content: "";
  opacity: 0.45;
}

.hero-inner {
  display: flex;
  min-height: 520px;
  align-items: center;
  padding-block: 48px;
}

.hero-copy {
  width: 53%;
  max-width: 630px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.24em;
}

.eyebrow i,
.gold-line {
  display: inline-block;
  width: 28px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--gold);
}

h1 {
  font-size: clamp(39px, 4.4vw, 66px);
  font-weight: 750;
  line-height: 1.05;
}

.intro {
  max-width: 460px;
  margin: 22px 0 26px;
  color: var(--muted);
  font-size: 17px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 28px;
  font-size: 14px;
  font-weight: 700;
  transition: background var(--motion), border-color var(--motion), transform var(--motion);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn .icon {
  width: 19px;
  height: 19px;
}

.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #13110e;
}

.primary:hover {
  background: var(--goldHover);
}

.secondary {
  border-color: #777;
  color: var(--text);
}

.secondary:hover {
  border-color: var(--gold);
}

.benefits {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 36px;
}

.benefits > div {
  display: grid;
  max-width: 112px;
  flex: 1;
  justify-items: center;
  gap: 9px;
  text-align: center;
  font-size: 12px;
  line-height: 1.35;
}

.benefits .icon {
  width: 29px;
  height: 29px;
  color: var(--gold);
}

/* Product cards */
.product-section {
  position: relative;
  z-index: 1;
  padding-block: 22px;
}

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

.product {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 17px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #151515;
  transition: border-color var(--motion), background var(--motion);
}

.product:first-child,
.product:hover {
  border-color: var(--gold);
  background: #191816;
}

.product > img {
  width: 90px;
  height: 112px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 9px 8px rgb(0 0 0 / 50%));
}

.product p {
  margin: 9px 0;
  color: var(--muted);
  font-size: 13px;
}

.text-btn {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 13px;
  font-weight: 650;
}

.text-btn .icon {
  width: 18px;
  height: 18px;
}

/* Brand story */
.about {
  border-bottom: 1px solid #262626;
  background: #121212 url("../assets/images/gym-texture.webp") right center / auto 100% no-repeat;
}

.about-grid {
  display: grid;
  min-height: 320px;
  grid-template-columns: 43% 1fr;
  align-items: center;
  gap: 42px;
}

.athlete {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: center;
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}

.about-copy {
  padding-block: 30px;
}

.about-benefits {
  justify-content: space-between;
  gap: 10px;
}

/* Information, reviews and final CTA */
.info {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 35px;
  padding-block: 54px;
}

.muted {
  color: var(--muted);
}

.info .muted {
  margin-top: 12px;
}

.faqs details {
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.faqs summary {
  min-height: 28px;
  cursor: pointer;
  font-weight: 600;
}

.faqs p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.reviews {
  display: grid;
  grid-template-columns: 1fr 3fr;
  align-items: center;
  gap: 25px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.reviews h2 {
  font-size: 27px;
}

.gold-line {
  margin-top: 12px;
}

.review-empty {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

.review-empty small {
  display: block;
  margin-top: 8px;
}

.cta {
  display: grid;
  min-height: 180px;
  grid-template-columns: 30% 1fr auto;
  align-items: center;
  gap: 25px;
  overflow: hidden;
  padding-block: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #141414 url("../assets/images/diagonal-accent.svg") left center / auto 100% no-repeat;
}

.cta-image {
  height: 160px;
  border-radius: 8px;
  background: url("../assets/images/cta-shaker-scene.webp") center / cover no-repeat;
}

.cta h2 {
  font-size: clamp(24px, 2.6vw, 38px);
}

footer {
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
  padding-block: 25px;
  font-size: 13px;
}

.footer small {
  margin-left: auto;
  color: var(--muted);
}

/* Accessible dialog panels */
dialog {
  width: min(90vw, 530px);
  max-height: 85vh;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
}

dialog::backdrop {
  background: rgb(0 0 0 / 68%);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.panel-head h2 {
  font-size: 25px;
}

#panelBody input {
  width: 100%;
  padding: 10px;
  border: 1px solid #777;
  border-radius: 8px;
  background: #101010;
  color: var(--text);
}

#panelBody p {
  margin-block: 10px;
  color: var(--muted);
}

.panel-product {
  display: flex;
  align-items: center;
  gap: 20px;
}

.panel-product img {
  width: 110px;
  height: 160px;
  object-fit: contain;
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.panel-row button {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid #777;
  border-radius: 5px;
  background: transparent;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-actions .remove-btn {
  padding-inline: 9px;
  border-color: transparent;
  color: var(--muted);
}

.panel-actions .remove-btn:hover {
  border-color: var(--line);
  color: var(--text);
}

@media (min-width: 761px) and (max-width: 1000px) {
  .nav {
    gap: 12px;
  }

  .logo img {
    width: 150px;
  }

  .nav nav {
    gap: 15px;
  }

  .nav nav a {
    font-size: 12px;
  }

  .hero-copy {
    width: 58%;
  }

  .product {
    gap: 8px;
    padding-inline: 10px;
  }

  .product > img {
    width: 70px;
  }

  .product h3 {
    font-size: 17px;
  }

  .product p {
    font-size: 12px;
  }

  .cta {
    grid-template-columns: 25% 1fr auto;
    gap: 15px;
  }
}

@media (min-width: 601px) and (max-width: 760px) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 72px;
  }

  .nav {
    min-height: 64px;
    gap: 8px;
  }

  .menu {
    display: grid;
    order: -1;
  }

  .logo {
    margin-right: auto;
  }

  .logo img {
    width: 145px;
  }

  .nav nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 16px;
    border-bottom: 1px solid var(--line);
    background: #151515;
  }

  .nav nav.open {
    display: flex;
  }

  .nav nav a {
    padding: 12px;
    font-size: 15px;
  }

  .nav nav a::after {
    display: none;
  }

  .tools {
    gap: 0;
  }

  .account {
    display: none;
  }

  .hero {
    display: flex;
    min-height: auto;
    flex-direction: column;
  }

  .hero-inner {
    min-height: 0;
    padding-block: 34px 24px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-picture {
    position: relative;
    inset: auto;
    width: 100%;
    order: 2;
    min-height: clamp(260px, 72vw, 390px);
    background-position: center 58%;
  }

  .hero::after {
    display: none;
  }

  .hero::before {
    display: none;
  }

  h1 {
    font-size: clamp(37px, 8vw, 52px);
  }

  .intro {
    margin-block: 17px 22px;
    font-size: 16px;
  }

  .benefits {
    gap: 10px;
    margin-top: 25px;
  }

  .benefits > div {
    font-size: 11px;
  }

  .product-section {
    padding-block: 16px 24px;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .product {
    gap: 20px;
    padding: 12px 14px;
  }

  .product > img {
    width: 76px;
    height: 100px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 10px;
  }

  .athlete {
    height: auto;
    max-height: 290px;
    object-position: center 30%;
    mask-image: none;
  }

  .about-copy {
    padding-block: 25px;
  }

  .about-benefits {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 18px;
  }

  .about-benefits > div {
    min-width: 76px;
  }

  .info,
  .reviews {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 30px;
  }

  .cta {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 18px;
    text-align: center;
  }

  .cta-image {
    width: 100%;
    height: 150px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .footer small {
    margin: 0;
  }
}

@media (max-width: 420px) {
  .logo img {
    width: 128px;
  }

  .tools .icon-btn {
    width: 40px;
  }

  .actions {
    gap: 10px;
  }

  .btn {
    padding-inline: 16px;
  }

  .hero-picture {
    background-size: auto 100%;
  }

  .panel-product {
    align-items: flex-start;
    gap: 12px;
  }

  .panel-product img {
    width: 88px;
  }
}

/* Motion and review carousel enhancements */
.btn:active,
.icon-btn:active,
.text-btn:active {
  transform: scale(.96);
}

.menu > .icon {
  transition: opacity 200ms ease, transform 260ms ease;
}

.menu::after {
  position: absolute;
  width: 24px;
  height: 24px;
  background: currentColor;
  mask: url("../assets/icons/close.svg") center / contain no-repeat;
  content: "";
  opacity: 0;
  transform: rotate(-90deg) scale(.75);
  transition: opacity 200ms ease, transform 260ms ease;
}

.menu[aria-expanded="true"] > .icon {
  opacity: 0;
  transform: rotate(90deg) scale(.75);
}

.menu[aria-expanded="true"]::after {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.reviews {
  display: block;
  padding-block: 45px;
}

.reviews-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.reviews h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(27px, 3vw, 38px);
}

.review-heading-icon {
  width: 26px;
  height: 26px;
  color: var(--gold);
  stroke-width: 1.5;
}

.reviews-disclaimer {
  max-width: 480px;
  color: var(--muted);
  font-size: 13px;
}

.reviews-disclaimer strong {
  color: var(--gold);
}

.review-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
}

.review-toolbar label {
  color: var(--muted);
  font-size: 13px;
}

.review-toolbar select {
  min-height: 44px;
  max-width: 100%;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #191919;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.review-toolbar select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.review-controls {
  display: flex;
  margin-left: auto;
}

.review-controls .icon-btn,
.product-controls .icon-btn {
  border: 1px solid var(--line);
  border-radius: 50%;
}

.review-controls .icon,
.product-controls .icon {
  width: 18px;
  height: 18px;
}

.swiper-button-disabled {
  opacity: .35;
  cursor: default;
}

.reviews-swiper {
  min-height: 224px;
}

.review-card,
.review-skeleton {
  min-height: 224px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.review-card {
  display: flex;
  height: auto;
  flex-direction: column;
  gap: 12px;
}

.review-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.review-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #17130e;
  font-weight: 700;
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-top: 4px;
  color: var(--gold);
}

.review-star {
  width: 14px;
  height: 14px;
}

.review-star.is-empty {
  color: #777;
}

.review-quote {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 12px;
}

.review-meta span {
  color: var(--gold);
}

.review-badge {
  align-self: flex-start;
  color: var(--muted);
  font-size: 11px;
}

.review-skeleton span {
  display: block;
  width: 80%;
  height: 14px;
  margin-bottom: 22px;
  border-radius: 5px;
  background: #34312d;
  animation: skeleton-pulse 1.3s ease-in-out infinite alternate;
}

.review-skeleton span:first-child {
  width: 44%;
  height: 42px;
}

.review-skeleton span:last-child {
  width: 60%;
}

@keyframes skeleton-pulse {
  from { opacity: .45; }
  to { opacity: .9; }
}

.review-load-error {
  color: var(--muted);
  padding: 20px 0;
}

.product-swiper .products {
  display: flex;
  gap: 0;
}

.product-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.smooth-option {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.smooth-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.smooth-option:has(input:disabled) {
  display: none;
}

@media (max-width: 760px) {
  .nav nav {
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 240ms ease, transform 240ms ease, visibility 240ms;
    pointer-events: none;
  }

  .nav nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .reviews-heading {
    display: block;
  }

  .reviews-disclaimer {
    margin-top: 12px;
  }

  .review-toolbar {
    flex-wrap: wrap;
  }

  .reviews-swiper {
    min-height: 240px;
  }

  .review-card,
  .review-skeleton {
    min-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
