/* ==========================================================================
   Vitamin Horgoš — pages.css (ORBIS rebuild)
   Shared page-level rules only. Each page area has its own stylesheet, linked
   from its pages: home.css (index), catalog.css (proizvodi, kategorija,
   proizvod), content.css (o-nama, kvalitet, recepti, recept, novosti,
   za-partnere, kontakt, gde-kupiti, 404), shop pages use account.css / lists.css
   / kompas.css / season.css. The pre-rebuild styles are in _backup/pre-orbis/.
   ========================================================================== */

/* Plain page hero (premium 2: uporedi, polica, nalog, korpa, porudzbina). The same dark, centred Orbis hero as every
   other inner page, without a photo: warm black, the burgundy glow of --hero-overlay and the charcoal grain
   (.tex-charcoal, brand.css). Replaces the cream hero, so no page starts on a different ground. */
.phero--plain { padding-top: calc(var(--header-h) + var(--sp-80)); padding-bottom: var(--sp-80); }
.phero--plain::after { background: radial-gradient(90% 120% at 50% 0%, rgba(74, 14, 18, 0.55) 0%, rgba(21, 17, 15, 0) 70%); }
.phero--plain .phero__inner { grid-template-columns: minmax(0, 1fr); gap: var(--sp-16); } /* a max-content child (.pol-note) never widens the column */
.phero--plain .phero__title { max-width: 20ch; }

/* Brand wave on the burgundy bands of the inner pages (brand.css .wave-top): the wave is 16px wider than the band
   on each side for its drift; clip it sideways so the page never scrolls horizontally (it still rises above the band) */
.section.wave-top { overflow-x: clip; }

/* Empty states (cart, checkout, catalogue, recipes, compare): a solid 1px hairline card like every other card,
   not a dashed box (premium 2) */
.empty { border-style: solid; border-color: var(--line-light); background: var(--warm-white); }
:is(.on-dark, .section--black, .section--burgundy) .empty { border-color: var(--line-dark-soft); background: transparent; }

/* Gold numbered steps (checkout, kompas, account): 01 / 02 / 03 */
.steps-gold { display: flex; flex-wrap: wrap; gap: var(--sp-16) var(--sp-32); }
.steps-gold li { display: flex; align-items: baseline; gap: var(--sp-12); font-size: 1.0625rem; color: var(--ink-body); }
.steps-gold b { font-family: var(--font-serif); font-size: 1.75rem; font-weight: var(--fw-light); color: var(--gold-ink); font-variant-numeric: lining-nums; }
.steps-gold [aria-current] { color: var(--ink); font-weight: var(--fw-semibold); }

/* Long pages: these sections skip style, layout and paint until they come near the viewport (first-render cost).
   Only sections without sticky blocks and without in-page anchors; the remembered size (auto) keeps scrolling steady. */
.rlist, #r-products-sec, #r-more-sec, #sz-stories, #sz-recipes-sec, body[data-page="sezona"] main > section:last-child,
body[data-page="kontakt"] main > section:last-child,
body[data-page="kompanija"] main > section:nth-of-type(n+4):not(.wave-top), body[data-page="partneri"] main > section:nth-of-type(n+3):not(.wave-top),
body[data-page="home"] main > :is(.home-quality, .home-mill, .home-assort, .home-recipes, .home-wtb),
body[data-view="product"] #pdp ~ section { content-visibility: auto; contain-intrinsic-size: auto 1200px; }
/* (a .wave-top band is left out: content-visibility clips paint to the box, and its wave sits above the box) */
/* an in-page link (o-nama.html#fabrika, za-partnere.html#upit) lays every section out, so the target lands exactly */
body[data-page="kompanija"] main:has(:target) > section, body[data-page="partneri"] main:has(:target) > section { content-visibility: visible; }
