:root {
  --bg: #f7f8fb;
  --text: #222;
  --muted: #666;
  --card: #fff;
  --border: #e8eaf2;
  --link: #222;

  /* Accent (UI refresh) */
  /* viac kontrastná, modernejšia oranžová */
  --accent: #f97316;
  --accent-strong: #ea580c;
  --accent-2: rgba(249, 115, 22, 0.12);
  --accent-3: rgba(249, 115, 22, 0.28);
  --secondary: #7c3f16;
  --pill-bg: #eef0f7;
  --pill-hover-bg: rgba(249, 115, 22, 0.12);

  /* Background glow (uses your accent – tweak intensities here) */
  --bg-glow-1: rgba(249, 115, 22, 0.14);
  --bg-glow-2: rgba(249, 115, 22, 0.10);
  --bg-glow-3: rgba(249, 115, 22, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Arial, sans-serif;
  background: var(--bg);
}

/* Soft accent blobs (behind content) */
.bg-blobs{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(700px 320px at 15% 10%, var(--bg-glow-1), transparent 60%),
    radial-gradient(600px 280px at 85% 20%, var(--bg-glow-2), transparent 62%),
    radial-gradient(700px 360px at 45% 92%, var(--bg-glow-3), transparent 60%);
  filter: saturate(1.05);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--accent-strong, var(--accent));

}

.card a:hover {
    text-decoration: underline;
    color: #252525
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: .65rem;
}

/* Generic cards, pills, muted text */

.card {
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    padding: 1rem 1.2rem;
    overflow: hidden;
}
.grid .card {
    padding: 0;
}

.card-similar {
  margin-top: 42px !important;
}

.single img {
  border-radius: 15px;
  margin-right: 30px;
  width: 55%;
  height: 100%;
}

.single-topper {
  display: flex;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
  margin:.5rem 0 1.5rem;
  font-weight: 500
}

.pill {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  background: var(--pill-bg, #eef0f7);
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0.1rem 0.15rem 0.5rem 0;
}

a.pill:hover {
    color: var(--accent) !important;
    background: var(--pill-hover-bg, var(--accent-2));
    text-decoration: none !important
}

.muted .pill {
    padding: 1rem 1.75rem;;
    border-radius: 8px;
    text-align: center;
    margin: 0rem 0.3rem .25rem 0;
    font-weight: 400
    
}
.single-topper h4 {
    display: inline-block;
    margin-bottom: 0;
    margin-top: 0;
    margin-left: 2px;
    font-size: .85rem
}
.pill-tag {
  display: inline-block;
  font-size: 0.85rem;
}
.muted big {
    display: block ;
    margin-top: 5px !important;
    font-weight: 600;
    font-size: 1.5em
}

.head-single {
  display: block;
  width: 40%;
  float: right;
  clear: both;
}
/* Home page */

header.site-header {
  margin-bottom: .25rem;
}

header.site-header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

section h2 {
  font-size: 1.3rem;
  margin: 0.5rem 0 1.5rem;
}
.recipe-ingredients h3 {
  margin: 2rem 0 1.2rem;
}
section h2.kat-home {
  margin: 2.5rem 0 1.5rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-cols-3 {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* Ads */

.ad-slot {
  width: 100%;
  text-align: center;
  margin: 1.25rem 0;
}

/* Kým nie je známe consent rozhodnutie, slot je inertný (bez skriptov). */
.ad-slot[data-ad-delayed="1"] {
  display: none !important;
}

.ad-slot[data-ad-fallback-shown="1"] {
  display: block !important;
}

/* Keď je reklama vložená priamo do gridu, nech zaberie celú šírku */
.grid > .ad-slot,
.archive-grid > .ad-slot {
  grid-column: 1 / -1;
  margin: 0;
}

form.search {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

form.search input[type="search"] {
  flex: 1;
  min-width: 200px;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

form.search input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-3);
}

form.search button {
  appearance: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  transition: transform .05s ease, filter .15s ease, box-shadow .15s ease;
}

form.search button:hover { filter: brightness(1.02); }
form.search button:active { transform: translateY(1px); }
form.search button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-3);
}

/* Archive grid */

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }
  .single img {
    width: 100%;
  }
    .head-single {
        width: 100%;
        clear: both
    }
    .single-topper {
      flex-direction: column;
    }
    .single-topper .first {
      margin-top: 2rem;
    }
    .recipe-ingredients .ad-slot {
      margin-left: -0.3rem;
    }
    .recipe-ingredients,
    .recipe-steps {
      margin-left: -0.75rem   
    }
    .site-header {
      padding-bottom: 5px;
    }
}


