/* Yateer Quick Order — design tokens (edit these 8 lines to re-skin for any client) */
.qb-wrap{
  --ink:#211D18;
  --cream:#FBF6EE;
  --card:#FFFFFF;
  --cayenne:#D9491F;
  --cayenne-dark:#B23A18;
  --butter:#F0AE31;
  --olive:#42552F;
  --olive-soft:#EFF2E7;
  --muted:#8B8175;
  --line:#EAE1D2;
  --shadow: 0 1px 2px rgba(33,29,24,.04), 0 8px 24px -12px rgba(33,29,24,.18);
  --radius: 14px;

  font-family:'Manrope', sans-serif;
  color:var(--ink);
  max-width:1360px;
  margin:0 auto;
}
.qb-wrap *{ box-sizing:border-box; }
.qb-wrap h2,.qb-wrap h3{ font-family:'Fraunces', Georgia, serif; margin:0; letter-spacing:-0.01em; }
.qb-wrap .price,.qb-wrap .money{ font-family:'IBM Plex Mono', monospace; font-weight:600; }

.qb-shell{ display:grid; gap:26px; align-items:start; }
@media (max-width: 900px){ .qb-shell:not(.qb-shell--with-nav){ grid-template-columns:1fr !important; } }

/* On mobile, keep the category rail beside the product grid (not stacked above
   or hidden) — only the order ticket drops to a full-width row below. */
@media (max-width: 900px){
  .qb-shell.qb-shell--with-nav{
    grid-template-columns: 76px 1fr !important;
    grid-template-areas: "nav main" "cart cart";
    column-gap:14px; row-gap:22px;
  }
  .qb-shell.qb-shell--with-nav > nav{ grid-area: nav; }
  .qb-shell.qb-shell--with-nav > main{ grid-area: main; }
  .qb-shell.qb-shell--with-nav > aside{ grid-area: cart; }
}
@media (max-width: 480px){
  .qb-shell.qb-shell--with-nav{ grid-template-columns: 62px 1fr !important; column-gap:10px; }
}

.qb-section-label{
  font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.08em;
  color:var(--olive); margin:0 0 14px; display:flex; align-items:center; gap:8px;
}
.qb-section-label::after{ content:""; flex:1; height:1px; background:var(--line); }

.qb-grid{ display:grid; gap:16px; margin-bottom:22px; }
@media (max-width: 640px){ .qb-grid{ grid-template-columns:repeat(2,1fr) !important; } }

