/*
Theme Name:  GBUniverse
Theme URI:   https://thegbuniverse.com
Author:      GBUniverse
Author URI:  https://thegbuniverse.com
Description: Custom theme for the Gifted Blood Universe — dark cinematic aesthetic.
Version:     1.9.6
License:     GNU General Public License v2 or later
Text Domain: gbuniverse
Tags:        dark, custom-colors, custom-menu, full-width-template
*/

/* ─── Tokens ─────────────────────────────────────────────────────────────────── */
:root {
  --bg-primary:    #000000;
  --bg-elevated:   #0a0a0a;
  --bg-card:       #111111;
  --bg-card-hover: #1c1c1e;
  --bg-banner:     #1c1c1e;

  --text-primary:   #f5f5f7;
  --text-secondary: #aeaeb2;
  --text-tertiary:  #636366;

  --accent:      #c8102e;
  --accent-blue: #0071e3;
  --success:     #34c759;

  --border-subtle:  rgba(255,255,255,0.06);
  --border-default: rgba(255,255,255,0.08);
  --border-strong:  rgba(255,255,255,0.18);

  --glass-bg:         rgba(0,0,0,0.72);
  --glass-bg-scrolled:rgba(0,0,0,0.88);

  --shadow-card:       0 2px 8px rgba(0,0,0,0.4);
  --shadow-card-hover: 0 12px 40px rgba(0,0,0,0.6);
  --shadow-book:       0 24px 60px rgba(0,0,0,0.8);
  --shadow-toast:      0 4px 20px rgba(0,0,0,0.5);

  --tile-height:     420px;
  --container-max:   1100px;
  --container-pad:   24px;
}

/* ─── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  background: #000;
}
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
/* Site wrapper — constrains everything except the banner.
   overflow-x: clip (not hidden) — 'hidden' creates a scroll container
   that breaks position:sticky on the header inside it. */
.gbu-site-wrap {
  max-width: 1440px;
  margin-inline: auto;
  overflow-x: clip;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
input, textarea, button, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ─── Layout ─────────────────────────────────────────────────────────────────── */
.gbu-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ─── Eyebrow ────────────────────────────────────────────────────────────────── */
.gbu-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.gbu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.2px;
  cursor: pointer;
  border: none;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  text-decoration: none;
}
.gbu-btn--primary {
  background: var(--accent);
  color: #fff;
}
.gbu-btn--primary:hover { opacity: 0.88; }

.gbu-btn--outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}
.gbu-btn--outline:hover { border-color: rgba(255,255,255,0.4); }

.gbu-btn--blue {
  background: var(--accent-blue);
  color: #fff;
  width: 100%;
  font-size: 15px;
}
.gbu-btn--blue:hover { opacity: 0.88; }

.gbu-btn--full { width: 100%; }

/* ─── Announcement Banner ────────────────────────────────────────────────────── */
.gbu-banner {
  background: var(--bg-banner);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  padding: 9px 20px;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.1px;
  position: relative;
  z-index: 101;
}
.gbu-banner a,
.gbu-banner__link {
  color: var(--accent);
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 12px;
  font-family: inherit;
  transition: opacity 0.15s;
}
.gbu-banner__link:hover { opacity: 0.8; }

/* ─── Navigation ─────────────────────────────────────────────────────────────── */
.gbu-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
  display: flex;
  align-items: center;
}
.gbu-header.scrolled {
  background: var(--glass-bg-scrolled);
  border-bottom-color: var(--border-default);
}
.gbu-header__inner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}
.gbu-header__logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  text-decoration: none;
  margin-right: 32px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.gbu-header__logo-img {
  height: 36px;
  width: auto;
  display: block;
  /* SVG colours invert correctly on a dark nav */
}
.gbu-header__nav {
  display: flex;
  flex: 1;
  align-items: center;
}
.gbu-header__nav .menu {
  display: flex;
  gap: 0;
  align-items: center;
}
.gbu-header__nav .menu li > a,
.gbu-header__nav .menu-item > a,
.gbu-nav-link {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.gbu-header__nav .menu li > a:hover,
.gbu-header__nav .menu-item > a:hover,
.gbu-header__nav .menu-item.current-menu-item > a,
.gbu-nav-link:hover,
.gbu-nav-link.active {
  color: var(--text-primary);
}
.gbu-header__nav .menu-item.current-menu-item > a {
  color: var(--accent);
}
.gbu-header__actions {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: auto;
}
.gbu-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 7px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.gbu-icon-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}
.gbu-cart-btn {
  position: relative;
}
.gbu-cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}
.gbu-cart-count:empty { display: none; }

/* ─── Cart Drawer ────────────────────────────────────────────────────────────── */
.gbu-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  z-index: 200;
}
.gbu-cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.gbu-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  background: rgba(18,18,18,0.97);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-left: 1px solid var(--border-default);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  z-index: 201;
  display: flex;
  flex-direction: column;
}
.gbu-cart-drawer.open {
  transform: translateX(0);
}
.gbu-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.gbu-cart-drawer__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.gbu-cart-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}
.gbu-cart-drawer__close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}
.gbu-cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
}
.gbu-cart-drawer__footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.gbu-cart-drawer__subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.gbu-cart-drawer__subtotal-label {
  font-size: 14px;
  color: var(--text-secondary);
}
.gbu-cart-drawer__subtotal-amount {
  font-size: 14px;
  font-weight: 600;
}
.gbu-cart-drawer__tax-note {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

/* Cart item */
.gbu-cart-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.gbu-cart-item:last-child { border-bottom: none; }
.gbu-cart-item__image {
  width: 68px;
  height: 68px;
  background: var(--bg-card-hover);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.gbu-cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gbu-cart-item__info { flex: 1; }
.gbu-cart-item__name {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
  line-height: 1.4;
}
.gbu-cart-item__meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.gbu-cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gbu-qty-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 4px 12px;
}
.gbu-qty-stepper button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1;
  padding: 0;
  transition: color 0.15s;
}
.gbu-qty-stepper button:hover { color: var(--accent); }
.gbu-qty-stepper__count {
  font-size: 13px;
  font-weight: 500;
  min-width: 16px;
  text-align: center;
}
.gbu-cart-item__price {
  font-size: 14px;
  font-weight: 500;
}