.archive-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.cardlink {
  display: block;
  color: inherit;
}

.archive-item:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  //border-color: var(--accent);
}

.archive-item a:hover {
  color: var(--muted) !important;
}

.thumb {
  aspect-ratio: 16 / 10;
  display: block;
  width: 100%;
  object-fit: cover;
  background: #eee;
}

.title {
  display: block;
  padding: 17px 20px 6px;
  text-decoration: none;
  color: #111;
  font-weight: 600;
}
.cardlink .muted:not(.box .muted) {
  padding: 0 20px;
}

/* Pagination */

.pag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  padding: 7px 10px;
  border-radius: 8px; /* zachovať tvar */
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
  transition: transform .05s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

.btn:hover { background: #fff; }
.btn:active { transform: translateY(1px); }

.btn.is-active,
.btn[aria-current="page"],
.btn[aria-pressed="true"] {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-3);
}

.btn[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

/* Single recipe layout */

.recipe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 2.6fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  clear: both;
}

@media (max-width: 900px) {
  .recipe-layout {
    grid-template-columns: 1fr;
  }
}

.recipe-ingredients,
.recipe-steps {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;

}

.recipe-steps img {
  max-width: 100%;
  border-radius: 8px;
}

.list {
  display: grid;
  gap: 0.6rem;
}
.box {
    padding: 6px 8px 8px
}
.box h3 {
    margin-bottom: 15px !important;
}
.kateg {
  padding-bottom: .75rem;
  margin-bottom: .75rem;
  border-bottom: 1px solid #ebebeb;
  padding-top: 0;
  margin-top: .75rem;
  border-top: 1px solid #ebebeb;
}
.kateg h3 {
    margin: 1rem 0 .65rem
}
.first {
  margin-top: 0
}

