/* ==========================================================================
   Vitamin Horgoš — catalog.css (ORBIS rebuild)
   proizvodi.html  — collage hero, 01–04 columns, category cards, marquee, CTA, catalogue
   kategorija.html — photo hero, intro split with gold-square list, catalogue,
                     feature block (3D shelf / POH! flavours / tea box)
   proizvod.html   — dark studio stage with a light plate, pack-size chips, order box,
                     hairline packaging table, recipes, description, related rails
   Tokens and shared components: variables.css, components.css. 3D stage parts: stages.css.
   ========================================================================== */

/* ---------- heroes ---------- */
.phero--catalog { min-height: min(86vh, 820px); }
/* category hero: the text on the left over the owner's background image (final polish: no separate pack picture) */
.phero--cat { min-height: min(84vh, 780px); text-align: left; }
.phero--cat::after { content: none; }
.phero--cat .chero__text { justify-items: start; }
.phero--cat .chero__text > * { max-width: min(100%, 31rem); }
.phero--cat .crumbs ol, .phero--cat .phero__actions { justify-content: flex-start; }
.phero--cat .phero__title { max-width: 12ch; }
/* premium 3: the owner's background image behind the category hero – darkest on the left where the text sits */
.phero--cat.phero--bg::after {
  content: "";
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(21, 17, 15, 0.9) 0%, rgba(21, 17, 15, 0.82) 38%, rgba(21, 17, 15, 0.62) 70%, rgba(21, 17, 15, 0.7) 100%),
    linear-gradient(180deg, rgba(21, 17, 15, 0.6) 0%, rgba(21, 17, 15, 0) 30%, rgba(21, 17, 15, 0) 70%, rgba(21, 17, 15, 0.9) 100%);
}
.phero--cat.phero--bg .chero__text { position: relative; z-index: 1; }
@media (max-width: 700px) {
  .phero--cat.phero--bg { min-height: 70vh; min-height: 70svh; }
  /* phones: the text runs across the full width, so the scrim is heaviest at the top */
  .phero--cat.phero--bg::after { background: linear-gradient(180deg, rgba(21, 17, 15, 0.9) 0%, rgba(21, 17, 15, 0.86) 50%, rgba(21, 17, 15, 0.7) 75%, rgba(21, 17, 15, 0.9) 100%); }
}
/* the product page: the same image across the top of the dark product section, fading into the ground below */
.pdp--bg { isolation: isolate; }
.pdp--bg > .phero__bg { height: min(100%, 120vh); bottom: auto; }
@media (max-width: 700px) { .pdp--bg { min-height: 70vh; min-height: 70svh; } } /* the product hero on phones, also for an unknown id */
.pdp--bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* the product leads: the image is atmosphere only here, ~90 % under the text, fading into the plain ground */
  background: linear-gradient(180deg, rgba(21, 17, 15, 0.86) 0, rgba(21, 17, 15, 0.9) min(50vh, 460px), rgba(21, 17, 15, 0.94) min(80vh, 720px), var(--ground-black) min(120vh, 1080px));
}

/* ---------- 01–04 columns ---------- */
.numcols__more { max-width: none; margin-top: var(--sp-48); text-align: center; }

/* ---------- category cards / marquee sections ---------- */
.ccards { gap: var(--sp-32); }
.catalog-mq .section__head { margin-bottom: var(--sp-48); }

