/* Shop, journal and gallery zoom. Written for phones first, then widened. */

/* ---------- gallery zoom ---------- */
.look-open { display: block; width: 100%; cursor: zoom-in; }
.zoom { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--ink); color: var(--bone); overflow: hidden; }
.zoom::backdrop { background: var(--ink); }
.zoom-stage { position: absolute; inset: 56px 0 72px; display: flex; overflow: hidden; }
.zoom-stage.is-zoomed { overflow: auto; cursor: grab; }
.zoom-photo { margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.zoom-stage.is-zoomed .zoom-photo { flex: none; max-width: none; max-height: none; height: auto; cursor: zoom-out; }
.zoom button { position: absolute; min-width: 48px; min-height: 48px; color: var(--bone); font-size: var(--text-xs); letter-spacing: 0.22em; text-transform: uppercase; }
.zoom-close { top: 4px; right: var(--gutter); }
.zoom-prev, .zoom-next { bottom: 12px; }
.zoom .zoom-prev, .zoom .zoom-next { font-size: 1.4rem; }
.zoom-prev { left: var(--gutter); }
.zoom-next { right: var(--gutter); }
.zoom-hint { position: absolute; left: 72px; right: 72px; bottom: 26px; margin: 0; text-align: center; font-size: var(--text-sm); opacity: 0.7; }

/* ---------- shop ---------- */
.shop-view, .journal-view { padding: 1.4rem var(--gutter) 3rem; min-height: calc(100svh - var(--head-h)); }
.page-title { margin: 0 0 1rem; font: 300 clamp(1.5rem, 1rem + 1.6vw, 2.4rem)/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.shop-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 0.8rem 0; border-block: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 44px; padding: 0 1rem; border: 1px solid var(--line); font-size: var(--text-sm); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.sort { display: flex; align-items: center; gap: 0.6rem; font-size: var(--text-sm); }
.sort select { min-height: 44px; padding: 0 0.6rem; border: 1px solid var(--line); border-radius: 0; background: #fff; font: 300 16px var(--sans); } /* 16px stops iPhones zooming in */
.shop-count { margin: 0.8rem 0; font-size: var(--text-sm); color: var(--muted); }
.shop-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 8px; }
.shop-media { aspect-ratio: 2 / 3; background: var(--studio); overflow: hidden; }
.shop-media img { width: 100%; height: 100%; object-fit: cover; }
.shop-name { margin: 0.6rem 0 0; text-transform: uppercase; font-size: var(--text-sm); letter-spacing: 0.04em; }
.shop-price { margin: 0; font-size: var(--text-sm); color: var(--muted); }
@media (min-width: 900px) { .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- journal ---------- */
.article { max-width: 680px; margin: 0 auto; font-size: 1rem; line-height: 1.7; }
.article h1 { margin: 0.3rem 0 1rem; font: 300 clamp(1.8rem, 1.2rem + 3vw, 3rem)/1.15 var(--sans); }
.article h2 { margin: 2rem 0 0.5rem; font: 400 1.1rem/1.4 var(--sans); }
.article-kicker { margin: 0; font-size: var(--text-xs); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.article figure { margin: 1.6rem 0; }
.article figure img { width: 100%; height: auto; }
.article figcaption { margin-top: 0.4rem; font-size: var(--text-sm); color: var(--muted); }
.article-product { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 1rem; align-items: center; margin: 1.6rem 0; padding: 1rem 0; border-block: 1px solid var(--line); }
.article-product p { margin: 0 0 0.6rem; }
.article-product .btn { height: 44px; }

/* ---------- phones ---------- */
@media (max-width: 640px) {
  .index-btn { height: 44px; }
  .header-right .text-btn { min-height: 44px; }
  .menu-list { margin-top: 1.5rem; }
  .footer-cols a { padding: 0.35rem 0; }
  .card-size, .size { min-width: 44px; min-height: 44px; }
}

/* ---------- cancelling a pre-order ---------- */
.ordered-cancel { display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.link-btn { min-height: 44px; font-size: var(--text-sm); text-decoration: underline; text-underline-offset: 4px; }
.ordered-cancel .po-msg { flex-basis: 100%; min-height: 0; }

/* ---------- contact ---------- */
.contact-view { padding: 1.4rem var(--gutter) 3rem; min-height: calc(100svh - var(--head-h)); }
.contact { max-width: 440px; margin: 0 auto; }
.contact-lead { margin: 0 0 1.6rem; font-size: 1rem; }
.contact-way { display: grid; gap: 8px; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.contact-way h2 { font: 400 var(--text-xs) var(--sans); letter-spacing: 0.22em; text-transform: uppercase; }
.contact-way p { margin: 0 0 6px; font-size: 1rem; overflow-wrap: anywhere; }

/* ---------- pre-order form: what is being ordered ---------- */
.po-table { width: 100%; border-collapse: collapse; border-block: 1px solid var(--line); font-size: var(--text-sm); }
.po-table th, .po-table td { padding: 0.6rem 0.6rem 0.6rem 0; text-align: left; vertical-align: top; }
.po-table th { font-size: 0.64rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.po-table th:nth-child(2), .po-table td:nth-child(2), .po-table th:nth-child(3), .po-table td:nth-child(3) { text-align: center; }
.po-table th:last-child, .po-table td:last-child { padding-right: 0; text-align: right; white-space: nowrap; }
