/* =========================================
   FOODAPP - CLEAN FRONTEND THEME (WOOD)
   - Frontend: wood background + readable UI
   - Admin: neutral light background
========================================= */

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #111;
}

/* =========================================
   THEME VARIABLES
========================================= */
:root{
  --accent: #d08a3c;
  --accent2: #a86420;
  --glass: rgba(255,255,255,.88);
  --glass2: rgba(255,255,255,.78);
  --border: rgba(255,255,255,.28);
  --shadow: 0 10px 28px rgba(0,0,0,.18);
}

/* =========================================
   BACKGROUNDS
========================================= */
body.frontend{
  background: url("/assets/images/bg_wood.jpg") center/cover fixed no-repeat;
  min-height: 100vh;
  position: relative;
}

/* overlay for readability */
body.frontend::before{
  content:"";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 0;
}

/* admin (if ever used) */
body.admin{
  background: #f6f6f6;
}
body.admin::before{ display:none; }

/* ensure content above overlay */
.app-header, .container, .bottom-nav-modern, .sticky-cartbar, .footer{
  position: relative;
  z-index: 1;
}

/* =========================================
   LAYOUT
========================================= */
.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
  padding-bottom: 130px; /* space for bottom nav */
}

/* =========================================
   HEADER (sticky)
========================================= */
.app-header{
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.25);
}

.app-header__inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand{
  text-decoration: none;
  font-weight: 900;
  color:#111;
  font-size: 18px;
}

.top-nav a{
  text-decoration: none;
  color:#111;
  font-weight: 900;
  margin-left: 12px;
  padding: 8px 10px;
  border-radius: 12px;
}

.top-nav a:hover{
  background: rgba(0,0,0,.06);
}

.top-nav a.active{
  background: rgba(208,138,60,.22);
}

.cart-link{ position: relative; }

@media (max-width: 720px){
  .top-nav{ display:none; }
}

/* =========================================
   BADGE
========================================= */
.badge{
  display: inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  margin-left: 6px;
}