/* ---------- catalogue: title with hairline (ORBIS ref 18), toolbar, category blocks ---------- */
.catalog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-8) var(--sp-32);
  padding-bottom: var(--sp-24);
  margin-bottom: var(--sp-48);
  border-bottom: 1px solid var(--line-light);
}
.catalog__head .catalog__title { margin: 0; }
.results-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-8) var(--sp-16); font-size: var(--t-card-body); color: var(--ink-body); }
.results-note:empty { display: none; }
.results-note__clear {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  min-height: var(--tap);
  padding: 0 var(--sp-16);
  border: 1px solid var(--line-light-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: var(--fw-semibold);
}
.results-note__clear:hover { border-color: var(--ink); }
.results-note__clear .icon { width: 18px; height: 18px; }

.toolbar { display: grid; gap: var(--sp-32); margin-bottom: var(--sp-64); }
.toolbar__search, .toolbar__filter { display: grid; gap: var(--sp-12); justify-items: start; }
.toolbar__label { font-size: var(--t-eyebrow); font-weight: var(--fw-semibold); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--gold-ink); }
.search__trigger {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  width: min(100%, 560px);
  min-height: var(--btn-h);
  padding: 0 var(--sp-16) 0 var(--sp-24);
  border: 1px solid var(--line-light-strong);
  border-radius: var(--radius);
  background: var(--warm-white);
  color: var(--ink-body);
  font-size: 1.125rem;
  text-align: left;
  transition: border-color var(--dur-hover);
}
.search__trigger:hover { border-color: var(--ink); }
.search__trigger .icon { flex: none; width: 22px; height: 22px; color: var(--gold-ink); }
.search__trigger > span { flex: 1; min-width: 0; }
.search__kbd { flex: none; padding: 4px 8px; border: 1px solid var(--line-light-strong); border-radius: var(--radius); font: var(--fw-semibold) 0.8125rem var(--font-sans); color: var(--ink-body); }
/* the category filter: a row of squared buttons (wraps, so no sliding pill) */
.toolbar .seg { gap: var(--sp-8); padding: 0; border: 0; background: none; }
.toolbar .seg > button {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  min-height: var(--tap);
  padding: 0 var(--sp-16);
  border: 1px solid var(--line-light-strong);
  border-radius: var(--radius);
  background: var(--warm-white);
  font-size: 1.0625rem;
  transition: border-color var(--dur-hover), background-color var(--dur-hover), color var(--dur-hover);
}
.toolbar .seg > button:hover { border-color: var(--ink); }
.toolbar .seg > button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.seg__n { font-size: 0.875rem; font-weight: var(--fw-semibold); color: var(--gold-ink); }
[aria-pressed="true"] > .seg__n { color: var(--gold); }

.cat-block + .cat-block { margin-top: var(--sp-128); }
.cat-block__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--sp-24) var(--sp-48);
  padding-bottom: var(--sp-24);
  margin-bottom: var(--sp-32);
  border-bottom: 1px solid var(--line-light);
}
.cat-block__title { font-size: clamp(1.875rem, 1.5rem + 1vw, 2.5rem); font-weight: var(--fw-light); }
.cat-block__intro { max-width: 62ch; margin-top: var(--sp-12); font-size: var(--t-card-body); line-height: 1.65; color: var(--ink-body); }
.cat-block__side { display: grid; justify-items: end; gap: var(--sp-4); text-align: right; }
.cat-block__count { font-size: var(--t-card-body); color: var(--ink-body); }
.subgroup-title {
  margin: var(--sp-48) 0 var(--sp-24);
  font-family: var(--font-sans);
  font-size: var(--t-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--track-eyebrow);
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.subgroup-title span { margin-left: var(--sp-8); letter-spacing: 0.04em; text-transform: none; color: var(--ink-body); font-weight: var(--fw-regular); }
.cat-block__head + .subgroup-title, #cat-products > .subgroup-title:first-child { margin-top: 0; }
.pgrid { gap: var(--sp-32); }
.pgrid .pcard__foot { row-gap: var(--sp-8); }

/* ---------- category intro (ORBIS ref 17): plate image + lead + gold-square list ---------- */
.cat-intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(var(--sp-48), 7vw, var(--sp-96)); align-items: center; }
/* the lead product on a cream studio floor, with a faint reflection */
.cat-intro__media { position: relative; aspect-ratio: 1; border-radius: var(--radius); --floor-h: 26%; --shadow-w: 44%; --pack-w: 62%; }
.cat-intro__body .section__title { max-width: 18ch; }
.cat-intro__body { display: grid; gap: var(--sp-32); justify-items: start; }
.cat-intro__lead { font-size: var(--t-lead); line-height: 1.65; color: var(--ink); max-width: 36rem; }
.goldlist { display: grid; gap: var(--sp-16); padding-left: var(--sp-32); border-left: 1px solid var(--line-light-strong); }
.goldlist li { position: relative; padding-left: var(--sp-32); font-size: var(--t-body); line-height: 1.5; color: var(--ink); }
.goldlist li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: var(--gold); }
.goldlist a { text-decoration: underline; text-decoration-color: var(--line-light-strong); text-underline-offset: 5px; transition: text-decoration-color var(--dur-hover); }
.goldlist a:hover { text-decoration-color: currentColor; }
.goldlist__n { margin-left: var(--sp-8); font-size: var(--t-card-body); color: var(--ink-body); white-space: nowrap; }

