/* Fireworks inventory · the catalog a client opens. A night sky: deep blue-black, the fireworks' photos glowing on it, gold for the way to
   order (WhatsApp, Call), green for what there is, ember red only for «sold out».
   Mobile first; the grid and the product page open up at 560, 900 and 1180 px. */

@font-face { font-family: 'Barlow'; src: url('/fonts/barlow-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/fonts/barlow-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url('/fonts/barlow-semi-condensed-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* the palette: every color of the catalog is here */
  --night: #0b0f1e;           /* the page */
  --night-2: #11172c;         /* cards, panels */
  --night-3: #1a2140;         /* under the mouse */
  --night-deep: #070a15;      /* behind photos, the footer */
  --line: #252e52;            /* borders */
  --line-strong: #3a4578;     /* borders of things to press, the mark where a product has no photo */
  --ink: #eef1fa;             /* text */
  --soft: #d6dbef;            /* paragraphs on a panel */
  --muted: #aab3d4;           /* secondary text */
  --faint: #8a93b8;           /* the smallest print */
  --title: #ffffff;           /* headings */
  --gold: #f7b733;            /* the way to order, prices */
  --gold-hover: #ffc857;
  --gold-ink: #1d1503;        /* text on gold */
  --gold-soft: #ffd88a;       /* small headings and links */
  --gold-wash: rgba(247, 183, 51, .09);
  --ok: #5fd39a;              /* available */
  --ember: #ff7b5c;           /* sold out */
  --label: 'Barlow Semi Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 8px;
  --header: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 1.0625rem/1.55 var(--body); overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.i { width: 1.15em; height: 1.15em; flex: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; background: #fff; color: #000; font-weight: 600; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 2px; }
[hidden] { display: none !important; }
.lead { max-width: 40em; margin-top: 12px; color: var(--muted); font-size: 1.15rem; }
.section-tight { padding-top: 40px; padding-bottom: 72px; }
.page-title { color: var(--title); font: 700 clamp(2rem, 6vw, 2.7rem)/1.02 var(--label); letter-spacing: .01em; text-transform: uppercase; }
.section-tight .cta-row { margin-top: 24px; }

/* ---- buttons (squared corners, never pills) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .6em 1.15em;
  border: 2px solid transparent; border-radius: var(--radius); font: 700 1.04rem/1.1 var(--label); letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; text-align: center; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: .75em 1.4em; font-size: 1.12rem; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-line { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-line:hover { background: var(--gold-wash); border-color: var(--gold); }
.btn-plain { padding-left: .6em; padding-right: .6em; background: transparent; color: var(--gold-soft); }
.btn-plain:hover { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-row.is-left { justify-content: flex-start; }

/* ---- the team's bar (only for a colleague signed in on this browser) */
.teambar { background: var(--gold); color: var(--gold-ink); font: 600 .95rem/1.3 var(--body); }
.teambar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; padding-top: 8px; padding-bottom: 8px; }
.teambar a { display: inline-flex; align-items: center; gap: .35em; }

/* ---- the header: stays at the top, so the seller is one tap away */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 15, 30, .9); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 0; color: var(--title); text-decoration: none;
  font: 700 1.2rem/1.05 var(--label); letter-spacing: .03em; text-transform: uppercase; }
.mark { flex: none; color: var(--gold); }
.brand .mark { width: 34px; height: 34px; }
.top-links { display: flex; flex: none; align-items: center; gap: 4px; }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 6px; color: var(--muted); font: 600 .98rem/1 var(--body);
  text-decoration: none; }
.lang:hover { color: var(--ink); text-decoration: underline; }
.reach { min-height: 44px; padding: .45em .85em; }

/* ---- the top of the catalog: the night photo, what this is, when it was last counted */
.intro { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(330px, 50vh, 470px); overflow: hidden;
  background: var(--night-deep); }
