/* Mobile-first header (Dawn-like: icon actions + popover search) */
.gb-header{
  background: var(--gb-bg);
  border-bottom: 1px solid var(--gb-border-soft);
}

/* Spacer that preserves layout height under fixed header */
.gb-header-spacer{
  height: var(--gb-header-h, 64px);
}

.gb-header .col-full{
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.gb-header__wrap{
  padding-top: 10px;
  padding-bottom: 10px;
}

.gb-header__row{
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 8px;
}

.gb-header__logo{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.gb-header__logo .custom-logo{
  max-height: 28px;
  width: auto;
  box-shadow: none !important;
}

.gb-logo__text{
  font-weight: 800;
  color: var(--gb-text);
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
}

.gb-header__actions{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.gb-cartcount{
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gb-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Search modal */
.gb-search{
  position: fixed;
  inset: 0;
  z-index: 2147483200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.gb-search.is-open{
  pointer-events: auto;
  opacity: 1;
}

.gb-search__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.gb-search__panel{
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%) translateY(-8px);
  width: min(92vw, 720px);
  background: #fff;
  border: 1px solid var(--gb-border-soft);
  border-radius: 18px;
  box-shadow: 0 16px 50px rgba(0,0,0,.18);
  padding: 12px;
  transition: transform 180ms ease;
}

.gb-search.is-open .gb-search__panel{
  transform: translateX(-50%) translateY(0);
}

.gb-search__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 10px;
}

.gb-search__title{
  font-size: 14px;
  font-weight: 800;
  color: var(--gb-text);
}

/* Search form (Dawn-like pill) */
.gb-search__form form{
  margin: 0;
  position: relative;
}

.gb-search__form input[type="search"],
.gb-search__form input[type="text"]{
  width: 100% !important;
  height: 48px !important;
  border-radius: 999px !important;
  padding: 10px 48px 10px 14px !important;
  border: 1px solid var(--gb-border-soft) !important;
  background: #fff !important;
}

.gb-search__form button{
  position: absolute;
  right: 2px;
  top: 2px;
  height: 44px !important;
  width: 44px !important;
  border-radius: 999px !important;
  padding: 0 !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Predictive results */
.gb-predict{
  margin-top: 10px;
  border: 1px solid var(--gb-border-soft);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.gb-predict__meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--gb-border-soft);
  background: var(--gb-surface);
}

.gb-predict__hint{
  font-size: 12px;
  font-weight: 800;
  color: var(--gb-text);
}

.gb-predict__viewall{
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  color: var(--gb-primary);
}

.gb-predict__list{
  display: flex;
  flex-direction: column;
  max-height: min(56vh, 520px);
  overflow: auto;
}

.gb-predict__item{
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--gb-text);
  border-bottom: 1px solid var(--gb-border-soft);
}

.gb-predict__item:last-child{
  border-bottom: 0;
}

.gb-predict__item:hover,
.gb-predict__item.is-active{
  background: rgba(0,0,0,.04);
}

.gb-predict__img{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gb-border-soft);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gb-predict__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gb-predict__title{
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.gb-predict__price{
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.gb-predict__empty{
  padding: 14px 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--gb-text);
}

/* Drawer (mobile menu) */
.gb-drawer{
  position: fixed;
  inset: 0;
  z-index: 2147483100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.gb-drawer.is-open{
  pointer-events: auto;
  opacity: 1;
}

.gb-drawer__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.gb-drawer__panel{
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(86vw, 360px);
  background: #fff;
  transform: translateX(-100%);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--gb-border-soft);
}

.gb-drawer.is-open .gb-drawer__panel{
  transform: translateX(0);
}

.gb-drawer__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--gb-border-soft);
}

.gb-drawer__title{
  font-size: 14px;
  font-weight: 800;
  color: var(--gb-text);
}

.gb-drawer__nav{
  padding: 10px 10px 14px;
  overflow: auto;
  flex: 1 1 auto;
}

.gb-drawer__menu{
  list-style: none;
  margin: 0;
  padding: 0;
}

.gb-drawer__menu li{
  margin: 0;
  padding: 0;
}

.gb-drawer__menu a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 12px;
  color: var(--gb-text);
  text-decoration: none;
  font-weight: 700;
}

