/* artCode shop - catalogue: compact hero. Loaded only by the catalogue. */

/* compact catalogue hero. Phones and tablets: plain white, no photo (little room, the catalogue starts
   right below). From 1024 px (2026-11-19, from the prototype): one photo full bleed behind the hero, the
   artCode button and the NFC arrow on a wooden table, with a slow zoom out from close on the two products
   to a wider view (22 s, once, then still). The whole photo, anchored right, goes from 112% to 82% of the
   hero width; its left edge fades into a blurred copy of itself (plain wood), so the wider end has no
   visible edge. The text on the left in a white box with the radius, shadow and outline of the product
   cards. The photo loads only from 1024 px (data-src, shop.js) and fades in when ready */
.cat-hero { position: relative; overflow: hidden; display: flex; align-items: center; background: #fff; }
.cat-hero__photo { display: none; }
.cat-hero > div:not(.cat-hero__photo) { position: relative; z-index: 1; width: 100%; }
.cat-hero__text { position: relative; max-width: 27rem; }
.cat-hero__text .text-muted { color: #4a4450; }   /* keeps the lead above 4.5:1 */
@media (min-width: 1024px) {
  .cat-hero { min-height: min(31vw, 640px); background: #d9b48c; }   /* wood tone while the photo loads */
  .cat-hero__photo { display: block; position: absolute; inset: 0; overflow: hidden; }
  .cat-hero__bg { position: absolute; inset: -60px; background: 50% 50% / cover no-repeat; filter: blur(30px); }
  /* the whole photo: its row of products (55% down) on the middle line of the hero, scaled from the right edge */
  .cat-hero__photo img { position: absolute; top: 50%; right: 0; width: 100%; height: auto; max-width: none; transform-origin: 100% 55%;
    transform: translateY(-55%) scale(1.12); opacity: 0; transition: opacity 1s var(--ease-out);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 20%); mask-image: linear-gradient(to right, transparent, #000 20%); }
  .cat-hero__photo.is-on img { opacity: 1; animation: cat-zoom 22s cubic-bezier(.25, .1, .25, 1) both; }
  .cat-hero__text { padding: 28px 32px 32px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-card); outline: 1px solid var(--line); outline-offset: -1px; }
}
@keyframes cat-zoom { from { transform: translateY(-55%) scale(1.12); } to { transform: translateY(-55%) scale(.82); } }
@media (prefers-reduced-motion: reduce) { .cat-hero__photo img { transition: none; } .cat-hero__photo.is-on img { animation: none; transform: translateY(-55%) scale(.9); } }
/* christmas and nfc sections, as on the home */
.xmas-bg { background: radial-gradient(ellipse at 80% -10%, rgba(242, 198, 107, .18), transparent 55%), var(--pine-deep); }
.xmas-dots { background-image: radial-gradient(rgba(242, 198, 107, .22) 1.2px, transparent 1.4px); background-size: 26px 26px; }
.xmas-card { border-radius: 28px; overflow: hidden; background: var(--pine); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.xmas-card .media { aspect-ratio: 16 / 10; overflow: hidden; background: #efefef; }
.xmas-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.xmas-card:hover .media img { transform: scale(1.04); }
.key--gold { --key-bg: var(--gold-soft); --key-fg: var(--pine-deep); --key-edge: #a77a1c; }
.step-num { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font: 700 1rem/1 var(--font-mono); }

/* ---------- layout of the page ---------- */
[hidden]:where(:not([hidden="until-found"])) { display: none; }   /* as in shop.css: hidden wins over the styles above */
.cat-hero__shell { padding-top: 2rem; padding-bottom: 2rem; }
.crumbs__list--plain { display: flex; align-items: center; gap: .5rem; }
.crumbs__here { color: var(--ink); }
.cat-hero__lead { max-width: 24rem; }
@media (min-width: 640px) {
  .cat-hero__shell { padding-top: 3rem; padding-bottom: 3rem; }
}
