    :root{
		 --font-sans: "Quicksand", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
      --bg:#f2f2f7; --card:#fff; --text:#111; --muted:#6b7280;
      --line:rgba(0,0,0,.08); --blue:#007aff;
      --safe-top:env(safe-area-inset-top); --safe-bottom:env(safe-area-inset-bottom);
      --safe-left:env(safe-area-inset-left); --safe-right:env(safe-area-inset-right);
      --nav-h:0px;
      --r-card:18px;
    }
    *{box-sizing:border-box}
    html,body{height:100%}
   body{
  margin:0;background:var(--bg);color:var(--text);
  font-family: var(--font-sans);
  font-weight: 500;              /* Quicksand bolje izgleda od 500 naviše */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

    /* ===== NAVBAR ===== */
    .ios-nav{
      position:sticky;top:0;z-index:2000;
      background:rgba(243,115,33,.92);backdrop-filter:blur(16px);
      border-bottom:1px solid var(--line);
      padding-top:calc(var(--safe-top) + 10px);padding-bottom:10px;
    }
    .ios-nav-inner{display:flex;align-items:center;justify-content:space-between;padding:0 14px;gap:10px}
    .ios-title{font-size:17px;font-weight:900;letter-spacing:.2px}
    .ios-subtitle{font-size:12px;color:var(--muted);margin-top:2px}
    .ios-left,.ios-right{display:flex;align-items:center;gap:10px}
    .ios-icon-btn{
      width:38px;height:38px;border-radius:12px;
      border:1px solid rgba(0,0,0,.06);background:rgba(0,0,0,.04);
      display:flex;align-items:center;justify-content:center;font-size:18px;
      cursor:pointer;-webkit-tap-highlight-color:transparent;
    }
    .ios-icon-btn:active{transform:scale(.98)}

    /* ===== CATS (sticky under navbar) ===== */
  /* wrapper već ima overflow i sticky – ne diramo */
.ios-cats{
  display:flex;
  flex-wrap:nowrap;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  gap:14px;
  padding:12px 14px 10px;
  white-space:nowrap;
}
.ios-cats::-webkit-scrollbar{display:none}
.ios-cat{flex:0 0 auto; width:72px;}


/* POJEDINAČNA KATEGORIJA */
.ios-cat{
  flex:0 0 auto;
  width:72px;               /* fiksna širina kao na slici */
  padding:5px 3px 4px;
  border-radius:18px;
  border:0;
  background:transparent;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;

  font-weight:600;
  color:#111;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

/* IKONICA */
.cat-icon{
  width:48px;
  height:48px;
  border-radius:50%;
  background:rgba(243,115,33,.15); /* narandžasti krug */
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
}

/* TEKST ISPOD */
.cat-label{
  font-size:12px;
  line-height:1;
  white-space:nowrap;
}

/* AKTIVNA KATEGORIJA */
.ios-cat.active .cat-icon{
  background:#f37321;
  color:#fff;
}

.ios-cat.active .cat-label{
  font-weight:700;
  color:#111;
}

/* uklanjamo stari pill stil */
.ios-cat{
  box-shadow:none;
}


    /* ===== CONTENT ===== */
    .page{padding:14px;padding-bottom:calc(86px + var(--safe-bottom) + 66px);} /* + space for floating cart */
    .hero{
      background:linear-gradient(180deg,rgba(0,122,255,.14),rgba(255,255,255,0));
      border:1px solid rgba(0,0,0,.03);border-radius:20px;padding:14px;margin-bottom:12px;
    }
    .hero-title{font-size:16px;font-weight:950;margin:0 0 6px}
    .hero-sub{font-size:13px;color:var(--muted);margin:0}

    .cat-section{padding:8px 0 6px}

    /* Collapsible title */
    .cat-title-btn{
      width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;
      padding:12px 2px 10px;margin:10px 0 6px;border:0;background:transparent;
      cursor:pointer;-webkit-tap-highlight-color:transparent;
    }
    .cat-title-text{font-size:20px;font-weight:950;color:var(--text)}
    .cat-chevron{
      width:34px;height:34px;border-radius:12px;display:flex;align-items:center;justify-content:center;
      background:rgba(0,0,0,.04);border:1px solid rgba(0,0,0,.06);color:#111;
      transition:transform 200ms ease;
    }
    .cat-body{overflow:hidden;transition:max-height 240ms ease,opacity 200ms ease;max-height:2000px;opacity:1}
    .cat-section.is-collapsed .cat-body{max-height:0;opacity:0}
    .cat-section.is-collapsed .cat-chevron{transform:rotate(-90deg)}

    .item-card{
      background:var(--card);border-radius:var(--r-card);padding:14px;margin-bottom:10px;
      box-shadow:0 10px 30px rgba(0,0,0,.06);border:1px solid rgba(0,0,0,.03);
      display:flex;align-items:center;justify-content:space-between;gap:12px;
    }
    .item-left{display:flex;flex-direction:column;gap:4px;min-width:0}
    .item-name{font-weight:950;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .item-desc{color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .item-right{display:flex;align-items:center;gap:10px;flex:0 0 auto}
    .price{font-weight:950;font-size:14px}
    .add-btn,.minus-btn{
      height:36px;border-radius:12px;font-weight:950;cursor:pointer;-webkit-tap-highlight-color:transparent;
    }
    .add-btn{
      padding:0 12px;border:1px solid rgba(0,122,255,.25);
      background:rgba(0,122,255,.10);color:var(--blue);
    }
    .minus-btn{
      width:36px;border:1px solid rgba(0,0,0,.10);background:rgba(0,0,0,.04);color:#111;
    }
    .add-btn:active,.minus-btn:active{transform:scale(.98)}

    /* ===== TAB BAR ===== */
    .ios-tabbar{
      position:fixed;left:0;right:0;bottom:0;z-index:3000;
      padding-top:10px;padding-bottom:calc(10px + var(--safe-bottom));
      background:rgba(255,255,255,.92);backdrop-filter:blur(16px);
      border-top:1px solid var(--line);display:flex;justify-content:space-around;align-items:center;
    }
    .ios-tab{
      text-decoration:none;color:var(--muted);font-size:12px;font-weight:950;
      padding:6px 10px;border-radius:10px;-webkit-tap-highlight-color:transparent;
    }
    .ios-tab.active{color:var(--blue);background:rgba(0,122,255,.10)}

    /* ===== FLOATING CART ===== */
    .fk-float-cart{
      position:fixed;left:0;right:0;
      bottom:calc(62px + var(--safe-bottom)); /* iznad tab bara */
      z-index:2900;
      padding:0 14px;
      pointer-events:none; /* aktiviramo samo na unutrašnjem dugmetu */
      transform:translateY(20px);
      opacity:0;
      transition:opacity 220ms ease, transform 220ms ease;
    }
    .fk-float-cart.show{opacity:1;transform:translateY(0)}
    .fk-float-cart .bar{
      pointer-events:auto;
      background:rgba(17,17,17,.92);
      color:#fff;
      border-radius:16px;
      border:1px solid rgba(255,255,255,.10);
      box-shadow:0 14px 40px rgba(0,0,0,.22);
      display:flex;align-items:center;justify-content:space-between;gap:10px;
      padding:12px 12px;
      backdrop-filter:blur(14px);
    }
    .fk-float-cart .left{
      display:flex;align-items:center;gap:10px;min-width:0;
      font-weight:900;font-size:13px;
    }
    .fk-pill{
      background:rgba(255,255,255,.14);
      border:1px solid rgba(255,255,255,.18);
      border-radius:999px;
      padding:6px 10px;
      display:flex;gap:8px;align-items:center;
      white-space:nowrap;
    }
    .fk-float-cart .total{
      color:#fff;font-weight:950;font-size:13px;white-space:nowrap;
    }
    .fk-float-cart .cta{
      border:0;
      background:rgba(0,122,255,.98);
      color:#fff;
      font-weight:950;
      border-radius:14px;
      padding:10px 12px;
      cursor:pointer;
      -webkit-tap-highlight-color:transparent;
      white-space:nowrap;
    }
    .fk-float-cart .cta:active{transform:scale(.98)}
 
:root{
  --bg: #fff;      /* boja pozadine ispod hedera (white/grey) */
  --hdr: #f37321;     /* narandžasta */
}

.fk-header{
  position: relative;
  background:#f37321;
  padding: 16px 14px 18px;
  color:#fff;
  min-height:143px;
}

/* TALASI: 7 zuba */
.fk-header::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-1px;
  height:18px; /* po potrebi 16–22 */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 40' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 18 Q25 0 50 18 T100 18 T150 18 T200 18 T250 18 T300 18 T350 18 T400 18 T450 18 T500 18 T550 18 T600 18 T650 18 T700 18 V40 H0 Z'/%3E%3C/svg%3E")
    center bottom / 100% 100% no-repeat;
  pointer-events:none;
}


/* demo stilovi */
.fk-header .search input{
  width:100%;
  border:0;
  border-radius:999px;
  padding:10px 14px;
  outline:none;
}
.fk-header .row{
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:10px;
}
/* ===== FIX: kategorije horizontalno + skrol (iOS/Android) ===== */
.ios-cats-wrap{
  position: sticky;
  top: var(--nav-h);
  z-index: 1900;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.ios-cats{
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;        /* ne prelazi u novi red */
  overflow-x: auto !important;         /* skrol levo/desno */
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;   /* iOS smooth */
  gap: 14px;
  padding: 12px 14px 10px;
  white-space: nowrap;
  scroll-behavior: smooth;
}

.ios-cats::-webkit-scrollbar{ display:none; }

.ios-cat{
  flex: 0 0 auto !important;           /* da ne rasteže element */
  width: 72px !important;              /* kao na skici */
}
/* ===== FORCE horizontal cats (isti kao stari index.php) ===== */

.ios-cats{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  -webkit-overflow-scrolling:touch;
  white-space:nowrap;
}

.ios-cat{
  flex:0 0 auto !important;
  width:auto !important;
}
.fk-search{
  position:relative;
  margin:10px 12px 9px;
}

.fk-search input{
  width:100%;
  height:38px;
  border:0;
  outline:none;
  border-radius:999px;
  padding:0 44px 0 44px;  /* prostor za ikone */
  background:rgba(255,255,255,.92);
  color:#111;
  font-size:16px;
  font-weight:500;
  box-shadow:0 6px 18px rgba(0,0,0,.10);
}
/* Search icon wrapper */
.fk-search-ico{
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  color:#9ca3af; /* iOS siva */
  pointer-events:none;
}

/* SVG lupa */
.fk-search-svg{
  width:18px;
  height:18px;
  display:block;
}

/* input padding (da tekst ne ulazi u ikonu) */
.fk-search input{
  padding-left:44px;
}

.fk-search-clear:active{transform:translateY(-50%) scale(.96)}
.ios-icon-btn{
  background:transparent;
  border:0;
  color:#fff;
}

.fk-search input:focus + .fk-search-clear,
.fk-search input:not(:placeholder-shown) ~ .fk-search-ico{
  color:#6b7280;
}

.ios-cart-ico{
  width:22px;
  height:22px;
  display:block;
}


/* ===== SLIDER (ispod kategorija) ===== */
.fk-slider{
  padding: 10px 14px 4px;
}

.fk-slider-track{
  display:flex;
  gap:12px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scroll-behavior:smooth;
}

.fk-slider-track::-webkit-scrollbar{display:none}

/* jedna kartica preko cele širine */
.fk-slide{
  flex: 0 0 100%;
  scroll-snap-align: start;
}

/* banner kartica */
.fk-slide-card{
  height: 160px;              /* kao na slici */
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
}

/* lagani overlay da tekst bude čitljiv */
.fk-slide-card::before{
  content:"";
  position:absolute; inset:0; 
}

.fk-slide-overlay{
  position:absolute;
  inset: 12px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:6px;
  color:#fff;
}

.fk-slide-title{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.05;
}

.fk-slide-sub{
  font-size: 12px;
  opacity: .92;
  font-weight: 600;
}

.fk-slide-cta{
  align-self:flex-start;
  margin-top:6px;
  border:0;
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 800;
  background: #f37321;
  color:#fff;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.fk-slide-cta:active{transform:scale(.98)}

/* ===== DOTS (tačkice + aktivna kapsula) ===== */
.fk-dots{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  padding: 8px 0 2px;
}

.fk-dot{
  width:6px;
  height:6px;
  border-radius:999px;
  background: rgba(0,0,0,.18);
  transition: width 180ms ease, background 180ms ease;
}

.fk-dot.active{
  width:42px;                 /* kapsula */
  background:#f37321;
}
/* LOGO u headeru */
.fk-logo{
  height: 42px;          /* iOS feeling */
  width: auto;
  display: block;
  object-fit: contain;
  user-select: none;
}

/* da centar ne “beži” kad je logo širi */
.ios-title{
  display:flex;
  justify-content:center;
  align-items:center;
  min-width:0;
}
/* ===== RESTORANI LISTA ===== */
.fk-rest-list{
  padding: 6px 14px 20px;
}

.fk-h2{
  margin: 14px 0 12px;
  font-size: 22px;
  font-weight: 700;
  color:#111;
}

/* kartica */
.fk-rest-card{
  background:#fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  margin-bottom: 14px;
}

/* slika */
.fk-rest-img{
  position: relative;
  height: 145px;
  background:#eee;
}

.fk-rest-img img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.fk-rest-card.is-closed .fk-rest-img {
    filter: grayscale(90%);
    opacity: 0.85;
}


/* badge vreme (krug desno preko slike) */
.fk-rest-badge{
  position:absolute;
  right:12px;

  bottom:-28px; /* 👈 pola visine kruga */
  z-index:3;

  width:56px;
  height:56px;
  border-radius:50%;
  background:#f37321;
  color:#fff;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  box-shadow:0 0px 0px rgba(0,0,0,.22);
}


.fk-rest-badge div:first-child{ font-size: 13px; }
.fk-rest-badge div:last-child{ font-size: 12px; opacity:.95; }

/* tekst deo */
.fk-rest-body{
  padding: 12px 14px 12px;
}

.fk-rest-title{
  font-size: 17px;
  font-weight: 700;
  color:#111;
  margin-bottom: 4px;
}

.fk-rest-desc{
  font-size: 13px;
  color: rgba(0,0,0,.55);
  font-weight: 600;
  margin-bottom: 10px;
}

/* meta red */
.fk-rest-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-top: 2px;
}

.fk-meta-left,
.fk-meta-right{
  display:flex;
  align-items:center;
  gap:8px;
}

/* ikonice u narandžastoj */
.fk-ico{
  font-size: 16px;
  line-height: 1;
  color:#f37321;
}

.fk-meta-price{
  color:#f37321;
  font-weight: 800;
  font-size: 14px;
}

.fk-meta-like{
  color:#f37321;
  font-weight: 800;
  font-size: 14px;
}
.fk-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#f37321; /* narandžasta */
}

.fk-ico-svg{
  width:18px;
  height:18px;
  display:block;
}
.fa-solid{
  color:#f37321;
  font-size:18px;
}


/* ===== iOS TAB BAR ===== */
/* TAB BAR */
.fk-tabbar{
  position:fixed; left:0; right:0; bottom:0;
  z-index:5000;
  background:#fff;
  border-top:1px solid rgba(0,0,0,.08);
  display:flex;
  justify-content:space-around;
  align-items:flex-end;
  padding:8px 8px calc(10px + env(safe-area-inset-bottom));
}

.fk-tab{
  flex:1;
  text-decoration:none;
  color:#9ca3af;          /* siva kao na slici */
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
  font-size:11px;
  font-weight:600;
  -webkit-tap-highlight-color:transparent;
}

.fk-tab-ico{
  width:26px;
  height:26px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.fk-tab-svg{
  width:24px;
  height:24px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:2;         /* debljina kao na slici */
  stroke-linecap:round;
  stroke-linejoin:round;
}

.fk-tab.active{
  color:#f37321;          /* aktivna narandžasta */
}

.fk-tab-label{
  line-height:1;
}

/* da sadržaj ne upada u footer */
body{ padding-bottom: 90px; }


/* iOS home indicator spacing */
body{
  padding-bottom:80px;
}
/* ===== FIX: footer uvek vidljiv ===== */
:root{
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-bg: rgba(255,255,255,0.96);
  --tabbar-border: rgba(0,0,0,0.08);

  --tab-inactive: #8e8e93;
  --tab-active: #007aff;
}

.fk-tabbar{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 8px 10px calc(8px + var(--safe-bottom));
  background: var(--tabbar-bg);
  border-top: 1px solid var(--tabbar-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 9999;

  display: flex;
  justify-content: space-around;
  gap: 4px;
}

.fk-tab{
  flex: 1;
  text-decoration: none;
  color: var(--tab-inactive);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
}

.fk-tab.active{
  color: var(--tab-active);
}

.fk-tab-ico{
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}

.fk-tab-svg{
  width: 20px;
  height: 20px;
  display: block;
  transition: transform .15s ease;
}

.fk-tab:active .fk-tab-svg{
  transform: scale(0.95);
}

.fk-tab-label{
  font-size: 11px;
  line-height: 1.1;
  margin-top: 4px;
  font-weight: 600;
}
.ios-cart-ico2 {
  filter: brightness(0) invert(1);
}
.fk-ico-svg{
  width: 24px;
  height: 24px;
  display: block;
}
.fk-ico-sm{
  width: 16px;
  height: 16px;
}

 .fk-rest-card {
    position: relative;
    overflow: hidden;
}

.fk-rest-card.is-closed::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: rgba(0,0,0,0.35);
    z-index: 1;
}
.fk-rest-card.is-closed::after {
    content: "ZATVORENO";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    color: #f37321;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;

    text-shadow: 0 2px 6px rgba(0,0,0,0.7);

    z-index: 2;
}
 