.product-card {
  background: #fffdf7;
  border-color: #dedbd3;
}

.product-card > img,
.product-placeholder {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
  background: #eeefed;
}

.product-placeholder {
  display: grid;
  place-items: center;
}

.product-copy {
  padding: 1rem;
  gap: .9rem;
}

.product-top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .4rem;
}

.product-card h4 {
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.product-price {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: .25rem .4rem;
}

.product-card .price-value {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.product-price del {
  font-size: .8rem;
  overflow-wrap: anywhere;
}

.price-on-request {
  font-size: 1rem;
  line-height: 1.4;
}

.cart-total-row > strong {
  max-width: 70%;
  text-align: end;
  overflow-wrap: anywhere;
}

.product-options {
  padding-top: 0;
  gap: .5rem;
}

.add-to-cart {
  min-width: 0;
  line-height: 1.35;
}

.add-to-cart > span:first-child {
  min-width: 0;
  text-align: center;
}

.add-to-cart .add-icon {
  flex: 0 0 auto;
}

.detail-copy {
  justify-content: center;
}

.product-detail {
  overflow-y: auto;
}

.product-link-error {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fffdf7;
  text-align: center;
}

.product-link-error p {
  margin: 0 0 1rem;
}

.detail-copy .detail-description {
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.detail-price-row {
  margin-top: 1.5rem;
}

.detail-main,
.detail-main #detail-image,
.detail-thumbnail img,
.cart-item > img {
  background: #eeefed;
}

.detail-thumbnail img,
.cart-item > img {
  object-fit: contain;
}

@media (max-width: 820px) {
  .detail-media {
    height: auto;
  }

  .detail-main {
    flex: none;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 480px) {
  .product-card .add-to-cart {
    gap: .4rem;
    padding-inline: .6rem;
  }

  .product-copy {
    padding: .75rem;
    gap: .75rem;
  }

  .product-card h4 {
    font-size: .9rem;
  }

  .product-card .price-value {
    font-size: .875rem;
  }

  .product-price del {
    font-size: .75rem;
  }
}

@media (max-width: 350px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
