/* =========================================================
   XBYTE — Header + Navigation (clean rebuild)
   Self-contained namespace: .xbh-*  /  .xbn-*
   Icons: Bootstrap Icons (loaded in header.twig)
   ========================================================= */

:root {
  --xbh-gold: #c8952f;
  --xbh-gold-dark: #a97c24;
  --xbh-gold-tint: #fbf4e5;
  --xbh-ink: #1a1a1a;
  --xbh-muted: #71757c;
  --xbh-line: #e7e7e4;
  --xbh-white: #ffffff;
}

/* Neutralise the one legacy bare-element rule that adds space above header */
header.xbh-header { padding-top: 0 !important; }

.xbh-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* =========================================================
   TOP BAR
   ========================================================= */
.xbh-topbar {
  background: #f4f5f6;
  color: #5b6068;
  font-size: 0.8rem;
}
.xbh-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
}

/* Left group: contact links separated by thin dividers */
.xbh-topbar__group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}
.xbh-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  position: relative;
  padding: 0 1.1rem;
  color: #5b6068 !important;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.15s ease;
}
.xbh-topbar__link:hover,
.xbh-topbar__link:focus { color: var(--xbh-ink) !important; }
.xbh-topbar__link i { font-size: 0.9rem; color: var(--xbh-gold); }
.xbh-topbar__link:hover i { color: var(--xbh-gold-dark); }

/* Divider before every link except the first in each group */
.xbh-topbar__group .xbh-topbar__link + .xbh-topbar__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 14px;
  width: 1px;
  background: rgba(0, 0, 0, 0.14);
}
.xbh-topbar__group .xbh-topbar__link:first-child { padding-left: 0; }
.xbh-topbar__group--secondary .xbh-topbar__link:last-child { padding-right: 0; }

/* Center note — shipping trust line */
.xbh-topbar__note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: #6b7078;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.xbh-topbar__note i { color: var(--xbh-gold); font-size: 0.95rem; }

/* Register / order highlighted as a gold call-to-action */
.xbh-topbar__link--cta { color: var(--xbh-gold-dark) !important; font-weight: 700; }
.xbh-topbar__link--cta:hover,
.xbh-topbar__link--cta:focus { color: var(--xbh-ink) !important; }

/* =========================================================
   HEADER MAIN
   ========================================================= */
