/* Master Kitchen — public site + dashboard
 *
 * Values mirror the design comp ("Master Kitchen.dc.html") 1:1. Only
 * --gold-500, --neutral-0 and --neutral-100 exist in the Vitapur DS today; the
 * rest is the comp's warm ramp. When the DS ships these as tokens, swap this
 * block for fig-tokens.css. Fonts load from /assets/fonts.css (TT Norms Pro +
 * Ivy Presto — the brand faces, not fallbacks).
 */
:root {
  --gold-500: #CEAF6F;
  --gold-800: #8A6F3C;
  --ink: #141310;
  --ink-soft: #33312C;
  --body: #5C5952;
  --muted: #9B9B96;
  --muted-dark: #6E6B64;
  --canvas: #F7F6F3;
  --surface: #FFFFFF;
  --border: #E9E6DF;
  --border-strong: #D9D5CC;
  --hairline: #F1EFE9;
  --dark: #141310;
  --dark-line: #2A2823;
  --dark-body: #B8B4AB;
  --success: #4E7A55;
  --error: #B23A33;

  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-full: 999px;

  --serif: "Ivy Presto", Georgia, "Times New Roman", serif;
  --sans: "TT Norms Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-800); text-decoration: none; }
a:hover { color: var(--gold-500); }

.shell { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.shell-wide { max-width: 1320px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.15; }
h1 { font-size: 40px; line-height: 1.12; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
em { font-style: italic; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold-800);
  text-transform: uppercase;
}
.eyebrow--gold { color: var(--gold-500); }
.eyebrow--xs { font-size: 10px; }

/* ================================================================= header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 14px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); line-height: 1; }
.brand-logo { height: 26px; display: block; }
.brand-master { font-size: 21px; font-weight: 800; letter-spacing: 0.12em; margin-top: 4px; }
.brand-kitchen { font-size: 9px; font-weight: 600; letter-spacing: 0.5em; color: var(--gold-500); margin-left: 0.5em; }

.site-nav { display: flex; align-items: center; gap: 36px; font-size: 14px; font-weight: 500; flex-wrap: wrap; }
.site-nav a { color: var(--ink); display: flex; align-items: center; gap: 6px; }
.site-nav a:hover { color: var(--gold-800); }
.site-nav a.is-active { color: var(--gold-800); }
/* Nastavitve piškotkov: samo v mobilnem meniju — namizno jih odpre
   plavajoči gumb, ki ga mkcc pod 780px skrije. */
.site-nav .nav-link-cookies {
  display: none;
  appearance: none;
  margin: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.site-nav .nav-link-cookies:hover { color: var(--gold-800); }
.mega-chevron { transition: transform 0.15s ease; }
.js-mega-trigger.is-open { color: var(--gold-800); }
.js-mega-trigger.is-open .mega-chevron { transform: rotate(180deg); }

/* -------------------------------------------------- "Recepti" mega menu */
.mega-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(20, 19, 16, 0.10);
  z-index: 49;
}
.mega-menu[hidden] { display: none; }
.mega-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 36px 40px 44px;
  display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start;
}
.mega-tabs { display: flex; flex-direction: column; gap: 4px; }
.mega-tabs-label { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.mega-tab {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border: none; border-radius: 6px;
  background: transparent; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 400; color: var(--ink);
  text-align: left;
}
.mega-tab svg { opacity: 0; transition: opacity 0.12s ease; }
.mega-tab:hover { background: var(--hairline); }
.mega-tab.is-active { background: var(--hairline); font-weight: 600; }
.mega-tab.is-active svg { opacity: 1; }
.mega-panels { position: relative; }
.mega-cards { display: none; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.mega-cards.is-active { display: grid; }
.mega-card {
  display: flex; flex-direction: column; align-items: center; gap: 13px;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 24px 14px 20px; text-align: center;
  color: var(--ink); transition: border-color 0.15s ease;
}
.mega-card:hover { border-color: var(--gold-500); color: var(--ink); }
.mega-card-icon { color: var(--gold-800); display: grid; place-items: center; }
.mega-card-label { font-size: 13.5px; font-weight: 500; }

.header-collapse { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 32px; }

.header-icons { display: flex; align-items: center; gap: 22px; }
.header-icons a { color: var(--ink); display: flex; }
.header-icons a:hover { color: var(--gold-800); }

.header-logout { margin: 0; display: flex; align-items: center; }
.header-logout--app { display: none; }
.header-logout-btn {
  border: none; background: transparent; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: var(--muted-dark); padding: 6px 0;
}
.header-logout-btn:hover { color: var(--gold-800); }
.header-icons .header-logout-btn {
  padding: 0;
  border-left: 1px solid var(--border);
  padding-left: 18px;
  margin-left: 2px;
}

/* Hamburger — hidden on desktop, shown on mobile via the responsive block. */
.nav-toggle {
  display: none;
  width: 40px; height: 40px; flex: none;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--surface); cursor: pointer; color: var(--ink);
  padding: 0; place-items: center;
}
.nav-toggle-bars { position: relative; width: 18px; height: 12px; display: block; }
.nav-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform 0.28s ease, opacity 0.2s ease, top 0.28s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav-open .nav-toggle-bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* Mobile app chrome — hidden on desktop. */
.app-tabbar,
.app-search,
.nav-backdrop { display: none; }

.header-user { display: flex; align-items: center; gap: 10px; margin: 0; }
.header-name { font-size: 13px; font-weight: 500; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold-500); color: var(--ink);
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}

/* ================================================================= hero */
.hero { position: relative; }
.hero > img { display: block; width: 100%; height: auto; }
.hero-search {
  position: absolute; top: 28px; left: 50%; transform: translateX(-50%);
  width: min(74%, 1040px);
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border-radius: var(--radius-full);
  padding: 0 22px;
  height: 46px;
  box-shadow: 0 4px 18px rgba(20, 19, 16, 0.10);
}
.hero-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 15px; color: var(--ink); min-width: 0;
}
.hero-search input::placeholder { color: var(--muted); }

