@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

button,
input {
  font: inherit;
}

.hero,
main {
  width: min(100% - 32px, 1080px);
  margin: 0 auto;
}

.hero {
  padding: 40px 0 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #555;
  font-size: 14px;
}

h1,
h2 {
  margin: 0;
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  max-width: 620px;
  font-size: 34px;
}

h2 {
  font-size: 22px;
}

.hero__note {
  max-width: 520px;
  margin-top: 24px;
}

.hero__note strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 400;
}

.hero__note span,
.notice p,
.sizes p:not(.eyebrow),
.summary,
label,
.status {
  color: #555;
}

.notice {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
  padding-top: 20px;
  border-top: 1px solid #000;
}

.notice p {
  max-width: 760px;
  margin: 0;
}

.shop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product {
  min-width: 0;
}

.product img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #f5f5f5;
}

.product__body {
  padding-top: 12px;
}

.product__body h2 {
  margin-bottom: 12px;
}

.size-grid {
  display: grid;
  gap: 6px;
}

.size-control {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 32px;
}

.size-control span {
  font-size: 14px;
}

.stepper {
  display: grid;
  grid-template-columns: 32px 44px 32px;
  align-items: center;
  width: max-content;
}

.stepper button {
  width: 32px;
  height: 32px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  cursor: pointer;
}

.stepper output {
  display: block;
  min-width: 44px;
  text-align: center;
  color: #000;
  font-size: 16px;
}

.order,
.sizes {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid #000;
}

.order {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
}

input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
}

.summary {
  min-height: 70px;
  padding: 12px;
  border: 1px solid #ddd;
}

.summary strong {
  color: #000;
  font-weight: 400;
}

.price {
  color: #000;
}

form > button {
  justify-self: start;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  cursor: pointer;
}

.status {
  min-height: 22px;
  margin: 0;
}

.sizes {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding-bottom: 48px;
}

.sizes img {
  display: block;
  width: 100%;
  border: 1px solid #ddd;
}

@media (max-width: 860px) {
  .shop,
  .order,
  .sizes {
    grid-template-columns: 1fr;
  }

  .shop {
    gap: 36px;
  }

  h1 {
    font-size: 30px;
  }

  .product__body h2 {
    text-align: center;
  }

  .size-control {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4px;
  }

  .stepper {
    margin: 0 auto;
  }
}