/* =========================================
   HERO + NOTICE (glass)
========================================= */
.hero{
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero h1{
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 900;
}
.hero p{
  margin: 0;
  color: rgba(0,0,0,.65);
}

.notice{
  margin-top: 14px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

/* =========================================
   SECTION TITLES (GROUP HEADINGS)
   Ovo je ono što ti treba za grupe u alacarte.php
========================================= */
.section-title{
  margin: 26px 0 14px;
  display: inline-block;

  font-size: 26px;
  font-weight: 900;

  color: #fff;
  background: rgba(0,0,0,.60);

  padding: 10px 18px;
  border-radius: 16px;

  text-shadow: 0 2px 8px rgba(0,0,0,.85);
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}

/* =========================================
   HOME BIG CARDS
========================================= */
.grid-2{
  display:grid;
  grid-template-columns: repeat(2,1fr);
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 720px){
  .grid-2{ grid-template-columns: 1fr; }
}

.big-card{
  text-decoration:none;
  color:#111;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow:hidden;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.big-card img{
  width:100%;
  height: 180px;
  object-fit: cover;
  display:block;
  filter: saturate(1.05) contrast(1.05);
}

.big-card__body{ padding: 14px; }
.big-card__body h2{ margin: 0 0 6px; font-size: 18px; font-weight: 900; }
.big-card__body p{ margin: 0; color: rgba(0,0,0,.65); }

/* =========================================
   ITEM CARDS GRID
========================================= */
.cards{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 980px){
  .cards{ grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 720px){
  .cards{ grid-template-columns: repeat(2,1fr); }
}

.card{
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow:hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.card img{
  width:100%;
  height: 130px;
  object-fit: cover;
  display:block;
  filter: saturate(1.05) contrast(1.05);
}

.card__body{ padding: 12px; }

.card .name{
  font-weight: 900;
  margin: 0 0 6px;
}

.card .desc{
  margin: 0 0 10px;
  color: rgba(0,0,0,.62);
  font-size: 13px;
  min-height: 32px;
}

.card .row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}

.price{ font-weight: 900; }

/* =========================================
   BUTTONS (warm)
========================================= */
.btn{
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 900;
  text-decoration: none;
  display: inline-block;
  transition: 0.15s;
}

.btn:hover{ opacity: .95; }
.btn:active{ transform: scale(.98); }

.btn.gray{ background: rgba(0,0,0,.55); }
.btn.danger, .btn.btn-danger{ background: #b00020; }

/* =========================================
   INPUTS
========================================= */
input, select, textarea{
  width:100%;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid #ddd;
  font-size: 14px;
}

textarea{ resize: vertical; }
label{ font-weight: 900; display:block; margin-bottom: 6px; }

/* =========================================
   TABLES (admin pages may use)
========================================= */
.table{
  width:100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: rgba(255,255,255,.9);
  border-radius: 14px;
  overflow: hidden;
}

.table th, .table td{
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.table th{
  background: #fafafa;
  font-weight: 900;
}

/* =========================================
   STICKY CART BAR (optional)
========================================= */
.sticky-cartbar{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 92px; /* above bottom nav */
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
  padding: 10px 12px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 90;
  backdrop-filter: blur(10px);
}

@media (max-width: 720px){
  .sticky-cartbar{ display:flex; }
}

.sticky-cartbar .sum{ font-weight: 900; }
.sticky-cartbar .mini{ color:#666; font-size: 12px; }

/* =========================================
   MODERN FLOATING BOTTOM NAV + SLIDER
========================================= */
.bottom-nav-modern{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 70px;

  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 6px;

  background: rgba(255,255,255,.90);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);

  padding: 8px 10px;
  z-index: 120;
}

@media (max-width: 720px){
  .bottom-nav-modern{ display:flex; }
}

.bottom-nav-modern .nav-item{
  flex: 1;
  min-width: 0;
  height: 54px;
  border-radius: 18px;
  text-decoration: none;
  color: #666;

  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;

  position: relative;
  z-index: 2;
  transition: transform .12s ease, color .12s ease;
}

.bottom-nav-modern .nav-item:active{ transform: scale(.98); }

.bottom-nav-modern .nav-ico{
  width: 26px;
  height: 26px;
  display:grid;
  place-items:center;
}

.bottom-nav-modern svg{
  width: 26px;
  height: 26px;
  stroke: currentColor;
}

.bottom-nav-modern .nav-txt{
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.bottom-nav-modern .nav-dot{
  position: absolute;
  bottom: 6px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.bottom-nav-modern .nav-item.active{
  color: #111;
}
.bottom-nav-modern .nav-item.active .nav-dot{
  background: var(--accent2);
}

/* slider pill */
.bottom-nav-modern .nav-slider{
  position: absolute;
  top: 8px;
  left: 10px;
  height: 54px;
  width: 60px; /* overwritten by JS */
  border-radius: 18px;
  background: rgba(208,138,60,.22);
  box-shadow: inset 0 0 0 1px rgba(208,138,60,.18);
  transform: translateX(0);
  transition: transform 260ms cubic-bezier(.2,.9,.2,1),
              width 260ms cubic-bezier(.2,.9,.2,1);
  z-index: 1;
}

/* cart badge inside nav icon */
.bottom-nav-modern .cart-ico{ position: relative; }
.bottom-nav-modern .nav-badge{
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  display:grid;
  place-items:center;
  border: 2px solid rgba(255,255,255,.9);
}

/* =========================================
   FOOTER
========================================= */
.footer{
  text-align:center;
  padding: 18px;
  color: rgba(255,255,255,.70);
}
/* CTA gumbi u hero */
.cta-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 14px;
}

/* Info blok na naslovnici */
.info-panel{
  margin-top: 18px;
  padding: 18px;

  background: rgba(255,255,255,0.90);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.25);

  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

.contact-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