/* Cart empty */
.gbu-cart-empty {
  text-align: center;
  padding: 80px 0;
}
.gbu-cart-empty__icon {
  margin-bottom: 16px;
  opacity: 0.3;
}
.gbu-cart-empty__title {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 6px;
}
.gbu-cart-empty__sub {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ─── Toast ──────────────────────────────────────────────────────────────────── */
.gbu-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: rgba(28,28,30,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  padding: 11px 22px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  z-index: 400;
  box-shadow: var(--shadow-toast);
  white-space: nowrap;
  border: 1px solid var(--border-default);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.gbu-toast.show {
  opacity: 1;
  pointer-events: auto;
}

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.gbu-hero {
  background-color: var(--bg-primary); /* image set inline; color = fallback */
  aspect-ratio: 1440 / 574; /* matches hero bg image — section always shows image in full */
  min-height: 480px;         /* safety net: content never gets crushed at small widths */
  padding: 0 var(--container-pad);
  text-align: center;
  border-bottom: 3px solid var(--bg-banner); /* separator matches announcement bar grey */
  position: relative;
  overflow: hidden;
}
.gbu-hero__scanlines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.012) 2px,
    rgba(255,255,255,0.012) 4px
  );
  pointer-events: none;
}
.gbu-hero__inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.gbu-hero__h1 {
  font-size: clamp(34px, 4.5vw, 60px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.gbu-hero__h1 span {
  font-weight: 200;
  color: var(--text-secondary);
}
.gbu-hero__body {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.55;
  max-width: 480px;
  margin: 0 auto 16px;
  letter-spacing: -0.1px;
}
.gbu-hero__ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Four Tiles ─────────────────────────────────────────────────────────────── */
.gbu-four-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.gbu-tile {
  background-color: var(--bg-primary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  height: var(--tile-height);
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background-color 0.3s;
  text-decoration: none;
  display: block;
}
.gbu-tile:nth-child(odd) {
  border-right: 1px solid rgba(255,255,255,0.07);
}
.gbu-tile__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.gbu-tile:hover .gbu-tile__bg {
  transform: scale(1.04);
}
.gbu-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.2) 40%,
    rgba(0,0,0,0.6) 100%
  );
  transition: background 0.3s;
  z-index: 1;
}
.gbu-tile:hover .gbu-tile__overlay {
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(0,0,0,0.5) 100%
  );
}
.gbu-tile__text {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}
.gbu-tile__title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.6px;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-shadow: 0 1px 20px rgba(0,0,0,0.8);
  transition: color 0.2s;
}
.gbu-tile:hover .gbu-tile__title { color: #fff; }
.gbu-tile__sub {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}
.gbu-tile__arrow {
  position: absolute;
  bottom: 28px;
  right: 28px;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.25s;
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  z-index: 2;
}
.gbu-tile:hover .gbu-tile__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Tile visuals */
.gbu-tile__visual {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* Character silhouette */
.gbu-tile__character {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 300px;
}

/* Nebula */
.gbu-tile__nebula {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  overflow: hidden;
}
.gbu-tile__nebula-glow {
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse 90% 60% at 50% 100%, var(--accent) 0%, rgba(200,16,46,0.4) 30%, rgba(200,16,46,0.13) 60%, transparent 80%);
  filter: blur(2px);
}
.gbu-tile__nebula-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Shop tile */
.gbu-tile__shop-products {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  display: flex;
  gap: 2px;
  align-items: flex-end;
  padding: 0 24px;
}
.gbu-tile__shop-product {
  flex: 1;
  background: #1a1a1a;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  opacity: 0.85;
}
.gbu-tile__shop-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}
.gbu-tile__shop-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #050505 0%, transparent 40%, transparent 60%, #050505 100%);
  pointer-events: none;
}

/* Stream tile */
.gbu-tile__equalizer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 0 32px;
  background: linear-gradient(to bottom, #020206 0%, transparent 50%);
}
.gbu-tile__eq-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, var(--accent), rgba(200,16,46,0.27));
  animation: gbu-pulse 1.5s ease-in-out infinite alternate;
  transform-origin: bottom;
}

@keyframes gbu-pulse {
  from { transform: scaleY(0.6); }
  to   { transform: scaleY(1); }
}

/* ─── Product Grid Section ───────────────────────────────────────────────────── */
.gbu-products-section {
  padding: 80px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
}
.gbu-products-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}
.gbu-products-section__h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1.2px;
  color: var(--text-primary);
}
.gbu-products-section__viewall {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s;
}
.gbu-products-section__viewall:hover { opacity: 0.8; }
.gbu-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ─── Product Card ───────────────────────────────────────────────────────────── */
.gbu-product-card {
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.gbu-product-card__image-wrap {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s, transform 0.3s;
}
.gbu-product-card:hover .gbu-product-card__image-wrap {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}
.gbu-product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.gbu-product-card:hover .gbu-product-card__image-wrap img {
  transform: scale(1.04);
}
.gbu-product-card__sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  z-index: 2;
}
.gbu-product-card__atc-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 14px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  opacity: 0;
  transition: opacity 0.22s;
  z-index: 3;
}
.gbu-product-card:hover .gbu-product-card__atc-overlay { opacity: 1; }
.gbu-product-card__atc-btn {
  width: 100%;
  padding: 11px 0;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.gbu-product-card__atc-btn:hover {
  background: rgba(255,255,255,0.2);
}
.gbu-product-card__atc-btn.added {
  background: rgba(52,199,89,0.95);
  border-color: transparent;
}
.gbu-product-card__info { padding: 0 2px; }
.gbu-product-card__name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  letter-spacing: -0.2px;
  color: var(--text-primary);
}
.gbu-product-card__subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 7px;
}
.gbu-product-card__pricing {
  display: flex;
  gap: 8px;
  align-items: center;
}
.gbu-product-card__price {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}
.gbu-product-card__compare {
  font-size: 12px;
  color: var(--text-tertiary);
  text-decoration: line-through;
}

/* ─── Newsletter CTA ─────────────────────────────────────────────────────────── */
.gbu-newsletter-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  padding: 90px var(--container-pad);
  text-align: center;
}
.gbu-newsletter-section__h2 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--text-primary);
  line-height: 1.04;
  margin-bottom: 18px;
}
.gbu-newsletter-section__h2 span { color: var(--text-tertiary); }
.gbu-newsletter-section__body {
  font-size: 17px;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 440px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.gbu-newsletter-form {
  display: flex;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 980px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}
.gbu-newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}
.gbu-newsletter-form input::placeholder { color: var(--text-secondary); }
.gbu-newsletter-form button {
  padding: 14px 24px;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0 980px 980px 0;
  flex-shrink: 0;
  font-family: inherit;
  transition: opacity 0.15s;
}
.gbu-newsletter-form button:hover { opacity: 0.88; }
.gbu-newsletter-success {
  color: var(--accent);
  font-size: 16px;
  font-weight: 500;
}

/* ─── Inner Page Header ──────────────────────────────────────────────────────── */
.gbu-page-header {
  padding: 60px var(--container-pad) 40px;
}
.gbu-page-header__h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 0;
}

/* ─── Shop / Archive ─────────────────────────────────────────────────────────── */
.gbu-shop-page {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 60px var(--container-pad);
}
.gbu-filter-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.gbu-filter-pill {
  padding: 7px 18px;
  border-radius: 980px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.gbu-filter-pill:hover,
.gbu-filter-pill.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #000;
}

