/* --- footer --- */
.site-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 22px var(--gutter) 26px;
  border-top: 1px solid var(--line);
}
.site-footer p{
  margin: 0;
  font: var(--font-mono);
  font-size: 0.66rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
/* decorative arrow-pattern strip, replaces the old "Prachin Buri, Thailand"
   label — PNG is a flat gray silhouette, so pull its shape through as a CSS
   mask and fill with --muted instead of baking in a fixed, non-themeable color */
.footer-mark{
  display: block;
  width: 78px;
  height: 18px;
  background-color: var(--muted);
  -webkit-mask-image: var(--footer-mark-src);
  mask-image: var(--footer-mark-src);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
}

/* --- mobile: hero stacks, photo gets a fixed ratio again --- */
@media (max-width: 860px){
  .hero{ grid-template-columns: 1fr; min-height: 0; }
  .hero-copy{ border-right: none; border-bottom: 1px solid var(--line); }
  .hero-media{ aspect-ratio: 3 / 4; }
  .screen{ border-inline: none; }
}

@media (prefers-reduced-motion: reduce){
  .hoverable::before{ transition: opacity 0.12s ease; transform: scaleX(1); opacity: 0; }
  .hoverable:hover::before,
  .hoverable:focus-visible::before{ opacity: 1; }
  .hoverable:hover span, .hoverable:focus-visible span{ transform: none; }
}

/* --- views: client-side tab router (Supreme-nod: each tab is its own layout) --- */
.view[hidden]{ display: none; }
.view{ animation: viewIn 0.18s ease both; }
@keyframes viewIn{ from{ opacity: 0; } to{ opacity: 1; } }
/* crossfade: the outgoing view fades out on top of the incoming one (which is
   fading in underneath via viewIn). absolute + high z so it overlays without
   pushing layout; pointer-events off so clicks reach the incoming view. */
@keyframes viewOut{ from{ opacity: 1; } to{ opacity: 0; } }
.view-leaving{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  animation: viewOut 0.18s ease both;
}

/* brand is a <button> (click -> Home) but must still read as the wordmark */
button.brand{ background: none; border: none; padding: 0; margin: 0; cursor: pointer; font: inherit; color: inherit; }
button.brand:focus-visible{ outline: 1px solid var(--ink); outline-offset: 3px; }


@media (prefers-reduced-motion: reduce){
  .view{ animation: none; }
  .pdp-gallery-item{ transition: none; }
  .cart-line-enter{ animation: none; }
  .cart-line-leave{ transition: none; }
  .pdp-error, .auth-error, .auth-note{ animation: none; }
  .order-row-detail, .address-form{ animation: none; }
}