/* ---------- feature block below the catalogue: 3D shelf, POH! flavours, tea box ---------- */
/* the packs side by side on a dark studio floor (3D shelf over http, the static row otherwise; same floor line) */
.cat-shelf { position: relative; aspect-ratio: 16 / 6; min-height: 260px; border-radius: var(--radius); --floor-h: 22%; --shadow-w: 78%; }
.cat-shelf__static { position: absolute; inset: auto 0 var(--floor-h) 0; z-index: 1; display: flex; align-items: flex-end; justify-content: center; gap: clamp(var(--sp-16), 3vw, var(--sp-48)); padding: 0 var(--sp-24); }
.cat-shelf__pack { flex: none; display: block; width: clamp(90px, 14vw, 190px); aspect-ratio: 1 / var(--foot, 0.985); overflow: hidden; }
.cat-shelf__pack img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; object-position: 50% 100%; }
.cat-shelf.is-3d .cat-shelf__static { opacity: 0; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(var(--sp-48), 6vw, var(--sp-96)); align-items: center; }
.feature__media { display: grid; gap: var(--sp-16); }
.feature__copy { display: grid; gap: var(--sp-32); justify-items: start; }
.feature__panel { display: grid; gap: var(--sp-16); justify-items: start; min-height: 16rem; align-content: start; }
.feature__step { font-size: var(--t-eyebrow); font-weight: var(--fw-semibold); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--gold); }
.feature__title { font-size: var(--t-h3); color: var(--on-dark); }
.feature__text { max-width: 36rem; font-size: var(--t-body); color: var(--on-dark-body); }
.feature__seg > button { min-height: var(--tap); font-size: 1.0625rem; }
.feature__chips .chip { min-height: var(--tap); font-size: 1rem; }

/* studio stages (premium 10, item 3): the shared .studio set (components.css) with the pack standing on the
   floor line – its base at --floor-h from the bottom, the contact shadow under it, a faint reflection in the floor.
   --foot (set per product by catalog.js) is the share of the packshot image above the pack's base, so the
   transparent margin under the pack is cropped away and the base meets the floor exactly. */
.pdp__stage, .feature__stage {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: var(--radius);
  --floor-h: 24%;
  --shadow-w: 50%;
}
.pdp__stage.studio, .feature__stage.studio { overflow: visible; } /* the ingredient lens may open past the edge */
.feature__stage { aspect-ratio: 1; --floor-h: 22%; }
/* the packshot: a box --pack-w wide whose bottom edge is the pack's base (the image's transparent foot is cropped) */
.studio__pack, .pdp__img {
  position: absolute;
  left: 50%;
  bottom: var(--floor-h);
  z-index: 1;
  width: var(--pack-w, 60%);
  translate: -50% 0;
  aspect-ratio: 1 / var(--foot, 0.985);
  overflow: hidden;
  pointer-events: none;
}
.pdp__img, .feature__stage .studio__pack { --pack-w: 74%; }
/* a quieter mirror than the shared default: only the last fifth of the pack, very faint */
.pdp__img.studio__reflect, .feature__stage .studio__reflect, .cat-intro__media .studio__reflect, .cat-shelf__pack.studio__reflect { -webkit-box-reflect: below 0 linear-gradient(transparent 80%, rgba(255, 255, 255, 0.12)); }
.cat-intro__media .studio__reflect { -webkit-box-reflect: below 0 linear-gradient(transparent 80%, rgba(255, 255, 255, 0.22)); }
.studio__pack picture, .pdp__img picture { display: block; width: 100%; }
.studio__pack img, .pdp__img img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; object-position: 50% 100%; }
.feature__stage .studio__pack { transition: opacity var(--dur-reveal) var(--ease-out); }
.feature__stage .studio__pack:not(.is-on) { opacity: 0; }
.feature__stage.is-3d .studio__pack { opacity: 0; }
.feature__controls:empty, .pdp__controls:empty { display: none; }

