/* Hanout's public shop pages. Colors follow src/constants/theme.ts ("Brique"); system fonts keep
   the page light on cheap phones. */
:root {
  --background: #FAF6F2;
  --surface: #FFFFFF;
  --surface-muted: #F1ECE6;
  --text: #1C1B1A;
  --muted: #67625C;
  --primary: #A3322A;
  --on-primary: #FFFFFF;
  --radius: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
h1 { font-size: 24px; line-height: 1.2; margin: 8px 0 4px; }
p { margin: 0; }
.muted { color: var(--muted); font-size: 14px; }
.center { text-align: center; }
.page { max-width: 640px; margin: 0 auto; padding: 0 16px 120px; }

.cover { position: relative; height: 140px; overflow: hidden; }
.cover-image { width: 100%; height: 100%; object-fit: cover; display: block; }

.identity {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(28, 27, 26, 0.06);
  margin-top: -40px;
  position: relative;
  padding: 0 16px 16px;
  text-align: center;
}
.avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 4px solid var(--surface);
  margin-top: -44px;
  object-fit: cover;
  background: var(--surface-muted);
}
.avatar-initial { display: inline-flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 800; }
.description { margin-top: 8px; white-space: pre-line; }
.promises { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.promises li { background: var(--surface-muted); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; }

.grid { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 16px rgba(28, 27, 26, 0.06); }
.card img, .photo-placeholder { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface-muted); }
.title { padding: 8px 10px 0; font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.price { padding: 4px 10px 10px; font-weight: 800; }

.sticky {
  position: fixed; inset: auto 0 0 0;
  display: flex; gap: 8px; justify-content: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--surface);
  box-shadow: 0 -4px 24px rgba(28, 27, 26, 0.12);
}
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; flex: 1; max-width: 420px;
  border-radius: 999px;
  background: var(--primary); color: var(--on-primary);
  font-weight: 800; text-decoration: none;
}
.button-secondary { background: var(--text); flex: 0 1 auto; }
.button:active { transform: scale(0.97); }

.notfound, .landing { padding-top: 80px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.logo { width: 72px; height: 72px; }
.card a { color: inherit; text-decoration: none; display: block; }

/* Product page: photos swipe sideways with CSS only. */
.product-page { padding-top: 16px; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; border-radius: var(--radius); }
.gallery img { flex: 0 0 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: center; border-radius: var(--radius); background: var(--surface-muted); }
.gallery-placeholder { border-radius: var(--radius); }
.product-details { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.product-price { font-size: 26px; font-weight: 800; }
.sold-out { color: var(--primary); font-weight: 700; }
.shop-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--surface); box-shadow: 0 4px 16px rgba(28, 27, 26, 0.06); color: var(--text); font-weight: 700; text-decoration: none; }
.shop-chip-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--surface-muted); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.product-details .promises { justify-content: flex-start; margin-top: 4px; }
