/* =========================
   HEADER TOKENS
========================= */
:root{
  --yg-primary:#FFB300;
  --yg-accent:#4B1AB1;
  --yg-ring:rgba(0,0,0,.08);
}

/* =========================
   LAYOUT BASICS
========================= */
.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
}

.yg-header{
  position:sticky;
  top:0;
  z-index:50;
  background:#fff;
  backdrop-filter:saturate(140%) blur(4px);
  box-shadow:0 1px 8px rgba(0,0,0,.06);
}

.yg-header .bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
}

.brand img{
  height:40px;
  width:auto;
  display:block;
}

/* =========================
   DESKTOP NAV
========================= */
.nav-desktop{ display:none; }
@media (min-width:768px){
  .nav-desktop{ display:block; }
}

.yg-tabs{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:1rem;
}

.yg-tabs li{ margin:0; padding:0; }

.yg-tabs a{
  display:inline-block;
  padding:.625rem .875rem;
  border-radius:.875rem;
  text-decoration:none;
  font-weight:800;
  color:#000;
  border:2px solid transparent;
  transition:background .2s, border-color .2s, transform .15s, box-shadow .2s;
}

.yg-tabs a:hover{
  background:#FFE08A;
  border-color:var(--yg-primary);
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(255,179,0,.25);
}

/* =========================
   WALLET PILL
========================= */
.yg-header-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.wallet-pill{
  font-size:14px;
  background:#000;
  color:#fff;
  padding:8px 14px;
  border-radius:999px;
  white-space:nowrap;
  cursor:pointer;
}

/* =========================
   BURGER BUTTON
========================= */
.yg-burger{
  width:40px;
  height:36px;
  background:#000;
  border-radius:8px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  cursor:pointer;
  border:none;
}

.yg-burger span{
  display:block;
  width:22px;
  height:2px;
  background:#fff;
  border-radius:2px;
}

@media (min-width:768px){
  #yg-burger{ display:none; }
}

/* brand spacing */
.brand{
  display:inline-block;
  margin-inline-start:8px;
  margin-inline-end:8px;
}
@media (max-width:640px){
  .brand{
    margin-inline-start:16px;
    margin-inline-end:16px;
  }
}

/* =========================
   DRAWER (Mobile)
========================= */
#yg-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  z-index:98;
  opacity:0;
  visibility:hidden;
  transition:.2s;
}
#yg-backdrop.show{
  opacity:1;
  visibility:visible;
}

#yg-drawer{
  position:fixed;
  top:0;
  right:0;
  width:84vw;
  max-width:320px;
  height:100vh;
  z-index:99;
  background:#fff;
  border-left:3px solid var(--yg-accent);
  transform:translateX(100%);
  transition:transform .25s ease;
  display:flex;
  flex-direction:column;
  box-shadow:-14px 0 28px rgba(0,0,0,.15);
}

#yg-drawer.open{ transform:translateX(0); }

.yg-drawer__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--yg-ring);
  font-weight:900;
}

.yg-drawer__close{
  width:36px;
  height:36px;
  border:none;
  background:#000;
  color:#fff;
  border-radius:10px;
  cursor:pointer;
}

.yg-drawer__nav{
  display:flex;
  flex-direction:column;
  gap:.5rem;
  padding:14px 10px;
  text-align:center;
}

.yg-drawer__nav a{
  display:block;
  padding:.75rem .875rem;
  border-radius:.875rem;
  text-decoration:none;
  color:#000;
  font-weight:800;
  border:2px solid transparent;
  transition:background .2s,border-color .2s,transform .15s,box-shadow .2s;
}

.yg-drawer__nav a:hover{
  background:#FFE08A;
  border-color:var(--yg-primary);
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(255,179,0,.25);
}

/* =========================
   ORDERS FAB (mobile)
========================= */
@media (max-width:768px){
  .orders-fab{
    position:fixed;
    left:calc(14px + env(safe-area-inset-left));
    bottom:calc(14px + env(safe-area-inset-bottom));
    width:42px;
    height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:var(--yg-accent);
    color:#fff;
    border-radius:999px;
    box-shadow:0 5px 15px rgba(0,0,0,.25);
    text-decoration:none;
    z-index:97;
    transition:transform .15s ease, opacity .15s ease, background .2s ease;
  }
  .orders-fab:hover{ background:var(--yg-primary); }
  .orders-fab:active{ transform:scale(.95); }
  .orders-fab svg{
    width:26px;
    height:26px;
    display:block;
  }
  #yg-drawer.open ~ .orders-fab,
  #yg-backdrop.show ~ .orders-fab{
    opacity:0;
    pointer-events:none;
  }
}

@media (min-width:769px){
  .orders-fab{ display:none; }
}

/* =========================
   CHAT FAB
========================= */
.chat-fab{
  position:fixed;
  right:calc(14px + env(safe-area-inset-right));
  bottom:calc(14px + env(safe-area-inset-bottom));
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--yg-accent);
  color:#fff;
  border-radius:999px;
  box-shadow:0 5px 15px rgba(0,0,0,.25);
  text-decoration:none;
  z-index:97;
  transition:transform .15s ease, opacity .15s ease, background .2s ease;
}
.chat-fab:hover{ background:var(--yg-primary); }
.chat-fab:active{ transform:scale(.95); }
.chat-fab svg{
  width:26px;
  height:26px;
  display:block;
}

#yg-drawer.open ~ .chat-fab,
#yg-backdrop.show ~ .chat-fab{
  opacity:0;
  pointer-events:none;
}