/* ---------- product page: studio stage (left) + product column (right) ---------- */
/* the category breadcrumb (filled by catalog.js) keeps its one-row height from the first paint */
#cat-crumbs { min-height: 40px; }
/* the product hero stays invisible until catalog.js has rendered it (VH.pageReady → body.is-ready), so the
   breadcrumb and title filling in do not shift visible content; a 3s fallback shows it if scripts never run */
.js body[data-view="product"]:not(.is-ready) .pdp > .container { visibility: hidden; animation: reveal-main 0s linear 3s forwards; }
.pdp {
  position: relative;
  padding: calc(var(--header-h) + var(--sp-48)) 0 var(--sp-128);
  background: var(--ground-black);
  color: var(--on-dark-body);
}
.pdp .crumbs ol { justify-content: flex-start; }
.pdp__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(var(--sp-48), 5vw, var(--sp-96)); align-items: start; margin-top: var(--sp-32); }
.pdp__media { display: grid; gap: var(--sp-24); align-content: start; }
.pdp__labels { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.callout {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 var(--sp-16);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-dark);
  font-size: 1rem;
  font-weight: var(--fw-medium);
  line-height: 1.3;
  text-align: left;
}
button.callout { cursor: default; }
.pdp__stage.is-3d ~ .pdp__labels button.callout { cursor: pointer; transition: border-color var(--dur-hover); }
.pdp__stage.is-3d ~ .pdp__labels button.callout:hover, .callout[aria-expanded="true"] { border-color: var(--gold); }

.pdp__info { display: grid; gap: var(--sp-24); align-content: start; justify-items: start; min-width: 0; }
.pdp__info > * { max-width: 100%; }
.pdp .eyebrow a { color: var(--gold); }
.pdp__title { font-size: clamp(2.5rem, 1.8rem + 2.2vw, 3.5rem); line-height: 1.08; color: var(--on-dark); }
.pdp__desc { max-width: 38rem; font-size: var(--t-lead); line-height: 1.6; color: var(--on-dark-body); }

/* order box: pack sizes as large chips, quantity, carton, the red „Dodaj u porudžbinu“ */
.pdp .order-box { width: 100%; gap: var(--sp-24); padding: var(--sp-32) 0; border: 0; border-block: 1px solid var(--line-dark-soft); border-radius: 0; background: none; }
.order-box__block { display: grid; gap: var(--sp-12); }
.order-box__label { font-size: var(--t-eyebrow); font-weight: var(--fw-semibold); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--gold); }
.pdp .order-box__row { gap: var(--sp-16) var(--sp-32); }
.pdp__sizes.seg { gap: var(--sp-8); padding: 0; border: 0; background: none; }
.pdp__sizes.seg > button {
  min-height: var(--tap);
  min-width: 88px;
  padding: 0 var(--sp-24);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  font-size: 1.0625rem;
  font-weight: var(--fw-semibold);
  color: var(--on-dark);
  transition: border-color var(--dur-hover), background-color var(--dur-hover), color var(--dur-hover);
}
.pdp__sizes.seg > button:hover { border-color: var(--gold); }
.pdp__sizes.seg > button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.pdp .qty { gap: var(--sp-8); }
.pdp .qty__btn { width: var(--tap); height: var(--tap); border-radius: var(--radius); background: transparent; border-color: var(--line-dark); color: var(--on-dark); }
.pdp .qty__btn:hover { background: rgba(201, 162, 77, 0.12); border-color: var(--gold); color: var(--gold); }
.pdp .qty__input { width: 76px; height: var(--tap); border-radius: var(--radius); background: var(--ground-raised); border-color: var(--line-dark); color: var(--on-dark); font-size: 1.125rem; }
.pdp .qty__unit { font-size: var(--t-card-body); color: var(--on-dark-body); }
.pdp .order-box__carton { min-height: var(--tap); align-items: center; font-size: var(--t-card-body); color: var(--on-dark-body); }
.pdp .order-box__carton input { margin: 0; }
.pdp .order-box__carton input:disabled + span { opacity: 0.55; }
.pdp .order-box__hint { font-size: var(--t-card-body); color: var(--on-dark-body); }
.pdp__actions { gap: var(--sp-12); }

