/* Poster store — matches the site's warm-paper look + blue accent. */

.store-testbanner {
  background: #fef3c7; color: #92400e; border: 1px solid #fde68a;
  border-radius: 10px; padding: 10px 14px; margin: 0 0 18px;
  font-size: 14px; line-height: 1.5;
}
.store-testbanner code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.store-closedbanner {
  background: #f3f4f6; color: #374151; border: 1px solid #d1d5db;
  border-radius: 10px; padding: 12px 15px; margin: 0 0 18px; font-size: 15px; line-height: 1.5;
}
@media (prefers-color-scheme: dark) {
  .store-closedbanner { background: #26262b; color: #d1d5db; border-color: #3f3f46; }
}
@media (prefers-color-scheme: dark) {
  .store-testbanner { background: #3a2f12; color: #fcd34d; border-color: #5a4a1a; }
}

/* ── Shop index grid ─────────────────────────────────────── */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 10px;
}
/* Section › Catalog grouping on the storefront index (mirrors Gelato's taxonomy). */
.store-section { margin-top: 34px; }
.store-section:first-of-type { margin-top: 14px; }
.store-section__title {
  font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; margin: 0;
  padding-bottom: 8px; border-bottom: 1px solid var(--line, rgba(0,0,0,.12));
}
.store-catalog {
  font-size: 15px; font-weight: 600; color: var(--muted, #6b6255);
  margin: 18px 0 2px; text-transform: none; letter-spacing: 0;
}
/* Browse-by-section tiles on the /store landing. */
.shop-cats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px; margin-top: 12px;
}
.shop-cat {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--line, rgba(0,0,0,.1)); border-radius: 12px; overflow: hidden;
  background: var(--surface, #fff); transition: box-shadow .15s, transform .15s;
}
.shop-cat:hover { box-shadow: 0 10px 30px rgba(0,0,0,.1); transform: translateY(-2px); }
.shop-cat__img {
  aspect-ratio: 1 / 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center; background: var(--surface, #fff);
}
.shop-cat__img img { width: 100%; height: 100%; object-fit: cover; }
.shop-cat__label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 14px; }
.shop-cat__label span { font-weight: 700; font-size: 17px; }
.shop-cat__label small { color: var(--muted, #6b6255); font-size: 13px; }
.store-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line, rgba(0,0,0,.1));
  border-radius: 12px; overflow: hidden;
  background: var(--surface, #fff); text-decoration: none; color: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
}
.store-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.store-card__img {
  aspect-ratio: 50 / 70; background: #ececf0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.store-card__img img { width: 100%; height: 100%; object-fit: cover; }
.store-card__ph { font-size: 72px; font-weight: 700; color: var(--accent, #20507e); }
.store-card__body { padding: 14px 16px 18px; }
.store-card__name { font-size: 17px; margin: 0 0 4px; line-height: 1.25; }
.store-card__sub { font-size: 13px; color: var(--muted, #6b6255); margin: 0 0 10px; }
.store-card__price { font-size: 18px; font-weight: 800; margin: 0; color: var(--ink, #2b2620); }
.store-card__soon { font-size: 12px; font-weight: 600; color: var(--muted, #6b6255); margin-left: 6px; }
.store-card__from { font-size: 12px; font-weight: 600; color: var(--muted, #6b6255); }
.crumbs a { color: var(--accent, #20507e); text-decoration: none; }


.poster-store {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 8px;
}
@media (max-width: 720px) {
  .poster-store { grid-template-columns: 1fr; gap: 20px; }
}

.poster-figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface, #fff);
  border: 1px solid var(--line, rgba(0,0,0,.1));
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  /* Gelato mockup scenes are square (1:1); match the viewer so they fill it
     with no letterboxing. */
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.poster-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-figure__placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; width: 100%; height: 100%;
  color: var(--muted, #6b6255);
  font-size: 13px; letter-spacing: .04em; text-align: center; padding: 24px;
}
.poster-figure__kana { font-size: clamp(56px, 12vw, 120px); font-weight: 700; color: var(--accent, #20507e); line-height: 1; }

/* Product gallery: main image + clickable thumbnails (thumbnails only render
   when there's more than one image). */
.poster-gallery { display: flex; flex-direction: column; gap: 10px; }
/* Mockup scenes vary in aspect ratio, so show the whole image (no crop). */
#poster-main-img { object-fit: contain; background: var(--surface, #fff); cursor: zoom-in; }

/* Fullscreen zoom lightbox: click the main image to open; click image to
   toggle 2.3x zoom, move/drag to pan, Esc or backdrop click to close. */
.poster-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.86);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.poster-lightbox[hidden] { display: none; }
.poster-lightbox__img {
  max-width: 92vw; max-height: 92vh;
  cursor: zoom-in; user-select: none; -webkit-user-drag: none; will-change: transform;
}
.poster-lightbox.is-zoomed { touch-action: none; }
.poster-lightbox.is-zoomed .poster-lightbox__img { cursor: move; }
.poster-lightbox__close {
  position: absolute; top: 12px; right: 18px; z-index: 2;
  width: 44px; height: 44px; padding: 0;
  font-size: 30px; line-height: 1; color: #fff;
  background: none; border: none; cursor: pointer; opacity: .8;
}
.poster-lightbox__close:hover { opacity: 1; }
.poster-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.poster-thumb {
  width: 60px; height: 60px; padding: 0; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--line, rgba(0,0,0,.12)); background: var(--surface, #fff);
  cursor: pointer; transition: border-color .15s; line-height: 0;
}
.poster-thumb:hover { border-color: var(--muted, #6b6255); }
.poster-thumb.is-active { border-color: var(--accent, #20507e); }
.poster-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.poster-buy__size { color: var(--muted, #6b6255); font-size: 14px; margin: 2px 0 14px; }
.poster-buy__price {
  font-size: 34px; font-weight: 800; color: var(--ink, #2b2620);
  display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px;
}
.poster-buy__ship { color: var(--muted, #6b6255); font-size: 14px; margin: 0 0 18px; }
.poster-buy__desc { line-height: 1.6; margin: 0 0 22px; }

.poster-buy__incl {
  font-size: 13px; font-weight: 600; color: var(--muted, #6b6255);
  align-self: center;
}
/* Ship-to selector: customer must pick a country; shipping is quoted for it
   and folded into the price shown above. */
.poster-shipto { margin: 4px 0 18px; }
.poster-shipto__label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--ink, #2b2620); margin: 0 0 5px;
}
.poster-shipto__select {
  width: 100%; max-width: 340px; font: inherit; font-size: 15px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line, rgba(0,0,0,.18));
  background: var(--surface, #fff); color: var(--ink, #2b2620);
}
.poster-shipto__select:focus { outline: 2px solid var(--accent, #20507e); outline-offset: 1px; }
.poster-shipto__note { font-size: 13px; color: var(--muted, #6b6255); margin: 8px 0 0; min-height: 1.2em; }
@media (prefers-color-scheme: dark) {
  .poster-shipto__select { background: #26262b; border-color: #3f3f46; color: #e5e5e5; }
}

.poster-ship { margin: -2px 0 4px; font-size: 13px; }
.poster-ship summary { cursor: pointer; color: var(--accent, #20507e); width: fit-content; }
.poster-ship__list { margin: 6px 0 0; color: var(--muted, #6b6255); line-height: 1.5; max-height: 160px; overflow-y: auto; }
.poster-buy__btn {
  appearance: none; border: 0; cursor: pointer;
  background: var(--accent, #20507e); color: #fff;
  font: inherit; font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: 10px;
  transition: filter .15s ease, transform .05s ease;
  display: inline-flex; align-items: center; gap: 10px;
}
.poster-buy__btn:hover { filter: brightness(1.07); }
.poster-buy__btn:active { transform: translateY(1px); }
.poster-buy__btn[disabled] { opacity: .6; cursor: progress; }

.poster-buy__trust { margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted, #6b6255); font-size: 13px; }
.poster-buy__trust li { padding: 3px 0 3px 22px; position: relative; }
.poster-buy__trust li::before { content: "✓"; position: absolute; left: 0; color: var(--accent, #20507e); font-weight: 800; }

.poster-buy__error { color: #b3261e; font-size: 14px; margin: 12px 0 0; min-height: 1em; }

/* success / cancel */
.poster-result { text-align: center; max-width: 560px; margin: 0 auto; padding: 20px 0 8px; }
.poster-result__icon { font-size: 56px; line-height: 1; }
.poster-result__icon--ok { color: var(--accent, #20507e); }
.poster-result .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.poster-result .btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 11px 20px; border-radius: 10px; font-weight: 700; font-size: 15px;
}
.poster-result .btn--primary { background: var(--accent, #20507e); color: #fff; }
.poster-result .btn--ghost { border: 1px solid var(--line, rgba(0,0,0,.15)); color: var(--ink, #2b2620); }
