@media (max-width: 760px) {
  html {
    zoom: 0.8;
  }
}

.spec-row {
  width: 100%;
  justify-content: flex-start;
  gap: 25px;
  text-align: left;
}

.spec-row .spec-value {
  color: #d94b4b;
  font-size: 15px;
  font-weight: 700;
}

.spec-row > span:first-child {
  color: #d94b4b;
  font-size: 15px;
  font-weight: 700;
}

.spec-row .spec-chevron {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-top: 1.5px solid #888;
  border-right: 1.5px solid #888;
  transform: rotate(45deg);
  flex: 0 0 auto;
}

/* Keep home and category-grid product cards square without changing list/detail layouts. */
.home-page .product-photo,
.home-page .strip-image {
  height: auto;
  aspect-ratio: 1 / 1;
}

.home-page .decorate-goods .product-card .product-photo {
  height: auto;
}

.catalog-page:not(.list-view) .product-card .product-photo {
  height: auto;
  aspect-ratio: 1 / 1;
}

.catalog-page .catalog-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
}

.catalog-page .catalog-head h1 {
  grid-column: 2;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.catalog-page .catalog-head button {
  grid-column: 3;
  justify-self: end;
  width: 40px;
  padding: 0;
}

/* Anchor the cart count to its nav button instead of the full fixed nav. */
.bottom-nav button {
  position: relative;
}

.bottom-nav .cart-badge {
  top: 6px;
  left: 50%;
  margin: 0;
  transform: translateX(8px);
  z-index: 1;
}

.detail-description-images {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.detail-description-images img {
  display: block;
  width: 100%;
  height: auto;
}

/* Detail pages keep a little breathing room around the main product image. */
.detail-hero {
  height: min(80vw, 496px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.detail-hero img,
.detail-hero .fallback-photo {
  width: 80%;
  height: 100%;
  border-radius: 10px;
}

.detail-hero img {
  display: block;
  object-fit: contain;
}

.detail-count {
  right: calc(10% + 13px);
  bottom: 14px;
}

.detail-panel {
  padding-left: 12px;
  padding-right: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.detail-price {
  font-size: 25px;
}

.detail-sold {
  font-size: 16px;
}

.detail-title {
  margin-top: 20px;
  font-size: 18px;
}

.spec-row,
.service-row {
  margin-top: 7px;
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: 14px;
}

.service-row span:last-child {
  font-size: 13px;
}

.detail-description {
  margin-top: 7px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.detail-description h3 {
  margin-bottom: 10px;
  font-size: 17px;
}

.detail-description p {
  font-size: 13px;
  line-height: 1.6;
}