/* Search autocomplete — recipe-card suggestions under the hero pill. */
.search-suggest {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(20, 19, 16, 0.16);
  padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  max-height: 400px; overflow-y: auto;
  z-index: 30;
  opacity: 0; transform: translateY(-6px);
  visibility: hidden; pointer-events: none;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s 0.28s;
}
.search-suggest.is-open {
  opacity: 1; transform: none;
  visibility: visible; pointer-events: auto;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s;
}
.suggest-card {
  display: flex; align-items: center; gap: 12px;
  padding: 8px; border-radius: 10px;
  color: var(--ink);
}
.suggest-card:hover, .suggest-card.is-active { background: var(--canvas); color: var(--ink); }
.suggest-card img, .suggest-thumb {
  width: 54px; height: 54px; flex: none;
  object-fit: cover; border-radius: 8px;
  background: var(--hairline);
}
.suggest-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.suggest-title {
  font-family: var(--serif); font-size: 16px; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.suggest-title mark { background: none; color: inherit; font-weight: 700; }
.suggest-meta { font-size: 11.5px; color: var(--muted); letter-spacing: 0.02em; }
.suggest-all {
  margin-top: 4px; padding: 10px;
  border: none; border-top: 1px solid var(--hairline);
  background: transparent; cursor: pointer;
  font-family: var(--sans); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-800);
}
.suggest-all:hover, .suggest-all.is-active { color: var(--gold-500); }
.suggest-empty { padding: 16px 12px; font-size: 13px; color: var(--muted); text-align: center; }

/* ================================================================= recepti */
.section-recipes { padding-top: 72px; padding-bottom: 40px; }
.section-intro { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.section-intro h2 { font-size: 42px; line-height: 1.1; }
.section-intro p { margin: 0; max-width: 560px; font-size: 15px; line-height: 1.6; color: var(--body); }

/* New design: every filter group is visible and clickable at once — no
   cascade. The 0fr/1fr machinery is gone; rows are plain bordered rows. */
.filter-panel {
  display: flex; flex-direction: column;
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px 26px;
}
.chip-row + .chip-row { border-top: 1px solid var(--hairline); }
.chip-row-inner {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0;
}
.chip-row-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.15em;
  color: var(--ink); min-width: 190px; text-align: left; flex: none;
}
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center;
  font-size: 12px; color: var(--body);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 5px 13px;
  height: 32px;
  background: transparent;
}
.chip:hover { border-color: var(--gold-500); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--gold-500); }
.chip-text { display: inline-flex; align-items: center; gap: 6px; }
.chip-count {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  min-width: 1.1em;
  margin-left: 2px;
  padding-left: 4px;
}
.chip.is-active .chip-count { color: var(--gold-500); opacity: 0.85; }

/* Device chips (first filter step) carry a product thumbnail. */
.chip--device {
  height: 40px;
  gap: 9px;
  padding: 4px 15px 4px 5px;
  font-weight: 500;
}
.chip-thumb {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--canvas);
}
.chip-thumb--icon {
  display: grid; place-items: center;
  color: var(--muted-dark);
  border: 1px solid var(--border-strong);
}
.chip--device.is-active .chip-thumb--icon { color: var(--gold-500); border-color: var(--gold-800); }

/* ------------------------------------------------ theme category cards */
/* Horizontal scroller of image cards above the filters (client brief). */
.theme-cats {
  display: flex; gap: 16px;
  overflow-x: auto;
  margin-top: 40px;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.theme-cat {
  position: relative;
  flex: 0 0 226px;
  height: 148px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color 0.15s ease;
}
.theme-cat img { display: block; width: 100%; height: 100%; object-fit: cover; }
.theme-cat-dim { position: absolute; inset: 0; background: rgba(20, 19, 16, 0.35); transition: background 0.15s ease; }
.theme-cat-label {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: var(--ink); color: var(--gold-500);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em;
  padding: 8px 13px;
  white-space: nowrap;
}
.theme-cat:hover { outline-color: var(--gold-500); }
.theme-cat.is-active { outline-color: var(--gold-500); }
.theme-cat.is-active .theme-cat-dim { background: rgba(20, 19, 16, 0.22); }
.theme-cat.is-active .theme-cat-label { background: var(--gold-500); color: var(--ink); }

/* ------------------------------------------------ active filters + reset */
.results-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin: 28px 0 16px;
}
.results-bar .count-line { margin: 0; }
.active-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.active-filter {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px;
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  color: var(--gold-800);
  background: #FBF8F1;
}
.active-filter span { font-weight: 700; }
.active-filter:hover { border-color: var(--gold-800); }
.reset-filters { font-size: 12.5px; font-weight: 600; }

/* ------------------------------------------------ mobile filter drawer */
/* Desktop: the drawer wrapper is invisible plumbing — panel renders inline. */
.filter-drawer-toggle { display: none; }
.filter-drawer-head, .filter-drawer-actions { display: none; }
.filter-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 19, 16, 0.45);
  z-index: 70;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.filter-backdrop.is-open { opacity: 1; }

/* ------------------------------------------------ builder (Sestavi svoj obrok) */
.builder-shell { padding-top: 56px; padding-bottom: 88px; }
.builder-panel { background: transparent; border: none; padding: 0; margin-top: 16px; }
.builder-panel .chip-row + .chip-row { border-top: none; }
.builder-step-inner { flex-direction: column; align-items: stretch; gap: 20px; padding: 36px 0 0; }
.builder-step-head { display: flex; align-items: baseline; gap: 14px; }
.builder-num { font-family: var(--family-serif, 'Ivy Presto Display', serif); font-size: 30px; color: var(--gold-500); }
.builder-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.chip.builder-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  height: auto;
  padding: 22px 14px 18px;
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
  font-size: 14px; font-weight: 500; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.chip.builder-card:hover { border-color: var(--gold-800); }