.site-header {
  border-bottom: 1px solid #eee;
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;

  /* keep content aligned with .wrap while header stays full-width */
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

.site-logo {
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  margin-right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  line-height: 1;

  color: var(--accent-strong, var(--accent));
}

.site-logo:hover{
  color: var(--accent-strong, var(--accent));
  text-decoration: none;
}

.site-logo-mark{
  display:block;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: inherit;
}

.site-logo-text{
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.main-nav {
  margin: 0 auto;
}

.main-nav-list {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav-list a {
  text-decoration: none;
}

.site-search {
  position: relative;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  padding: 0.5rem 0;
  max-height: 420px;
  width: min(420px, 100vw - 2rem);
  overflow-y: auto;
  z-index: 50;
}

.search-group {
  padding: 0.25rem 0.75rem;
}

.search-group + .search-group {
  border-top: 1px solid #eee;
}


.search-group-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  text-decoration: none;
  color: inherit;
}

.search-item-thumb {
  width: 40px;
  height: 40px;
  border-radius: 0.4rem;
  object-fit: cover;
  flex-shrink: 0;
}

.search-empty {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #777;
}


/* footer */
.site-footer {
  border-top: 1px solid #eee;
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-heart {
  color: red;
}



/* HAMBURGER – desktop default hidden */
.menu-toggle {
  display: none;                 /* na desktope skryté */
  border: 0;
  background: transparent;
  padding: 0.35rem;
  margin-left: auto;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  /* pre lepší hit-area */
}

.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background-color: #252525;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

/* MOBILE LAYOUT */
@media (max-width: 768px) {
  .site-header-inner {
      display: block;
  }
    
    .site-logo {
        position: absolute;
        left: 6%;
        top: 30px;
    }

  .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        position: absolute;
        /* max-width: 50%; */
        right: 6%;
        top: 30px;
    
    }

  /* NAV – default skryté, ale animovateľné (max-height + opacity) */
  .main-nav {
    order: 3;
    width: 100%;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    transition:
      max-height 0.25s ease,
      opacity 0.2s ease,
      transform 0.25s ease;
  }

  .main-nav.is-open {
    max-height: 400px;           /* stačí na pár položiek menu */
    opacity: 1;
    transform: translateY(30px);
  }

  .main-nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0;
    margin-top: 0.25rem;
    border-top: 1px solid #eee;
    gap: 0.35rem;
  }

  .main-nav-list a {
    padding: 0.25rem 0;
  }

  /* SEARCH na mobile cez celú šírku */
  .site-search {
        order: 2;
        margin-left: 0;
        width: 100%;
        margin-top: 2.25rem;
    
    }
    .site-footer-center {
      display: block;
      width: 2px;
      height: 25px;
      background: #bebebe;
    }
}

/* ANIMÁCIA NA "X" KEĎ JE OTVORENÉ MENU */
.menu-toggle.is-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.site-search {
    position: relative;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #f7f7f7;
    border-radius: 999px;
    padding: 0.2rem 0.3rem 0.2rem 0.8rem;
    border: 1px solid #ebebeb;
    transition: box-shadow 0.15s ease,
border-color 0.15s ease,
background-color 0.15s ease;
    clear: both;

}

.site-search:focus-within {
  background-color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-3);
}

.site-search-input {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    width: min(235px, 69vw);

}


/* Header search: ring má byť len na .site-search (wrapper), nie na inpute */
.site-search-input:focus,
.site-search-input:focus-visible{
  outline: none;
  box-shadow: none !important;
  border-color: transparent !important;
}
/* Safari/WebKit: odstráň default dekorácie a "vnútorný" border pri search inpute */
.site-search-input::-webkit-search-decoration,
.site-search-input::-webkit-search-cancel-button,
.site-search-input::-webkit-search-results-button,
.site-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  display: none;
}

.site-search-input::placeholder {
  color: #999;
}

.site-search-button {
    border: 0;
    border-radius: 999px;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    background: var(--accent);
    color: #fff;
    transition: background-color 0.15s ease,
transform 0.1s ease;

}

.site-search-button:hover {
  filter: brightness(1.02);
}

.site-search-button:active {
  transform: translateY(1px);
}

/* DROPDOWN – jemný dizajn + hover */
.search-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  background: #fff;
  border-radius: 0.6rem;
  border: 1px solid #e3e3e3;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  padding: 0.4rem 0;
  max-height: 420px;
  width: min(420px, 100vw - 2rem);
  overflow-y: auto;
  z-index: 50;
}

.search-group {
  padding: 0.25rem 0.8rem;
}

.search-group ul li a{
    padding: 0.4rem;
}

.search-group + .search-group {
  border-top: 1px solid #f1f1f1;
}

.search-group-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999;
  margin-bottom: 0.5rem;
  margin-left: 0.4rem;
  margin-top: 0.45rem
}

.search-group-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  text-decoration: none;
  color: inherit;
  border-radius: 0.45rem;
  transition: background-color 0.12s ease;
}

.search-item:hover {
  background-color: var(--accent-2);
}

.search-item-thumb {
  width: 40px;
  height: 40px;
  border-radius: 0.4rem;
  object-fit: cover;
  flex-shrink: 0;
}

.search-item-text {
  font-size: 0.9rem;
}

.search-empty {
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  color: #777;
}

.site-footer-right {
    text-align: right 
}

.site-footer a {
    font-weight: 600
}

.page-search {
  margin-top: 1rem;
}