.gb-drawer__menu a:hover{
  background: var(--gb-surface);
}

.gb-drawer__menu .sub-menu{
  list-style: none;
  margin: 0 0 6px 0;
  padding: 0 0 0 10px;
}

.gb-drawer__bottom{
  padding: 12px 14px 14px;
  border-top: 1px solid var(--gb-border-soft);
}

.gb-drawer__btn{
  width: 100% !important;
  height: 52px !important;
  border-radius: 999px !important;
}

/* Desktop: keep basic behavior */
@media (min-width: 751px){
  .gb-header__wrap{ padding-top: 14px; padding-bottom: 14px; }
  .gb-iconbtn{ width: 48px; height: 48px; }
  .gb-header__row{ grid-template-columns: 52px 1fr auto; }
  .gb-search__panel{ top: 16px; }
}

/* Remove gray border completely */
.gb-iconbtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  cursor: pointer;
}

/* Ensure cart anchor matches button style */
.gb-cartbtn{
  background: transparent !important;
  border: 0 !important;
}

/* SVG sizing */
.gb-icon{
  width: 22px;
  height: 22px;
  display: block;
}

/* Cart icon slightly larger like Dawn */
.gb-cartbtn .gb-icon{
  width: 44px;
  height: 44px;
}

/* Optional hover like Dawn */
.gb-iconbtn:hover{
  opacity: .7;
}


/* Force header icon color to rgb(18,18,18) */
.gb-header .gb-iconbtn,
.gb-header .gb-iconbtn:link,
.gb-header .gb-iconbtn:visited,
.gb-header .gb-iconbtn svg {
  color: rgb(18,18,18) !important;
}

/* Ensure no theme override forces white */
.gb-header .gb-iconbtn svg path {
  fill: currentColor !important;
}

.gb-search__form button .gb-icon{
  width: 18px;
  height: 18px;
}

/* Remove Woo default button styling inside predictive search */
.gb-search__form button {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  cursor: pointer;
}

/* Force icon color */
.gb-search__form button,
.gb-search__form button svg {
  color: rgb(18,18,18) !important;
}

/* Ensure SVG uses currentColor */
.gb-search__form button svg path {
  fill: currentColor !important;
}

/* Correct size */
.gb-search__form button .gb-icon {
  width: 18px;
  height: 18px;
}

/* Cart button must be the positioning context */
.gb-cartbtn{
  position: relative;
}

/* Dawn-like badge on top-right of the cart icon */
.gb-cartbtn .gb-cartcount{
  position: absolute;
  top: 4px;          /* tweak if needed */
  right: 4px;        /* tweak if needed */
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgb(18,18,18);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;     /* Dawn-style ring so it looks embedded */
  box-sizing: border-box;
  transform: translate(20%, -20%);
}

/* If count is 0 you already hide it in PHP, this is just safety */
.gb-cartbtn .gb-cartcount:empty{
  display: none;
}

#page, .site{
  transform: none !important;
}

/* Drawer submenu: Dawn-like collapse/expand */
.gb-drawer__menu .menu-item-has-children{
  position: relative;
}

.gb-drawer__menu .menu-item-has-children > a{
  padding-right: 46px; /* room for caret button */
}

/* Hide submenus by default */
.gb-drawer__menu .sub-menu{
  display: none;
  padding-left: 10px;
}

/* Expanded state shows submenu */
.gb-drawer__menu .menu-item-has-children.is-open > .sub-menu{
  display: block;
}

/* Caret toggle button */
.gb-subtoggle{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);

  width: 36px;
  height: 36px;

  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;

  display: flex;
  align-items: center;
  justify-content: center;

  color: rgb(18,18,18);
  cursor: pointer;
  border-radius: 10px;
}

.gb-subtoggle:hover{
  background: rgba(0,0,0,.04) !important;
}

.gb-subtoggle svg{
  width: 18px;
  height: 18px;
  display: block;
  transition: transform 180ms ease;
}