.chip.builder-card.is-active {
  border-width: 2px;
  padding: 21px 13px 17px; /* keep the card size when the border thickens */
  background: #FBF8F1;
  color: var(--ink);
}
.builder-card-img, .builder-card-icon {
  width: 110px; height: 110px; flex: none;
  border-radius: 50%;
  object-fit: cover;
}
.builder-card-icon {
  display: grid; place-items: center;
  background: var(--canvas);
  color: var(--gold-800);
}
.builder-card-label { display: inline-flex; align-items: center; gap: 6px; }
.chip.builder-card .chip-count { padding-left: 0; }
.builder-results { margin-top: 48px; border-top: 1px solid var(--border); padding-top: 24px; }
.builder-results-head { align-items: baseline; }
.builder-results-head h3 { margin: 0; font-size: 30px; font-weight: 400; }
.builder-reset { text-align: center; margin-top: 36px; }

.filter-results { transition: opacity 0.25s ease; }
.filter-results.is-loading { opacity: 0.45; pointer-events: none; }

/* Cards stagger in after an ajax swap; delay is set inline per card. */
.recipe-card.card-enter { animation: card-enter 0.4s cubic-bezier(0.4, 0, 0.2, 1) both; }
@keyframes card-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .recipe-card.card-enter { animation: none; }
  .search-suggest { transition: none; }
}

.count-line { margin: 28px 0 16px; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }

.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.recipe-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.15s ease;
}
.recipe-card:hover { box-shadow: 0 8px 24px rgba(20, 19, 16, 0.08); }
.recipe-media { position: relative; height: 230px; }
.recipe-media a:not(.bookmark-btn) { display: block; height: 100%; }
.recipe-media img { display: block; width: 100%; height: 230px; object-fit: cover; }

.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--ink); color: var(--gold-500);
  font-size: 10px; font-weight: 600; letter-spacing: 0.15em;
  padding: 5px 10px; border-radius: var(--radius-full);
  pointer-events: none;
}

.bookmark-form { position: absolute; top: 10px; right: 10px; margin: 0; }
.bookmark-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--muted-dark); cursor: pointer; padding: 0;
}
a.bookmark-btn { position: absolute; top: 10px; right: 10px; }
.bookmark-btn:hover { color: var(--gold-800); border-color: var(--gold-500); }
.bookmark-btn.is-saved { color: var(--gold-500); }

.recipe-body {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column; gap: 12px; flex: 1;
  color: var(--ink);
}
.recipe-body:hover { color: var(--ink); }
.recipe-body h3 { font-size: 21px; line-height: 1.25; }
.recipe-meta { display: flex; align-items: center; gap: 16px; font-size: 12.5px; color: var(--body); }
.recipe-meta span { display: flex; align-items: center; gap: 5px; }
.recipe-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 6px; border-top: 1px solid var(--hairline);
}
.chef-line { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 500; color: var(--ink); }
.chef-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold-500); color: var(--ink);
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.open-link { font-size: 12px; font-weight: 600; color: var(--gold-800); }

.no-results {
  text-align: center; padding: 56px 0;
  display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.no-results p { margin: 0; font-family: var(--serif); font-size: 24px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.page-link {
  min-width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.page-link.is-active { background: var(--gold-500); border-color: var(--gold-500); }

/* ================================================================= o nas */
.dark-band { background: var(--dark); margin-top: 72px; }
.dark-band-inner {
  padding-top: 96px; padding-bottom: 96px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center;
}
.dark-band-copy { display: flex; flex-direction: column; gap: 20px; }
.dark-band-copy h2 { font-size: 42px; line-height: 1.15; color: var(--gold-500); }
.dark-band-copy p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--dark-body); max-width: 520px; }

.stat-tiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--dark-line); border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.stat-tiles > div { background: var(--dark); padding: 32px 28px; display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-family: var(--serif); font-size: 36px; color: var(--gold-500); }
.stat-cap { font-size: 12px; letter-spacing: 0.1em; color: var(--dark-body); }

/* ================================================================= chefs */
.section-chefs { padding-top: 96px; padding-bottom: 96px; }
.section-chefs .section-intro { margin-bottom: 48px; }
.chef-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 960px; margin: 0 auto; }
.chef-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.chef-card img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; display: block; }
.chef-card h3 { margin-top: 8px; font-style: italic; font-size: 28px; }
.chef-card p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--body); }
.chef-card a { font-size: 13px; font-weight: 500; }

/* ================================================================= products */
.products-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.products-band > .shell-wide { padding-top: 96px; padding-bottom: 96px; }
.products-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 44px; gap: 24px; }
.products-head > div { display: flex; flex-direction: column; gap: 14px; }
.rosmarino-logo { height: 30px; width: auto; align-self: flex-start; }
.products-head h2 { font-size: 42px; line-height: 1.1; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.products-more { display: flex; justify-content: center; margin-top: 36px; }
.products-more .btn.is-loading { opacity: 0.65; pointer-events: none; }
.product-card {
  display: flex; flex-direction: column;
  background: var(--canvas); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; color: var(--ink);
  transition: box-shadow 0.15s ease;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(20, 19, 16, 0.08); color: var(--ink); }
.product-media { position: relative; background: var(--surface); padding: 20px; }
.product-media img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.discount {
  position: absolute; top: 12px; left: 12px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold-500); color: var(--ink);
  font-size: 13px; font-weight: 700;
  display: grid; place-items: center;
}
.product-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { font-size: 18px; line-height: 1.3; }
.product-body p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--body); }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 10px; }
.price { font-size: 17px; font-weight: 700; }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }

