/* Nekmar Bulgaria: the sections composed for this site (data-own) and the inner pages, on the kit's tokens only.
   Linked after the kit's stylesheets and the :root tokens (tools/render.py). */

/* ---------------------------------------------------------------- the bar's logo */
.nav__logo img { display: block; height: 38px; width: auto; }
.footer .nav__logo img { height: 34px; }

/* ---------------------------------------------------------------- hero over the bag photograph */
.hero--photo .hero__lead { font-size: var(--t-lead); line-height: 1.5; max-width: 34ch; }
.hero--photo .hero__facts { width: calc(50% - var(--gutter) / 2); max-width: 34rem; }

/* ---------------------------------------------------------------- finder (#izbor) */
.finder { row-gap: var(--s-6); }
.finder fieldset { border: 0; margin: 0 0 var(--s-6); padding: 0; min-width: 0; }
.finder legend { padding: 0; margin-bottom: var(--s-3); font-size: var(--t-small); font-weight: 500; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chips label {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4) 0 var(--s-3); border-radius: 999px;
  background: var(--surface); color: var(--ink); font-size: var(--t-body); cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chips input { margin: 0; width: 16px; height: 16px; accent-color: var(--ink); flex: none; }
.chips label:hover { background: color-mix(in oklab, var(--surface) 80%, var(--ink)); }
.chips label:has(input:checked) { background: var(--ink); color: var(--bg); }
.chips label:has(input:checked) input { accent-color: var(--p-accent); }
.finder__out { display: grid; gap: var(--s-8); align-content: start; }
.finder__answer { display: grid; gap: var(--s-4); align-content: start; }
.finder__answer h3 { font-size: var(--t-h3); font-weight: 500; }
.finder__answer > p { max-width: 62ch; }
.finder__products { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--s-5); }
@media (max-width: 639px) { .finder__products { grid-template-columns: minmax(0, 1fr); } }
.mini { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s-4); align-items: center; color: var(--ink); text-decoration: none; }
.mini img { width: 72px; height: 72px; object-fit: contain; border-radius: var(--r-sm); background: #fff; }
.mini__name { display: block; font-weight: 500; }
.mini:hover .mini__name { text-decoration: underline; text-underline-offset: 3px; }
.mini__line { display: block; font-size: var(--t-small); color: var(--muted); }

/* ---------------------------------------------------------------- the label opened (#etiket) */
.label__pic { display: block; }
.label__pic img { width: 100%; height: auto; border-radius: var(--r-lg); }
.label__data { display: grid; gap: var(--s-6); align-content: start; }
.bar { display: flex; height: 56px; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.bar__seg { flex: 0 1 var(--w); min-width: 3px; }
.bar__seg--rest { flex: 1 1 0; min-width: 0; }
.bar__seg--0, .key--0 { background: var(--p-accent); }
.bar__seg--1, .key--1 { background: var(--ink); }
.bar__seg--small, .key--small { background: color-mix(in oklab, var(--ink) 45%, var(--bg)); }
.bar__seg--rest, .key--rest { background: color-mix(in oklab, var(--ink) 12%, var(--bg)); }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: var(--s-3); vertical-align: 0; }
.label__rows .rows__name small { color: var(--muted); font-size: var(--t-small); }
.spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); margin: 0; }
.spec div { display: grid; gap: var(--s-1); }
.spec dt { font-size: var(--t-small); color: var(--muted); }
.spec dd { margin: 0; font-size: var(--t-lead); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bar__legend { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--t-small); }