.gb-drawer__menu .menu-item-has-children.is-open > .gb-subtoggle svg{
  transform: rotate(180deg);
}

/* Slightly tighter submenu links like Dawn */
.gb-drawer__menu .sub-menu a{
  font-weight: 700;
  opacity: .92;
}
/* Category thumbnails in drawer menu */
.gb-menuthumb{
  width: 26px;
  height: 26px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gb-border-soft);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
}

.gb-menuthumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gb-menutitle{
  display: inline-block;
}

/* Make menu links align image + text nicely */
.gb-drawer__menu a{
  gap: 10px;
}

/* Drawer menu rows: remove space-between behavior and tighten spacing */
.gb-drawer__menu a{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important; /* IMPORTANT */
  gap: 10px !important;
  padding: 10px 10px !important;         /* tighter */
  line-height: 1.15 !important;
}

/* Make sure the title takes remaining space without creating gaps */
.gb-menutitle{
  flex: 1 1 auto;
  min-width: 0;
}

/* Thumbnail sizing and alignment */
.gb-menuthumb{
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gb-border-soft);
  background: #fff;
}

.gb-menuthumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Submenu indentation tighter */
.gb-drawer__menu .sub-menu{
  padding-left: 8px !important;
}

/* If you use the caret button, ensure it stays on the right without pushing content */
.gb-drawer__menu .menu-item-has-children > a{
  padding-right: 46px !important; /* space for caret */
}

/* Drawer + Search close buttons should be gray */
.gb-drawer__top .gb-iconbtn,
.gb-search__top .gb-iconbtn{
  color: #6b7280 !important; /* soft gray like Dawn */
}

/* Ensure SVG inherits */
.gb-drawer__top .gb-iconbtn svg,
.gb-search__top .gb-iconbtn svg{
  color: inherit !important;
}
/* Force drawer caret color */
.gb-subtoggle,
.gb-subtoggle svg,
.gb-subtoggle svg path{
  color: rgb(18,18,18) !important;
  fill: currentColor !important;
}

/* Parent row wrapper so caret never moves when submenu expands */
.gb-menurow{
  position: relative;
  display: flex;
  align-items: center;
}

/* Ensure the row is the only thing the caret centers on */
.gb-menurow > a{
  flex: 1 1 auto;
  min-width: 0;
}

