/* =========================================================
   nf-mobilbar.css  |  huboveextrakty.sk
   Spodná mobilná lišta. Verzia 8, 18. 11. 2026
   Farby berie z nf-paleta.css (musí sa načítať skôr).
   Hex za čiarkou vo var() je záloha, ak by paleta chýbala.
   ========================================================= */

:root {
  /* Farby: z palety */
  --nfmb-bg: var(--nf-biela, #fff);
  --nfmb-text: var(--nf-uhol, #1f1f1d);
  --nfmb-active: var(--nf-zelena, #4a7c35);   /* aktuálna stránka: navigácia = zelená */
  --nfmb-cart-bg: var(--nf-nakup, #1a7aae);   /* košík: nákup = modrá */
  --nfmb-cart-icon: var(--nf-biela, #fff);
  --nfmb-cart-shadow: rgba(26, 122, 174, .35); /* tieň košíka, modrá z palety na 35 % */
  --nfmb-badge-bg: var(--nf-uhol, #1f1f1d);
  --nfmb-badge-text: var(--nf-biela, #fff);
  --nfmb-shadow: rgba(0, 0, 0, .10);

  /* Rozmery */
  --nfmb-cart-size: 64px;
  --nfmb-notch: 40px;
  --nfmb-h: 64px;
  --nfmb-z: 9990;
}

.nfmb {
  display:none;
}

@media (max-width:767px) {
  .nfmb,.nfmb::before {
    right:0;
    bottom:0;
    left:0;
  }
  .nfmb {
    position:fixed;
    z-index:var(--nfmb-z);
    display:flex;
    align-items:stretch;
    justify-content:space-around;
    height:calc(var(--nfmb-h) + env(safe-area-inset-bottom));
    padding:0 4px env(safe-area-inset-bottom);
    margin:0;
    background:0 0;
    box-sizing:border-box;
    filter:drop-shadow(0-2px 8px var(--nfmb-shadow));
    transform:translateY(0);
    transition:transform .25s ease;
    font-family:inherit;
  }
  .nfmb::before {
    content:"";
    position:absolute;
    top:0;
    z-index:-1;
    background:var(--nfmb-bg);
    -webkit-mask:radial-gradient(circle at 50%0,transparent var(--nfmb-notch),#000 calc(var(--nfmb-notch) + 1px));
    mask:radial-gradient(circle at 50%0,transparent var(--nfmb-notch),#000 calc(var(--nfmb-notch) + 1px));
  }
  .nfmb.is-hidden {
    transform:translateY(110%);
  }
  .nfmb__it {
    flex:1 1 0;
    min-width:0!important;
    min-height:0!important;
    width:auto!important;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    height:var(--nfmb-h);
    padding:0!important;
    margin:0!important;
    background:0 0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    color:var(--nfmb-text)!important;
    font-size:11px!important;
    font-weight:700;
    line-height:1!important;
    letter-spacing:0;
    text-transform:none!important;
    text-decoration:none!important;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }
  .nfmb__it svg {
    width:26px;
    height:26px;
    display:block;
    flex:none;
  }
  .nfmb__it.is-on {
    color:var(--nfmb-active)!important;
  }
  .nfmb__it:focus-visible {
    outline:2px solid var(--nfmb-active);
    outline-offset:-4px;
    border-radius:8px!important;
  }
  .nfmb__cart {
    justify-content:flex-start;
  }
  .nfmb__badge,.nfmb__cartc {
    display:flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
  }
  .nfmb__cartc {
    position:relative;
    width:var(--nfmb-cart-size);
    height:var(--nfmb-cart-size);
    margin-top:calc(var(--nfmb-cart-size)/-2.6);
    border-radius:50%;
    background:var(--nfmb-cart-bg);
    color:var(--nfmb-cart-icon);
    box-shadow:0 6px 14px var(--nfmb-cart-shadow);
  }
  .nfmb__cartc svg {
    width:28px;
    height:28px;
  }
  .nfmb__badge {
    position:absolute;
    top:-4px;
    right:-4px;
    min-width:22px;
    height:22px;
    padding:0 5px;
    border-radius:11px;
    background:var(--nfmb-badge-bg);
    color:var(--nfmb-badge-text);
    border:2px solid var(--nfmb-bg);
    font-size:11px;
    font-weight:700;
    line-height:1;
  }
  .nfmb__badge[hidden] {
    display:none!important;
  }
  body.nfmb-on #back-to-top {
    bottom:calc(var(--nfmb-h) + 16px + env(safe-area-inset-bottom))!important;
  }
  body.nfmb-on,body.nfmb-on #navigation {
    padding-bottom:calc(var(--nfmb-h) + env(safe-area-inset-bottom))!important;
  }
}

@media (prefers-reduced-motion:reduce) {
  .nfmb {
    transition:none;
  }
}

@media print {
  .nfmb {
    display:none!important;
  }
  body.nfmb-on {
    padding-bottom:0!important;
  }
}

