/*
 * MAZAYA storefront — v7 extras: page-builder blocks, opening hours, discount code, "Edit this page" button.
 * Only theme variables (colours, fonts, spacing) so the current storefront theme applies automatically.
 * Kept separate from site.css (which is built by _ref/blanc/build_css.php).
 */

/* Page builder blocks (app/lib/ext/page_blocks.php) */
.mzb { margin-top: clamp(28px, 4vw, 56px); }
.mzb:first-child { margin-top: 0; }
.mzb-split { display: grid; gap: clamp(20px, 4vw, 56px); align-items: center; }
.mzb-split__media { margin: 0; }
.mzb-split__media img { width: 100%; height: auto; display: block; }
@media (min-width: 900px) {
  .mzb-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mzb-split--right .mzb-split__media { order: 2; }
}
.mzb-cols { display: grid; gap: clamp(20px, 4vw, 48px); }
@media (min-width: 900px) { .mzb-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.mzb-photo { margin-left: 0; margin-right: 0; }
.mzb-photo img { width: 100%; height: auto; max-height: min(80vh, 860px); object-fit: cover; display: block; }
.mzb-photo figcaption { margin-top: 10px; font-size: .875rem; color: var(--muted); }
.mzb-gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .mzb-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.mzb-gallery figure { margin: 0; }
.mzb-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.mzb-cta { text-align: center; padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 40px); background: var(--paper); border: 1px solid var(--line); }
.mzb-cta p { color: var(--ink-2, var(--muted)); max-width: 46ch; margin-left: auto; margin-right: auto; }
.mzb-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.mzb-quote { margin: 0; padding: 0 0 0 clamp(16px, 3vw, 28px); border-left: 2px solid var(--gold, var(--ink)); }
.mzb-quote p { font-family: var(--font-serif); font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.4; color: var(--ink); margin: 0; }
.mzb-quote footer { margin-top: 12px; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mzb-rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* "Edit this page" (signed-in CRM staff only, added by site.js) */
.mz-edit-link { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 900; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 18px; border: 1px solid var(--gold, var(--line)); border-radius: 999px; background: var(--paper); color: var(--ink);
  font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.mz-edit-link:hover, .mz-edit-link:focus-visible { background: var(--ink); color: var(--paper); }
@media print { .mz-edit-link { display: none; } }

/* CRM preview of unsaved changes (staff only, app/lib/ext/preview.php) */
.mz-preview-bar { position: sticky; top: 0; z-index: 1000; padding: 10px 16px; text-align: center; font-size: .875rem; line-height: 1.4;
  background: var(--ink); color: var(--paper); }
.mz-preview-bar strong { color: inherit; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-right: 4px; }