/* ─── Single Product ─────────────────────────────────────────────────────────── */
.gbu-single-product {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 60px var(--container-pad);
}
.gbu-single-product__layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 72px;
  align-items: start;
}
.gbu-single-product__image-wrap {
  background: var(--bg-card);
  border-radius: 20px;
  aspect-ratio: 2 / 3;
  box-shadow: var(--shadow-book);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.gbu-single-product__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gbu-single-product__placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg,#111,#111 8px,#0e0e0e 8px,#0e0e0e 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.8;
}
.gbu-single-product__atc-btn {
  width: 100%;
  padding: 15px 0;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.gbu-single-product__atc-btn.added {
  background: var(--success);
}
.gbu-single-product__eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.gbu-single-product__h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -2.5px;
  line-height: 1.0;
  margin-bottom: 28px;
  color: var(--text-primary);
}
.gbu-single-product__body {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 36px;
  font-weight: 300;
}
.gbu-single-product__callout {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px 28px;
  border: 1px solid var(--border-subtle);
}
.gbu-single-product__callout-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.gbu-single-product__callout p {
  font-size: 14px;
  color: var(--text-secondary);
}
.gbu-single-product__price {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ─── About Page ─────────────────────────────────────────────────────────────── */
.gbu-about-page {
  max-width: 720px;
  margin-inline: auto;
  padding: 80px var(--container-pad);
}
.gbu-about-page__body {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
}
.gbu-about-page__body p { margin-bottom: 28px; }
.gbu-about-page__body p:last-child { margin-bottom: 0; }

/* ─── Stream Page ────────────────────────────────────────────────────────────── */
.gbu-stream-page {
  max-width: 960px;
  margin-inline: auto;
  padding: 80px var(--container-pad);
  text-align: center;
}
.gbu-stream-page__body {
  font-size: 17px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 48px;
}
.gbu-stream-players {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
  text-align: left;
}
.gbu-stream-player__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.gbu-stream-player iframe {
  display: block;
  width: 100%;
  height: 450px;
  border-radius: 12px;
}
@media (max-width: 640px) {
  .gbu-stream-players {
    grid-template-columns: 1fr;
  }
}
.gbu-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  text-align: left;
}
.gbu-platform-card {
  padding: 24px 28px;
  background: var(--bg-card);
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
}
.gbu-platform-card:hover {
  background: var(--bg-card-hover);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.gbu-platform-card__icon { font-size: 26px; }
.gbu-platform-card__name { font-size: 15px; font-weight: 500; }
.gbu-platform-card__arrow { margin-left: auto; color: var(--accent); }

/* ─── News / Blog ────────────────────────────────────────────────────────────── */
.gbu-news-page {
  max-width: 800px;
  margin-inline: auto;
  padding: 80px var(--container-pad);
}
.gbu-post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gbu-post-card {
  padding: 26px 30px;
  background: var(--bg-card);
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  display: block;
}
.gbu-post-card:hover { background: var(--bg-card-hover); }
.gbu-post-card__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.gbu-post-card__tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(200,16,46,0.12);
  padding: 3px 10px;
  border-radius: 20px;
}
.gbu-post-card__date {
  font-size: 12px;
  color: var(--text-tertiary);
}
.gbu-post-card__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

/* ─── Author Page ────────────────────────────────────────────────────────────── */
.gbu-author-page {
  max-width: 800px;
  margin-inline: auto;
  padding: 80px var(--container-pad);
}
.gbu-author-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}
.gbu-author-photo {
  width: 200px;
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  background: repeating-linear-gradient(45deg,#111,#111 8px,#0e0e0e 8px,#0e0e0e 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  border: 1px solid var(--border-subtle);
}
.gbu-author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gbu-author-photo--placeholder {
  font-family: monospace;
  font-size: 10px;
  color: var(--text-tertiary);
  text-align: center;
}
.gbu-author__name {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}
.gbu-author__bio {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 28px;
}
.gbu-social-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gbu-social-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(200,16,46,0.1);
  padding: 6px 16px;
  border-radius: 20px;
  transition: background 0.15s;
  text-decoration: none;
}
.gbu-social-pill:hover { background: rgba(200,16,46,0.2); }

/* ─── Contact Page ───────────────────────────────────────────────────────────── */
.gbu-contact-page {
  max-width: 560px;
  margin-inline: auto;
  padding: 80px var(--container-pad);
}
.gbu-contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.gbu-field {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.15s;
  font-family: inherit;
}
.gbu-field::placeholder { color: var(--text-secondary); }
.gbu-field:focus-visible { border-color: var(--accent); }
textarea.gbu-field {
  height: 140px;
  resize: vertical;
  margin-bottom: 20px;
}
.gbu-contact-success {
  text-align: center;
  padding: 60px 0;
}
.gbu-contact-success__icon {
  width: 56px;
  height: 56px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 20px;
}
.gbu-contact-success__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.gbu-contact-success__sub { color: var(--text-secondary); }

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.gbu-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  padding: 52px var(--container-pad) 32px;
}
.gbu-footer__inner { max-width: var(--container-max); margin-inline: auto; }
.gbu-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.gbu-footer__brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.gbu-footer__brand-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 260px;
  margin-bottom: 20px;
}
.gbu-footer__social {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.gbu-footer__social-link {
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s;
  text-decoration: none;
  background: none;
  border: none;
  font-family: inherit;
}
.gbu-footer__social-link:hover { color: var(--accent); }
.gbu-footer__col-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
}
.gbu-footer__link {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  cursor: pointer;
  transition: color 0.15s;
  text-decoration: none;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
  text-align: left;
}
.gbu-footer__link:hover { color: var(--accent); }
.gbu-footer__bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.gbu-footer__copyright {
  font-size: 12px;
  color: var(--text-tertiary);
}
.gbu-footer__payments {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.gbu-footer__payment-tag {
  font-size: 10px;
  color: var(--text-secondary);
  background: var(--bg-card-hover);
  border: 1px solid var(--border-subtle);
  padding: 3px 7px;
  border-radius: 5px;
}

/* ─── 404 ────────────────────────────────────────────────────────────────────── */
.gbu-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px var(--container-pad);
}
.gbu-404__code {
  font-size: 120px;
  font-weight: 700;
  letter-spacing: -6px;
  color: var(--text-tertiary);
  line-height: 1;
  margin-bottom: 16px;
}
.gbu-404__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.gbu-404__body {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ─── Single Post ────────────────────────────────────────────────────────────── */
.gbu-single-post {
  max-width: 720px;
  margin-inline: auto;
  padding: 60px var(--container-pad) 80px;
}
.gbu-single-post__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 32px;
}
.gbu-single-post__content {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.78;
  font-weight: 300;
}
.gbu-single-post__content p { margin-bottom: 24px; }
.gbu-single-post__content h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  margin: 40px 0 16px;
}
.gbu-single-post__content h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 32px 0 12px;
}
.gbu-single-post__content a {
  color: var(--accent);
  text-decoration: underline;
}
.gbu-single-post__content img {
  border-radius: 12px;
  margin: 24px 0;
}

/* ─── WooCommerce global overrides ───────────────────────────────────────────── */
.woocommerce-notices-wrapper { max-width: var(--container-max); margin-inline: auto; padding: 16px var(--container-pad) 0; }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  color: var(--text-primary);
  padding: 12px 16px;
  font-size: 14px;
  list-style: none;
  margin-bottom: 12px;
}
.woocommerce-message::before { display: none; }

