.shop-hero,
.shop-detail,
.checkout-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 22px 84px;
}

.shop-hero h1,
.shop-detail h1,
.checkout-heading h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.08;
}

.shop-hero p,
.shop-lead,
.checkout-heading p {
  max-width: 760px;
  color: #526070;
  line-height: 1.75;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 84px;
}

.shop-card,
.shop-note,
.shop-side,
.checkout-product,
.checkout-form,
.checkout-success {
  border: 1px solid rgba(20, 28, 45, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(20, 28, 45, 0.08);
}

.shop-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.shop-card-image,
.shop-detail-image {
  width: 100%;
  border-radius: 8px;
  background: #f8fafc;
}

.shop-card-image {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid rgba(20, 28, 45, 0.08);
}

.shop-card span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 10px;
}

.redeem-card span {
  background: #eef2ff;
  color: #3730a3;
}

.redeem-card strong {
  font-size: 1.5rem;
}

.shop-card h2,
.shop-note h2,
.checkout-product h2,
.checkout-success h2 {
  margin: 0;
}

.shop-card p,
.shop-note p,
.shop-side p,
.shop-side dd,
.checkout-product p,
.checkout-success p {
  color: #526070;
  line-height: 1.7;
}

.shop-card dl,
.shop-side dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.shop-card dl div,
.shop-side dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(20, 28, 45, 0.1);
  padding-top: 12px;
}

.shop-card dt,
.shop-side dt {
  color: #64748b;
  font-weight: 800;
}

.shop-card dd,
.shop-side dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.shop-card-actions,
.shop-detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-card-actions a,
.shop-detail-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-detail {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 0.8fr) 260px;
  align-items: start;
  gap: 24px;
}

.shop-detail-media,
.shop-detail-main {
  min-width: 0;
}

.shop-detail-main {
  display: grid;
  gap: 18px;
}

.product-gallery {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 104px;
}

.product-gallery-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  height: min(640px, calc(100svh - 150px));
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(20, 28, 45, 0.1);
  border-radius: 8px;
  background: #ffffff;
}

.shop-detail-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.product-gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.product-gallery-thumb {
  aspect-ratio: 1;
  padding: 4px;
  border: 1px solid rgba(20, 28, 45, 0.12);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.is-active {
  border-color: #0f766e;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.16);
  transform: translateY(-1px);
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.shop-note,
.shop-side,
.checkout-product,
.checkout-form,
.checkout-success {
  padding: 24px;
}

.shop-side {
  position: sticky;
  top: 104px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
}

.checkout-form {
  display: grid;
  gap: 12px;
}

.checkout-form label {
  font-weight: 800;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(20, 28, 45, 0.16);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
}

.checkout-form button {
  border: 0;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-weight: 800;
  padding: 12px 18px;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .shop-detail {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .shop-detail-main {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .shop-side {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 860px) {
  .shop-hero,
  .shop-detail,
  .checkout-shell {
    padding: 34px 16px 112px;
  }

  .shop-grid,
  .shop-detail,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .shop-grid {
    padding: 0 16px 112px;
  }

  .shop-card dl div,
  .shop-side dl div {
    display: grid;
  }

  .shop-card dd,
  .shop-side dd {
    text-align: left;
  }

  .shop-card-actions,
  .shop-card-actions a,
  .shop-detail-actions,
  .shop-detail-actions a {
    width: 100%;
  }

  .product-gallery,
  .shop-side {
    position: static;
  }

  .shop-detail-main,
  .shop-side {
    grid-column: auto;
    grid-row: auto;
  }

  .product-gallery-stage {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .product-gallery-strip {
    overflow-x: auto;
    grid-template-columns: repeat(5, 72px);
    padding-bottom: 4px;
  }
}