.xbh-header {
  position: relative;
  z-index: 4000;
  background: var(--xbh-white);
  border-bottom: 1px solid var(--xbh-line);
}
.xbh-header__inner {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

/* Logo */
.xbh-logo { display: inline-flex; align-items: center; }
.xbh-logo a { display: inline-flex; align-items: center; }
.xbh-logo img { display: block; max-height: 34px; width: auto; }
.xbh-logo__inline { display: inline-block; max-width: 165px; line-height: 0; }
.xbh-logo__inline svg { display: block; height: 34px; width: auto; }
.xbh-logo__text { font-weight: 800; font-size: 1.4rem; color: var(--xbh-ink); letter-spacing: .02em; }

/* Search */
.xbh-search {
  display: flex;
  width: 100%;
  max-width: 640px;
  border: 1px solid #d9d9d6;
  background: var(--xbh-white);
}
.xbh-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  min-height: 44px;
  padding: 0 0.75rem 0 2.4rem;
  font-size: 0.95rem;
  color: var(--xbh-ink);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 14px center;
  background-size: 16px 16px;
}
.xbh-search__input::placeholder { color: #9ca3af; }
.xbh-search__btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  min-width: 108px;
  min-height: 44px;
  background: var(--xbh-ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.xbh-search__btn:hover,
.xbh-search__btn:focus { background: var(--xbh-gold); color: var(--xbh-ink); }

/* Search row wrapper (holds the mobile "Kategorien" button next to search) */
.xbh-searchrow { display: flex; align-items: stretch; gap: 0.5rem; width: 100%; min-width: 0; }
.xbh-searchrow .xbh-search { flex: 1 1 0; min-width: 0; }

/* Mobile categories button (hidden on desktop — the dark nav bar is shown instead) */
.xbh-catbtn {
  display: none;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 0.95rem;
  border: 0;
  background: var(--xbh-gold);
  color: #141414;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.xbh-catbtn:hover,
.xbh-catbtn:focus-visible { background: var(--xbh-gold-dark); color: #fff; }
.xbh-catbtn i { font-size: 1.2rem; line-height: 1; }

/* Actions rail */
.xbh-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
}
.xbh-actions__sep {
  width: 1px;
  height: 30px;
  background: var(--xbh-line);
  margin: 0 0.3rem;
}
/* Root cause of the cart-icon misalignment: OpenCart's global
   catalog/view/stylesheet/stylesheet.css sets `#cart { margin-bottom: 10px }`.
   Since #cart is a flex child here, that bottom margin is added to its margin
   box and cross-axis centring pushes the cart button ~5px up vs the others.
   Reset the margin (and collapse each wrapper to the button box). */
.xbh-actions > .dropdown,
.xbh-actions > form,
.xbh-actions > #cart,
.xbh-actions #cart > .dropdown {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.xbh-action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.55rem;
  border: 0;
  background: transparent;
  color: var(--xbh-ink) !important;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.xbh-action:hover,
.xbh-action:focus { color: var(--xbh-gold-dark) !important; background: transparent; }
.xbh-action__ic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}
.xbh-action__ic i {
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.xbh-action__labels { display: flex; flex-direction: column; justify-content: center; text-align: left; gap: 1px; }
.xbh-action__title { font-size: 0.82rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.xbh-action__sub { font-size: 0.68rem; color: var(--xbh-muted); line-height: 1.2; white-space: nowrap; }
.xbh-action:hover .xbh-action__sub { color: var(--xbh-muted); }
.xbh-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--xbh-gold);
  color: #fff;
  border: 2px solid var(--xbh-white);
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1;
}

/* Dropdowns (account / language / cart) */
.xbh-dropdown {
  margin-top: 0.6rem !important;
  padding: 0.35rem !important;
  min-width: 224px;
  background: var(--xbh-white) !important;
  border: 1px solid var(--xbh-line) !important;
  border-radius: 0;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12) !important;
}
.xbh-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--xbh-ink) !important;
  border-radius: 0;
}
.xbh-dropdown .dropdown-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--xbh-gold-tint);
  color: var(--xbh-gold-dark);
  font-size: 1rem;
}
.xbh-dropdown .dropdown-item:hover,
.xbh-dropdown .dropdown-item:focus {
  background: var(--xbh-gold-tint) !important;
  color: var(--xbh-gold-dark) !important;
}
.xbh-dropdown .dropdown-item:hover i,
.xbh-dropdown .dropdown-item:focus i {
  background: var(--xbh-gold-dark);
  color: #fff;
}
.xbh-dropdown .dropdown-divider {
  margin: 0.3rem 0.4rem;
  border-top: 1px solid var(--xbh-line);
  opacity: 1;
}

/* Language flags */
.xbh-lang__flag { width: 18px; height: 18px; object-fit: cover; border: 1px solid rgba(0,0,0,.08); }
.xbh-lang__flag--item { margin-right: 0.55rem; }

/* =========================================================
   CATEGORY NAV — top bar (dark, premium)
   ========================================================= */
.xbcat-bar {
  position: relative;
  z-index: 1400;
  background: #141414;
}
.xbcat-bar__inner {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  min-height: 52px;
}
.xbcat-bar__toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0 1.6rem;
  margin-right: 0.75rem;
  border: 0;
  background: var(--xbh-gold);
  color: #141414;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.xbcat-bar__toggle:hover,