/* Quantity input override */
.gbu-qty-input-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-default);
  width: fit-content;
}
.gbu-qty-input-wrap button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
.gbu-qty-input-wrap button:hover { color: var(--accent); }
.gbu-qty-input-wrap input[type="number"] {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  width: 40px;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}
.gbu-qty-input-wrap input[type="number"]::-webkit-outer-spin-button,
.gbu-qty-input-wrap input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/* ─── CF7 / WPForms override ─────────────────────────────────────────────────── */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.15s;
  font-family: inherit;
}
.wpcf7-form input[type="text"]:focus-visible,
.wpcf7-form input[type="email"]:focus-visible,
.wpcf7-form textarea:focus-visible {
  border-color: var(--accent);
}
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
  padding: 13px 28px;
  background: var(--accent);
  border: none;
  border-radius: 980px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
  font-family: inherit;
}
.wpcf7-form input[type="submit"]:hover { opacity: 0.88; }
.wpcf7-spinner { display: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   v1.1 REFINEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Selection color ────────────────────────────────────────────────────────── */
::selection { background: var(--accent); color: #fff; }

/* ─── Smooth focus ring ──────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:focus-visible, a:focus-visible { border-radius: 4px; }

/* ─── Hero refinements ───────────────────────────────────────────────────────── */
.gbu-hero {
  padding-top: 52px;
  padding-bottom: 0;
}
.gbu-hero__eyebrow-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.gbu-hero__eyebrow-line {
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
/* H1 gets a subtle gradient on the primary text */
.gbu-hero__h1 {
  background: linear-gradient(180deg, #ffffff 60%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -3.5px;
}
/* The light-weight subtitle line overrides the gradient */
.gbu-hero__h1 span {
  -webkit-text-fill-color: var(--text-secondary);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
.gbu-hero__body {
  font-size: 18px;
  letter-spacing: -0.1px;
  line-height: 1.65;
}
.gbu-hero__ctas { gap: 14px; }
.gbu-btn { letter-spacing: -0.3px; }

/* ─── Nav: active page indicator ────────────────────────────────────────────── */
.gbu-header__nav .menu-item.current-menu-item > a::after,
.gbu-header__nav .menu li.current-menu-item > a::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  margin-top: -2px;
}

/* ─── Four tiles: title shadow lift ─────────────────────────────────────────── */
.gbu-tile__title {
  text-shadow: 0 2px 24px rgba(0,0,0,0.9);
}
.gbu-tile:hover {
  background: rgba(255,255,255,0.025) !important;
}

/* ─── Product card: image background refinement ──────────────────────────────── */
.gbu-product-card__image-wrap {
  background: #0d0d0d;
}
/* Price color uses accent on sale items */
.gbu-product-card.is-on-sale .gbu-product-card__price {
  color: var(--accent);
}

/* ─── Section eyebrow: add leading line ─────────────────────────────────────── */
.gbu-products-section .gbu-eyebrow,
.gbu-newsletter-section .gbu-eyebrow,
.gbu-shop-page .gbu-eyebrow,
.gbu-about-page .gbu-eyebrow,
.gbu-stream-page .gbu-eyebrow,
.gbu-news-page .gbu-eyebrow,
.gbu-author-page .gbu-eyebrow,
.gbu-contact-page .gbu-eyebrow,
.gbu-single-post .gbu-eyebrow,
.gbu-single-product .gbu-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.gbu-products-section .gbu-eyebrow::before,
.gbu-newsletter-section .gbu-eyebrow::before,
.gbu-shop-page .gbu-eyebrow::before,
.gbu-about-page .gbu-eyebrow::before,
.gbu-stream-page .gbu-eyebrow::before,
.gbu-news-page .gbu-eyebrow::before,
.gbu-author-page .gbu-eyebrow::before,
.gbu-contact-page .gbu-eyebrow::before,
.gbu-single-post .gbu-eyebrow::before,
.gbu-single-product .gbu-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

/* ─── Newsletter section: bigger, more drama ─────────────────────────────────── */
.gbu-newsletter-section {
  padding: 100px var(--container-pad) 96px;
}
.gbu-newsletter-section .gbu-eyebrow { margin-bottom: 20px; }
.gbu-newsletter-form {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 8px 32px rgba(0,0,0,0.4);
}
.gbu-newsletter-form:focus-within {
  box-shadow: 0 0 0 2px var(--accent), 0 8px 32px rgba(0,0,0,0.4);
}

/* ─── Author page: photo border ─────────────────────────────────────────────── */
.gbu-author-photo {
  border: 1px solid rgba(255,255,255,0.08);
}
.gbu-author__name { color: var(--text-primary); }

/* ─── Platform cards: improved icon sizing ───────────────────────────────────── */
.gbu-platform-card__icon { font-size: 22px; flex-shrink: 0; }
.gbu-platform-card {
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.gbu-platform-card:hover {
  transform: translateY(-2px);
}

/* ─── Blog post cards: hover border accent ───────────────────────────────────── */
.gbu-post-card {
  border-color: transparent;
  transition: background 0.2s, border-color 0.2s;
}
.gbu-post-card:hover {
  border-color: rgba(200,16,46,0.2);
}

/* ─── Footer: tighter social row ────────────────────────────────────────────── */
.gbu-footer__social { gap: 16px; margin-top: 2px; }
.gbu-footer__social-link { font-size: 12px; font-weight: 500; }

/* ─── Scrollbar accent ───────────────────────────────────────────────────────── */
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .gbu-product-grid { grid-template-columns: repeat(2, 1fr); }
  .gbu-four-tiles { grid-template-columns: 1fr; }
  .gbu-tile:nth-child(odd) { border-right: none; }
  .gbu-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .gbu-single-product__layout { grid-template-columns: 1fr; gap: 40px; }
  .gbu-single-product__image-wrap { max-width: 320px; margin-inline: auto; }
  .gbu-author-layout { grid-template-columns: 1fr; }
  .gbu-author-photo { width: 160px; height: 210px; }
  .gbu-platform-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  /* Hero: drop aspect-ratio (designed for 1440px desktop), switch to cover + top-aligned flex */
  .gbu-hero {
    aspect-ratio: unset;
    min-height: 520px;
    padding: 48px var(--container-pad) 0;
    background-size: cover !important;     /* overrides inline style */
    background-position: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .gbu-hero__inner { width: 100%; }
  /* Book Two hero: push content to bottom on mobile too */
  .gbu-hero--book2 { justify-content: flex-end; padding-top: 0; padding-bottom: 40px; }
  .gbu-hero__h1 { letter-spacing: -2px; }
  .gbu-hero__ctas { flex-direction: column; align-items: center; }
  .gbu-btn { width: 100%; max-width: 300px; justify-content: center; }
  .gbu-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gbu-footer__grid { grid-template-columns: 1fr; }
  .gbu-header__nav .menu { gap: 0; }
  .gbu-header__nav .menu-item a { padding: 0 8px; font-size: 11px; }
  .gbu-newsletter-section__h2 { letter-spacing: -1.5px; }
}

@media (max-width: 400px) {
  .gbu-product-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BOOK ASSETS & NEW SECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Hero: background image support ─────────────────────────────────────── */
.gbu-hero--has-bg {
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.gbu-hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.55) 40%,
    rgba(0,0,0,0.72) 100%
  );
  pointer-events: none;
}

/* ─── Tile: book cover visual ────────────────────────────────────────────── */
.gbu-tile__book-cover {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 52%;
  max-width: 220px;
  z-index: 1;
}
.gbu-tile__book-cover img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.8));
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.gbu-tile:hover .gbu-tile__book-cover img {
  transform: translateY(-6px) scale(1.03);
}
.gbu-tile__book-cover-fade {
  position: absolute;
  bottom: 0;
  left: -20%;
  right: -20%;
  height: 40%;
  background: linear-gradient(to top, #000 0%, transparent 100%);
  pointer-events: none;
}

/* ─── Book Two announcement strip ───────────────────────────────────────── */
.gbu-book2-announcement {
  display: block;
  background: #000;
  overflow: hidden;
  max-height: 560px;
  line-height: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.gbu-book2-announcement a { display: block; line-height: 0; }
.gbu-book2-announcement__bg {
  width: 100%;
  height: 560px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(.4,0,.2,1), opacity 0.3s;
}
.gbu-book2-announcement a:hover .gbu-book2-announcement__bg {
  transform: scale(1.015);
  opacity: 0.92;
}
@media (max-width: 600px) {
  .gbu-book2-announcement__bg { height: 320px; }
}

/* ─── Books page ─────────────────────────────────────────────────────────── */
.gbu-books-page { background: var(--bg-primary); }
.gbu-books-page__inner { padding-top: 64px; padding-bottom: 80px; }

.gbu-books-page__header { margin-bottom: 56px; }
.gbu-books-page__h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-top: 8px;
}

/* ─── Book card (Book One) ───────────────────────────────────────────────── */
.gbu-book-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 56px;
}

/* Left: cover + thumbnails */
.gbu-book-card__left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 220px;
  flex-shrink: 0;
}

.gbu-book-card__cover {
  width: 220px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-book);
  background: var(--bg-card);
  flex-shrink: 0;
}
.gbu-book-card__cover-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.2s;
}