/* Caret centered within the row, not the whole li */
.gb-menurow .gb-subtoggle{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

/* Caret rotation must target the button inside gb-menurow */
.gb-drawer__menu .menu-item-has-children.is-open > .gb-menurow .gb-subtoggle svg{
  transform: rotate(180deg);
}

/* All Games submenu search UI */
.gb-subsearch{
  padding: 10px 10px 6px;
}

.gb-subsearch__field{
  position: relative;
}

.gb-subsearch__input{
  width: 100% !important;
  height: 44px !important;
  border: 2px solid #111 !important;
  border-radius: 10px !important;
  padding: 10px 44px 10px 12px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.gb-subsearch__clear{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #d1d5db !important;
  background: #fff !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111 !important;
  box-shadow: none !important;
}

.gb-subsearch__clear svg{
  width: 14px;
  height: 14px;
}

.gb-subsearch__empty{
  margin-top: 14px;
  text-align: center;
  font-weight: 700;
  color: #6b7280;
}

/* Respect hidden attribute for the submenu search controls */
.gb-subsearch__clear[hidden],
.gb-subsearch__empty[hidden]{
  display: none !important;
}

/* === Desktop mega menu layout (add to gb-header.css) === */

/* Breakpoint: adjust if you want */
@media (min-width: 990px){
  .gb-only-mobile{ display:none !important; }
  .gb-only-desktop{ display:block !important; }

  .gb-header .col-full{
    padding-left: 5rem !important;
    padding-right: 5rem !important;
    margin-left: 0 !important;
    max-width: 100% !important;
}

  .gb-header__row{
    display:flex;
    align-items:center;
    gap: 18px;
  }

  /* Logo left */
  .gb-header__logo{
    flex: 0 0 auto;
    order: 1;
  }

  /* Mega menu center/left */
  .gb-mega{
    flex: 1 1 auto;
    order: 2;
    min-width: 0;
  }

  /* Actions right */
  .gb-header__actions{
    order: 3;
    display:flex;
    align-items:center;
    gap: 10px;
  }

  /* Top-level menu */
  .gb-mega__menu{
    display:flex;
    align-items:center;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
  }

  .gb-mega__menu > li{
    position: relative;
  }

  .gb-mega__menu > li > a{
    display:inline-flex;
    align-items:center;
    gap: 6px;
    padding: 10px 4px;
    font-weight: 700;
    color: rgb(18,18,18);
    text-decoration: none;
  }

  /* Dropdown base */
  .gb-mega__menu li .sub-menu{
    display:none;
    position:absolute;
    left:0;
    top:100%;
    background:#fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.10);
    padding: 12px;
    min-width: 260px;
    z-index: 2147483200;
    list-style:none;
    margin: 0;
    top: calc(100% - 2px);
  }

  /* Mega: make first-level dropdown wide like Dawn */
  .gb-mega__menu > li.menu-item-has-children > .sub-menu{
    left: 50%;
    transform: translateX(-50%);
    width: min(980px, calc(100vw - 48px));
    padding: 18px;
    border-radius: 18px;
  }

  /* Columns inside mega (2nd level items as columns) */
  .gb-mega__menu > li.menu-item-has-children > .sub-menu{
    display:none;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 14px;
  }

  .gb-mega__menu > li.menu-item-has-children:hover > .sub-menu{
    display: grid;
  }

  /* Non-mega (deep levels) */
  .gb-mega__menu .sub-menu li{
    position: relative;
  }

  .gb-mega__menu .sub-menu a{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    padding: 10px 10px;
    border-radius: 12px;
    font-weight: 700;
    color: rgb(18,18,18);
    text-decoration:none;
    white-space: normal;
  }

  .gb-mega__menu .sub-menu a:hover{
    background: rgba(0,0,0,.04);
  }

  /* 3rd level shown as a list under each column item */
  .gb-mega__menu > li.menu-item-has-children > .sub-menu > li > .sub-menu{
    display:block;
    position: static;
    border: 0;
    box-shadow:none;
    padding: 6px 0 0 0;
    margin: 0;
    min-width: 0;
  }

  .gb-mega__menu > li.menu-item-has-children > .sub-menu > li > a{
    padding: 8px 10px;
    background: rgba(0,0,0,.03);
    border-radius: 12px;
  }

  .gb-mega__menu > li.menu-item-has-children > .sub-menu > li > .sub-menu a{
    padding: 8px 10px;
    font-weight: 600;
    opacity: .92;
  }
}

@media (max-width: 989px){
  .gb-only-desktop{ display:none !important; }
  .gb-only-mobile{ display:inline-flex !important; }
}

@media (min-width: 990px){

  /* Add arrow indicator */
  .gb-mega__menu > li.menu-item-has-children > a::after{
    content: "";
    width: 10px;
    height: 10px;
    margin-left: 6px;
    border-right: 2px solid rgb(18,18,18);
    border-bottom: 2px solid rgb(18,18,18);
    transform: rotate(45deg);
    transition: transform 180ms ease;
    display: inline-block;
  }

  /* Rotate arrow on hover */
  .gb-mega__menu > li.menu-item-has-children:hover > a::after{
    transform: rotate(-135deg);
  }
}

/* Global header link style: color + normal weight (PC + mobile) */
.gb-header a,
.gb-header a:visited,
.gb-header a:hover,
.gb-header a:active,
.gb-drawer a,
.gb-drawer a:visited,
.gb-drawer a:hover,
.gb-drawer a:active,
.gb-search a,
.gb-search a:visited{
  color: #121212bf !important;
  font-weight: 400 !important;
}

/* Desktop top-level arrow: smaller + lighter */
@media (min-width: 990px){
  .gb-mega__menu > li.menu-item-has-children > a::after{
    width: 7px !important;
    height: 7px !important;
    margin-left: 6px !important;
    border-right: 1px solid #12121280 !important;
    border-bottom: 1px solid #12121280 !important;
  }
}

@media (min-width: 990px){

  /* Use fixed full-width panel instead of being anchored to the parent */
  .gb-mega__menu > li.menu-item-has-children > .sub-menu{
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: calc(var(--gb-header-h, 72px) + 0px) !important;
    transform: none !important;

    width: 100vw !important;
    max-width: none !important;

    margin: 0 !important;
    border-radius: 0 !important;

    border-left: 0 !important;
    border-right: 0 !important;

    padding: 24px 24px 28px !important;
    box-shadow: 0 18px 40px rgba(0,0,0,.12) !important;

    display: none;
    grid-template-columns: repeat(6, minmax(160px, 1fr)) !important;
    gap: 18px !important;

    z-index: 2147483200;
  }

  /* Show on hover */
  .gb-mega__menu > li.menu-item-has-children:hover > .sub-menu{
    display: grid !important;
  }

  /* Remove the old hover-gap tricks */
  .gb-mega__menu > li{
    padding-bottom: 0 !important;
  }

  /* Column headings (2nd level parent) */
  .gb-mega__menu > li.menu-item-has-children > .sub-menu > li > a{
    background: transparent !important;
    padding: 6px 0 10px 0 !important;
    border-radius: 0 !important;
    font-weight: 400 !important;
    color: #121212bf !important;
  }

  /* Third level list under each column */
  .gb-mega__menu > li.menu-item-has-children > .sub-menu > li > .sub-menu{
    padding: 10px 0 0 0 !important;
  }

  .gb-mega__menu > li.menu-item-has-children > .sub-menu > li > .sub-menu a{
    padding: 8px 0 !important;
    font-weight: 400 !important;
    color: #121212bf !important;
    background: transparent !important;
    border-radius: 0 !important;
  }

  .gb-mega__menu .sub-menu a:hover{
    background: rgba(0,0,0,.03) !important;
    border-radius: 10px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* Category thumbnails: consistent size and spacing */
.gb-menuthumb{
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;
  margin-right: 10px !important; /* fixes the missing right spacing */
  border-radius: 8px !important;
}

.gb-drawer__nav .gb-drawer__menu a{
  gap: 0 !important; /* we rely on thumb margin instead */
}

@media (min-width: 990px){

  .gb-mega__menu > li.menu-item-has-children::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 18px;              /* bridge height */
    background: transparent;
  }
}

@media (min-width: 990px){
  /* JS-controlled mega menu */
  .gb-mega__menu > li.menu-item-has-children > .sub-menu{
    display: none !important;
  }

  .gb-mega__menu > li.menu-item-has-children.is-open > .sub-menu{
    display: grid !important;
  }
}

/* Predictive search item layout */
.gb-predict__item{
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  padding: 12px 16px;
}

.gb-predict__img{
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 6px;
}

.gb-predict__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gb-predict__content{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gb-predict__title{
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #111827;
}

.gb-predict__price{
  font-size: 13px;
  font-weight: 500;
  color: #6B7280;
}

/* =========================================================
   FOOTER (GamesBay-like)
========================================================= */
.gb-footer{
  background: #F4FBFF;
  border-top: 1px solid rgba(17,24,39,.08);
  margin-top: 56px;
  padding-bottom: 20px !important;
}

.gb-footer__wrap{
  padding-top: 42px;
  padding-bottom: 28px;
}

.gb-footer__grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.25fr;
  gap: 48px;
  align-items: start;
}

.gb-footer__brand img{
  width: 25%;
  height: auto;
  box-shadow: none !important;
}

.gb-footer__tagline{
  margin: 14px 0 14px;
  color: rgba(17,24,39,.70);
  line-height: 1.55;
  max-width: 360px;
}

.gb-footer__title{
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: rgba(17,24,39,.92);
}

.gb-footer__links{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.gb-footer__checks {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.gb-footer__checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.gb-footer__check-icon {
  width: 16px !important;
  height: 16px !important;
  object-fit: contain;
  flex-shrink: 0;
}
.gb-footer__links a{
  color: rgba(17,24,39,.70);
  font-size: 15px;
  line-height: 1.4;
}

.gb-footer__links a:hover{
  color: rgba(17,24,39,.92);
}

.gb-footer__newsletter p{
  margin: 0 0 16px;
  color: rgba(17,24,39,.70);
  line-height: 1.5;
}

.gb-footer__social{
  display: flex;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.gb-social{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}

.gb-social svg{
  width: 20px;
  height: 20px;
  display: block;
  fill: #fff;
}

.gb-social--tt{ background:#0B0B0B; }
.gb-social--ig{ background:#FF2A7A; }
.gb-social--x{ background:#1DA1F2; }
.gb-social--dc{ background:#5865F2; }

.gb-footer__bottom{
margin-top: 0px;
    padding-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: rgba(17, 24, 39, .55);
    font-size: 13px;
    justify-content: center !important;
}

.gb-footer__bottom a{
  color: rgba(17,24,39,.55);
}

.gb-footer__bottom a:hover{
  color: rgba(17,24,39,.80);
}

.gb-dot{
  opacity: .55;
}

@media (max-width: 750px){
  .gb-footer__grid{
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .gb-footer__tagline{
    max-width: 100%;
  }

  .gb-footer__bottom{
    justify-content: flex-start;
  }
}

/* GamesBay social buttons (footer) */
.card__footer__social{
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:18px;
}

.socialContainer{
  width:46px;
  height:46px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none !important;
  box-shadow:none !important;
}

.socialSvg{
  width:20px;
  height:20px;
  display:block;
}

.socialSvg path{ fill:#fff; }

/* Background colors matching GamesBay look */
.containerOne{ background:#0B0B0B; }   /* TikTok */
.containerTwo{ background:#FF2A7A; }   /* Instagram */
.containerThree{ background:#1DA1F2; } /* Twitter */
.containerFour{ background:#5865F2; }  /* Discord */

.socialContainer:focus,
.socialContainer:active{
  outline:none !important;
  box-shadow:none !important;
}

/* Footer: 3 columns (remove PixelBayGames column) */
.gb-footer-grid,
.gb-footer__grid{
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* If you had a 4-col breakpoint, keep mobile stacking as-is */
@media (max-width: 750px){
  .gb-footer-grid,
  .gb-footer__grid{
    grid-template-columns: 1fr !important;
  }
}

.klaviyo-form > div > form > div > div > div {
    margin: 0 !important;
    padding: 0 !important;
 }

 .klaviyo-form > div > form > div > div > div > div > input {
 }

  .klaviyo-form > div > form > div > div > div > button {
border-radius: 2px !important;
 }

 .klaviyo-form > div > form > div {
    min-height: auto !important;
 }

  .klaviyo-form > div > form {
    margin: 0 !important;
 }

 .gb-footer__payment{
    margin-top: 50px;
    display: flex;
    padding-top: 20px;
    justify-content: center;
    border-top: 1px solid rgba(17, 24, 39, .08);
}

.list-payment{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.list-payment__item{
  display: inline-flex;
  align-items: center;
}

.list-payment__item svg{
  width: 38px;
  height: 24px;
  display: block;
}

.visually-hidden {
    display: none !important;
}
/* =========================================================
   Announcement bar (Shopify-like: not sticky)
   - Scrolls away
   - Header starts below it, then moves to the top
========================================================= */
.gb-announce{
  background: #1cbcff;
  color: #fff;
    position: relative;
  z-index: 2147483001; /* 1 higher than header */
}

.gb-announce__wrap{
  padding: 10px 16px;
  text-align: center;
}

.gb-announce__text{
  margin: 0;
  font-size: 12px;
  font-weight: 700 !important;
  line-height: 1.2;
      letter-spacing: .05rem !important;
}

.gb-announce a,
.gb-announce a:visited{
  color: inherit;
  text-decoration: underline;
}

.gb-header{
  position: fixed;
  left: 0;
  right: 0;

  top: var(--gb-ann-offset, 0px); /* key change */

  will-change: transform;
  transition: transform 220ms ease;

  transform: translate3d(0,0,0); /* key change */
}

.gb-header.gb-header--hidden{
  transform: translate3d(0,-110%,0);
}

html.gb-lock-scroll .gb-header{
  transform: translate3d(0,0,0) !important;
}

/* Disable header transition for 1-frame handoff */
.gb-header.gb-noanim{
  transition: none !important;
}

/* Bulletproof PRE-sticky: header is in normal flow and scrolls away naturally */
.gb-header.gb-prestick{
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;

  transition: none !important;
  transform: none !important;
}

/* When header is in-flow, spacer must be zero (header already takes its own space) */
.gb-header.gb-prestick + .gb-header-spacer{
  height: 0 !important;
}

.site-footer a {
    text-decoration: none !important;
}

/* Desktop mega dropdown: allow internal scrolling so long lists are visible */
@media (min-width: 990px){

  .gb-mega__menu > li.menu-item-has-children > .sub-menu{
    /* keep it under the fixed header */
    max-height: calc(100vh - var(--gb-ann-offset, 0px) - var(--gb-header-h, 64px) - 24px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

}
@media (min-width: 990px){
  .gb-mega__menu > li.menu-item-has-children > .sub-menu{
    padding-right: 22px;
  }
}

/* =========================================================
   Desktop thumbnails: HIDE on top-level, SHOW in dropdown
========================================================= */
@media (min-width: 990px){

  /* 1) Hide thumbnails in the top bar menu items */
  .gb-mega__menu > li > a .gb-menuthumb,
  .gb-mega__menu > li > a img,
  .gb-mega__menu > li > a svg{
    display: none !important;
  }

  /* Remove gap if your links are flex */
  .gb-mega__menu > li > a{
    gap: 0 !important;
  }

  /* 2) Show thumbnails inside dropdown items */
  .gb-mega__menu .sub-menu a .gb-menuthumb,
  .gb-mega__menu .sub-menu a img,
  .gb-mega__menu .sub-menu a svg{
    display: inline-block !important;
  }

  .gb-mega__menu .sub-menu a{
    gap: 10px !important;
  }
}

/* =========================================================
   Desktop: keep actions (search/cart) on the first row
   Only the menu items are allowed to wrap
========================================================= */
@media (min-width: 990px){

  /* Do NOT allow the whole header row to wrap */
  .gb-header__row{
    display: flex;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    align-items: center;
  }

  /* Logo stays left */
  .gb-header__logo{
    flex: 0 0 auto;
  }

  /* Menu takes remaining space and can wrap internally */
  .gb-mega{
    flex: 1 1 auto;
    min-width: 0; /* critical: allows shrinking instead of pushing actions down */
  }

  .gb-mega__menu{
    display: flex;
    flex-wrap: wrap;      /* wrap only items */
    white-space: normal;  /* allow line breaks */
    row-gap: 10px;
    column-gap: 18px;
    align-content: flex-start;
  }

  /* Actions stay on the right, never drop */
  .gb-header__actions{
    flex: 0 0 auto;
    margin-left: 16px;
    white-space: nowrap;
  }
}


.gb-404__search {
  padding: 0 !important;
}
/* =========================
   CHECKOUT HEADER FIX
   ========================= */

body.woocommerce-checkout:not(.woocommerce-order-received) .gb-header__row {
  justify-content: center; /* center logo */
  display: flex;
    flex-direction: column;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .gb-header__logo {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .gb-header__logo img {
  max-height: 50px;   /* adjust to your normal header size */
  width: auto;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .gb-header__logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* Hide desktop-only items on mobile */
.gb-only-desktop2 { display: none !important;
    width: 20px !important;
    height: 20px !important;
 }

@media (min-width: 980px) {
  .gb-only-desktop2 { display: flex !important; }
}

.gb-drawer__panel{
  display:flex;
  flex-direction:column;
  height:100%;
}

.gb-drawer__nav{
  flex:1;
  overflow-y:auto;
}

.gb-drawer-auth{
  border-top:1px solid rgba(0,0,0,.08);
  padding:18px 20px;
  background:#fff;
  display: flex;
    justify-content: center;
}

.gb-drawer-login{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:600;
  font-size:15px;
  text-decoration:none;
  color:#111;
}