/* ============================================================
   GAME AND GAMER — shared site header / cart chrome
   Loaded on EVERY page after the page stylesheet so the header
   looks identical everywhere. Markup comes from site-header.js.
   ============================================================ */
:root{
  --sh-ink:#052436;
  --sh-red:#E01F26;
  --sh-red-dark:#B3161C;
  --sh-line:#E4E1DC;
  --sh-alt:#F6F4F1;
  --sh-muted:#5A6B78;
  --sh-ease:cubic-bezier(.22,.61,.36,1);
  --sh-dur:.35s;
}

/* ---------------- Top bar ---------------- */
.topbar{
  background:var(--sh-ink);color:rgba(255,255,255,.78);
  font-size:.75rem;letter-spacing:.08em;
}
.topbar__inner{display:flex;justify-content:space-between;gap:1.5rem;padding-block:.6rem;flex-wrap:wrap}
.topbar a{color:inherit}
.topbar a:hover{color:#fff}

/* ---------------- Header ---------------- */
.header{
  position:sticky;top:0;z-index:60;
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(160%) blur(14px);
  border-bottom:1px solid var(--sh-line);
}
.header__inner{display:flex;align-items:center;gap:2rem;height:auto;min-height:84px}
.brand{display:flex;align-items:center;flex:none;margin-right:0}
.header .brand img,.header .brand__logo{height:44px;width:auto;border-radius:0;object-fit:contain}

.header .nav{
  position:static;display:flex;flex-direction:row;gap:2.1rem;margin-left:auto;
  padding:0;border:0;box-shadow:none;transform:none;background:none;z-index:auto;
  font-size:.95rem;font-weight:500;
}
.header .nav a{
  position:relative;padding:.5rem 0;border:0;color:var(--sh-ink);
  font-size:.95rem;letter-spacing:0;text-transform:none;
  transition:color var(--sh-dur) var(--sh-ease);
}
.header .nav a::after{content:"";position:absolute;display:block;left:0;right:100%;width:auto;bottom:.15rem;height:1.5px;
  background:var(--sh-red);transition:right var(--sh-dur) var(--sh-ease)}
.header .nav a:hover{color:var(--sh-red)}
.header .nav a:hover::after{right:0}
.header .nav .nav__cta{display:none}
.nav__cta::after{display:none}

.header__actions,.header__icons{display:flex;align-items:center;gap:.75rem;margin-left:1.5rem}
.icon-btn{position:relative;width:44px;height:44px;display:grid;place-content:center;border-radius:50%;
  background:none;border:0;cursor:pointer;transition:background var(--sh-dur) var(--sh-ease)}
.icon-btn:hover{background:var(--sh-alt)}
.icon-btn svg{width:20px;height:20px;fill:none;stroke:var(--sh-ink);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.cart-count{
  position:absolute;top:4px;right:2px;min-width:18px;height:18px;padding:0 5px;
  border-radius:999px;background:var(--sh-red);color:#fff;
  font-size:11px;font-weight:600;line-height:18px;text-align:center;display:none;
}

.burger{display:none;margin-left:auto;width:46px;height:46px;
  align-items:center;justify-content:center;background:none;border:0;cursor:pointer}
.burger i,.burger span:first-child{display:block;width:22px;height:1.5px;background:var(--sh-ink);position:relative}
.burger i::before,.burger i::after{content:"";position:absolute;left:0;width:22px;height:1.5px;background:inherit}
.burger i::before{top:-6px}.burger i::after{top:6px}
.burger span:not(:first-child){display:none}

/* header quote button (works with or without the page's own .gg-btn rules) */
.header .btn--gold,.header .gg-btn--primary{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;padding:0 1.35rem;border-radius:999px;
  background:var(--sh-red);color:#fff;font-size:.9rem;font-weight:600;
  letter-spacing:0;text-transform:none;box-shadow:none;border:0;transition:background var(--sh-dur) var(--sh-ease),transform var(--sh-dur) var(--sh-ease)}
.header .btn--gold:hover,.header .gg-btn--primary:hover{background:var(--sh-red-dark);transform:translateY(-2px)}

/* ---------------- Search drawer ---------------- */
.search-bar{max-height:0;overflow:hidden;transition:max-height var(--sh-dur) var(--sh-ease);
  border-top:0 solid var(--sh-line);background:var(--sh-alt)}
.search-bar.is-open{max-height:90px;border-top-width:1px}
.search-bar input{width:100%;padding:18px 4px;border:0;background:none;font-size:16px;outline:none;color:var(--sh-ink)}

@media (max-width:760px){
  .header .nav,.topbar__inner span.hide-sm{display:none}
  .burger{display:flex;margin-left:0;order:-1}
  .header__inner{position:relative;gap:.5rem}
  .header__actions,.header__icons{margin-left:auto;gap:.25rem}
  .header .btn--gold,.header .gg-btn--primary{display:none}
  .header .brand img,.header .brand__logo{height:36px}
  .header .nav.is-open{
    display:flex;flex-direction:column;gap:1.1rem;z-index:5;transform:none;
    position:absolute;top:100%;left:0;right:0;
    background:#fff;padding:1.5rem 24px;border-bottom:1px solid var(--sh-line);
    box-shadow:0 18px 40px rgba(5,36,54,.10);
  }
  .header .nav a{border-bottom:0;padding:.35rem 0}
  .header .nav.is-open .nav__cta{
    display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;
    margin-top:.4rem;min-height:44px;padding:0 1.35rem;border-radius:999px;
    background:var(--sh-red);color:#fff;font-size:.9rem;font-weight:600;
    letter-spacing:0;text-transform:none;box-shadow:none;
  }
}

/* ---------------- Cart drawer ---------------- */
.cart-overlay{position:fixed;inset:0;background:rgba(5,36,54,.5);z-index:210;opacity:0;pointer-events:none;transition:opacity .35s var(--sh-ease)}
.cart-overlay.is-open{opacity:1;pointer-events:auto}
.cart-drawer{
  position:fixed;top:0;right:0;height:100%;width:420px;max-width:92vw;background:#fff;z-index:211;
  display:flex;flex-direction:column;transform:translateX(100%);transition:transform .4s var(--sh-ease);
  box-shadow:-20px 0 50px rgba(5,36,54,.18);
}
.cart-drawer.is-open{transform:translateX(0)}
.cart-drawer__head{display:flex;align-items:center;justify-content:space-between;padding:22px 24px;border-bottom:1px solid var(--sh-line)}
.cart-drawer__head h3{font-size:20px;color:var(--sh-ink)}
.cart-drawer__close{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;
  background:none;border:0;cursor:pointer;color:var(--sh-ink);transition:background .2s}
.cart-drawer__close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.cart-drawer__close:hover{background:var(--sh-alt)}
.cart-drawer__body{flex:1;overflow-y:auto;padding:18px 24px}
.cart-drawer__empty{text-align:center;padding:60px 10px;color:var(--sh-muted)}
.cart-drawer__empty a{color:var(--sh-red);font-weight:500}
.cart-line{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid var(--sh-line)}
.cart-line__img{width:64px;height:64px;flex:none;border-radius:8px;background:var(--sh-alt);
  display:grid;place-items:center;overflow:hidden;font-weight:700;color:var(--sh-red)}
.cart-line__img img{width:100%;height:100%;object-fit:cover}
.cart-line__info{flex:1;min-width:0}
.cart-line__info p{font-size:13.5px;font-weight:500;color:var(--sh-ink);margin-bottom:4px;line-height:1.3}
.cart-line__price{font-size:13px;color:var(--sh-muted)}
.cart-line__qty{display:flex;align-items:center;gap:10px;margin-top:8px}
.cart-line__qty button{width:24px;height:24px;border:1px solid var(--sh-line);border-radius:50%;
  display:grid;place-items:center;font-size:14px;background:none;cursor:pointer;color:var(--sh-ink)}
.cart-line__qty span{font-size:13px;min-width:16px;text-align:center}
.cart-line__remove{width:auto!important;height:auto!important;border:0!important;border-radius:0!important;
  margin-left:auto;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--sh-muted);text-decoration:underline}
.cart-line__total{font-size:13.5px;font-weight:600;color:var(--sh-ink);white-space:nowrap}
.cart-drawer__foot{padding:20px 24px;border-top:1px solid var(--sh-line)}
.cart-drawer__subtotal{display:flex;justify-content:space-between;align-items:center;font-size:15px;margin-bottom:14px}
.cart-drawer__subtotal strong{font-size:19px;color:var(--sh-ink)}
.cart-drawer__foot .btn{display:inline-flex;align-items:center;justify-content:center;width:100%;
  min-height:48px;border-radius:999px;background:var(--sh-red);color:#fff;
  font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase}
.cart-drawer__foot .btn:hover{background:var(--sh-red-dark)}

/* ---------------- Toast ---------------- */
.toast{
  position:fixed;left:50%;bottom:-120px;transform:translateX(-50%);
  background:var(--sh-ink);color:#fff;padding:13px 22px;border-radius:6px;
  font-size:13px;letter-spacing:.04em;box-shadow:0 18px 40px rgba(5,36,54,.2);z-index:200;
  transition:bottom .4s var(--sh-ease);pointer-events:none;
}
.toast.is-show{bottom:32px;pointer-events:auto}

/* ---------------- WhatsApp floating button ---------------- */
.whatsapp-fab{
  position:fixed;right:22px;bottom:22px;width:56px;height:56px;border-radius:50%;
  background:#25D366;color:#fff;display:grid;place-items:center;
  box-shadow:0 10px 26px rgba(37,211,102,.4);z-index:150;transition:transform .25s var(--sh-ease);
}
.whatsapp-fab:hover{transform:scale(1.08)}
.whatsapp-fab__icon{display:block;width:28px;height:28px}
.whatsapp-fab > svg{display:none}
@media (max-width:620px){.whatsapp-fab{right:16px;bottom:16px;width:50px;height:50px}.whatsapp-fab__icon{width:25px;height:25px}}
