/* Studio Lab — Miami Peculiar shared brand stylesheet.
   Single source of truth for the storefront's design tokens + the site
   footer. Linked by the category/collection pages (gorras, magnets,
   stickers, colecciones/*). The hub (apps/storefront/index.html) keeps its
   own shadcn token set; the catalog + root landing keep their own footer.
   When a brand color changes, change it here — see docs/SITE-CONFIG.md. */

:root {
  --bg: #081420;                        /* navy page background */
  --surface: rgba(8, 20, 32, .72);      /* translucent panel over bg */
  --card: #0f2337;                      /* raised card navy */
  --mataqua: #16304a;                   /* mid-navy accent */
  --border: rgba(243, 234, 214, .14);   /* cream hairline */
  --accent: #f0b429;                    /* primary gold (CTAs, highlights) */
  --accent2: #d9b25a;                   /* muted gold (secondary) */
  --text: #f3ead6;                      /* cream body text */
  --muted: #a8b8c8;                     /* muted slate text */
  --tag-bg: rgba(240, 180, 41, .14);    /* gold tag/pill wash */
}

/* Site footer — shared crawlable nav. Colors are intentionally literal
   (dark neutral chrome), independent of the brand palette above. */
.sl-sitefooter { background: #0b0b0c; color: #f4f4f5; padding: 28px 16px; text-align: center; font: 14px/1.7 system-ui, -apple-system, Segoe UI, Roboto, sans-serif }
.sl-sitefooter nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; max-width: 900px; margin: 0 auto }
.sl-sitefooter a { color: #f4f4f5; text-decoration: none; opacity: .85 }
.sl-sitefooter a:hover { opacity: 1; text-decoration: underline }
.sl-sitefooter .cr { margin-top: 14px; font-size: 12px; opacity: .5 }

/* ── Masthead ──────────────────────────────────────────────────────────
   Moved to assets/masthead.css so the pre-built hub can share it without
   inheriting this file's :root tokens (which collide with the hub's shadcn
   set) or its .grid container rule (which collides with Tailwind's .grid). */


/* ── Mobile (≤760px — matches the storefront content breakpoint) ─────── */
@media (max-width: 760px) {
  .sl-sitefooter nav { gap: 4px 14px; }
  .sl-sitefooter a { display: inline-block; padding: 8px 4px; }
}

/* ── Layout container ─────────────────────────────────────────────────
   One shared 1180px column + 22px gutter so the header, section headings,
   and product grid all hang from the same left/right edges (they used to be
   a boxed header vs full-bleed sections — nothing lined up). The hero stays
   a centered intro on purpose. `body …` beats each page's inline rule. */
body .cat-bar, body .grid, body .stage {
  max-width: 1180px; margin-left: auto; margin-right: auto;
  padding-left: 22px; padding-right: 22px;
}
/* Centered content column — matches the centered hero and keeps both sparse
   (few caps) and full (many magnets) sections balanced. The grid already
   centers its cards; center the section heading over it too. */
body div.cat-bar { text-align: center; }

/* ── Flip cards ───────────────────────────────────────────────────────
   Applies to the product flip cards on gorras / magnets / colecciones.
   1) Sync: the flip is a single container rotation (backface-visibility
      handles the reveal). Neutralise the per-element image/back rotations
      that used to run on their own staggered timing and desynced on flip
      back. `body …` beats each page's inline rule by specificity. */
body .p-card.flipped .p-front .p-img { transform: none; opacity: 1; }
body .p-card:not(.flipped) .p-back .ph > * { transform: none; opacity: 1; }
/* 2) Remove the measurement overlays so the back reads as the real item, and
      re-center the back photo (it was left/top-aligned to leave room for the
      now-hidden dimension callouts). `.back-stage .back-photo` beats the page's
      inline `.back-photo{left:0;top:0}` by specificity. */
.dim-w, .dim-h { display: none !important; }
.back-stage .back-photo { left: 50%; top: 50%; transform: translate(-50%, -50%); }
/* 3) Tap-to-flip: drop the corner button + old hover label, make the whole
      image the target, and show one persistent bilingual hint (the i18n
      toggle sets <html lang>, so the label follows the language live). */
.flip-hint, .flip-cue { display: none !important; }
.p-imgwrap, .ph { cursor: pointer; }
.p-imgwrap::after, .ph::after {
  content: "Tap to flip";
  position: absolute; top: 8px; right: 8px; z-index: 3; pointer-events: none;
  padding: 6px 12px; border-radius: 30px;
  background: var(--accent); color: #0d1f33; box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  font: 700 10px/1 'Archivo', system-ui, sans-serif; letter-spacing: .5px; text-transform: uppercase;
  opacity: 0; transition: opacity .2s;                 /* revealed on hover only */
}
:lang(es) .p-imgwrap::after, :lang(es) .ph::after, html[lang="es"] .p-imgwrap::after, html[lang="es"] .ph::after { content: "Toca para girar"; }
.p-card:hover .p-imgwrap::after, .p-card:hover .ph::after { opacity: 1; }

/* ── Order cart (drawer + floating bar) ───────────────────────────────
   Shared with assets/cart.js. Lives here so every storefront page —
   including stickers — has it. (The category/collection pages still carry
   an identical inline copy; harmless, a future DRY cleanup.) */
.mp-order-bar{position:fixed;right:18px;bottom:18px;z-index:900;display:none;align-items:center;gap:10px;padding:11px 18px;border-radius:30px;background:linear-gradient(140deg,#FFD447,#c98f2e);color:#0d1f33;font-weight:800;font-size:14px;cursor:pointer;box-shadow:0 14px 34px rgba(240,180,41,.35), inset 0 0 0 1px rgba(255,255,255,.4);transition:transform .2s;}
.mp-order-bar:hover{transform:translateY(-2px);}
.mp-order-bar.on{display:flex;}
.mp-ver{flex:0 0 auto;padding:10px 12px;border-radius:9px;border:1px solid rgba(240,180,41,.45);background:rgba(240,180,41,.1);color:#eccb74;font-size:13px;font-weight:800;cursor:pointer;transition:all .15s;}
.mp-ver:hover{background:rgba(240,180,41,.22);}
.mp-ov{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(3,8,14,.72);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);}
.mp-ov.open{display:flex;}
.mp-panel{width:100%;max-width:520px;max-height:90vh;display:flex;flex-direction:column;border-radius:18px;overflow:hidden;background:linear-gradient(180deg,#132c46,#0a1c30);box-shadow:0 40px 90px rgba(0,0,0,.65), inset 0 0 0 1px rgba(240,180,41,.22);}
.mp-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 10px;}
.mp-title{font-family:'Playfair Display',serif;font-size:22px;color:#f3ead6;}
.mp-x{width:32px;height:32px;border-radius:50%;border:none;background:rgba(255,255,255,.1);color:#f3ead6;font-size:17px;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(243,234,214,.2);}
.mp-body{flex:1;overflow-y:auto;padding:4px 18px 14px;}
.mp-item{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-radius:11px;margin-bottom:8px;background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(243,234,214,.1);}
.mp-item-top{display:flex;align-items:center;gap:10px;}
.mp-item-name{flex:1;font-size:13.5px;font-weight:800;color:#f3ead6;}
.mp-item-col{font-size:10px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:#d9b25a;}
.mp-qty{display:flex;align-items:center;gap:7px;}
.mp-qty button{width:24px;height:24px;border-radius:7px;border:none;background:rgba(255,255,255,.12);color:#f3ead6;font-weight:800;cursor:pointer;}
.mp-qty span{min-width:18px;text-align:center;font-size:13px;font-weight:800;color:#f3ead6;}
.mp-del{border:none;background:transparent;color:rgba(243,234,214,.45);font-size:15px;cursor:pointer;}
.mp-badge{display:inline-flex;align-items:center;gap:5px;align-self:flex-start;padding:2px 9px;border-radius:20px;font-size:10.5px;font-weight:800;letter-spacing:.5px;color:#0d1f33;background:linear-gradient(140deg,#FFD447,#e2b64f);}
.mp-note{width:100%;border:none;outline:none;border-radius:8px;padding:7px 10px;font-size:16px;font-weight:600;color:#f3ead6;background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px rgba(243,234,214,.12);font-family:inherit;}
.mp-note::placeholder{color:rgba(243,234,214,.35);}
.mp-empty{text-align:center;color:#a8b8c8;font-size:13.5px;padding:26px 10px;}
.mp-in{width:100%;border:none;outline:none;border-radius:10px;padding:9px 12px;margin-bottom:8px;font-size:16px;font-weight:600;color:#f3ead6;background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(243,234,214,.14);font-family:inherit;}
.mp-in::placeholder{color:rgba(243,234,214,.4);}
.mp-foot{padding:12px 18px 16px;border-top:1px solid rgba(243,234,214,.12);background:rgba(255,255,255,.04);}
.mp-send{width:100%;padding:12px;border:none;border-radius:11px;font-size:14.5px;font-weight:800;cursor:pointer;color:#0d1f33;background:linear-gradient(140deg,#FFD447,#c98f2e);box-shadow:0 10px 24px rgba(240,180,41,.3);transition:all .15s;}
.mp-send:hover{filter:brightness(1.05);}
.mp-send:disabled{background:rgba(255,255,255,.08);color:rgba(243,234,214,.35);box-shadow:none;cursor:not-allowed;}
.mp-create{display:block;text-align:center;margin-top:10px;font-size:12.5px;font-weight:700;color:#d9b25a;cursor:pointer;text-decoration:none;}
.mp-create:hover{opacity:.8;}
.mp-chips{display:flex;flex-wrap:wrap;gap:7px;margin:4px 0 10px;}
.mp-chip{padding:8px 12px;border-radius:10px;font-size:12.5px;font-weight:700;cursor:pointer;color:#f3ead6;background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px rgba(243,234,214,.14);transition:all .15s;}
.mp-chip.on{background:#FFD447;color:#083d52;}
.mp-vsub{font-size:12.5px;color:#a8b8c8;font-weight:600;margin-bottom:8px;}

/* ── Section tabs ──────────────────────────────────────────────────────
   Pill links that jump to a section on the same page (see
   src/_includes/section-tabs.njk). Shared by stickers and gorras; lived in
   the stickers page CSS until it was needed on a second page.
   Every jump target uses a `sec-` id, so one scroll-margin rule covers both
   pages and stops the sticky masthead covering the heading. */
.tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 12px 20px 4px; }
.tabs a { text-decoration: none; font-size: 12.5px; font-weight: 800; letter-spacing: .5px; color: var(--muted); border: 1px solid var(--border); border-radius: 30px; padding: 7px 16px; transition: all .15s; }
.tabs a:hover, .tabs a:focus-visible { color: #0d1f33; background: #FFD447; border-color: #FFD447; }
[id^="sec-"] { scroll-margin-top: 88px; }