.pdp__block { width: 100%; display: grid; gap: var(--sp-16); padding-top: var(--sp-32); border-top: 1px solid var(--line-dark-soft); }
.pdp__block[hidden], .pdp__block:empty { display: none; }
.pdp__sub { font-size: var(--t-h3); color: var(--on-dark); }
.pdp__note { font-size: var(--t-card-body); }
/* packaging specification (premium 10, item 4): the shared .htable – gold 10px labels, 18px tabular figures,
   the EAN-13 drawn as a real bar code (js/barcode.js); the chosen pack size carries a gold rule */
.pdp__spec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--sp-16) var(--sp-24); }
.pdp__table { width: 100%; }
.pdp__table .htable td { font-size: 1.125rem; }
.pdp__table .htable td.htable__code { width: 1%; padding-right: var(--sp-24); }
.pdp__table .barcode { display: block; width: 160px; max-width: none; height: auto; color: var(--on-dark); }
.pdp__table .barcode--digits { width: auto; height: 1.25em; }
.pdp__table .htable__na { color: var(--on-dark-body); font-style: italic; }
.pdp__table tr.is-current td:first-child { box-shadow: inset 2px 0 0 var(--gold); padding-left: var(--sp-16); }
.pdp__spec-note { font-size: var(--t-card-body); color: var(--on-dark-body); }
.pdp__reclist { display: grid; }
.pdp__reclist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-16);
  min-height: 56px;
  padding: var(--sp-12) 0;
  border-bottom: 1px solid var(--line-dark-soft);
  font-size: 1.125rem;
  color: var(--on-dark);
  transition: color var(--dur-hover);
}
.pdp__reclist a:hover { color: var(--gold); }
.pdp__reclist .icon { flex: none; width: 20px; height: 20px; color: var(--gold); }