/* ================================================================= novice */
.section-newsletter {
  padding-top: 96px; padding-bottom: 96px;
  text-align: center;
  display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.section-newsletter h2 { font-size: 42px; }
.section-newsletter > p { margin: 0; max-width: 480px; font-size: 15px; line-height: 1.6; color: var(--body); }
.newsletter-form { display: flex; gap: 12px; margin-top: 16px; width: 440px; max-width: 100%; }
.newsletter-form .input { flex: 1; }
.newsletter-thanks { margin: 16px 0 0; font-size: 15px; font-weight: 600; color: var(--success); }
.newsletter-fine { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* ================================================================= footer */
.site-footer { background: var(--dark); color: var(--dark-body); }
.footer-cols {
  max-width: 1320px; padding: 72px 40px 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 2px; }
.footer-brand .brand-logo { height: 24px; width: auto; align-self: flex-start; }
.footer-master { font-size: 18px; font-weight: 800; letter-spacing: 0.12em; color: #FFFFFF; margin-top: 6px; }
.footer-kitchen { font-size: 8px; font-weight: 600; letter-spacing: 0.5em; color: var(--gold-500); }
.footer-brand p { margin: 14px 0 0; font-size: 13px; line-height: 1.6; max-width: 280px; }

.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.footer-head { font-size: 11px; font-weight: 600; letter-spacing: 0.15em; color: var(--gold-500); }
.footer-col a { color: var(--dark-body); }
.footer-col a:hover { color: var(--gold-500); }

.footer-base {
  max-width: 1320px; padding: 24px 40px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--dark-line);
}
.signoff { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--gold-500); }
.footer-social { display: flex; gap: 18px; }
.footer-social a { color: var(--dark-body); display: flex; }
.footer-social a:hover { color: var(--gold-500); }
.copyright { font-size: 12px; color: var(--muted-dark); }

/* ================================================================= detail */
.breadcrumb { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb-here { color: var(--ink); }

.detail-shell { max-width: 1100px; margin: 0 auto; padding: 36px 40px 88px; }

.detail-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 460px; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-hero .badge { top: 16px; left: 16px; padding: 6px 12px; font-size: 11px; }

.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-top: 32px; flex-wrap: wrap; }
.detail-title { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.chef-sig { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--gold-800); }
.detail-intro { margin: 0; font-size: 15px; line-height: 1.65; color: var(--body); }
.theme-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.theme-row .chip { height: auto; padding: 4px 12px; }
.detail-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.detail-actions form { margin: 0; }

.meta-box {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; min-width: 220px;
}
.meta-box > div { background: var(--surface); padding: 16px 22px; display: flex; justify-content: space-between; gap: 24px; }
.meta-box span { font-size: 12px; color: var(--muted); }
.meta-box strong { font-size: 13px; font-weight: 600; }

.detail-grid { display: grid; grid-template-columns: 380px 1fr; gap: 48px; margin-top: 48px; align-items: start; }
.ingredients-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 30px;
  transition: opacity 0.2s ease;
}
.ingredients-card.is-loading { opacity: 0.5; pointer-events: none; }
.ingredients-card h2 { font-size: 26px; margin-bottom: 18px; }
.servings-row {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 16px; border-bottom: 1px solid var(--hairline);
  font-size: 13px; font-weight: 600;
}
.stepper { display: flex; align-items: center; border: 1.5px solid var(--border-strong); border-radius: var(--radius-md); overflow: hidden; }
.stepper-btn {
  width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--canvas); color: var(--ink); font-size: 16px;
}
.stepper-btn:hover { background: var(--gold-500); color: var(--ink); }
.stepper-val { width: 36px; text-align: center; font-size: 14px; font-weight: 700; }
.ingredient-list { list-style: none; margin: 0; padding: 0; }
.ingredient-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--hairline); font-size: 14px;
}
.ingredient-list li:last-child { border-bottom: none; }
.ingredient-list strong { font-weight: 600; white-space: nowrap; }

.steps-col h2 { font-size: 26px; margin-bottom: 24px; }
.step-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.step-list li { display: flex; gap: 20px; }
.step-num { font-family: var(--serif); font-size: 26px; color: var(--gold-500); min-width: 40px; }
.step-list p { margin: 4px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }

/* Steps sit beside a sticky 9:16 clip on desktop; they stack on mobile. The
   video is first in source order so it leads on narrow screens, and is placed
   into the right-hand column explicitly on wide ones. */
.steps-layout.has-video {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 36px;
  align-items: start;
}
.steps-layout.has-video .step-list { grid-column: 1; grid-row: 1; }
.step-video { grid-column: 2; grid-row: 1; position: sticky; top: 84px; }
.step-video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 12px 32px rgba(20, 19, 16, 0.18);
}
.step-video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.step-video-tag {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 9px; border-radius: var(--radius-full);
  background: rgba(20, 19, 16, 0.6); color: #fff;
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  backdrop-filter: blur(4px);
}
.step-video-play {
  position: absolute; inset: 0; margin: auto;
  width: 56px; height: 56px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(20, 19, 16, 0.25);
  transition: transform 0.2s ease, opacity 0.25s ease;
}
.step-video-play:hover { transform: scale(1.08); }
.step-video-frame.is-playing .step-video-play { opacity: 0; pointer-events: none; }
.step-video-cap {
  margin: 12px 2px 0; font-size: 12.5px; line-height: 1.5;
  color: var(--muted); font-style: italic;
}

.share-row {
  display: flex; align-items: center; gap: 16px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
}
.share-label { font-size: 12px; font-weight: 600; letter-spacing: 0.15em; color: var(--muted); }
.share-row > a { color: var(--body); display: flex; }
.share-row > a:hover { color: var(--gold-800); }
.print-btn {
  display: flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--border-strong); background: var(--surface);
  border-radius: var(--radius-md); padding: 7px 14px;
  font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink);
  text-decoration: none;
}
.print-btn:hover { border-color: var(--gold-800); color: var(--gold-800); }

.related { margin-top: 72px; }
.related h2 { font-size: 30px; margin-bottom: 28px; }