.xbcat-bar__toggle:focus-visible { background: var(--xbh-gold-dark); color: #fff; }
.xbcat-bar__toggle i { font-size: 1.1rem; }

.xbcat-bar__links {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.xbcat-bar__links > li { display: flex; }
.xbcat-bar__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}
.xbcat-bar__link:hover,
.xbcat-bar__link:focus-visible {
  color: var(--xbh-gold);
  background: rgba(255, 255, 255, 0.06);
}
.xbcat-bar__link.is-active {
  color: #141414;
  background: var(--xbh-gold);
}

/* "Neu" highlight in the top category bar */
.xbcat-bar__link--new { color: #ffffff; gap: 0.4rem; }
.xbcat-bar__link--new i { font-size: 0.95rem; color: #ffffff; }
.xbcat-bar__link--new:hover i,
.xbcat-bar__link--new:focus-visible i { color: #141414; }
.xbcat-bar__link--new:hover,
.xbcat-bar__link--new:focus-visible { color: #141414; background: var(--xbh-gold); }
.xbcat-bar__link--new.is-active { color: #141414; background: var(--xbh-gold); }

/* "Neu" highlight in the drawer tree */
.xbcat-node--new .xbcat-node__link { color: var(--xbh-gold-dark); font-weight: 700; }
.xbcat-node--new .xbcat-node__link i { margin-right: 0.35rem; }

/* =========================================================
   CATEGORY NAV — left off-canvas drawer
   ========================================================= */
/* The panel is always painted (off-screen) so the slide transition always runs.
   No visibility toggling — that would make the browser skip the first animation. */
.xbcat-drawer {
  position: fixed;
  inset: 0;
  z-index: 9000;                    /* must sit above the header (z-index 4000) */
  overflow: hidden;                 /* clip the off-screen panel (no page scroll) */
  pointer-events: none;             /* clicks pass through while closed */
}
.xbcat-drawer.is-open { pointer-events: auto; }
.xbcat-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 20, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.36s ease;
}
.xbcat-drawer.is-open .xbcat-drawer__backdrop {
  opacity: 1;
  pointer-events: auto;
}
.xbcat-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 360px;
  max-width: 86vw;
  display: flex;
  flex-direction: column;
  background: var(--xbh-white);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.25);
  transform: translateX(-100%);
  will-change: transform;
  transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.xbcat-drawer.is-open .xbcat-drawer__panel { transform: translateX(0); }
.xbcat-drawer__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: 0 0.85rem 0 1.25rem;
  background: var(--xbh-ink);
  color: #fff;
}
.xbcat-drawer__title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.xbcat-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  transition: color 0.2s ease;
}
.xbcat-drawer__close:hover { color: var(--xbh-gold); }
.xbcat-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Accordion tree */
.xbcat-tree,
.xbcat-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}
.xbcat-node { border-bottom: 1px solid var(--xbh-line); }
.xbcat-node__row,
.xbcat-subnode__row { display: flex; align-items: stretch; }
.xbcat-node__link {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--xbh-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}
.xbcat-node__link:hover,
.xbcat-node.is-active > .xbcat-node__row > .xbcat-node__link { color: var(--xbh-gold-dark); }
.xbcat-node__toggle {
  flex: 0 0 auto;
  width: 52px;
  border: 0;
  border-left: 1px solid var(--xbh-line);
  background: transparent;
  color: var(--xbh-muted);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.xbcat-node__toggle:hover { background: #f6f6f4; color: var(--xbh-ink); }
.xbcat-node__toggle i,
.xbcat-subnode__toggle i {
  display: inline-block;
  transition: transform 0.25s ease;
}
.xbcat-node__toggle[aria-expanded="true"] i,
.xbcat-subnode__toggle[aria-expanded="true"] i { transform: rotate(180deg); }

/* Collapsible bodies (animated via grid-template-rows) */
.xbcat-node__sub,
.xbcat-subnode__sub {
  display: grid;
  grid-template-rows: 0fr;
  background: #fafafa;
  transition: grid-template-rows 0.3s ease;
}
.xbcat-node__sub.is-open,
.xbcat-subnode__sub.is-open { grid-template-rows: 1fr; }
.xbcat-node__sub > .xbcat-sub,
.xbcat-subnode__sub > .xbcat-sub { overflow: hidden; }

.xbcat-subnode { border-top: 1px solid var(--xbh-line); }
.xbcat-sub__link {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.25rem 0 1.9rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #4b4f56;
  text-decoration: none;
  transition: color 0.2s ease;
}
.xbcat-sub__link:hover,
.xbcat-sub__link.is-active { color: var(--xbh-gold-dark); }
.xbcat-subnode__toggle {
  flex: 0 0 auto;
  width: 44px;
  border: 0;
  border-left: 1px solid var(--xbh-line);
  background: transparent;
  color: var(--xbh-muted);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.xbcat-subnode__toggle:hover { background: #f0f0ed; color: var(--xbh-ink); }
.xbcat-sub--deep { background: #f2f2ef; }
.xbcat-sub__link--deep {
  min-height: 40px;
  padding-left: 2.6rem;
  font-size: 0.82rem;
  font-weight: 500;
}

/* Lock page scroll while the drawer is open */
body.xbcat-lock { overflow: hidden; }

/* =========================================================================
   Cart off-canvas drawer (slides in from the right)
   ========================================================================= */
.xbcart-drawer {
  position: fixed;
  inset: 0;
  z-index: 9500;
  overflow: hidden;
  pointer-events: none;
}
body.xbcart-open { overflow: hidden; }
body.xbcart-open .xbcart-drawer { pointer-events: auto; }

.xbcart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 20, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.36s ease;
}
body.xbcart-open .xbcart-drawer__backdrop { opacity: 1; pointer-events: auto; }

.xbcart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  background: var(--xbh-white);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  will-change: transform;
  transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1);
}
body.xbcart-open .xbcart-drawer__panel { transform: translateX(0); }

.xbcart-drawer__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: 0 0.85rem 0 1.25rem;
  background: var(--xbh-ink);
  color: #fff;
}
.xbcart-drawer__title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.xbcart-drawer__title i { color: var(--xbh-gold); font-size: 1.1rem; }
.xbcart-drawer__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--xbh-gold);
  color: var(--xbh-ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
}
.xbcart-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  transition: color 0.2s ease;
}
.xbcart-drawer__close:hover { color: var(--xbh-gold); }