.intro-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 74% 30%; }
.intro::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 15, 30, .2) 0%, rgba(11, 15, 30, .15) 25%, rgba(11, 15, 30, .8) 64%, var(--night) 100%); }
.intro-copy { padding-top: 110px; padding-bottom: 66px; }
.eyebrow { color: var(--gold-soft); font: 700 1rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.intro h1 { max-width: 15ch; margin-top: 10px; color: #fff; font: 700 clamp(2.3rem, 8.6vw, 4.4rem)/.96 var(--label); letter-spacing: .005em;
  text-transform: uppercase; text-shadow: 0 2px 30px rgba(0, 0, 0, .6); overflow-wrap: normal; }  /* (a long word, like ARTIFICIALES, is never cut in two) */
.intro-lead { max-width: 32em; margin-top: 14px; color: #e8ebf7; font-size: clamp(1.08rem, 2.5vw, 1.3rem); text-shadow: 0 1px 14px rgba(0, 0, 0, .85); }
.intro-when { display: inline-flex; align-items: center; gap: .5em; margin-top: 16px; padding: 7px 12px; background: rgba(7, 10, 21, .72);
  border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--gold-soft); font-size: .98rem; font-weight: 600; }

/* ---- who to order from, over the bottom of the photo; then the business's note */
.lift { position: relative; z-index: 2; margin-top: -42px; }
.seller { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px 14px; padding: 16px; background: var(--night-2);
  border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 18px 44px rgba(0, 0, 0, .5); }
.avatar { display: grid; width: 56px; height: 56px; place-items: center; background: var(--gold); border-radius: 50%; color: var(--gold-ink);
  font: 700 1.35rem/1 var(--label); letter-spacing: .04em; }
.seller-who { min-width: 0; }
.seller-label { color: var(--gold-soft); font: 700 .86rem/1.2 var(--label); letter-spacing: .12em; text-transform: uppercase; }
.seller-name { margin-top: 2px; color: var(--title); font: 700 1.5rem/1.1 var(--label); letter-spacing: .02em; text-transform: uppercase; }
.seller-phone { margin-top: 2px; color: var(--muted); font-variant-numeric: tabular-nums; }
.seller-actions { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.seller-actions .btn { min-height: 50px; padding-left: .6em; padding-right: .6em; }
.note { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; padding: 14px 16px; background: var(--gold-wash);
  border: 1px solid rgba(247, 183, 51, .35); border-radius: var(--radius); color: var(--soft); }
.note .i { margin-top: .2em; color: var(--gold); }
.note p + p { margin-top: 8px; }

/* ---- the catalog: the search box, category chips, one shelf per category */
.catalog { padding: 26px 0 64px; }
.section-title { color: var(--title); font: 700 clamp(1.9rem, 5.4vw, 2.7rem)/1.05 var(--label); letter-spacing: .02em; text-transform: uppercase; }
.search { position: relative; display: block; }
.search .i { position: absolute; top: 50%; left: 14px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.search input { width: 100%; min-height: 52px; padding: 0 14px 0 44px; background: var(--night-2); border: 1px solid var(--line-strong);
  border-radius: var(--radius); color: var(--ink); font-size: 1.06rem; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--faint); }
.search input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(247, 183, 51, .25); }
.chips { display: flex; gap: 8px; margin: 14px -16px 0; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; flex: none; align-items: center; gap: .55em; min-height: 44px; padding: 0 14px; background: var(--night-2);
  border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--ink); font: 600 1rem/1 var(--body); white-space: nowrap; text-decoration: none; }
.chip span { color: var(--faint); font-size: .9rem; }
.chip:hover { border-color: var(--gold); }
.shelf { padding-top: 30px; }
.shelf-title { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; color: var(--gold-soft); font: 700 1.4rem/1.1 var(--label);
  letter-spacing: .04em; text-transform: uppercase; }
.shelf-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.empty { margin-top: 20px; padding: 40px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; }

/* ---- product cards: the whole card opens the product */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; overflow: hidden; background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s; }
.card:hover { border-color: var(--line-strong); }
.card-link { display: flex; flex: 1; flex-direction: column; color: inherit; text-decoration: none; }
.card-photo { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--night-deep); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card-link:hover .card-photo img { transform: scale(1.035); }
.card-nophoto { display: block; width: 100%; height: 100%; padding: 28%; color: var(--line-strong); }
.card.is-out .card-photo img { opacity: .42; filter: grayscale(.5); }
.badge { position: absolute; top: 8px; left: 8px; padding: 5px 8px; background: rgba(7, 10, 21, .88); border: 1px solid var(--ember); border-radius: 6px;
  color: var(--ember); font: 700 .85rem/1 var(--label); letter-spacing: .07em; text-transform: uppercase; }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 12px 12px 14px; }
