.product-detail {
  display: flex;
  flex-direction: column;
  color: #191919;
  background: #fff;
}

.product-detail-hero {
  flex: none;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #e9dfeb;
}

.product-detail-hero img {
  position: absolute;
  left: 30.5%;
  top: 29.6%;
  width: 45.4%;
  height: 54.8%;
  object-fit: contain;
}

.product-detail[data-product="towel"] .product-detail-hero img {
  left: 17%;
  top: 26%;
  width: 66%;
  height: 54%;
}

.product-detail-summary {
  display: flex;
  flex-direction: column;
  flex: none;
  padding: calc(18 * var(--u)) calc(20 * var(--u)) calc(8 * var(--u));
}

.product-detail-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: calc(14 * var(--u));
  color: #ff6500;
}

.product-detail-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: calc(26 * var(--u));
  font-weight: 700;
  line-height: 1.2;
  white-space: pre;
}

.product-detail-price > span { white-space: nowrap; }

.product-detail-price strong {
  font-size: calc(60 * var(--u));
  font-weight: 800;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

.product-detail-original {
  font-size: calc(23 * var(--u));
  font-weight: 400;
  white-space: nowrap;
}

.product-detail-saving {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: calc(5 * var(--u));
  min-height: calc(35 * var(--u));
  margin-top: calc(6 * var(--u));
  padding: calc(2 * var(--u)) calc(8 * var(--u)) calc(2 * var(--u)) calc(5 * var(--u));
  border-radius: calc(7 * var(--u));
  background: linear-gradient(90deg, #ffe0c7, #ffe7ae);
  color: #79501d;
  font-size: calc(22 * var(--u));
  line-height: 1.35;
  white-space: nowrap;
}

.product-detail-saving img {
  display: block;
  flex: none;
  width: calc(28 * var(--u));
  height: calc(28 * var(--u));
  object-fit: contain;
}

.product-detail-saving strong { font-weight: inherit; }

.product-detail-summary h1 {
  margin-top: calc(13 * var(--u));
  overflow: hidden;
  color: #171717;
  font-size: calc(30 * var(--u));
  font-weight: 750;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-detail-summary h1:focus { outline: none; }

.product-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: calc(8 * var(--u));
  margin: calc(5 * var(--u)) 0 0;
  padding: 0;
  list-style: none;
}

.product-detail-tags li {
  padding: 0 calc(4 * var(--u));
  border-radius: calc(3 * var(--u));
  background: #00bd00;
  color: #fff;
  font-size: calc(23 * var(--u));
  line-height: 1.35;
}

.product-detail-balance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: calc(6 * var(--u)) calc(12 * var(--u));
  min-height: calc(60 * var(--u));
  margin-top: calc(16 * var(--u));
  padding: calc(8 * var(--u)) calc(16 * var(--u));
  border-radius: calc(14 * var(--u));
  background: linear-gradient(100deg, #fff0d5, #fff6e5);
  color: #774113;
  font-size: calc(24 * var(--u));
  font-weight: 650;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.product-detail-balance-account {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--u));
  max-width: 100%;
  overflow-wrap: anywhere;
}

.product-detail-balance-account img {
  display: block;
  flex: none;
  width: calc(40 * var(--u));
  height: calc(40 * var(--u));
  object-fit: contain;
}

.product-detail-balance-account strong { font-weight: 750; }
.product-detail-balance-hint { color: #cf641d; }

.product-detail-services {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: calc(8 * var(--u));
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: calc(12 * var(--u)) 0;
  border: 0;
  background: transparent;
  color: #747474;
  font-size: calc(22 * var(--u));
  line-height: 1.35;
  text-align: start;
}

.product-detail-heart {
  display: block;
  flex: none;
  width: calc(30 * var(--u));
  height: calc(30 * var(--u));
  object-fit: contain;
}

.product-detail-service-divider {
  width: 1px;
  height: .8em;
  background: #ddd;
}

.product-detail-description {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  border-top: calc(24 * var(--u)) solid #f4f4f4;
}

.product-detail-placeholder {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: calc(314 * var(--u));
  padding-bottom: calc(44 * var(--u));
  background: #d8d8d8;
  color: #414141;
  font-size: calc(46 * var(--u));
  line-height: 1.3;
}

.product-detail-dock {
  grid-area: 2 / 1;
  z-index: 4;
  display: grid;
  grid-template-columns: calc(112 * var(--u)) calc(112 * var(--u)) minmax(0, 1fr);
  align-items: center;
  column-gap: 0;
  min-height: calc(142 * var(--u));
  padding: calc(18 * var(--u)) calc(16 * var(--u)) max(calc(14 * var(--u)), env(safe-area-inset-bottom)) 0;
  background: #fff;
  color: #222;
}

.product-detail-shortcut {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: calc(9 * var(--u));
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: calc(20 * var(--u));
  line-height: 1.3;
}

.product-detail-store-icon {
  position: relative;
  width: calc(35 * var(--u));
  height: calc(28 * var(--u));
  margin-top: calc(8 * var(--u));
  border: max(1px, calc(2.5 * var(--u))) solid currentColor;
  border-top: 0;
  border-radius: 0 0 calc(3 * var(--u)) calc(3 * var(--u));
}

.product-detail-store-icon::before {
  content: "";
  position: absolute;
  left: calc(-4 * var(--u));
  top: calc(-9 * var(--u));
  width: calc(38 * var(--u));
  height: calc(14 * var(--u));
  border: max(1px, calc(2.5 * var(--u))) solid currentColor;
  border-radius: calc(3 * var(--u)) calc(3 * var(--u)) calc(7 * var(--u)) calc(7 * var(--u));
  background: #fff;
}

.product-detail-store-icon span {
  position: absolute;
  bottom: 0;
  left: 36%;
  width: 28%;
  height: 55%;
  border: max(1px, calc(2.5 * var(--u))) solid currentColor;
  border-bottom: 0;
  border-radius: calc(2 * var(--u)) calc(2 * var(--u)) 0 0;
}

.product-detail-support-icon {
  position: relative;
  width: calc(34 * var(--u));
  height: calc(34 * var(--u));
  border: max(1px, calc(2.5 * var(--u))) solid currentColor;
  border-bottom-color: transparent;
  border-radius: 50%;
}

.product-detail-support-icon::before,
.product-detail-support-icon::after {
  content: "";
  position: absolute;
  top: 42%;
  width: calc(7 * var(--u));
  height: calc(12 * var(--u));
  border: max(1px, calc(2.5 * var(--u))) solid currentColor;
  border-radius: calc(4 * var(--u));
  background: #fff;
}

.product-detail-support-icon::before { left: calc(-5 * var(--u)); }
.product-detail-support-icon::after { right: calc(-5 * var(--u)); }

.product-detail-support-icon span {
  position: absolute;
  right: calc(-3 * var(--u));
  bottom: calc(-2 * var(--u));
  width: calc(14 * var(--u));
  height: calc(8 * var(--u));
  border: max(1px, calc(2.5 * var(--u))) solid currentColor;
  border-top: 0;
  border-left: 0;
  border-radius: 0 0 calc(8 * var(--u));
}

.product-detail-buy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(2 * var(--u));
  min-height: calc(110 * var(--u));
  margin-left: calc(22 * var(--u));
  padding: calc(8 * var(--u)) calc(12 * var(--u));
  border: 0;
  border-radius: calc(20 * var(--u));
  background: linear-gradient(110deg, #ff9819, #ff6800);
  color: #fff;
  font-size: calc(31.25 * var(--u));
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.product-detail-buy-label { font-size: calc(24 * var(--u)); }
.product-detail-buy:active { filter: brightness(.95); }
