/* Layout shared by every theme: spacing, grids and positioning only.
   Colours, fonts, borders and corners live in the theme files
   (theme-liquid.css, theme-country.css). The active theme is loaded by
   /brand.css, which the admin Branding tab controls. */

:root { --gutter: clamp(16px, 4vw, 40px); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; font-size: 17px; line-height: 1.55; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Page frame */
.orbs { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; }
.stage { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
main.wrap { flex: 1; padding-bottom: 64px; }

/* Nav */
.site-header { padding-top: 20px; padding-bottom: 28px; }
.nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; text-decoration: none; }
.brand img { height: 32px; width: auto; max-width: 160px; object-fit: contain; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; padding: 8px 12px; }
@media (max-width: 560px) {
  .nav { flex-wrap: nowrap; }
  .nav-links { display: none; }
}

/* Buttons and chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; line-height: 1; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, opacity .15s ease, background-color .15s ease;
}
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.count-badge { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; font-size: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; margin-bottom: 40px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding: 8px 0; }
.hero-copy > .chip, .album-head > .back { align-self: flex-start; }
.hero-card { flex: 1 1 300px; min-width: 0; max-width: 460px; display: flex; flex-direction: column; gap: 18px; justify-content: space-between; }
.big-number { line-height: 1; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stat { flex: 1 1 120px; min-width: 0; padding: 14px 16px; }
.stat .value { margin-top: 4px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.lead { max-width: 62ch; }

/* Album tiles */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin: 8px 0 20px; }
.section-head.flush { margin: 0; }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.album-tile { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 14px; transition: transform .2s ease; }
.album-tile .cover { aspect-ratio: 4 / 3; overflow: hidden; }
.album-tile .cover img { width: 100%; height: 100%; object-fit: cover; }
.album-tile .meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.album-tile .meta > div { min-width: 0; }
.album-tile h3 { overflow-wrap: anywhere; }
.album-tile .num { flex: none; }

/* Photo grid */
.album-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.photos { columns: 3 300px; column-gap: 16px; }
.photo { break-inside: avoid; margin: 0 0 16px; position: relative; overflow: hidden; }
.photo > button.open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.photo img { width: 100%; height: auto; }
.pick {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; cursor: pointer;
  font: inherit; font-size: 13px;
}

/* Lightbox */
dialog.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; }
.lb-inner { height: 100%; display: flex; flex-direction: column; padding: 16px var(--gutter); gap: 12px; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 0; }
.lb-next { right: 0; }
.lb-bar .pick { position: static; }

/* Basket and forms */
.basket-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.basket-list { flex: 1 1 420px; min-width: 0; padding: 24px; }
.order-panel { flex: 1 1 360px; min-width: 0; padding: 28px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); gap: 12px; margin-top: 16px; }
.thumb { position: relative; overflow: hidden; aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .remove {
  position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%;
  font: inherit; font-size: 16px; line-height: 1; cursor: pointer;
}
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea, select {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px;
}
textarea { min-height: 110px; resize: vertical; }
.notice { padding: 14px 16px; }
.notice.ok { display: flex; gap: 10px; align-items: center; }
.empty { padding: 40px 24px; text-align: center; }
.center-lead { margin: 12px auto 20px; }
.small { font-size: 14px; margin: 0; }

/* Footer */
.site-footer { padding-top: 24px; padding-bottom: 32px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* Misc */
.skeleton { min-height: 240px; }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