.card-title { color: var(--ink); font: 600 1rem/1.3 var(--body); }
.card-price { margin-top: auto; padding-top: 6px; color: var(--gold); font: 700 1.35rem/1.1 var(--label); letter-spacing: .02em; }
.cur { margin-left: .1em; color: var(--gold-soft); font-size: .6em; letter-spacing: .08em; }  /* USD or MXN, after every price */
.stock { display: inline-flex; align-items: center; gap: .45em; font: 600 .92rem/1.25 var(--body); }
.stock::before { content: ''; flex: none; width: .55em; height: .55em; background: currentColor; border-radius: 50%; }
.stock.is-in { color: var(--ok); }
.stock.is-low { color: var(--gold-soft); }
.stock.is-out { color: var(--ember); }

/* ---- a product's page */
.item-page { padding-top: 12px; padding-bottom: 64px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 12px; font-size: .98rem; }
.crumbs a { display: inline-flex; align-items: center; gap: .3em; min-height: 40px; color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.item { display: grid; gap: 22px; }
.item-info { min-width: 0; }
.item-cat a { color: var(--gold-soft); font: 700 .98rem/1 var(--label); letter-spacing: .09em; text-transform: uppercase; text-decoration: none; }
.item-cat a:hover { text-decoration: underline; }
.item-title { margin-top: 8px; color: var(--title); font: 700 clamp(2rem, 6vw, 2.9rem)/1.02 var(--label); letter-spacing: .01em; text-transform: uppercase; }
.item-price { margin-top: 12px; color: var(--gold); font: 700 2.1rem/1 var(--label); letter-spacing: .02em; }
.item-info > .stock { margin-top: 12px; font-size: 1.02rem; }
.item-note { display: flex; align-items: flex-start; gap: .5em; margin-top: 16px; padding: 10px 12px; border: 1px dashed var(--gold); border-radius: var(--radius);
  color: var(--gold-soft); font-weight: 600; }
.item-note .i { margin-top: .2em; }
.ask { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ask .btn { flex: 1 1 230px; }
.item-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.item-tools:empty { display: none; }
.item-desc { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--soft); font-size: 1.08rem; }
.item-desc p + p { margin-top: 12px; }
.more { margin-top: 56px; }
.more .section-title { margin-bottom: 18px; font-size: clamp(1.55rem, 4vw, 2.1rem); }

/* the photos: a strip a finger swipes; site.js adds the arrows, the thumbnails and the full-screen view */
.gallery { min-width: 0; }
.gallery-frame { position: relative; overflow: hidden; background: var(--night-deep); border: 1px solid var(--line); border-radius: var(--radius); }
.gallery-track { display: flex; aspect-ratio: 1; margin: 0; padding: 0; overflow-x: auto; list-style: none; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
.slide { display: grid; flex: 0 0 100%; place-items: center; scroll-snap-align: center; scroll-snap-stop: always; }
.slide img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gallery-empty { display: grid; aspect-ratio: 1; place-items: center; }
.gallery-mark { width: 32%; height: auto; color: var(--line-strong); }
.gallery-arrow { position: absolute; top: 50%; display: grid; width: 46px; height: 46px; place-items: center; padding: 0; transform: translateY(-50%);
  background: rgba(7, 10, 21, .72); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); color: #fff; cursor: pointer; }
.gallery-arrow:hover { background: rgba(7, 10, 21, .92); }
.gallery-arrow .i { width: 26px; height: 26px; }
.gallery-arrow.is-prev { left: 10px; }
.gallery-arrow.is-next { right: 10px; }
.gallery-count { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; background: rgba(7, 10, 21, .75); border-radius: 6px; color: #fff;
  font: 600 .9rem/1.3 var(--body); }
.gallery-thumbs { display: flex; gap: 8px; margin: 12px 0 0; padding: 0 0 4px; overflow-x: auto; list-style: none; }
.gallery-thumbs button { flex: none; width: 76px; aspect-ratio: 1; padding: 0; overflow: hidden; background: none; border: 2px solid transparent;
  border-radius: 6px; opacity: .7; cursor: pointer; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* the full-screen photo viewer (site.js) */
.viewer { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; background: #000; border: 0; color: #fff; }
.viewer::backdrop { background: #000; }
.viewer img { width: 100%; height: 100%; object-fit: contain; }
.viewer-btn { position: absolute; display: grid; width: 52px; height: 52px; place-items: center; padding: 0; background: rgba(30, 30, 40, .78);
  border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius); color: #fff; cursor: pointer; }
.viewer-btn .i { width: 26px; height: 26px; }
.viewer-close { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.viewer-prev, .viewer-next { top: 50%; transform: translateY(-50%); }
.viewer-prev { left: 12px; }
.viewer-next { right: 12px; }
.viewer-count { position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; padding: 4px 12px; transform: translateX(-50%);
  background: rgba(30, 30, 40, .78); border-radius: 6px; font-weight: 600; }

/* ---- footer: who to order from, once more */
.site-footer { background: var(--night-deep); border-top: 1px solid var(--line); color: var(--muted); }
.foot-grid { display: grid; gap: 30px; padding-top: 44px; padding-bottom: 36px; }
.foot-name { display: flex; align-items: center; gap: 10px; color: var(--title); font: 700 1.3rem/1.1 var(--label); letter-spacing: .03em; text-transform: uppercase; }
.foot-name .mark { width: 30px; height: 30px; }
.foot-brand p + p { margin-top: 12px; }
.foot-col h2 { margin-bottom: 8px; color: var(--title); font: 700 1rem/1.2 var(--label); letter-spacing: .09em; text-transform: uppercase; }
.foot-who { margin-bottom: 4px; color: var(--ink); font-weight: 600; }
.foot-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.foot-list a { display: inline-flex; align-items: center; gap: .5em; min-height: 36px; color: var(--ink); text-decoration: none; }
.foot-list a:hover { color: var(--gold-soft); text-decoration: underline; }
.foot-base { border-top: 1px solid var(--line); }
.foot-base .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 12px; padding-bottom: 16px;
  color: var(--faint); font-size: .92rem; }
.foot-base a { display: inline-flex; align-items: center; min-height: 36px; color: var(--faint); }

/* ---- wider screens */
@media (max-width: 479px) {
  .brand { gap: 8px; font-size: 1.04rem; }
  .brand .mark { width: 28px; height: 28px; }
  .reach { width: 46px; padding: 0; }
  .reach > span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lang { padding: 0 8px; font-size: .94rem; }
}
@media (min-width: 560px) {
  .grid { gap: 16px; }
  .card-body { padding: 14px 14px 16px; }
  .seller { grid-template-columns: auto minmax(0, 1fr) auto; padding: 18px 20px; }
  .seller-actions { grid-column: auto; grid-template-columns: repeat(2, auto); }
  .seller-actions .btn { padding-left: 1.1em; padding-right: 1.1em; }
}
@media (min-width: 900px) {
  :root { --header: 72px; }
  .intro { align-items: center; min-height: 440px; }
  .intro-img { object-position: 60% 40%; }
  .intro::after { background: linear-gradient(90deg, rgba(11, 15, 30, .94) 0%, rgba(11, 15, 30, .7) 36%, rgba(11, 15, 30, 0) 62%),
    linear-gradient(180deg, rgba(11, 15, 30, 0) 70%, var(--night) 100%); }
  .intro-copy { padding-top: 64px; padding-bottom: 92px; }
  .lift { margin-top: -56px; }
  .catalog { padding-top: 32px; }
  .finder { max-width: 520px; }
  .chips { flex-wrap: wrap; margin: 16px 0 0; padding: 0; overflow: visible; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .item-page { padding-top: 20px; }
  .item { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 44px; }
  .item .gallery { position: sticky; top: calc(var(--header) + 16px); }
  .foot-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; }
}
@media (min-width: 1180px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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

/* ---- printed: the catalog on paper, black on white, without the buttons */
@media print {
  *, *::before, *::after { background: transparent !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
  .top, .teambar, .skip, .intro-img, .finder, .chips, .seller-actions, .ask, .item-tools, .foot-base, .gallery-thumbs { display: none !important; }
  .intro { min-height: 0; }
  .intro-copy { padding: 0 0 12px; }
  .lift { margin-top: 0; }
  .card, .seller, .note { border-color: #999 !important; break-inside: avoid; }
}