.gbu-book-card__editions {
  display: flex;
  gap: 10px;
}
.gbu-edition-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 4px;
  cursor: pointer;
  transition: border-color 0.15s;
  font-family: inherit;
}
.gbu-edition-thumb__img {
  width: 56px;
  aspect-ratio: 2 / 3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 4px;
}
.gbu-edition-thumb span {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-tertiary);
  transition: color 0.15s;
}
.gbu-edition-thumb.active,
.gbu-edition-thumb:hover { border-color: var(--accent); }
.gbu-edition-thumb.active span,
.gbu-edition-thumb:hover span { color: var(--text-primary); }

/* Right: details */
.gbu-book-card__series {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.gbu-book-card__title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1.8px;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.gbu-book-card__author {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
}
.gbu-book-card__desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.72;
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 28px;
}
.gbu-book-card__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 28px;
}
.gbu-book-card__meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}
.gbu-book-card__meta-row span:first-child {
  color: var(--text-tertiary);
  font-weight: 500;
  min-width: 72px;
}
.gbu-book-card__price { color: var(--text-primary); font-weight: 600; }

.gbu-book-card__buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--accent);
  border: none;
  border-radius: 980px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
  font-family: inherit;
}
.gbu-book-card__buy:hover { opacity: 0.88; }
.gbu-book-card__buy--inactive {
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: default;
  border: 1px solid var(--border-default);
}

/* ─── Book Two card ──────────────────────────────────────────────────────── */
.gbu-book2-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 36px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px;
}
.gbu-book2-card__cover {
  width: 140px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #0d0d0d;
  flex-shrink: 0;
}
.gbu-book2-card__cover-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.gbu-book2-card__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.2;
}
.gbu-book2-card__series {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}
.gbu-book2-card__body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 300;
}
.gbu-book2-card__form { max-width: 340px; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
/* !important used on layout properties to defeat any cached inline styles    */
@media (max-width: 768px) {
  .gbu-books-page__inner { padding-top: 40px; padding-bottom: 60px; }
  .gbu-books-page__h1 { font-size: 36px; }
  .gbu-books-page__header { margin-bottom: 32px; }

  /* Book One — vertical stack */
  .gbu-book-card {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 32px !important;
    padding-bottom: 48px !important;
    margin-bottom: 40px !important;
  }
  .gbu-book-card__left {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    flex-shrink: unset !important;
  }
  .gbu-book-card__cover { width: 160px !important; }
  .gbu-book-card__editions { justify-content: center; }
  .gbu-book-card__right { width: 100%; min-width: 0; }
  .gbu-book-card__title { font-size: 30px; letter-spacing: -1px; }
  .gbu-book-card__desc  { max-width: 100%; font-size: 15px; }
  .gbu-book-card__buy   { width: 100%; justify-content: center; }

  /* Book Two — vertical stack */
  .gbu-book2-card {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    align-items: center !important;
    gap: 24px !important;
    padding: 28px 20px !important;
  }
  .gbu-book2-card__cover { width: 120px !important; flex-shrink: 0; }
  .gbu-book2-card__info  { width: 100%; text-align: center; min-width: 0; }
  .gbu-book2-card__title { font-size: 22px; letter-spacing: -0.5px; }
  .gbu-newsletter-form,
  .gbu-book2-card__form  { max-width: 100%; }
  .gbu-newsletter-form--left { margin-inline: auto; }

  .gbu-book-card__retailer-links { gap: 6px; }
  .gbu-retailer-btn { font-size: 12px; padding: 8px 14px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   v1.2 ADDITIONS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Search overlay ─────────────────────────────────────────────────────── */
.gbu-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  padding: 24px;
}
.gbu-search-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.gbu-search-overlay__close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.15s;
  font-family: inherit;
}
.gbu-search-overlay__close:hover { color: var(--text-primary); }
.gbu-search-overlay__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 24px;
  display: block;
}
.gbu-search-overlay__row {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 600px;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  transition: border-color 0.2s;
}
.gbu-search-overlay__row:focus-within { border-color: var(--accent); }
.gbu-search-overlay__row input[type="search"] {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 300;
  padding: 12px 0;
  outline: none;
  font-family: inherit;
  letter-spacing: -0.5px;
  -webkit-appearance: none;
}
.gbu-search-overlay__row input::placeholder { color: var(--text-tertiary); }
.gbu-search-overlay__row button {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.gbu-search-overlay__row button:hover { color: var(--text-primary); }

/* ─── Retailer buttons ───────────────────────────────────────────────────── */
.gbu-book-card__retailers { margin-top: 4px; }
.gbu-book-card__retailers-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}
.gbu-book-card__retailer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gbu-retailer-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 18px;
  border-radius: 980px;
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.gbu-retailer-btn:hover {
  background: var(--bg-card);
  border-color: var(--border-strong);
}
.gbu-retailer-btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.gbu-retailer-btn--primary:hover { opacity: 0.88; background: var(--accent); }

/* Goodreads button */
.gbu-goodreads-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border: 1px solid #c8a96e;
  border-radius: 8px;
  color: #c8a96e;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  margin-top: 20px;
  width: fit-content;
}
.gbu-goodreads-btn:hover {
  background: #c8a96e;
  color: #1a1a1a;
}
.gbu-goodreads-btn svg { flex-shrink: 0; }