.qb-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:14px; box-shadow:var(--shadow); display:flex; flex-direction:column;
  transition:transform .15s ease, box-shadow .15s ease;
}
.qb-card:hover{ transform:translateY(-3px); box-shadow:0 14px 30px -16px rgba(33,29,24,.28); }
.qb-thumb{ aspect-ratio:1/1; border-radius:10px; margin-bottom:12px; overflow:hidden; background:var(--olive-soft); }
.qb-thumb--photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.qb-card h3{ font-size:15.5px; font-weight:600; margin-bottom:2px; }
.qb-card .desc{ font-size:12px; color:var(--muted); line-height:1.4; margin-bottom:10px; min-height:32px; }
.qb-card .row-bottom{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.qb-card .price{ font-size:15px; }
.qb-variation-select{
  width:100%; margin-bottom:10px; padding:8px 10px; border-radius:8px; border:1px solid var(--line);
  font-family:'Manrope',sans-serif; font-size:12.5px; background:var(--cream); color:var(--ink);
}

.add-btn{
  width:34px; height:34px; border-radius:9px; border:1px solid var(--line);
  background:var(--cream); color:var(--ink); font-size:18px; font-weight:700;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:background .15s ease, color .15s ease, transform .1s ease;
}
.add-btn:hover{ background:var(--cayenne); color:#fff; border-color:var(--cayenne); }
.add-btn:active{ transform:scale(.9); }
.add-btn.is-added{ background:var(--olive); border-color:var(--olive); color:#fff; }

.btn{
  border:none; border-radius:10px; font-family:'Manrope',sans-serif; font-weight:700; font-size:13.5px;
  cursor:pointer; display:inline-flex; align-items:center; gap:7px; padding:11px 16px; text-decoration:none;
}
.btn-cta{
  background:var(--cayenne); color:#fff !important; width:100%; justify-content:space-between;
  padding:15px 20px; font-size:15px; border-radius:12px;
}
.btn-cta:hover{ background:var(--cayenne-dark); }

.qb-ticket{
  background:var(--card); border:1px solid var(--line); border-radius:16px 16px 0 0;
  box-shadow:var(--shadow); position:sticky; top:20px; overflow:hidden;
}
.ticket-head{ padding:18px 20px 6px; }
.ticket-head h2{ font-size:19px; }
.count{ font-size:12px; color:var(--muted); font-weight:600; }
.clear{ font-size:12px; color:var(--cayenne); font-weight:700; cursor:pointer; }

.ticket-items{ padding:6px 20px; }
.ticket-item{ display:flex; gap:12px; align-items:center; padding:14px 0; border-bottom:1px solid var(--line); }
.ticket-item:last-child{ border-bottom:none; }
.ti-thumb{ width:46px; height:46px; border-radius:9px; flex:none; overflow:hidden; background:var(--olive-soft); }
.ti-info{ flex:1; min-width:0; }
.ti-info .nm{ font-size:13.5px; font-weight:700; }
.ti-info .unit{ font-size:11.5px; color:var(--muted); }
.ti-remove{ background:none; border:none; color:var(--muted); font-size:15px; cursor:pointer; padding:2px; }
.ti-remove:hover{ color:var(--cayenne); }
.ti-qty{ display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:8px; padding:2px 6px; margin-top:6px; width:fit-content; }
.ti-qty button{ background:none; border:none; font-size:14px; cursor:pointer; color:var(--ink); width:18px; }
.ti-qty .n{ font-size:12.5px; font-weight:700; min-width:14px; text-align:center; }
.ti-total{ text-align:right; }
.ti-total .money{ font-size:13.5px; }

.ticket-sums{ padding:14px 20px 6px; font-size:13.5px; }
.ticket-sums .r{ display:flex; justify-content:space-between; padding:5px 0; color:var(--muted); }
.ticket-sums .r.total{ color:var(--ink); font-weight:800; font-size:16px; border-top:1px solid var(--line); margin-top:6px; padding-top:12px; }

.ticket-cta{ padding:14px 20px 20px; }

.ticket-tear{
  height:16px;
  background: radial-gradient(circle at 8px 0, transparent 8px, var(--cream) 8.5px) repeat-x;
  background-size:16px 16px;
  margin-top:-1px;
}

/* ===== Category sidebar nav ===== */
.qb-nav{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:16px 10px; display:flex; flex-direction:column; gap:4px;
  position:sticky; top:20px;
}
.qb-nav-item{
  display:flex; flex-direction:column; align-items:center; gap:5px;
  padding:10px 4px; border-radius:10px; font-size:10.5px; font-weight:700;
  color:var(--muted); cursor:pointer; text-align:center; line-height:1.15;
  transition:background .15s ease, color .15s ease;
}
.qb-nav-item .ic{ font-size:22px; }
.qb-nav-item .yqo-nav-icon-img{
  width:40px; height:40px; border-radius:50%; object-fit:cover;
  border:1px solid var(--line);
}
.qb-nav-item.active{ background:var(--olive-soft); color:var(--olive); }
.qb-nav-item:hover:not(.active){ background:var(--cream); color:var(--ink); }

@media (max-width: 900px){
  .qb-nav{
    flex-direction:column; position:sticky; top:12px;
    padding:10px 5px; gap:6px;
    max-height:calc(100vh - 24px); overflow-y:auto; scrollbar-width:none;
  }
  .qb-nav::-webkit-scrollbar{ display:none; }
  .qb-nav-item{ min-width:0; padding:8px 3px; font-size:9.5px; gap:4px; }
  .qb-nav-item .ic{ font-size:18px; }
  .qb-nav-item .yqo-nav-icon-img{ width:30px; height:30px; }
}
@media (max-width: 480px){
  .qb-nav.qb-nav--side{ padding:8px 4px; gap:4px; }
  .qb-nav.qb-nav--side .qb-nav-item{ font-size:8.5px; padding:6px 2px; }
  .qb-nav.qb-nav--side .qb-nav-item .yqo-nav-icon-img{ width:26px; height:26px; }
}

/* ===== Category nav — "top" placement: a horizontal bar above the grid,
   same on every screen size since it's already compact and scrollable. ===== */
.qb-nav--top{
  flex-direction:row !important; overflow-x:auto; position:static !important; top:auto;
  max-height:none; padding:12px 10px; gap:8px; margin-bottom:22px;
  -webkit-overflow-scrolling:touch; scrollbar-width:none;
}
.qb-nav--top::-webkit-scrollbar{ display:none; }
.qb-nav--top .qb-nav-item{ flex:0 0 auto; min-width:66px; }

/* ===== Load more ===== */
.yqo-load-more-wrap{ text-align:center; margin:6px 0 22px; }
.yqo-load-more{
  background:var(--card); border:1px solid var(--line); border-radius:10px;
  padding:11px 22px; font-family:'Manrope',sans-serif; font-weight:700; font-size:13.5px;
  color:var(--ink); cursor:pointer;
}
.yqo-load-more:hover{ background:var(--olive-soft); border-color:var(--olive); color:var(--olive); }
.yqo-load-more[disabled]{ opacity:.5; cursor:default; }

/* ===== Payment method row (pulled from live WooCommerce gateways) ===== */
.ticket-pay{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(70px,1fr)); gap:8px;
  padding:0 20px 20px;
}
.pay-opt{
  border:1px solid var(--line); border-radius:9px; padding:9px 4px;
  text-align:center; font-size:10.5px; font-weight:700; color:var(--muted);
  display:flex; flex-direction:column; align-items:center; gap:4px; cursor:default;
}
.pay-opt .ic{ font-size:16px; }
.pay-opt-img img{ max-height:18px; width:auto; }

/* ===== Footer menu bar (icon + label + link items, admin-configurable) ===== */
.yqo-footer{
  display:flex; justify-content:space-around; align-items:stretch;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  margin-top:22px; padding:8px 4px; gap:4px;
}
.yqo-footer-item{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:5px; padding:10px 4px; border-radius:10px; text-decoration:none;
  color:var(--muted); font-size:10.5px; font-weight:700; text-align:center; line-height:1.15;
  transition:background .15s ease, color .15s ease;
}
.yqo-footer-item .ic{ font-size:20px; line-height:1; }
.yqo-footer-icon-img{
  width:26px; height:26px; object-fit:contain; border-radius:6px;
}
.yqo-footer-item .lbl{ max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Default + "selected state" icon pair: both images sit stacked on top of each
   other; the selected-state one cross-fades in (see mobile-only trigger rules
   below) — no JS swap needed. */
.yqo-footer-icon-wrap{ position:relative; width:26px; height:26px; flex:none; }
.yqo-footer-icon-wrap .yqo-footer-icon-img{
  position:absolute; inset:0; width:100%; height:100%; margin:0;
  transition:opacity .15s ease;
}
.yqo-footer-icon-wrap .yqo-footer-icon-active-img{ opacity:0; }

/* Mobile footer style — "static" (no extra class) just flows under the widget,
   same on every screen size. "fixed" and "floating" are variants that pin the
   bar to the viewport, and are intentionally MOBILE-ONLY (see CSS): on a phone
   screen they behave like a native app's tab bar / floating action bar; on a
   tablet/desktop screen the footer always stays a normal static bar under the
   widget regardless of which style is chosen, since a viewport-pinned bar only
   makes sense on the narrow screens it was designed for.

   The "selected"/hover highlight (background tint, label colour, and the icon
   cross-fade to the selected-state image) is ALSO mobile-only by design — it's
   a touch-tap highlight for a bottom tab bar; on tablet/desktop the footer
   items stay visually uniform. */
@media (max-width:900px){
  .yqo-footer--fixed{
    position:fixed; left:0; right:0; bottom:0; z-index:9999;
    margin-top:0; border-radius:16px 16px 0 0;
    max-width:none; width:100%;
    padding-bottom:calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow:0 -8px 24px -12px rgba(33,29,24,.28);
  }
  .yqo-footer--fixed ~ .yqo-footer-spacer.yqo-footer-spacer--fixed,
  .yqo-footer--fixed + .yqo-footer-spacer.yqo-footer-spacer--fixed{ height:72px; }

  /* "floating" — pinned but inset from the edges with rounded corners all
     round, hovering above the content rather than flush against the screen. */
  .yqo-footer--floating{
    position:fixed; left:12px; right:12px;
    bottom:calc(12px + env(safe-area-inset-bottom, 0px));
    margin-top:0; border-radius:18px;
    max-width:none; width:auto;
    box-shadow:0 10px 30px -8px rgba(33,29,24,.38);
  }
  .yqo-footer--floating ~ .yqo-footer-spacer.yqo-footer-spacer--floating,
  .yqo-footer--floating + .yqo-footer-spacer.yqo-footer-spacer--floating{ height:88px; }

  .yqo-footer-item:hover,
  .yqo-footer-item.is-active{ background:var(--olive-soft); color:var(--olive); }
  .yqo-footer-item:hover .yqo-footer-icon-wrap .yqo-footer-icon-default,
  .yqo-footer-item.is-active .yqo-footer-icon-wrap .yqo-footer-icon-default{ opacity:0; }
  .yqo-footer-item:hover .yqo-footer-icon-wrap .yqo-footer-icon-active-img,
  .yqo-footer-item.is-active .yqo-footer-icon-wrap .yqo-footer-icon-active-img{ opacity:1; }
}
@media (max-width:480px){
  .yqo-footer-item{ font-size:9.5px; padding:8px 2px; }
  .yqo-footer-item .ic{ font-size:18px; }
  .yqo-footer-icon-img{ width:22px; height:22px; }
  .yqo-footer-icon-wrap{ width:22px; height:22px; }
}
