/* Keep the full product photo visible at every screen size. */
.items { gap: 24px; grid-template-columns: minmax(0, 1fr); }
.item { min-width: 0; overflow: hidden; border: 1px solid #dce5da; border-radius: 8px; box-shadow: 0 8px 24px #2149380d; }
.item-copy { min-width: 0; overflow-wrap: anywhere; }
.photo { position: relative; }
.photo img { object-fit: contain; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { display: inline-block; padding: 8px 12px; border-radius: 999px; background: #e9f0e8; color: #365944; font-size: .85rem; line-height: 1.3; }
.preference { font-weight: 600; }
.alternate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; border-top: 1px solid #dce5da; margin-top: 22px; padding-top: 18px; }
.alternate span { color: #718476; font-size: .7rem; font-weight: 700; letter-spacing: .12em; }
.alternate a { color: #a84433; font-weight: 600; }
.transformation { margin: 0 auto 65px; max-width: 900px; }
.transformation-heading { text-align: center; margin-bottom: 28px; }
.transformation-heading h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 12px 0; }
.transformation-heading p { color: #68786b; }
.transformation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.transformation figure { min-width: 0; margin: 0; background: #fff; border: 1px solid #dce5da; border-radius: 8px; overflow: hidden; }
.transformation img, .before-placeholder { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center; }
.before-placeholder { display: grid; place-items: center; background: #e3ecdf; color: #526d5b; text-align: center; padding: 20px; }
.transformation figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: #b3503d; }
.transformation figcaption span { color: #68786b; letter-spacing: 0; font-size: .85rem; font-weight: 400; }
.transformation figcaption span { display: inline; position: static; width: auto; height: auto; }
.purchase-control { margin-top: 20px; max-width: 340px; }
.purchase-control label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .9rem; line-height: 1.45; color: #365944; }
.purchase-control input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: #b7503d; cursor: pointer; }
.item-copy .purchase-status { min-height: 1.2em; margin: 7px 0 0 30px; font-size: .78rem; line-height: 1.4; }
.purchase-dialog { width: min(90vw, 480px); max-height: calc(100dvh - 32px); border: 1px solid #dce5da; border-radius: 10px; padding: 30px; color: #173d30; background: #faf8f0; box-shadow: 0 20px 65px #21493840; outline: none; }
.purchase-dialog::backdrop { background: #10291fb3; }
.purchase-dialog h2 { font-size: 2rem; margin: 0 0 15px; padding-right: 38px; }
.purchase-dialog h2:focus { outline: none; }
.dialog-close { -webkit-appearance: none; appearance: none; position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: #365944; background: transparent; font: inherit; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.dialog-close:focus-visible { outline: 3px solid #365944; outline-offset: 2px; }
@media (hover: none) and (pointer: coarse) { .dialog-close:focus, .dialog-close:focus-visible { outline: none; box-shadow: none; -webkit-tap-highlight-color: transparent; } }
.purchase-dialog p { line-height: 1.65; color: #526d5b; }
.dialog-actions { display: flex; gap: 10px; margin-top: 25px; }
.dialog-actions button { -webkit-appearance: none; appearance: none; flex: 1; min-height: 48px; padding: 12px; border: 1px solid #b7503d; border-radius: 4px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.dialog-actions .dialog-cancel { color: #a84433; background: #faf8f0; }
.dialog-actions .dialog-confirm { color: #fff; background: #b7503d; }
.dialog-actions button:focus-visible { outline: 3px solid #365944; outline-offset: 3px; }
.button, .dialog-actions button, .dialog-close { transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.button:focus-visible { outline: 3px solid #365944; outline-offset: 3px; }
@media (hover: hover) {
  .button:hover, .dialog-actions .dialog-confirm:hover { background: #963c2c; border-color: #963c2c; box-shadow: 0 6px 16px #963c2c38; transform: translateY(-2px); }
  .dialog-actions .dialog-cancel:hover { background: #f2e2d9; border-color: #963c2c; color: #873727; }
  .dialog-close:hover { background: #e3ecdf; color: #173d30; }
}
.button:active, .dialog-actions button:active { transform: translateY(0); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .button, .dialog-actions button, .dialog-close { transition: none; } }
@media (max-width: 500px) { .dialog-actions { flex-direction: column; } .purchase-dialog { padding: 24px; } }

/* Comfortable spacing and touch targets on smaller screens. */
@media (max-width: 700px) {
  main { padding: 0 20px 55px; }
  .intro { padding: 60px 0 48px; }
  h1 { font-size: clamp(2.6rem, 10vw, 4.2rem); }
  .section-label { gap: 12px; line-height: 1.5; }
  .section-label span:last-child { white-space: nowrap; }
  .card { min-height: 200px; }
  .card-kicker { font-size: .7rem; line-height: 1.5; }
  .card-bottom { gap: 10px; line-height: 1.4; }
  .circle { flex: 0 0 34px; }
  .back { padding: 12px 0; margin-top: 20px; }
  .detail { padding-top: 35px; }
  .photo { min-height: 0; aspect-ratio: 4 / 3; overflow: hidden; }
  .photo img { display: block; height: 100%; object-fit: contain; }
  .item-copy { padding: 30px 24px 36px; }
  .button { min-height: 48px; text-align: center; }
  .purchase-control { margin-top: 0; padding-top: 32px; }
  .empty { padding: 55px 20px; }
  .empty h2, .item-copy h2 { font-size: 2.2rem; }
  footer { line-height: 1.8; }
}
@media (max-width: 420px) {
  .transformation-grid { gap: 10px; }
  .transformation figcaption { padding: 12px; }
  .card { min-height: 180px; }
  .button { display: block; width: 100%; }
}