/* ─── Hamburger toggle ───────────────────────────────────────────────────── */
.gbu-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 6px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--text-primary);
  -webkit-tap-highlight-color: transparent;
}
.gbu-menu-toggle__bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.15s ease;
  transform-origin: center;
}
.gbu-menu-toggle[aria-expanded="true"] .gbu-menu-toggle__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.gbu-menu-toggle[aria-expanded="true"] .gbu-menu-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.gbu-menu-toggle[aria-expanded="true"] .gbu-menu-toggle__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── Mobile nav panel ───────────────────────────────────────────────────── */
.gbu-mobile-nav {
  position: fixed;
  top: 52px; /* matches .gbu-header height */
  left: 0;
  right: 0;
  z-index: 98;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-default);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s 0.22s;
  pointer-events: none;
  /* hidden on desktop — shown only via @media below */
  display: none;
}
.gbu-mobile-nav.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s;
  pointer-events: auto;
}
.gbu-mobile-nav .menu {
  list-style: none;
  margin: 0;
  padding: 6px 0 18px;
  display: flex;
  flex-direction: column;
}
.gbu-mobile-nav .menu li > a {
  display: block;
  padding: 13px var(--container-pad);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: -0.1px;
  transition: color 0.15s;
}
.gbu-mobile-nav .menu li > a:hover,
.gbu-mobile-nav .menu li.current-menu-item > a {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .gbu-header__nav { display: none !important; }
  .gbu-menu-toggle { display: flex !important; }
  .gbu-mobile-nav  { display: block !important; }
}

/* ─── Book Two hero: FBBS image, full content block at bottom ────────────── */
.gbu-hero--book2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; /* push entire content block to the lower stage */
  padding-top: 0;
  padding-bottom: 56px;
}
.gbu-hero--book2 .gbu-hero__inner {
  width: 100%;
}
.gbu-hero2__top { text-align: center; }

/* ─── Shop page: section headers + Printful divider ─────────────────────── */
.gbu-shop-section__header {
  margin-bottom: 28px;
}
.gbu-shop-section__h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-top: 6px;
}
.gbu-shop-divider {
  height: 3px;
  background: var(--bg-banner);
  margin: 56px 0;
  border-radius: 2px;
}
.gbu-merch-section { margin-bottom: 40px; }

/* ─── About page ────────────────────────────────────────────────────────── */
.gbu-about-page { padding: 64px 0 80px; }
.gbu-about-page__header { max-width: 720px; margin-bottom: 56px; }
.gbu-about-page__body {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 20px;
  letter-spacing: -0.1px;
}
.gbu-about-page__content {
  max-width: 720px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
}
.gbu-about-page__content p { margin-bottom: 1.4em; }
.gbu-about-page__content h2,
.gbu-about-page__content h3 { color: var(--text-primary); margin: 2em 0 0.6em; }

/* ─── Left-aligned newsletter form ──────────────────────────────────────── */
.gbu-newsletter-form--left {
  margin-left: 0;
  margin-right: 0;
}

/* ─── Toast: error state ─────────────────────────────────────────────────── */
.gbu-toast--error { background: rgba(200,16,46,0.92); }

/* ─── WooCommerce — dark theme overrides ────────────────────────────────────── */

/* Broad white-text reset for every WC page —————————————————————————————————
   WooCommerce body classes: woocommerce-page, woocommerce-cart,
   woocommerce-checkout, woocommerce-account, woocommerce-order-received.
   Targets all common text elements explicitly so browser/widget defaults
   can't override the inherited body color.                                    */
body.woocommerce-page p,
body.woocommerce-page span,
body.woocommerce-page label,
body.woocommerce-page td,
body.woocommerce-page th,
body.woocommerce-page li,
body.woocommerce-page h1,
body.woocommerce-page h2,
body.woocommerce-page h3,
body.woocommerce-page h4,
body.woocommerce-page h5,
body.woocommerce-page small,
body.woocommerce-page strong,
body.woocommerce-page abbr,
body.woocommerce-page address,
body.woocommerce-page legend,
body.woocommerce-page dt,
body.woocommerce-page dd,
body.woocommerce-cart p,
body.woocommerce-cart span,
body.woocommerce-cart label,
body.woocommerce-cart td,
body.woocommerce-cart th,
body.woocommerce-cart li,
body.woocommerce-cart h1,
body.woocommerce-cart h2,
body.woocommerce-cart h3,
body.woocommerce-cart h4,
body.woocommerce-cart small,
body.woocommerce-cart strong,
body.woocommerce-checkout p,
body.woocommerce-checkout span,
body.woocommerce-checkout label,
body.woocommerce-checkout td,
body.woocommerce-checkout th,
body.woocommerce-checkout li,
body.woocommerce-checkout h1,
body.woocommerce-checkout h2,
body.woocommerce-checkout h3,
body.woocommerce-checkout h4,
body.woocommerce-checkout small,
body.woocommerce-checkout strong,
body.woocommerce-checkout abbr,
body.woocommerce-checkout address,
body.woocommerce-checkout legend,
body.woocommerce-account p,
body.woocommerce-account span,
body.woocommerce-account label,
body.woocommerce-account td,
body.woocommerce-account th,
body.woocommerce-account li,
body.woocommerce-account h1,
body.woocommerce-account h2,
body.woocommerce-account h3,
body.woocommerce-account h4,
body.woocommerce-account small,
body.woocommerce-account strong {
  color: var(--text-primary);
}

/* Secondary/muted text — descriptions, hints, required-field note */
body.woocommerce-page .description,
body.woocommerce-page .optional,
body.woocommerce-checkout .woocommerce-privacy-policy-text p,
body.woocommerce-checkout form.checkout p.form-row > label .optional,
body.woocommerce-checkout p.woocommerce-form-row > abbr[title],
body.woocommerce-page .woocommerce-shipping-destination,
body.woocommerce-cart .woocommerce-shipping-destination {
  color: var(--text-secondary);
}

/* Links inside WC pages */
body.woocommerce-page a,
body.woocommerce-cart a,
body.woocommerce-checkout a,
body.woocommerce-account a {
  color: var(--text-primary);
}
body.woocommerce-page a:hover,
body.woocommerce-cart a:hover,
body.woocommerce-checkout a:hover,
body.woocommerce-account a:hover {
  color: var(--accent);
}

/* Page wrapper */
.gbu-wc-page {
  max-width: 1100px;
  margin-inline: auto;
  padding: 48px var(--container-pad) 80px;
}

/* Notices */
.woocommerce-message,
.woocommerce-info {
  background: var(--bg-card);
  border-top-color: var(--accent);
  color: var(--text-primary);
}
.woocommerce-error {
  background: rgba(200,16,46,0.10);
  border-top-color: var(--accent);
  color: var(--text-primary);
  list-style: none;
  padding: 14px 18px;
  border-radius: 8px;
  border-left: none;
}
.woocommerce-error li { margin: 0; }

/* Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce .single_add_to_cart_button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  text-decoration: none;
  display: inline-block;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .single_add_to_cart_button:hover {
  background: #a00d25;
  color: #fff;
}
.woocommerce a.button.disabled,
.woocommerce a.button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Form inputs */
.woocommerce form .input-text,
.woocommerce form input[type="text"],
.woocommerce form input[type="email"],
.woocommerce form input[type="tel"],
.woocommerce form input[type="password"],
.woocommerce form input[type="number"],
.woocommerce form textarea,
.woocommerce form select,
.woocommerce .quantity input.qty,
.select2-container--default .select2-selection--single {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 14px;
  box-shadow: none !important;
  outline: none;
}
.woocommerce form .input-text:focus,
.woocommerce form input:focus,
.woocommerce form textarea:focus {
  border-color: var(--accent) !important;
}
.woocommerce form label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--text-primary) !important;
  line-height: 44px !important;
}
.select2-container--default .select2-selection--single {
  height: 44px !important;
}
.select2-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--accent);
}