.xbcart-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 1.1rem;
}

/* Cart line item */
.xbcart-item {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--xbh-line);
}
.xbcart-item__thumb {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--xbh-line);
  background: #fff;
  overflow: hidden;
}
.xbcart-item__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.xbcart-item__main { flex: 1 1 auto; min-width: 0; }
.xbcart-item__name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--xbh-ink);
  text-decoration: none;
  line-height: 1.35;
}
.xbcart-item__name:hover { color: var(--xbh-gold-dark); }
.xbcart-item__meta {
  margin: 0.25rem 0 0.4rem;
  font-size: 0.78rem;
  color: var(--xbh-muted);
}
.xbcart-item__meta span { display: block; }
.xbcart-item__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.xbcart-item__qty { font-size: 0.82rem; color: var(--xbh-muted); }
.xbcart-item__unit { color: var(--xbh-ink); font-weight: 600; }
.xbcart-item__total { font-size: 0.95rem; font-weight: 800; color: var(--xbh-ink); white-space: nowrap; }
.xbcart-item__remove { flex: 0 0 auto; margin: 0; }
.xbcart-item__remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--xbh-line);
  border-radius: 0;
  background: #fff;
  color: #c0392b;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.xbcart-item__remove-btn:hover { background: #c0392b; border-color: #c0392b; color: #fff; }

