/* A design's own page: the cover and the buy box, then what comes with it. */

.design-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: 16px; text-decoration: none; }

.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(32px, 5vw, 72px); }

.product-cover { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--cover); box-shadow: 0 24px 50px -28px rgba(var(--shadow), .55), inset 0 0 0 1px rgba(var(--shadow), .06); }
.product-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-cover:hover img { transform: scale(1.02); }
.product-play { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: 999px; background: rgba(251, 247, 239, .94); color: var(--ink); font-size: 16px; font-weight: 500; white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); }

.product-info { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
.product-info h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 6vw, 76px); line-height: 1; }
.product-mood { font-size: 19px; color: var(--muted); max-width: 30em; }
.product-price { display: flex; align-items: baseline; gap: 10px; }
.product-price b { font-family: var(--serif); font-size: 52px; font-weight: 500; line-height: 1; }
.product-price span { color: var(--muted); }
.product-demo { align-self: flex-start; }

.buy-box { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; padding: 22px; background: var(--page-soft); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 0 var(--crease); }
.buy-title { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.1; }
.buy-option { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line-strong); border-radius: 4px; background: rgba(255, 253, 248, .7); cursor: pointer; }
.buy-option input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--wine); }
.buy-option b { display: block; font-weight: 600; }
.buy-option small { display: block; font-size: 14px; color: var(--muted); }
.buy-extra { font-size: 15px; color: var(--gold); white-space: nowrap; }
.buy-sum { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; }
.buy-total { font-family: var(--serif); font-size: 36px; font-weight: 500; }
.buy-error { color: #8A1C1C; font-size: 15px; }
.buy-error:empty { display: none; }
.buy-button { width: 100%; }
.buy-button:disabled { opacity: .7; cursor: progress; }
.buy-note { font-size: 14px; color: var(--muted); }
.buy-note a { color: var(--muted); }

.product-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--crease); }
.product-h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; margin-bottom: 18px; }
.product-steps { display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.product-steps li { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; counter-increment: step; }
.product-steps li::before { content: counter(step); grid-row: span 2; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold-mid); color: var(--gold); font-size: 14px; }
.product-steps span { color: var(--muted); font-size: 15px; }

.product-others { padding-block: 8px var(--section); }
.others-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.other-card, .other-card:hover { display: grid; grid-template-columns: 1fr auto; gap: 10px 8px; text-decoration: none; color: var(--ink); }
.other-cover { grid-column: 1 / -1; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--cover); }
.other-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.other-card:hover .other-cover img { transform: translateY(-3px) scale(1.01); }
.other-name { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.other-price { font-size: 15px; color: var(--muted); align-self: center; }

@media (max-width: 859px) {
  .product { grid-template-columns: minmax(0, 1fr); }
  .product-media { max-width: 460px; width: 100%; margin: 0 auto; }
  .product-info { position: static; }
  .product-more { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .others-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