.cooked-on {
  margin-top: 36px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.cooked-on-row { display: flex; align-items: center; gap: 16px; padding-top: 12px; }
.cooked-on-row img { width: 72px; height: 72px; object-fit: contain; background: var(--surface); border-radius: var(--radius-md); flex: none; }
.cooked-on-row > div { flex: 1; }

/* ================================================================= dashboard */
.page { padding-block: 40px 72px; }

.flash {
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 14px;
  border: 1px solid;
}
.flash--success { background: #E5EDE6; border-color: var(--success); color: #2F4A34; }
.flash--error { background: #F4E0DE; border-color: var(--error); color: #7A2721; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--radius-md);
  padding: 10px 18px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
  background: var(--gold-500); color: var(--ink);
}
.btn:hover { background: #B5965A; color: var(--ink); }
.btn--outline { background: transparent; border: 1.5px solid var(--border-strong); color: var(--ink); }
.btn--outline:hover { background: var(--canvas); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--dark-line); color: #fff; }
.btn--sm { padding: 6px 12px; font-size: 12px; }
.btn-link {
  background: none; border: none; padding: 0;
  font-family: inherit; font-size: 13px; color: var(--body);
  cursor: pointer; text-decoration: underline;
}
.btn-link:hover { color: var(--ink); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-body { padding: 20px 22px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { font-size: 34px; }
.page-head p { margin: 8px 0 0; color: var(--body); max-width: 560px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--dark-line);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
}
.stat { background: var(--dark); padding: 26px 24px; display: flex; flex-direction: column; gap: 4px; }
.stat-value { font-family: var(--serif); font-size: 32px; color: var(--gold-500); }
.stat-label { font-size: 11px; letter-spacing: 0.1em; color: var(--dark-body); text-transform: uppercase; }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.dash-grid .recipe-card .card-body,
.recipe-card .card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.recipe-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--hairline); }
.recipe-actions form { margin: 0; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--body); }
.input {
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0 14px;
  height: 44px;
  font-family: inherit;
  font-size: 14px;
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: 2px solid var(--gold-500); outline-offset: 1px; border-color: var(--gold-500); }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; min-height: 90px; }
select.input { appearance: auto; }
.field-error { font-size: 12px; color: var(--error); }
.input--error { border-color: var(--error); }
.hint { font-size: 12px; color: var(--muted-dark); }

.auth-shell { max-width: 420px; margin: 72px auto; }
.auth-shell .card-body { padding: 32px 32px 28px; }
.auth-shell h1 { margin-bottom: 6px; }
.auth-alt { margin-top: 20px; font-size: 13px; color: var(--body); text-align: center; }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 16px;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 14px; font-weight: 600; text-decoration: none;
}
.btn-google:hover { border-color: var(--gold-800); background: var(--canvas); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.shopping-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.shopping-item:last-child { border-bottom: none; }
.shopping-item.is-ticked .shopping-name,
.shopping-item.is-ticked .shopping-qty { text-decoration: line-through; color: var(--muted); }
.shopping-name { flex: 1; font-size: 14px; }
.shopping-qty { font-weight: 600; font-size: 14px; white-space: nowrap; }
.shopping-sources { display: block; font-size: 11px; color: var(--muted-dark); }
.tick-button {
  width: 22px; height: 22px; flex: none;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 12px; color: var(--ink);
  padding: 0;
}
.tick-button:hover { border-color: var(--gold-500); }
.is-ticked .tick-button { background: var(--gold-500); border-color: var(--gold-500); }

/* Title + thumb on their own row so long names aren’t crushed by the controls. */
.list-recipe {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.list-recipe:last-child { border-bottom: none; }
.list-recipe-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.list-recipe img {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex: none;
}
.list-recipe-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.list-recipe-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.list-recipe.has-thumb .list-recipe-actions { padding-left: 68px; }
.list-recipe-remove { margin: 0; }
.servings-form { display: flex; align-items: center; gap: 8px; margin: 0; }
.servings-form .input { height: 32px; width: 56px; padding: 0 8px; font-size: 13px; text-align: center; }

/* Moj recept — dashboard list + edit sheet */
.cook-version-list { display: flex; flex-direction: column; gap: 0; }
.cook-version-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--hairline);
}
.cook-version-row:last-child { border-bottom: none; }
.cook-version-thumb {
  width: 72px; height: 72px; flex: none;
  border-radius: var(--radius-md); object-fit: cover;
  background: var(--canvas);
}
.cook-version-thumb--empty {
  display: block;
  border: 1px dashed var(--border-strong);
  background:
    linear-gradient(135deg, transparent 46%, var(--border) 46%, var(--border) 54%, transparent 54%),
    var(--canvas);
}
.cook-version-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cook-version-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; width: 100%; }
.cook-version-title { font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; }
.cook-version-title:hover { color: var(--gold-800); }
.cook-version-notes { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.cook-status {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: var(--radius-full);
  background: var(--canvas); color: var(--muted-dark);
}
.cook-status--pending { background: #f3ead7; color: var(--gold-800); }
.cook-status--approved { background: #e4efe6; color: #2f5d3a; }
.cook-status--rejected { background: #f3e4e4; color: #8a3a3a; }

.cook-sheet {
  position: fixed; inset: 0; z-index: 90;
  display: none;
}
.cook-sheet.is-open { display: block; }
.cook-sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 19, 16, 0.45);
}
.cook-sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: min(92vh, 720px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: 18px 18px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  box-shadow: 0 -12px 40px rgba(20, 19, 16, 0.18);
  padding: 0 20px calc(24px + env(safe-area-inset-bottom, 0px));
}
.cook-sheet-bar {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 16px 0 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 16px;
}
.cook-sheet-bar h2 { margin: 0; font-size: 22px; flex: 1; }
.cook-sheet-close {
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: var(--canvas); color: var(--ink);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.cook-sheet-recipe { margin: 0 0 16px; font-size: 14px; color: var(--muted-dark); font-weight: 600; }
.cook-sheet-form .btn { width: 100%; margin-top: 8px; }
html.cook-sheet-open { overflow: hidden; }
.cook-photo-field { display: block; margin-bottom: 18px; }
.cook-photo-field > input[type="file"] {
  position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden;
}
.cook-photo-preview {
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--canvas);
  border: 1px dashed var(--border-strong);
}
.cook-photo-preview img,
.cook-camera video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cook-photo-preview:not(.is-empty) { border-style: solid; }
.cook-photo-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 24px; text-align: center; color: var(--muted-dark);
}
.cook-photo-placeholder strong { font-size: 14px; color: var(--ink); }
.cook-photo-actions {
  display: flex; gap: 8px;
  margin-top: 10px;
}
.cook-icon-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  flex: 1;
  min-height: 52px;
  margin: 0;
  padding: 8px 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cook-icon-btn svg { display: block; flex: none; }
.cook-icon-btn:hover,
.cook-icon-btn:focus-visible {
  border-color: var(--gold-500);
  color: var(--gold-800);
  outline: none;
}
.cook-icon-btn--primary {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--ink);
}
.cook-icon-btn--primary:hover,
.cook-icon-btn--primary:focus-visible {
  background: var(--gold-800);
  border-color: var(--gold-800);
  color: #fff;
}
.cook-camera {
  margin-top: 10px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--border);
}
.cook-camera[hidden] { display: none !important; }
.cook-camera video {
  aspect-ratio: 4 / 3;
  background: #111;
}
.cook-camera-actions {
  display: flex; gap: 8px; justify-content: center;
  padding: 8px; background: var(--surface);
}
.cook-camera-actions .cook-icon-btn { flex: 1; max-width: 140px; }
.cook-camera-hint { margin-top: 8px; color: var(--error); }