/* Footer with totals + CTAs */
.xbcart-drawer__foot {
  flex: 0 0 auto;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--xbh-line);
  background: #fafafa;
}
.xbcart-totals { margin-bottom: 0.9rem; }
.xbcart-totals__row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.2rem 0;
  font-size: 0.88rem;
  color: var(--xbh-muted);
}
.xbcart-totals__row--grand {
  margin-top: 0.35rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--xbh-line);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--xbh-ink);
}
.xbcart-totals__row--discount { color: #157347; font-weight: 700; }
.xbcart-totals__row--discount span { color: #157347; }
.xbcart-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.xbcart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 46px;
  padding: 0 1.1rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.xbcart-btn--primary { background: var(--xbh-ink); color: #fff; }
.xbcart-btn--primary:hover { background: var(--xbh-gold); color: var(--xbh-ink); }
.xbcart-btn--ghost { background: #fff; color: var(--xbh-ink); border-color: var(--xbh-ink); }
.xbcart-btn--ghost:hover { background: var(--xbh-ink); color: #fff; }

/* Empty state */
.xbcart-empty {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 2rem 1.5rem;
  text-align: center;
}
.xbcart-empty i { font-size: 3rem; color: var(--xbh-line); }
.xbcart-empty p { margin: 0.25rem 0 1rem; font-size: 1rem; color: var(--xbh-muted); }
.xbcart-empty .xbcart-btn { width: 100%; max-width: 240px; }

/* Re-enable transitions (theme disables all transitions globally) */
.xbcart-drawer__panel { transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1) !important; }
.xbcart-drawer__backdrop { transition: opacity 0.36s ease !important; }
.xbcart-item__remove-btn,
.xbcart-btn,
.xbcart-drawer__close { transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease !important; }

/* Re-enable transitions for the category nav (the theme disables all transitions
   globally via `*{transition:none!important}`; these higher-specificity rules win). */
.xbcat-drawer__panel { transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1) !important; }
.xbcat-drawer__backdrop { transition: opacity 0.36s ease !important; }
.xbcat-node__sub,
.xbcat-subnode__sub { transition: grid-template-rows 0.3s ease !important; }
.xbcat-node__toggle i,
.xbcat-subnode__toggle i { transition: transform 0.25s ease !important; }
.xbcat-bar__link { transition: color 0.2s ease, background-color 0.2s ease !important; }
.xbcat-bar__toggle { transition: background-color 0.2s ease, color 0.2s ease !important; }

/* =========================================================
   PAGE TRANSITIONS + LOADING (overrides the global animation disable)
   ========================================================= */
#xb-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--xbh-gold), var(--xbh-gold-dark));
  box-shadow: 0 0 10px rgba(200, 149, 47, 0.7);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: width 0.25s ease, opacity 0.3s ease !important;
}
#xb-progress.is-active { opacity: 1; }

/* Native cross-document page transition (Chrome/Edge). Both pages opt in via
   this rule (header.css is on every page), so navigation cross-fades smoothly. */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.32s;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Fallback fade for browsers without cross-document View Transitions */
@supports not (view-transition-name: none) {
  @keyframes xbPageIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  #container > main { animation: xbPageIn 0.3s ease both !important; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
  #container > main { animation: none !important; }
  #xb-progress { display: none; }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 991.98px) {
  /* Center trust note only fits comfortably on desktop */
  .xbh-topbar__note { display: none; }

  .xbh-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.5rem;
    row-gap: 0.6rem;
    min-height: auto;
    padding: 0.7rem 0;
  }
  .xbh-logo { min-width: 0; }
  .xbh-logo img,
  .xbh-logo__inline,
  .xbh-logo__inline svg { max-width: 100%; height: 30px; }

  /* Search + categories share one row on mobile — matched 44px height */
  .xbh-searchrow { grid-column: 1 / -1; order: 3; align-items: stretch; }
  .xbh-search { max-width: none; }
  .xbh-searchrow .xbh-search { height: 44px; }
  .xbh-catbtn {
    display: inline-flex;
    height: 44px;
    min-height: 0;
    line-height: 1;
    align-items: center;
    justify-content: center;
  }

  .xbh-action__labels { display: none; }
  .xbh-actions { gap: 0; }
  .xbh-actions__sep { display: none; }
  .xbh-action { padding: 0.35rem 0.4rem; }
  .xbh-action__ic { width: 26px; height: 26px; flex-basis: 26px; }
  .xbh-action__ic i { font-size: 1.25rem; }

  /* The dark categories bar is replaced by the inline button above */
  .xbcat-bar { display: none; }
}

@media (max-width: 575.98px) {
  .xbh-topbar { font-size: 0.72rem; }
  .xbh-topbar__inner { min-height: 36px; justify-content: center; }
  .xbh-topbar__group { justify-content: center; }
  .xbh-topbar__link { padding: 0 0.75rem; }
  .xbh-topbar__group--secondary { display: none; }

  .xbh-header__inner { column-gap: 0.35rem; }
  .xbh-logo img,
  .xbh-logo__inline,
  .xbh-logo__inline svg { height: 26px; }
  .xbh-search__input { min-height: 42px; padding-left: 2.2rem; font-size: 0.9rem; }
  .xbh-search__btn { min-width: 72px; min-height: 42px; font-size: 0.82rem; }
  .xbh-action { padding: 0.3rem 0.3rem; }
  .xbh-action__ic { width: 24px; height: 24px; flex-basis: 24px; }
  .xbh-action__ic i { font-size: 1.2rem; }

  /* Icon-only categories button to free room for search */
  .xbh-catbtn { padding: 0 0.7rem; }
  .xbh-catbtn__label { display: none; }
  .xbh-catbtn i { font-size: 1.35rem; }
}
