/* Paperi — product.html. Потребує tokens.css і components.css. */
@media (max-width: 1000px) { .pp-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .pp-nav { display: none; } .pp-iconbtn.burger { display: inline-flex; } }
@media (max-width: 860px) { .footer > .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer > .wrap { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-8); align-items: start; padding-bottom: var(--space-7); }
@media (max-width: 900px) { .product { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }
.gallery { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.gallery__main { position: relative; aspect-ratio: 1 / 1; background: var(--surface-200); border-radius: var(--radius-lg); overflow: hidden; max-width: 100%; }
.gallery__main svg { width: 100%; height: 100%; display: block; }
.gallery__flags { position: absolute; inset: var(--space-4) var(--space-4) auto auto; display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-1); }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.gallery__thumb { padding: 0; border: 2px solid transparent; border-radius: var(--radius-md); background: var(--surface-200); overflow: hidden; cursor: pointer; aspect-ratio: 1 / 1; }
.gallery__thumb svg { width: 100%; height: 100%; display: block; }
.gallery__thumb[aria-pressed="true"] { border-color: var(--sora-500); }
.pinfo { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.pinfo__brand { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-600); }
.pinfo h1 { font-size: 30px; line-height: 36px; font-weight: 700; }
.pinfo__sub { font-size: 15px; line-height: 24px; color: var(--ink-600); }
.pinfo__pricerow { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3) var(--space-4); }
.pinfo__points { font-size: 13px; line-height: 20px; color: var(--sora-600); }
.pick { display: flex; flex-direction: column; gap: var(--space-3); }
.pick__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.pick__head .label { color: var(--ink-600); }
.pick__value { font-size: 14px; color: var(--ink-900); }
.swatches { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.swatch { position: relative; width: 36px; height: 36px; }
.swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch i { display: block; width: 36px; height: 36px; border-radius: var(--radius-pill); border: 2px solid var(--surface-card); box-shadow: 0 0 0 1px var(--line-500); }
.swatch input:checked + i { box-shadow: 0 0 0 2px var(--sora-600); }
.swatch input:focus-visible + i { outline: 3px solid var(--focus); outline-offset: 2px; }
.swatch input:disabled + i { opacity: 0.35; }
.tips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tip { position: relative; }
.tip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tip span { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-pill); background: var(--surface-200); border: 1px solid transparent; font-family: var(--font-display); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tip input:checked + span { background: var(--surface-sora); border-color: var(--sora-500); }
.tip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.tip input:disabled + span { color: var(--ink-600); text-decoration: line-through; cursor: not-allowed; }
.buyrow { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.buyrow .pp-btn { flex: 1; min-width: 200px; }
.wishbig { width: 48px; height: 48px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-500); border-radius: var(--radius-pill); background: transparent; color: var(--ink-600); cursor: pointer; }
.wishbig svg { width: 22px; height: 22px; }
.wishbig:hover { color: var(--sakura-600); border-color: var(--sakura-600); }
.wishbig[aria-pressed="true"] { color: var(--sakura-600); border-color: var(--sakura-600); }
.wishbig[aria-pressed="true"] svg { fill: var(--sakura-300); }
.delivery-list { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.delivery-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-3); font-size: 14px; line-height: 22px; color: var(--ink-600); }
.delivery-list svg { width: 20px; height: 20px; color: var(--matcha-600); margin-top: 1px; }
.delivery-list b { color: var(--ink-900); font-weight: 500; }
.details { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-8); padding-bottom: var(--space-7); align-items: start; }
@media (max-width: 900px) { .details { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }
.details h2 { font-size: 22px; line-height: 28px; font-weight: 700; margin-bottom: var(--space-4); }
.prose { display: grid; gap: var(--space-4); font-size: 16px; line-height: 26px; max-width: 62ch; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-2); }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: var(--space-3) 0; border-bottom: 1px solid var(--line-200); vertical-align: top; }
.specs th { font-weight: 400; color: var(--ink-600); width: 45%; }
.specs td { font-family: var(--font-display); font-weight: 700; }
.why { margin-top: var(--space-5); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface-sora); font-size: 15px; line-height: 24px; }
.why h3 { font-size: 16px; line-height: 24px; font-weight: 700; margin-bottom: var(--space-2); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-5); }
.sec-head h2 { font-size: 26px; line-height: 32px; font-weight: 700; }
.sec-head .more { font-family: var(--font-display); font-weight: 700; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: var(--space-1); }
.sec-head .more svg { width: 20px; height: 20px; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
  z-index: 20; max-width: min(420px, calc(100% - 32px));
  box-shadow: 0 8px 28px rgba(35, 43, 51, 0.18);
}