/* pack-size ruler under the stage */
.ruler { display: grid; gap: var(--sp-12); width: 100%; }
.ruler__title { font-size: var(--t-eyebrow); font-weight: var(--fw-semibold); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--gold); }
.ruler__track { position: relative; height: 76px; margin-inline: var(--sp-8); }
.ruler__line { position: absolute; left: 0; right: 0; top: 60px; height: 1px; background: var(--line-dark); }
.ruler__line i { position: absolute; left: var(--pos); top: -4px; width: 1px; height: 9px; background: var(--line-dark-soft); }
.ruler__line::before, .ruler__line::after { content: ""; position: absolute; top: -8px; width: 1px; height: 17px; background: var(--line-dark); }
.ruler__line::before { left: 0; }
.ruler__line::after { right: 0; }
.ruler__thumb { position: absolute; left: var(--at, 0%); top: 55px; width: 11px; height: 11px; translate: -50% 0; background: var(--gold); transform: rotate(45deg); transition: left 500ms var(--ease-out); }
.ruler__stop {
  position: absolute;
  left: var(--pos);
  top: 0;
  translate: calc(var(--pos) * -1) 0;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0 var(--sp-12);
  border: 1px solid var(--line-dark-soft);
  border-radius: var(--radius);
  color: var(--on-dark-body);
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  transition: background-color var(--dur-hover), color var(--dur-hover), border-color var(--dur-hover);
}
.ruler__stop:hover { border-color: var(--gold); color: var(--on-dark); }
.ruler__stop[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.ruler__eq { min-height: 1.6em; font-size: var(--t-card-body); font-weight: var(--fw-semibold); color: var(--on-dark); font-variant-numeric: tabular-nums; }

/* description + B2B card */
.pdp-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: clamp(var(--sp-48), 7vw, var(--sp-96)); align-items: start; }
.pdp-body__text { display: grid; gap: var(--sp-24); justify-items: start; }
.pdp-body__desc { display: grid; gap: var(--sp-16); max-width: 64ch; font-size: var(--t-body); }
.aside-card { display: grid; gap: var(--sp-16); justify-items: stretch; padding: var(--sp-48) var(--sp-32); border-radius: var(--radius); background: var(--ground-black); color: var(--on-dark-body); }
.aside-card h2, .aside-card__title { font-size: var(--t-h3); color: var(--on-dark); }
.aside-card p:not(.eyebrow) { font-size: var(--t-card-body); }
.aside-card .btn { white-space: normal; }
.pdp-body > .empty { grid-column: 1 / -1; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cat-intro__grid, .feature, .pdp__grid, .pdp-body { grid-template-columns: minmax(0, 1fr); }
  .cat-intro__media { max-width: 560px; width: 100%; }
  .feature__media { max-width: 560px; width: 100%; justify-self: center; }
  .pdp__media { max-width: 600px; width: 100%; justify-self: center; }
  .pdp__info { max-width: 720px; }
  .feature__panel { min-height: 0; }
}
@media (max-width: 640px) {
  .phero--catalog { min-height: 72vh; }
  .catalog__head { margin-bottom: var(--sp-32); }
  .toolbar { margin-bottom: var(--sp-48); }
  .cat-block + .cat-block { margin-top: var(--sp-96); }
  .cat-block__head { grid-template-columns: minmax(0, 1fr); }
  .cat-block__side { justify-items: start; text-align: left; }
  .goldlist { padding-left: var(--sp-16); }
  .cat-shelf { aspect-ratio: 4 / 3; min-height: 0; }
  .cat-shelf__pack:nth-child(n + 4) { display: none; }
  .pdp { padding-bottom: var(--sp-96); }
  .pdp__sizes.seg > button { min-width: 0; padding: 0 var(--sp-16); }
  .search__kbd { display: none; }
  .aside-card { padding: var(--sp-32) var(--sp-24); }
}
@media (prefers-reduced-motion: reduce) {
  .feature__stage .studio__pack, .ruler__thumb, .toolbar .seg > button { transition: none; }
}

/* wrapping button groups mark the pressed button itself: no sliding pill (main.js initSeg may add one) */
.pdp__sizes > .seg__pill, .toolbar .seg > .seg__pill, .feature__seg > .seg__pill { display: none; }
.feature__seg > button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }

/* tablets and phones: name first, then the stage, then buying; the labels and the ruler follow */
@media (max-width: 1024px) {
  .pdp__grid { display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-24); }
  .pdp__media, .pdp__info { display: contents; }
  .pdp__info > *, .pdp__media > * { max-width: 720px; width: 100%; align-self: center; }
  .pdp__stage { max-width: 600px; order: 3; }
  #pdp-eyebrow { order: 1; } .pdp__title { order: 2; } .pdp__controls { order: 4; } .pdp__desc { order: 5; }
  .pdp .order-box { order: 6; } .ruler { order: 7; } .pdp__actions { order: 8; } .pdp__labels { order: 9; }
  #pakovanja { order: 10; } #pdp-recipes { order: 11; }
}
@media (max-width: 640px) {
  /* the stops would collide on a phone: the size chips above do the choosing, the ruler keeps the serving line */
  .ruler__track { display: none; }
}
@media (max-width: 700px) {
  /* stacked rows (components.css): the bar code under its label, the chosen size keeps its gold rule */
  .pdp__table .htable td.htable__code { width: auto; padding-right: 0; }
  .pdp__table tr.is-current { box-shadow: inset 2px 0 0 var(--gold); }
  .pdp__table tr.is-current td:first-child { box-shadow: none; padding-left: 0; }
}