/* Public recipe — approved user cook versions */
.user-cooks { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.user-cooks > .eyebrow { display: block; margin-bottom: 16px; }
.user-cook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.user-cook-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--surface);
}
.user-cook-card img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-md); background: var(--canvas);
}
.user-cook-card strong { font-size: 14px; }
.user-cook-card p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }

.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.device-card { display: flex; flex-direction: column; }
.device-card.is-owned { border-color: var(--gold-500); box-shadow: 0 0 0 1px var(--gold-500); }
.device-media { background: var(--surface); padding: 18px; position: relative; }
.device-media img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.device-card .card-body { background: var(--canvas); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.spec-list { margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--body); }
.spec-list li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.spec-key { color: var(--muted-dark); text-transform: capitalize; }

/* Moji aparati — tiny owned tiles + ajax picker */
.owned-device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.owned-device-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 10px 8px 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
  min-height: 112px;
  box-sizing: border-box;
}
.owned-device-card--add {
  border-style: dashed;
  border-color: var(--border-strong);
  background: var(--canvas);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.owned-device-card--add:hover,
.owned-device-card--add:focus-visible {
  border-color: var(--gold-500);
  color: var(--gold-800);
  outline: none;
}
.owned-device-plus {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 22px; line-height: 1; font-weight: 400;
}
.owned-device-img {
  width: 48px; height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--canvas);
  flex: none;
}
.owned-device-img--empty {
  display: block;
  border: 1px dashed var(--border);
}
.owned-device-name {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}
.owned-device-remove {
  position: absolute; top: 2px; right: 2px;
  width: 22px; height: 22px;
  border: none; border-radius: 50%;
  background: rgba(20, 19, 16, 0.06);
  color: var(--muted-dark);
  font-size: 14px; line-height: 1;
  cursor: pointer; padding: 0;
}
.owned-device-remove:hover { background: rgba(20, 19, 16, 0.12); color: var(--ink); }

.device-picker {
  position: fixed; inset: 0; z-index: 90;
  display: none;
}
.device-picker.is-open { display: block; }
.device-picker-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 19, 16, 0.45);
}
.device-picker-panel {
  position: absolute; left: 0; right: 0; bottom: 0; top: auto;
  max-height: min(88vh, 640px);
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: 18px 18px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  box-shadow: 0 -12px 40px rgba(20, 19, 16, 0.18);
  overflow: hidden;
}
.device-picker-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px 8px;
  flex: none;
}
.device-picker-bar h2 { margin: 0; font-size: 20px; flex: 1; }
.device-picker-back {
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: var(--canvas); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.device-picker-search {
  position: relative;
  padding: 0 16px 10px;
  flex: none;
}
.device-picker-search .input { padding-right: 36px; }
.device-picker-clear {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: none; border-radius: 50%;
  background: transparent; color: var(--muted-dark);
  font-size: 18px; cursor: pointer; margin-top: -5px;
}
.device-picker-results {
  flex: 1; overflow-y: auto;
  padding: 0 12px calc(20px + env(safe-area-inset-bottom, 0px));
  position: relative; opacity: 1; visibility: visible; pointer-events: auto;
  transform: none; max-height: none;
}
.device-picker-results .suggest-card {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--canvas);
  margin-bottom: 8px;
  cursor: pointer;
  font: inherit; text-align: left; color: inherit;
}
.device-picker-results .suggest-card:hover { border-color: var(--gold-500); }
html.device-picker-open { overflow: hidden; }

.empty {
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--body);
}
.empty p { font-family: var(--serif); font-size: 22px; color: var(--ink); margin: 0 0 8px; }

.stars { display: inline-flex; gap: 2px; color: var(--gold-500); font-size: 13px; }
.section { margin-bottom: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }

/* The /admin area is styled by Tabler (assets/vendor/tabler/) with overrides in
   admin-theme.css — it does not load this stylesheet. */