/* TABY HORE */
.search-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.search-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .05s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color .15s ease;
}

.search-tab:hover{background:#fff}
.search-tab:active{transform: translateY(1px)}

.search-tab.is-active {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-3);
}

/* OBSAH TABOV */
.search-tab-panes {
  margin-top: 0.5rem;
}

.search-tab-pane {
  display: none;
}

.search-tab-pane.is-active {
  display: block;
}

/* ZOZNAM PRE KATEGÓRIE/TAGY/HASHTAGY/SUROVINY */
.search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-list li + li {
  border-top: 1px solid #f1f1f1;
}

.search-list-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  text-decoration: none;
  color: inherit;
}

.search-list-link:hover {
  text-decoration: underline;
}

.search-list-name {
  font-size: 0.9rem;
}

.search-list-count {
  font-size: 0.8rem;
  color: #777;
}

/* A11Y helper */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* =========================
   KATEGÓRIE DROPDOWN V MENU
   ========================= */
.main-nav-list .has-cats { position: relative; }

.main-nav-list .nav-cats-toggle{
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.main-nav-list .nav-cats-toggle:hover{
  text-decoration: underline; /* nech sa správa ako link */
}

.cats-dropdown{
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 320px;
  max-width: 865px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0,0,0,.10);
  z-index: 55;
  display: none;
}

.cats-dropdown::before{
  content:"";
  position:absolute;
  top:-7px;
  left: 18px;
  width: 14px;
  height: 14px;
  background: var(--card);
  transform: rotate(45deg);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.has-cats:hover .cats-dropdown,
.has-cats:focus-within .cats-dropdown,
.has-cats.is-open .cats-dropdown{
  display: block;
}

.cats-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

@media (min-width: 980px){
  .cats-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.cats-link{
  display:flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 12px;
  text-decoration: none;
  break-inside: avoid;
}

.cats-link:hover{
  background: var(--accent-2);
  text-decoration: none; /* zruší globálne underline */
}

.cats-name{
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .92rem;
}

.cats-count{
  font-size: .82rem;
  color: var(--muted);
  flex-shrink: 0;
}

.cats-empty{
  padding: 8px 10px;
  color: var(--muted);
  font-size: .9rem;
}

/* Mobile: dropdown ako "accordion" (bez absolútnej pozície) */
@media (max-width: 768px){
  .cats-dropdown{
    position: static;
    min-width: 0;
    max-width: none;
    margin-top: .55rem;
    box-shadow: none;
  }
  .cats-dropdown::before{ display:none; }
  .has-cats .cats-dropdown{ display:none; }
  .has-cats.is-open .cats-dropdown{ display:block; }
}


/* =========================================================
   OVERRIDE: KATEGÓRIE DROPDOWN + MOBILNÉ MENU (FIXES)
   prilep na úplny KONIEC style.css
   ========================================================= */

/* 1) Hover dropdown – aby nezmizol, keď ideš myšou na obláčik */
.main-nav-list .has-cats { position: relative; }

/* "mostík" medzi tlačidlom a dropdownom – myšou cez to prejdeš bez pádu hoveru */
.main-nav-list .has-cats::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:16px;              /* musí prekryť medzeru */
}

/* dropdown: menšia medzera + scroll, ak je veľa kategórií */
.cats-dropdown{
  top: calc(100% + 8px);
  left: -115px;
  max-height: min(78vh, 520px);
  overflow: auto;
}

/* 2) Zoradenie "pod sebou" (plnenie zhora nadol v stĺpcoch) */
.cats-grid{
  display:block;            /* zrušíme grid */
  column-count: 5;          /* desktop: 3 stĺpce */
  column-gap: 5px;
}

@media (max-width: 980px){
  .cats-grid{ column-count: 2; }
}

/* 3) Mobilné menu – celé prerobené, aby dávalo zmysel */
@media (max-width: 768px){
  /* header layout: flex, nie absolute chaos */
  .site-header-inner{
    display:flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    position: relative;
  }

  .site-logo{
    position: static !important;
    left: auto !important;
    top: auto !important;
    order: 1;
    margin-right: auto;
  }

  .menu-toggle{
    position: static !important;
    right: auto !important;
    top: auto !important;
    order: 2;
    margin-left: auto;
    display:flex;
  }

  .site-search{
    order: 3;
    width: 100%;
    margin-top: .6rem !important;
  }

  .main-nav{
    order: 4;
    width: 100%;
    margin-left: 0 !important;

    /* closed state */
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: none !important;
    transition: max-height .25s ease, opacity .2s ease;
  }

  .main-nav.is-open{
    max-height: 70vh;       /* nech sa to nezblázni pri veľa položkách */
    opacity: 1;

    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: .5rem .6rem;
    margin-top: .6rem;
  }

  .main-nav-list{
    flex-direction: column;
    gap: 0;
    border-top: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    width: 100%;
  }

  .main-nav-list li{
    width: 100%;
  }

  .main-nav-list li + li{
    border-top: 1px solid #f1f1f1;
  }

  /* linky v menu ako “tap targets” */
  .main-nav-list a,
  .main-nav-list .nav-cats-toggle{
    display:flex;
    align-items:center;
    justify-content: space-between;
    width: 100%;
    padding: .65rem .45rem;
    border-radius: 10px;
    text-decoration: none;
  }

  .main-nav-list a:hover,
  .main-nav-list .nav-cats-toggle:hover{
    background: var(--accent-2);
    text-decoration: none;
  }

  /* kategórie v mobile: accordion pod položkou + vlastný scroll */
  .cats-dropdown{
    position: static;
    display: none;          /* default zavreté */
    margin: .4rem 0 .25rem 0;
    padding: .45rem;
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid var(--border);
    background: #fff;
    max-height: 45vh;
    overflow: auto;
  }

  .has-cats.is-open .cats-dropdown{
    display: block;
  }

  /* v mobile vždy 1 stĺpec */
  .cats-grid{
    column-count: 1;
  }

  /* kompaktnejšie položky v dropdown */
  .cats-link{
    padding: .55rem .6rem;
    border-radius: 10px;
    margin-bottom: 6px;
  }
}
.nav-caret{
  width: 9px;
  height: 9px;
  display: inline-block;
  margin-left: .1rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);          /* vyzerá ako šípka dolu */
  transform-origin: 75% 50%;
  opacity: .7;
  transition: transform .15s ease, opacity .15s ease;
}

