/* Huias Pikas — shared styles. Layout is driven mostly by inline styles
   (kept 1:1 with the source design); this file covers what inline styles
   cannot: resets, hover/focus states, responsive breakpoints, components. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: oklch(97% 0.015 95);
  color: oklch(28% 0.03 150);
  font-family: 'Mulish', sans-serif;
}
img { max-width: 100%; display: block; }
a { color: oklch(40% 0.08 150); }
a:hover { color: oklch(30% 0.08 150); }
button { font-family: inherit; }
table { border-collapse: collapse; width: 100%; }
td, th { border: 1px solid oklch(88% 0.02 90); padding: 10px 12px; text-align: left; font-size: 14px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: white;
  color: oklch(28% 0.03 150);
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid oklch(40% 0.08 150);
  outline-offset: 2px;
}

.hidden { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Photo frames: original design used dashed placeholder boxes; real
   photos now fill the same aspect-ratio box, cropped with object-fit. */
.photo-frame { overflow: hidden; background: oklch(91% 0.02 150); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Buttons get a little interactive feedback that the flat design mock didn't need */
.btn { transition: transform 0.15s ease, opacity 0.15s ease; }
.btn:hover { opacity: 0.92; }
.btn:active { transform: translateY(1px); }

.nav-link { position: relative; }
.nav-link[aria-current="page"] { color: oklch(38% 0.08 150); font-weight: 700; }

/* Cart drawer */
.cart-overlay {
  position: fixed; inset: 0; background: oklch(20% 0.02 150 / 0.4); z-index: 90;
}
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 92vw;
  background: oklch(98% 0.01 95); z-index: 91;
  box-shadow: -8px 0 30px oklch(20% 0.02 150 / 0.15);
  display: flex; flex-direction: column;
  transform: translateX(0);
}

.form-status { font-size: 13px; margin-top: 4px; min-height: 18px; }
.form-status--ok { color: oklch(38% 0.1 150); }
.form-status--err { color: oklch(50% 0.16 30); }

/* Responsive breakpoints for the grid layouts that are inline elsewhere */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .hero-grid, .split-grid { grid-template-columns: 1fr !important; }
  .hero-grid > *:first-child, .split-grid > *:first-child { order: 1; }
  .hero-grid > *:last-child, .split-grid > *:last-child { order: 0; }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr !important; }
  h1 { font-size: 30px !important; }
  .site-header-inner { padding: 14px 16px !important; }
  .container, .container-narrow { padding-left: 16px !important; padding-right: 16px !important; }
}

@media (max-width: 480px) {
  .cart-drawer { width: 100%; max-width: 100vw; }
}

@media print {
  header, footer, .cookie-banner, .cart-drawer, .cart-overlay { display: none !important; }
}