/* ================================================================= responsive */
@media (max-width: 1100px) {
  .recipe-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .dark-band-inner { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 780px) {
  .split, .form-grid, .detail-grid, .chef-grid { grid-template-columns: 1fr; }
  .recipe-grid, .product-grid { grid-template-columns: 1fr; }

  /* Full-width controls under the title — no cramped side column. */
  .list-recipe.has-thumb .list-recipe-actions { padding-left: 0; }
  .list-recipe-actions { justify-content: stretch; }
  .list-recipe-actions .servings-form { flex: 1; justify-content: flex-end; }

  .cook-sheet-panel {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
  .user-cook-grid { grid-template-columns: 1fr; }
  .owned-device-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
  .device-picker-panel {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    max-height: min(85vh, 640px);
  }

  /* --- header: logo only on top (smaller); actions live in the tab bar --- */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .header-inner {
    position: relative;
    padding: 8px 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-content: unset;
    gap: 0;
  }
  .brand { grid-column: 2; justify-self: center; }
  .brand-logo { height: 18px; }
  .brand-master { font-size: 14px; margin-top: 2px; letter-spacing: 0.1em; }
  .brand-kitchen { font-size: 7px; letter-spacing: 0.42em; }

  .nav-toggle--header { display: none !important; }
  .header-icons { display: none; }
  .header-logout--desktop { display: none; }
  .header-logout--app {
    display: flex;
    grid-column: 3;
    justify-self: end;
    align-self: center;
  }
  .header-logout--app .header-logout-btn {
    font-size: 12px;
    letter-spacing: 0.02em;
    padding: 8px 4px;
  }
  /* Odjava lives top-right on mobile; keep avatar/name in the sheet only. */
  .header-user .btn-link { display: none; }

  /* Backdrop sits above page content. The sheet lives inside .site-header, so
     when the menu is open the header must jump above this layer — otherwise
     the dimmer paints over the whole bottom sheet (stacking-context trap). */
  .nav-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: rgba(20, 19, 16, 0.45);
    z-index: 55;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.25s ease, visibility 0s 0.25s;
  }
  html.nav-open .nav-backdrop,
  .nav-open .nav-backdrop {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity 0.25s ease, visibility 0s;
  }
  .site-header.nav-open {
    z-index: 66;
  }

  /* Bottom sheet menu (secondary links) */
  .header-collapse {
    position: fixed;
    left: 0; right: 0; bottom: 0; top: auto;
    flex-direction: column; align-items: stretch; gap: 0; flex: none;
    background: var(--surface);
    border-radius: 18px 18px 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
    box-shadow: 0 -12px 40px rgba(20, 19, 16, 0.18);
    padding: 10px 20px calc(88px + env(safe-area-inset-bottom, 0px));
    max-height: min(72vh, 520px);
    overflow-y: auto;
    z-index: 1;
    transform: translateY(110%);
    opacity: 1;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .header-collapse::before {
    content: "";
    display: block;
    width: 36px; height: 4px;
    border-radius: 4px;
    background: var(--border-strong);
    margin: 4px auto 14px;
  }
  .nav-open .header-collapse { transform: translateY(0); }
  .site-nav { flex-direction: column; align-items: stretch; gap: 0; width: 100%; font-size: 16px; }
  .site-nav a { padding: 14px 2px; border-bottom: 1px solid var(--hairline); }
  /* Shopping lives in the tab bar when logged in — skip the duplicate in the sheet. */
  .site-nav .nav-link-shopping { display: none; }
  /* Piškotki: v mobilnem meniju namesto plavajočega gumba. */
  .site-nav .nav-link-cookies {
    display: block;
    width: 100%;
    padding: 14px 2px;
    border-bottom: 1px solid var(--hairline);
  }
  .header-user { padding-top: 14px; gap: 14px; flex-wrap: wrap; }

  /* Bottom tab bar — primary actions always outside the hamburger */
  .app-tabbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: stretch;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    width: 100%;
    box-sizing: border-box;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(20, 19, 16, 0.06);
  }
  .app-tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    margin: 0;
    padding: 6px 4px;
    border: none; border-radius: 0;
    background: transparent;
    color: var(--muted-dark);
    font-family: var(--sans);
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
  }
  /* Don’t inherit the header hamburger’s 40×40 boxed button styles.
     Explicitly re-center — place-items:unset was wiping align-items:center. */
  .app-tabbar .app-tab.nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    min-height: 52px;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 6px 4px;
  }
  .app-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: none;
    margin-inline: auto;
  }
  .app-tab svg { display: block; width: 22px; height: 22px; margin: 0 auto; }
  .app-tab > span:not(.app-tab-icon) {
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }
  .app-tab.is-active,
  .app-tab:hover { color: var(--gold-800); }
  .nav-open .app-tab.nav-toggle { color: var(--gold-800); }
  /* Same 22×22 box as the other tab SVGs; animate lines into an X when open. */
  .app-tab-menu-line {
    transform-origin: 8px 8px;
    transition: transform 0.28s ease, opacity 0.2s ease;
  }
  .nav-open .app-tab-menu-line--1 { transform: translateY(3.5px) rotate(45deg); }
  .nav-open .app-tab-menu-line--2 { opacity: 0; }
  .nav-open .app-tab-menu-line--3 { transform: translateY(-3.5px) rotate(-45deg); }

  /* Full-screen search sheet */
  .app-search {
    display: block;
    position: fixed; inset: 0;
    z-index: 80;
    background: var(--canvas);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.22s ease, visibility 0s 0.22s;
  }
  .app-search.is-open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity 0.22s ease, visibility 0s;
  }
  .app-search-sheet {
    display: flex; flex-direction: column;
    height: 100%;
    padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  }
  .app-search-form {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }
  .app-search-back,
  .app-search-clear {
    flex: none;
    width: 40px; height: 40px;
    border: none; border-radius: var(--radius-md);
    background: transparent; color: var(--ink);
    cursor: pointer;
    font-size: 22px; line-height: 1;
    display: grid; place-items: center;
  }
  .app-search-input {
    flex: 1; min-width: 0;
    height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
    padding: 0 16px;
    font-family: var(--sans); font-size: 16px;
    background: var(--canvas); color: var(--ink);
    outline: none;
  }
  .app-search-input:focus { border-color: var(--gold-500); }
  .app-search-results {
    position: static;
    flex: 1;
    max-height: none;
    overflow-y: auto;
    border: none; border-radius: 0;
    box-shadow: none;
    background: var(--canvas);
    padding: 10px 12px 24px;
    opacity: 1; transform: none;
    visibility: visible; pointer-events: auto;
  }
  .app-search-results:not(.is-open):empty { display: none; }
  .app-search .suggest-card {
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 8px;
  }
  .app-search .suggest-card img,
  .app-search .suggest-thumb { width: 64px; height: 64px; }
  .app-search .suggest-title { white-space: normal; font-size: 18px; }
  .chrome-site .hero-search { display: none; }

  /* Mega menu is desktop-hover only; the mobile sheet menu covers this. */
  .mega-menu { display: none !important; }
  .mega-chevron { display: none; }

  /* --- filter panel → fixed bottom-sheet drawer --- */
  .shell-wide { padding-left: 16px; padding-right: 16px; }
  .chip-row-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .chip-row-label { text-align: left; min-width: 0; }

  /* Fixed trigger pill, floating above the app tab bar. */
  body.js-filters .filter-drawer-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    position: fixed;
    left: 50%; transform: translateX(-50%);
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    background: var(--ink); color: var(--gold-500);
    border: none; border-radius: var(--radius-full);
    padding: 12px 22px;
    font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
    box-shadow: 0 8px 24px rgba(20, 19, 16, 0.28);
    cursor: pointer;
  }
  .filter-count {
    min-width: 18px; height: 18px;
    border-radius: var(--radius-full);
    background: var(--gold-500); color: var(--ink);
    font-size: 11px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 5px;
  }

  body.js-filters .filter-drawer {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 80;
    background: var(--surface);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 40px rgba(20, 19, 16, 0.22);
    max-height: 78vh;
    display: flex; flex-direction: column;
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.3s;
  }
  body.js-filters .filter-drawer.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
  }
  body.js-filters .filter-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px 10px;
    font-size: 15px; font-weight: 700;
    flex: none;
  }
  body.js-filters .filter-drawer-close {
    border: none; background: transparent;
    font-size: 26px; line-height: 1;
    color: var(--muted-dark);
    cursor: pointer; padding: 0 4px;
  }
  body.js-filters .filter-drawer .filter-panel {
    margin: 0;
    border: none; border-radius: 0;
    padding: 0 20px;
    overflow-y: auto;
    flex: 1;
  }
  body.js-filters .filter-drawer-actions {
    display: flex; gap: 10px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    flex: none;
  }
  body.js-filters .filter-drawer-actions .btn { flex: 1; justify-content: center; }

  /* --- theme cards + builder --- */
  .theme-cat { flex: 0 0 180px; height: 120px; }
  .builder-options { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .builder-card-img, .builder-card-icon { width: 84px; height: 84px; }

  /* --- recipe detail: keep every block inside the viewport --- */
  .detail-shell { padding: 24px 16px 64px; }
  .detail-hero { height: auto; }
  .detail-grid { gap: 28px; }
  .ingredients-card, .steps-col { min-width: 0; }
  .ingredients-card { padding: 24px 20px; }
  .ingredient-list li { gap: 12px; }
  .ingredient-list strong { white-space: normal; text-align: right; }
  .meta-box { width: 100%; min-width: 0; }

  /* Reset desktop row/column so video + steps stack instead of sharing one cell. */
  .steps-layout.has-video { grid-template-columns: 1fr; gap: 20px; }
  .steps-layout.has-video .step-list,
  .steps-layout.has-video .step-video {
    grid-column: 1;
    grid-row: auto;
  }
  .step-video { position: static; width: 100%; max-width: 300px; margin: 0 auto; }

  .cooked-on-row { flex-wrap: wrap; }
  .cooked-on-row > div { min-width: 0; }
  .cooked-on-row .btn { flex: 1 1 100%; margin-top: 4px; text-align: center; }

  /* --- home / bands --- */
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .footer-base { flex-direction: column; gap: 14px; }
  .products-head { flex-direction: column; align-items: flex-start; }
  .hero-search { position: relative; top: auto; left: auto; transform: none; width: auto; margin: 12px 16px; }
  .hero { display: flex; flex-direction: column-reverse; }
  h1 { font-size: 30px; }
  .section-intro h2, .dark-band-copy h2, .products-head h2, .section-newsletter h2 { font-size: 30px; }
}