/* ---------------------------------------------------------------- the six lines (#gami, brand ground) */
.lines { row-gap: var(--s-6); }
.line { display: grid; gap: var(--s-3); align-content: start; color: var(--ink); text-decoration: none; }
.line__pic { display: block; background: #fff; border-radius: var(--r-lg); overflow: hidden; }
.line__pic img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.line h3 { font-size: var(--t-card); font-weight: 500; margin-top: var(--s-2); }
.line:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.line p { max-width: 40ch; }
.line .fact-line { margin: 0; color: var(--ink); }
@media (max-width: 1023px) { .lines > .line { grid-column: span 6; } }

/* ---------------------------------------------------------------- founders and the professionals */
.hora__text, .pro__text { display: grid; gap: var(--s-5); align-content: start; }
.hora__text p, .pro__text p { max-width: 58ch; }
.pro__pic { position: relative; min-height: 280px; }
.pro__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 100% 0; }
@media (max-width: 1023px) { .pro__pic { max-width: 360px; aspect-ratio: 1; } .pro__pic img { object-position: 0 0; } }

/* ---------------------------------------------------------------- enquiry */
.close__form { max-width: 760px; }
.closing .section-head { margin-bottom: var(--head-gap); }

/* ---------------------------------------------------------------- inner pages */
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); font-size: var(--t-small); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.crumbs a:hover { color: var(--ink); }
.text-hero .hero-text { display: grid; align-content: end; gap: var(--s-4); }
.text-hero .hero-text h1, .range-hero h1, .product-hero h1 { max-width: 20ch; }
.text-hero .t-lead { max-width: 60ch; }
.pack img { display: block; width: 100%; height: auto; max-height: 72svh; object-fit: contain; }
.product-hero .hero-copy, .range-hero .hero-copy { display: grid; gap: var(--s-5); align-content: center; }
.product-hero .hero__facts { margin: 0; }
.pcards { list-style: none; padding: 0; margin: 0; row-gap: var(--s-7); }
.pcards > li { display: flex; }
@media (max-width: 1023px) and (min-width: 640px) { .pcards > li { grid-column: span 6; } }
@media (max-width: 639px) { .pcards > li { grid-column: span 6; } }
.pcard { display: grid; gap: var(--s-2); align-content: start; width: 100%; color: var(--ink); text-decoration: none; }
.pcard__pic { display: block; border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.pcard__pic img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.pcard__name { font-size: var(--t-card); font-weight: 500; margin-top: var(--s-3); }
.pcard:hover .pcard__name { text-decoration: underline; text-underline-offset: 4px; }
.pcard__line { font-size: var(--t-small); color: var(--muted); }
.pcard .fact-line { margin: 0; }
.facts-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--s-6); }
.facts-list h3 { font-size: var(--t-card); font-weight: 500; margin-bottom: var(--s-2); }
@media (max-width: 1023px) { .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .facts-list { grid-template-columns: minmax(0, 1fr); } }
.other-lines { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); margin-top: var(--s-4); }
.other-lines a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.other-lines a:hover { text-decoration-color: currentColor; }
.label-rows > li { grid-template-columns: minmax(0, 1fr); }
.label-rows > li > p { grid-column: 1; max-width: 64ch; }
.sastav__side { display: grid; gap: var(--s-5); align-content: start; }
.sastav__side img { width: 100%; height: auto; border-radius: var(--r-lg); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.ticks li { padding-left: var(--s-5); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--p-accent); }
.dose { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.dose caption { text-align: left; font-weight: 500; margin-bottom: var(--s-3); }
.dose :is(th, td) { padding: var(--s-2) var(--s-2); border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.dose th[scope="row"] { color: var(--muted); }
.addresses h3 { font-size: var(--t-card); font-weight: 500; margin-bottom: var(--s-3); }
.addresses address { font-style: normal; margin-bottom: var(--s-4); }
.prose h2 { font-size: var(--t-h3); font-weight: 500; margin: var(--s-7) 0 var(--s-3); }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: var(--s-3); }
.prose a, .hero .t-lead a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- footer */
.footer__company p { color: var(--ink); }
.footer__credit { margin: 0; color: var(--ink); }
.footer__credit a { color: var(--ink); text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 3px; }
.footer__credit a:hover { text-decoration-thickness: 2px; }

/* ---------------------------------------------------------------- follow-ups */
.label__rows .rows__name small { display: block; margin-top: 2px; }
.finder__answer .ticks { max-width: 62ch; }
.close__aside { display: grid; gap: var(--s-3); align-content: start; }
.close__aside h3 + address { margin-top: calc(var(--s-3) * -1); }
.close__aside .ticks { margin-bottom: var(--s-6); }
.field__opt { color: var(--muted); font-weight: 400; }
.close__aside h3 { font-size: var(--t-card); font-weight: 500; }
.close__aside address { font-style: normal; color: var(--ink); }
.close__mail { font-size: var(--t-lead); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.close__mail:hover { text-decoration-color: currentColor; }
.close__note { color: var(--muted); max-width: 32ch; }
.closing .close__form { max-width: none; }
.chips label:has(input:focus-visible) { outline: 2px solid var(--action); outline-offset: 2px; }
.close__aside .ticks { gap: var(--s-3); }
.close__aside .ticks li { padding-left: 0; }
.close__aside .ticks li::before { content: none; }
/* the kit's ink ring vanishes on a checked (ink) chip: there it is drawn in the ground colour */
.chips label:has(input:checked) input:focus-visible { outline-color: var(--bg); }
/* a tablet: the words sit on the ground under the photograph, so the facts can stay and fill the first screen */
@media (min-width: 640px) and (max-width: 1023px) and (min-height: 1100px) { .hero--photo .hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); width: 100%; max-width: none; margin-top: var(--s-6); } }
@media (max-width: 1023px) { #hora .grid, #profesionalisti .grid { row-gap: var(--s-7); } }
@media (min-width: 640px) and (max-width: 1023px) { .hero--photo .hero__facts > div { grid-column: auto; } }
/* a heading-only hero (contact, legal) takes the height of its words */
main > .text-hero { min-height: 0; }
/* under 1024 the split heroes stack: picture and words take their own height, never one screen with an overflow */
/* product and range heroes take the height of their words and pack shot, never a fixed screen they can overflow */
main > .hero.hero--split:is(.product-hero, .range-hero) { height: auto; max-height: none; }
.faq__item .ticks { margin-top: var(--s-2); }
@media (max-width: 1023px) {
  .hero--split .hero-visual.pack { height: auto; min-height: 0; flex: none; }
  .hero--split .hero-visual.pack img { max-height: 46svh; }
}

/* ---------------------------------------------------------------- the catalogue (/katalog/) */
.catalogue { padding-top: var(--s-6); }
.filters { align-self: start; }
.filters__group:has(input[name="meat"]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-4); }
.filters__group:has(input[name="meat"]) legend { grid-column: 1 / -1; }
.filters__group:has(input[name="meat"]) .opt__n { margin-left: var(--s-2); }
.filters__box > summary { list-style: none; cursor: pointer; font-weight: 500; font-size: var(--t-card); margin-bottom: var(--s-4); }
.filters__box > summary::-webkit-details-marker { display: none; }
@media (min-width: 1024px) { .filters__box > summary { pointer-events: none; } }
@media (max-width: 1023px) {
  .filters { margin-bottom: var(--s-5); }
  .filters__box { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); }
  .filters__box > summary { margin: 0; min-height: 44px; display: flex; align-items: center; }
  .filters__box[open] > summary { margin-bottom: var(--s-3); }
}
.filters__on { color: var(--muted); font-weight: 400; }
.filters__group { border: 0; padding: 0; margin: 0 0 var(--s-5); min-width: 0; }
.filters__group legend { padding: 0; margin-bottom: var(--s-2); font-size: var(--t-small); color: var(--muted); }
.opt { display: flex; align-items: center; gap: var(--s-3); min-height: 36px; cursor: pointer; }
.opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); flex: none; }
.opt__n { margin-left: auto; color: var(--muted); font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.opt.is-empty { color: var(--muted); cursor: default; }
.results__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-5); }
.results__count { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.results__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.results__sort { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-small); color: var(--muted); }
.results__sort select { min-height: 40px; padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); font: inherit; font-size: var(--t-body); }
.chip { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 36px; padding: 0 var(--s-3); border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: inherit; font-size: var(--t-small); cursor: pointer; }
.chip::after { content: "×"; font-size: 1.1em; line-height: 1; }
.link-btn { border: 0; padding: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.results__none { padding: var(--s-7) 0; }
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--s-5); }
@media (max-width: 1279px) and (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-3); } }
.cat-item[hidden] { display: none; }
.cat-card { display: grid; gap: var(--s-2); align-content: start; height: 100%; }
.cat-card__pic { display: block; border-radius: var(--r-lg); background: var(--surface); overflow: hidden; margin-bottom: var(--s-2); }
.cat-card__pic img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; transition: transform var(--dur) var(--ease); }
.cat-card:hover .cat-card__pic img { transform: scale(1.03); }
.cat-card__line { margin: 0; font-size: var(--t-small); color: var(--muted); }
.cat-card__name { font-size: var(--t-card); font-weight: 500; line-height: 1.25; }
.cat-card__name a { color: var(--ink); text-decoration: none; }
.cat-card__name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cat-card__lead { margin: 0; font-size: var(--t-small); color: var(--muted); }
.cat-card__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); margin: var(--s-2) 0 0; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.cat-card__nums div { display: grid; gap: 2px; }
.cat-card__nums dt { font-size: 12px; color: var(--muted); }
.cat-card__nums dd { margin: 0; font-size: var(--t-body); font-weight: 500; font-variant-numeric: tabular-nums; }
.cat-card__cmp { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; font-size: var(--t-small); cursor: pointer; justify-self: start; }
.cat-card__cmp input { width: 18px; height: 18px; margin: 0; accent-color: var(--p-accent); }
.cat-card__cmp:has(input:disabled) { color: var(--muted); cursor: default; }
@media (max-width: 639px) { .cat-card__nums dd { font-size: var(--t-small); } }
.compare__scroll { overflow-x: auto; }
.compare__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.compare__table :is(th, td) { padding: var(--s-3); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.compare__table thead th { vertical-align: bottom; }
.compare__table thead a { display: grid; gap: var(--s-2); color: var(--ink); font-weight: 500; text-decoration: none; }
.compare__table thead img { width: 96px; height: 96px; object-fit: contain; }
.compare__table tbody th { color: var(--muted); font-size: var(--t-small); white-space: nowrap; }
.compare__table td { min-width: 150px; }
.cmp-bar { position: fixed; inset: auto 0 0; z-index: 40; background: var(--p-inv-bg); color: var(--p-inv-ink); padding: var(--s-3) 0; }
.cmp-bar__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.cmp-bar p { margin: 0; }
.cmp-bar .btn--secondary { color: var(--p-inv-ink); }
.cmp-bar .is-off { opacity: .5; pointer-events: none; }
main > .hero.cat-hero { padding-bottom: var(--s-6); }
main > section.catalogue { padding-top: 0; }
@media (max-width: 639px) {
  .compare__table { table-layout: fixed; }
  .compare__table td { min-width: 0; }
  .compare__table :is(th, td) { padding: var(--s-2); font-size: var(--t-small); overflow-wrap: anywhere; }
  .compare__table tbody th { white-space: normal; width: 30%; }
  .compare__table thead img { width: 64px; height: 64px; }
  .cmp-bar__in { gap: var(--s-3); }
  .cmp-bar p { font-size: var(--t-small); }
  .cmp-bar .btn-row { flex-wrap: nowrap; gap: var(--s-2); }
  .cmp-bar .btn { min-height: 40px; padding: 0 var(--s-3); font-size: var(--t-small); }
}
@media (max-width: 639px) { .cmp-bar .btn-row { flex-direction: row; width: auto; } .cmp-bar .btn { width: auto; } }