/* Otvorené kategórie (mobile click) – otoč dohora */
.has-cats.is-open .nav-caret{
  transform: rotate(-135deg);        /* šípka hore */
  opacity: .9;
}

/* Na desktope pri hover/focus tiež jemne zvýrazni */
.has-cats:hover .nav-caret,
.has-cats:focus-within .nav-caret{
  opacity: .9;
}
.cards .card {
    padding: 1rem 1.2rem 1.3rem
}

.archive-cat {
  margin-top: 2rem;
}

.site-search-button:focus-visible{outline:none; box-shadow: 0 0 0 4px var(--accent-3);}

.menu-toggle{transition: background-color .15s ease, box-shadow .15s ease, transform .05s ease;}
.menu-toggle:hover{background: var(--accent-2);}
.menu-toggle:active{transform: translateY(1px);}
.menu-toggle:focus-visible{outline:none; box-shadow: 0 0 0 4px var(--accent-3);}

/* Focus ring (a11y + modern look) */
:where(button, .btn, input, select, textarea).focus-ring,
:where(button, .btn, input, select, textarea):focus-visible{
  outline: none;
}
:where(input:not(.site-search-input), select, textarea):focus-visible{
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-3);
}


/* Sticky top header with blur (like mininastroje) */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(247,248,251,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232,234,242,.9);
  transition: transform .22s ease;
}
.site-header.is-hidden{
  transform: translateY(-110%);
}