/* Cart table */
.woocommerce table.shop_table,
.woocommerce-cart table.cart {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  color: var(--text-primary);
}
.woocommerce table.shop_table th {
  background: var(--bg-secondary, #1a1a1a);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.woocommerce table.shop_table td {
  border-top: 1px solid var(--border-subtle);
  padding: 16px 18px;
  color: var(--text-primary);
  vertical-align: middle;
}
.woocommerce-cart-form .actions { padding-top: 16px; }
.woocommerce a.remove {
  color: var(--text-secondary) !important;
  font-size: 20px;
  line-height: 1;
}
.woocommerce a.remove:hover { color: var(--accent) !important; }

/* Cart totals / order summary */
.woocommerce .cart_totals,
.woocommerce .order-total {
  color: var(--text-primary);
}
.woocommerce .cart_totals h2,
.woocommerce .cross-sells h2 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.woocommerce .cart_totals table {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}
.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}
.woocommerce .cart_totals table tr:last-child th,
.woocommerce .cart_totals table tr:last-child td {
  border-bottom: none;
  font-weight: 700;
}
.woocommerce-shipping-calculator { margin-top: 16px; }

/* Checkout */
.woocommerce-checkout #customer_details h3,
.woocommerce-checkout h3#order_review_heading {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.woocommerce #payment {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}
.woocommerce #payment ul.payment_methods {
  border-bottom: 1px solid var(--border-subtle);
}
.woocommerce #payment ul.payment_methods li {
  color: var(--text-primary);
}
.woocommerce #payment div.payment_box {
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
  font-size: 13px;
}
.woocommerce #payment div.payment_box::before {
  border-bottom-color: rgba(255,255,255,0.03);
}

/* Order review table */
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}
.woocommerce-checkout-review-order-table tfoot tr:last-child td {
  font-weight: 700;
  font-size: 16px;
}

/* Single product page */
.woocommerce div.product {
  color: var(--text-primary);
}
.woocommerce div.product .product_title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 700;
}
.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
  color: var(--text-secondary);
  font-weight: 400;
}
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
  text-decoration: none;
  color: var(--accent);
}
.woocommerce div.product .woocommerce-product-details__short-description {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.woocommerce div.product form.cart { margin-top: 24px; }
.woocommerce .product_meta {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 20px;
}
.woocommerce .product_meta a { color: var(--text-secondary); }
.woocommerce .product_meta a:hover { color: var(--accent); }

/* Star ratings — hide (not relevant for merch) */
.woocommerce .star-rating,
.woocommerce .woocommerce-product-rating { display: none; }

/* Order confirmation */
.woocommerce-order-received h2,
.woocommerce-thankyou-order-details {
  color: var(--text-primary);
}
.woocommerce ul.woocommerce-thankyou-order-details {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px 24px;
  list-style: none;
}
.woocommerce ul.woocommerce-thankyou-order-details li {
  color: var(--text-secondary);
  font-size: 14px;
  padding: 6px 0;
}
.woocommerce ul.woocommerce-thankyou-order-details li strong {
  color: var(--text-primary);
}
.woocommerce-order-details__title,
.woocommerce-column__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

/* Price in product cards (get_price_html output) */
.gbu-product-card__price del {
  color: var(--text-secondary);
  font-weight: 400;
  margin-right: 6px;
}
.gbu-product-card__price ins {
  text-decoration: none;
  color: var(--accent);
}

/* Product tabs */
.woocommerce-tabs ul.tabs {
  border-bottom: 1px solid var(--border-subtle);
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
  display: flex;
  gap: 4px;
}
.woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce-tabs ul.tabs li {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  margin: 0;
}
.woocommerce-tabs ul.tabs li.active {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  position: relative;
  bottom: -1px;
}
.woocommerce-tabs ul.tabs li a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  display: block;
  text-decoration: none;
}
.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
  color: var(--text-primary);
}
.woocommerce-tabs .panel {
  background: transparent;
  border: none;
  padding: 28px 0;
  color: var(--text-primary);
  margin-bottom: 40px;
}
.woocommerce-tabs .panel p,
.woocommerce-tabs .panel li,
.woocommerce-tabs .panel span {
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.7;
}
.woocommerce-tabs .panel h2 { color: var(--text-primary); }

/* PayPal Pay Later / Pay in 4 messaging widget */
.ppcp-message-wrapper,
.ppcp-message-wrapper *,
[class*="ppcp-message"],
[class*="ppcp-message"] *,
.woocommerce-product-pay-later,
.woocommerce-product-pay-later *,
.ppc-messages,
.ppc-messages *,
pay-later-messaging,
pay-later-messaging * {
  color: var(--text-primary) !important;
}
/* "Learn more" link inside PayPal widget */
.ppcp-message-wrapper a,
[class*="ppcp-message"] a {
  color: var(--accent) !important;
}

/* Additional information table */
.woocommerce table.shop_attributes {
  width: 100%;
  border-collapse: collapse;
}
.woocommerce table.shop_attributes th {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  width: 40%;
}
.woocommerce table.shop_attributes td {
  color: var(--text-primary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* Product gallery — main image */
.woocommerce-product-gallery__image {
  border-radius: 12px;
  overflow: hidden;
}
.woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Product gallery — thumbnails: equal-width squares, no squishing */
.woocommerce-product-gallery .flex-control-thumbs {
  display: flex;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.woocommerce-product-gallery .flex-control-thumbs li {
  flex: 1;
  min-width: 0;
}
.woocommerce-product-gallery .flex-control-thumbs li img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s;
  display: block;
}
.woocommerce-product-gallery .flex-control-thumbs li img:hover,
.woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHARACTERS PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Page header ────────────────────────────────────────────────────────── */
.gbu-characters-page { background: var(--bg-primary); }
.gbu-characters-page__header {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 64px var(--container-pad) 48px;
}
.gbu-characters-page__h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-top: 8px;
}
.gbu-characters-page__body {
  font-size: 17px;
  color: var(--text-secondary);
  margin-top: 14px;
  max-width: 540px;
  line-height: 1.6;
}

/* ─── Collage grid ───────────────────────────────────────────────────────── */
.gbu-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  position: relative;
  min-height: 520px; /* ensures detail panel has room */
}

/* ─── Character card ─────────────────────────────────────────────────────── */
.gbu-char-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-card);
  cursor: crosshair;
}
.gbu-char-card[data-size="large"] {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: unset; /* grid rows determine height */
}

.gbu-char-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  z-index: 0;
  filter: grayscale(100%);
  transition: filter 0.65s ease, transform 0.55s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.gbu-char-card:hover .gbu-char-card__bg,
.gbu-char-card.active .gbu-char-card__bg {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Bottom-fade overlay for depth */
.gbu-char-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s;
}
.gbu-char-card:hover::after,
.gbu-char-card.active::after { opacity: 0.6; }