/* -------------------------------------------------- header CTA (matches the front-page nav) */
.btn-rezervacija {
  background: var(--gold-500);
  color: #000;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 11px 18px;
  border-radius: 4px;
  white-space: nowrap;
  text-decoration: none;
}
.btn-rezervacija:hover { background: #B5965A; color: #000; }
@media (max-width: 900px) {
  .btn-rezervacija { align-self: stretch; text-align: center; margin-top: 12px; }
}

/* -------------------------------------------------- MK footer (shared with the front page) */
.mk-footer a { font-size: 14px; color: #FFFFFF; text-decoration: none; }
.mk-footer a:hover { color: #CEAF6F; }
@media (max-width: 900px) {
  .mk-footer-cols { grid-template-columns: 1fr !important; gap: 32px !important; }
  .mk-footer > div { padding: 44px 20px 28px !important; }
}

/* -------------------------------------------------- recepti hero (new design: text across the photo) */
.hero-mk { height: 100svh; min-height: 640px; overflow: hidden; }
.hero-mk > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-mk-grad {
  position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.38) 55%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.hero-mk-copy {
  position: absolute; top: 58%; left: 0; right: 0; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 22px; align-items: center;
  text-align: center; padding: 0 32px;
}
.hero-mk-copy h1 { margin: 0; font-size: 70px; line-height: 1.1; color: #F7F6F3; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45); }
.hero-mk-copy h1 span { font-family: var(--sans); font-weight: 700; }
.hero-mk-copy h1 em { font-family: var(--serif); font-weight: 400; }
.hero-mk-copy p { margin: 0; max-width: 640px; font-size: 19px; line-height: 1.35; color: #F7F6F3; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5); text-wrap: pretty; }
@media (max-width: 900px) {
  .hero-mk { height: 78svh; min-height: 480px; }
  .hero-mk-copy { top: 55%; gap: 14px; padding: 0 20px; }
  .hero-mk-copy h1 { font-size: clamp(32px, 9vw, 44px); }
  .hero-mk-copy p { font-size: 15px; line-height: 1.5; }
}
