.commerce-hero {
  padding-top: 50px;
}

.commerce-hero__inner,
.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.product-hero {
  padding-top: 40px;
}

.product-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(340px, 42%);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.commerce-hero img,
.product-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--offwhite, #fbfaf5);
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  padding: 14px 0;
}

.shop-filter {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid currentColor;
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}

.shop-filter.is-active {
  background: var(--ink, #101010);
  color: var(--offwhite, #fbfaf5);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card a {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  border-top: 2px solid currentColor;
  padding-top: 14px;
}

.product-card h2,
.product-info h1,
.product-detail-grid h2,
.bag-page h1 {
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.95;
}

.product-card h2 {
  font-size: clamp(28px, 3vw, 44px);
  margin: 0;
}

.product-card span,
.product-card strong,
.product-price,
.bag-total strong {
  font-weight: 800;
  text-transform: uppercase;
}

.product-card p,
.product-info p,
.product-detail-grid p,
.bag-page p {
  max-width: 62ch;
  line-height: 1.55;
}

.concept-label,
.price-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-label {
  margin-right: 10px;
}

.product-visual {
  margin: 0;
}

.product-visual svg {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  border: 2px solid var(--ink, #101010);
}

.product-visual figcaption {
  margin-top: 8px;
  font-size: 12px;
  text-transform: uppercase;
}

.product-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.slice-image {
  width: min(360px, 48%);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid currentColor;
}

.product-info h1 {
  font-size: clamp(52px, 5.6vw, 80px);
  text-transform: uppercase;
  margin: 0 0 16px;
}

.product-price {
  font-size: 24px;
  margin: 0 0 18px;
}

.product-info {
  padding: 56px 0 0;
}

.product-kicker {
  margin: 0 0 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.commerce-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.variant-field {
  border: 0;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 10px;
}

.variant-field legend,
.product-facts dt {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
}

.variant-field label {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid currentColor;
  padding: 0 14px;
  cursor: pointer;
}

.variant-note,
.commerce-error,
.allergen-link {
  font-size: 14px;
}

.allergen-link {
  display: inline-block;
  margin-top: 16px;
  color: inherit;
  text-underline-offset: 4px;
}

.commerce-error {
  color: #9b1023;
  font-weight: 800;
}

.product-facts {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.product-facts div {
  display: grid;
  gap: 4px;
  border-top: 1px solid currentColor;
  padding-top: 10px;
}

.product-facts dd {
  margin: 0;
}

.product-detail-band {
  background: var(--offwhite, #fbfaf5);
}

.product-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.annotation-list,
.make-steps,
.bag-list {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.annotation-list li,
.make-steps li {
  border-top: 1px solid currentColor;
  padding: 14px 0;
}

.make-steps {
  counter-reset: step;
}

.make-steps li {
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
}

.make-steps li::before {
  counter-increment: step;
  content: "0" counter(step) " ";
  font-family: system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.bag-list {
  display: grid;
  gap: 0;
  border-top: 2px solid currentColor;
}

.bag-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid currentColor;
  padding: 18px 0;
}

.bag-line a {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

.bag-line small {
  display: block;
  margin-top: 4px;
  text-transform: uppercase;
}

.bag-line__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.text-link {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.product-card {
  position: relative;
}

.product-card__add {
  width: 100%;
  margin-top: 12px;
}

.card-error {
  margin: 10px 0 0;
}

.card-viewer {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--offwhite, #fbfaf5);
}

.card-view {
  position: absolute;
  inset: 0;
  height: 100%;
  transition: opacity 180ms ease;
}

.second-view {
  opacity: 0;
  transform: scale(1.14);
}

.product-card:hover .second-view,
.product-card:focus-within .second-view,
.product-card.show-second-view .second-view {
  opacity: 1;
}

.product-card:hover .primary-view,
.product-card:focus-within .primary-view,
.product-card.show-second-view .primary-view {
  opacity: 0;
}

.second-view-button {
  min-height: 44px;
  margin-top: 8px;
}

.starter-frame {
  position: relative;
  margin: 0;
}

.starter-frame .product-photo {
  min-height: 620px;
  max-height: 720px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.starter-hotspots {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  display: grid;
  grid-template-columns: 34px auto;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--ink, #101010);
  font: inherit;
  pointer-events: auto;
}

.hotspot span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--ink, #101010);
  color: var(--offwhite, #fbfaf5);
  border-radius: 50%;
  font-weight: 800;
}

.hotspot em {
  padding: 6px 8px;
  background: var(--offwhite, #fbfaf5);
  border: 1px solid currentColor;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.hotspot::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 34px;
  width: 1px;
  height: 54px;
  background: currentColor;
}

.hotspot-1 {
  left: 12%;
  top: 20%;
}

.hotspot-2 {
  right: 9%;
  top: 27%;
}

.hotspot-3 {
  left: 18%;
  bottom: 24%;
}

.hotspot-4 {
  right: 12%;
  bottom: 17%;
}

.bag-total,
.empty-commerce {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  border-top: 2px solid currentColor;
  padding-top: 20px;
}

@media (max-width: 980px) {
  .commerce-hero__inner,
  .product-hero__inner,
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 699px) {
  .shop-toolbar {
    position: sticky;
    top: 72px;
    z-index: 4;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    background: var(--canvas, #f4f0e6);
  }

  .shop-toolbar::-webkit-scrollbar {
    display: none;
  }

  .product-grid,
  .product-media,
  .bag-line {
    grid-template-columns: 1fr;
  }

  .shop-filter {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .bag-total,
  .empty-commerce {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-info {
    padding-top: 10px;
  }

  .product-info h1 {
    font-size: 52px;
  }

  .starter-frame .product-photo {
    width: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: 4 / 5;
  }

  .slice-image {
    width: 100%;
  }
}