/* Placeholder when no image set */
.gbu-char-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: repeating-linear-gradient(45deg,#111,#111 8px,#0e0e0e 8px,#0e0e0e 16px);
}

/* ─── Central detail panel (desktop hover) ───────────────────────────────── */
.gbu-char-detail {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  opacity: 0;
  pointer-events: none; /* never blocks hovering on cards beneath */
  transition: opacity 0.35s ease;
  width: min(320px, 55%);
}
/* Show when any card is hovered (CSS :has) */
.gbu-collage:has(.gbu-char-card:hover) .gbu-char-detail { opacity: 1; }

.gbu-char-detail__inner {
  background: rgba(0,0,0,0.86);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 24px 28px;
  text-align: center;
}
.gbu-char-detail__name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.gbu-char-detail__role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.gbu-char-detail__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ─── Mobile: 2-column, panel fixed at bottom ────────────────────────────── */
@media (max-width: 768px) {
  .gbu-collage {
    grid-template-columns: repeat(2, 1fr);
    min-height: auto;
  }
  .gbu-char-card[data-size="large"] {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 3 / 4;
  }
  /* Override absolute positioning — panel slides up from bottom */
  .gbu-char-detail {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    transform: translateY(12px);
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
  }
  .gbu-collage.has-active .gbu-char-detail {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .gbu-char-detail__inner {
    border-radius: 16px 16px 0 0;
    padding: 20px var(--container-pad);
  }
}
@media (max-width: 480px) {
  .gbu-collage { gap: 2px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   UNIVERSE TIMELINE PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Page header ────────────────────────────────────────────────────────── */
.gbu-timeline-page {
  background: var(--bg-primary);
  padding-bottom: 80px;
}
.gbu-timeline-page__header {
  padding: 64px 0 48px;
}
.gbu-timeline-page__h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-top: 8px;
}
.gbu-timeline-page__body {
  font-size: 17px;
  color: var(--text-secondary);
  margin-top: 14px;
  max-width: 540px;
  line-height: 1.65;
}

/* ─── Spoiler toggle button ──────────────────────────────────────────────── */
.gbu-timeline-controls { margin-bottom: 40px; }

.gbu-spoiler-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border: 1px solid var(--border-default);
  border-radius: 980px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}
.gbu-spoiler-toggle:hover,
.gbu-spoiler-toggle[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Timeline rail ──────────────────────────────────────────────────────── */
.gbu-timeline {
  position: relative;
  padding-left: 48px;
}
.gbu-timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, rgba(200,16,46,0.18) 100%);
  border-radius: 1px;
}

/* ─── Timeline event ─────────────────────────────────────────────────────── */
.gbu-timeline-event {
  position: relative;
  margin-bottom: 4px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
}
.gbu-timeline-event.open {
  border-color: var(--border-subtle);
  background: var(--bg-card);
}

/* Rail dot */
.gbu-timeline-event__dot {
  position: absolute;
  left: -40px; /* aligns with the rail line */
  top: 22px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gbu-timeline-event__dot-inner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  transition: background 0.2s;
}
.gbu-timeline-event.open .gbu-timeline-event__dot-inner,
.gbu-timeline-event:hover:not(.gbu-timeline-event--locked) .gbu-timeline-event__dot-inner {
  background: var(--accent);
}

/* ─── Event header row ───────────────────────────────────────────────────── */
.gbu-timeline-event__header {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text-primary);
  transition: background 0.15s;
  border-radius: 12px;
}
.gbu-timeline-event__header:hover:not([disabled]) { background: rgba(255,255,255,0.03); }
.gbu-timeline-event__header[disabled]             { cursor: default; }

.gbu-timeline-event__era {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 150px;
}
.gbu-timeline-event__title {
  font-size: 15px;
  font-weight: 500;
  flex: 1;
  min-width: 120px;
}
.gbu-timeline-event__category {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(200,16,46,0.12);
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}
.gbu-timeline-event__lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

/* Chevron arrow (open/close indicator) */
.gbu-timeline-event__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  margin-left: auto;
}
.gbu-timeline-event__chevron::before,
.gbu-timeline-event__chevron::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 6px;
  height: 1.5px;
  background: var(--text-secondary);
  transition: transform 0.2s;
}
.gbu-timeline-event__chevron::before { left: 2px;  transform: translateY(-50%) rotate(45deg); }
.gbu-timeline-event__chevron::after  { right: 2px; transform: translateY(-50%) rotate(-45deg); }
.gbu-timeline-event.open .gbu-timeline-event__chevron::before { transform: translateY(-50%) rotate(-45deg); }
.gbu-timeline-event.open .gbu-timeline-event__chevron::after  { transform: translateY(-50%) rotate(45deg); }

/* ─── Expandable details ─────────────────────────────────────────────────── */
.gbu-timeline-event__details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.4,0,0.2,1);
}
.gbu-timeline-event.open .gbu-timeline-event__details {
  max-height: 800px;
}
.gbu-timeline-event__body {
  padding: 4px 20px 22px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.72;
}
.gbu-timeline-event__body p          { margin-bottom: 12px; }
.gbu-timeline-event__body p:last-child { margin-bottom: 0; }
.gbu-timeline-event__body a          { color: var(--accent); text-decoration: underline; }

/* ─── Locked / spoiler state ─────────────────────────────────────────────── */
.gbu-timeline-event--locked {
  opacity: 0.55;
}
.gbu-timeline-event--locked .gbu-timeline-event__title {
  color: var(--text-secondary);
}
.gbu-timeline-event--locked .gbu-timeline-event__details {
  filter: blur(5px);
  user-select: none;
}

/* Unlocked by toggle */
.gbu-timeline[data-unlocked] .gbu-timeline-event--locked                          { opacity: 1; }
.gbu-timeline[data-unlocked] .gbu-timeline-event--locked .gbu-timeline-event__details { filter: none; }
.gbu-timeline[data-unlocked] .gbu-timeline-event--locked .gbu-timeline-event__title   { color: var(--text-primary); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .gbu-timeline { padding-left: 32px; }
  .gbu-timeline::before { left: 8px; }
  .gbu-timeline-event__dot { left: -26px; }
  .gbu-timeline-event__era { display: none; } /* shown in the body area on small screens */
  .gbu-timeline-event__header { padding: 16px 14px; gap: 8px; }
  .gbu-timeline-page__h1 { font-size: 34px; }
}

/* ─── Asset protection (site-wide) ─────────────────────────────────────────
   Prevents drag-to-desktop on every image across the site.
   JS in main.js adds draggable="false" at runtime and suppresses the
   right-click context menu whenever the target is an <img> element.
   For server-level hotlink blocking, add to .htaccess:
     RewriteCond %{HTTP_REFERER} !^https?://(www\.)?thegbuniverse\.com [NC]
     RewriteRule \.(jpg|jpeg|png|gif|svg|webp)$ - [F,L]
   ─────────────────────────────────────────────────────────────────────────── */
img {
  -webkit-user-drag: none; /* Safari / older WebKit */
}

/* Character collage: also suppress text selection on detail panel copy */
.gbu-collage {
  -webkit-user-select: none;
  user-select: none;
}