/* ---------- one-product specification sheet (premium 10, item 4): „Preuzmi specifikaciju (PDF)“ renders
   .spec-sheet on demand (catalog.js) and prints it alone – A4, logo, name, category, the specification table
   with bar codes, a short description and the company contacts. Never visible on screen. ---------- */
.spec-sheet { display: none; }
@page { size: A4; margin: 16mm; }
@media print {
  body.is-spec { background: #fff !important; }
  body.is-spec > :not(.spec-sheet) { display: none !important; }
  body.is-spec .spec-sheet { display: block; }
  .spec-sheet { color: #15110F; font-family: var(--font-sans); font-size: 10pt; line-height: 1.45; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .spec-sheet * { animation: none !important; transition: none !important; }
  .spec__top { display: flex; align-items: center; justify-content: space-between; gap: 8mm; padding-bottom: 4mm; border-bottom: 0.6pt solid #A8842F; }
  .spec__logo { width: 34mm; height: auto; }
  .spec__doc { text-align: right; }
  .spec__k, .spec__table th, .spec__contact-k { font-size: 7.5pt; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #654A12; }
  .spec__date { margin-top: 1mm; font-size: 9pt; color: #463C36; }
  .spec__head { display: grid; grid-template-columns: minmax(0, 1fr) 40mm; gap: 8mm; align-items: center; padding: 6mm 0 5mm; }
  .spec__cat { margin: 0 0 2mm; }
  .spec__name { margin: 0; font-family: var(--font-serif); font-size: 26pt; font-weight: 400; line-height: 1.08; color: #15110F; }
  .spec__desc { margin: 4mm 0 0; max-width: 112mm; font-size: 10pt; color: #2B2420; }
  .spec__pack { display: grid; place-items: end center; height: 40mm; padding: 2mm; border: 0.6pt solid #E6DCCB; border-radius: 1.5mm; background: #F5F0E8; }
  .spec__pack img { max-width: 100%; max-height: 36mm; object-fit: contain; }
  .spec__table { width: 100%; border-collapse: collapse; border-top: 0.8pt solid #15110F; font-variant-numeric: tabular-nums lining-nums; }
  .spec__table caption { padding-bottom: 2mm; text-align: left; caption-side: top; }
  .spec__table th { padding: 2.4mm 4mm 2.4mm 0; border-bottom: 0.6pt solid #D9CDB8; text-align: left; white-space: nowrap; }
  .spec__table td { padding: 1.4mm 4mm 1.4mm 0; border-bottom: 0.6pt solid #E6DCCB; font-size: 11pt; vertical-align: middle; }
  .spec__table tr { break-inside: avoid; }
  .spec__table .barcode { display: block; width: 34mm; max-width: none; height: auto; color: #000; }
  .spec__table .barcode--digits { width: auto; height: 4mm; }
  .spec__na { font-style: italic; color: #463C36; }
  .spec__contact { display: grid; grid-template-columns: 1.1fr 1.2fr 0.9fr; gap: 6mm; margin-top: 5mm; padding-top: 4mm; border-top: 0.6pt solid #A8842F; break-inside: avoid; font-size: 9pt; color: #2B2420; }
  .spec__contact p { margin: 0; }
  .spec__contact ul { margin: 1.5mm 0 0; padding: 0; list-style: none; }
  .spec__contact li { display: flex; justify-content: space-between; gap: 3mm; padding: 0.6mm 0; }
  .spec__contact li span:first-child { color: #463C36; }
  .spec__contact .spec__contact-k { display: block; margin-bottom: 1.5mm; }
  .spec__legal { margin-top: 1.5mm !important; color: #463C36; }
  .spec__foot { margin-top: 3mm; font-size: 7.5pt; color: #463C36; }
}

