/**
 * Dave Asprey — 2026 Biohacking Holiday Gift Guide Stylesheet
 * High-performance, pixel-faithful design system adhering strictly to Figma Spec (Node 39:3).
 */

@import url('https://fonts.googleapis.com/css2?family=League+Gothic&family=Magra:wght@400;700&family=Meow+Script&display=swap');

:root {
  /* Core Brand Colors */
  --gg-green: #38451D;
  --gg-olive-text: #414F23;
  --gg-lime: #D7E678;
  --gg-slate: #708592;
  --gg-gold: #E5B42C;
  --gg-gold-badge: #EABC2C;
  --gg-white: #FFFFFF;
  --gg-light-text: #E2E9E9;
  --gg-title-gray: #C8D0D0;

  /* Category Specific Colors */
  --cat-sleep: #C8D0D0;
  --cat-skin-beauty: #EE3130;
  --cat-household: #F0A099;
  --cat-lifestyle: #3DA69F;
  --cat-nutrition-food: #708592;
  --cat-recovery: #FF4400;
  --cat-calm: #F65367;
  --cat-brain: #91A224;
  --cat-longevity: #C79305;
  --cat-supplements: #45234F;

  /* Typography */
  --font-display: 'League Gothic', 'Impact', sans-serif;
  --font-body: 'Magra', sans-serif;
  --font-script: 'Meow Script', cursive;
}

/* ==========================================================================
   GLOBAL RESET & TYPOGRAPHY ENFORCEMENT (IMMUNE TO THEME / ELEMENTOR OVERRIDES)
   ========================================================================== */
html,
body.dave-gift-guide-canvas {
  margin: 0;
  padding: 0;
  background-color: var(--gg-green);
  color: var(--gg-olive-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dave-gift-guide-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  position: relative;
}

.dave-gift-guide-wrapper *,
.dave-gift-guide-wrapper *::before,
.dave-gift-guide-wrapper *::after {
  box-sizing: border-box;
}

/* Enforce League Gothic across all headings with max specificity */
body.dave-gift-guide-canvas h1,
body.dave-gift-guide-canvas h2,
body.dave-gift-guide-canvas h3,
body.dave-gift-guide-canvas h4,
.dave-gift-guide-wrapper h1,
.dave-gift-guide-wrapper h2,
.dave-gift-guide-wrapper h3,
.dave-gift-guide-wrapper h4,
.dave-gift-guide-wrapper .gg-hero-title,
.dave-gift-guide-wrapper .gg-intro-headline,
.dave-gift-guide-wrapper .gg-cat-title,
.dave-gift-guide-wrapper .gg-brand-name {
  font-family: 'League Gothic', 'Impact', sans-serif !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   SECTION 1: HERO BANNER (Figma 39:4 | 1440 x 768)
   ========================================================================== */
.gg-hero {
  position: relative;
  width: 100%;
  height: 768px;
  background-color: #414F23;
  overflow: hidden;
}

.gg-hero-canvas {
  position: relative;
  width: 100%;
  max-width: 1440px;
  height: 768px;
  margin: 0 auto;
  z-index: 3;
}

/* Figma 39:21 — Ornaments Vector Background (Full-bleed repeat-x across wide monitors) */
.gg-hero-ornaments {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 348px;
  background-repeat: repeat-x;
  background-position: top center;
  background-size: 1459.16px 348px;
  pointer-events: none;
  z-index: 1;
}

/* Figma 39:814 — Dave Asprey Red Box Logo (x: 1256.1, y: 168, 148.77x148.77 + 44px script tail) */
.gg-hero-logo-box {
  position: absolute;
  left: 1256px;
  top: 168px;
  width: 193px;
  height: 149px;
  z-index: 4;
}

.gg-hero-logo-box img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Figma 39:20 — Hero Title (x: 504, y: 346, w: 901, h: 305, 134px/122px right-aligned) */
body.dave-gift-guide-canvas .gg-hero-title,
.dave-gift-guide-wrapper .gg-hero-title {
  position: absolute;
  left: 504px;
  top: 346px;
  width: 901px;
  height: 305px;
  margin: 0;
  font-family: 'League Gothic', 'Impact', sans-serif !important;
  font-weight: 400 !important;
  font-size: 134px !important;
  line-height: 122px !important;
  letter-spacing: 0.02em !important;
  text-align: right !important;
  color: #C8D0D0 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  z-index: 4;
}

/* Figma 39:812 — Dave Asprey Cutout Portrait (x: -10, y: 45, w: 579, h: 723, flush at bottom edge) */
.gg-hero-portrait-img {
  position: absolute;
  left: -10px;
  bottom: 0;
  width: 579px;
  height: 723px;
  object-fit: cover;
  pointer-events: none;
  filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.25));
  z-index: 5;
}

/* ==========================================================================
   SECTION 2: INTRO & DAVE'S LETTER (Figma 39:815 | 1440 x 1260)
   ========================================================================== */
.gg-intro {
  background-color: #D7E678;
  color: #414F23;
  position: relative;
  overflow: hidden;
  padding: 0;
  height: 1580px;
}

.gg-intro-stage {
  width: 100%;
  max-width: 1440px;
  height: 1580px;
  margin: 0 auto;
  position: relative;
  padding: 0;
}

/* Dave's Letter Column */
.gg-intro-letter-col {
  width: 100%;
  max-width: 834px;
  margin-left: 60px;
  padding-top: 170px;
  position: relative;
  z-index: 5;
}

body.dave-gift-guide-canvas .gg-intro-headline,
.dave-gift-guide-wrapper .gg-intro-headline {
  font-family: 'League Gothic', 'Impact', sans-serif !important;
  font-weight: 400 !important;
  font-size: 108px !important;
  line-height: 0.96 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  color: #414F23 !important;
  margin: 0 0 32px;
  max-width: 734px;
}

.gg-intro-body {
  font-family: 'Magra', sans-serif !important;
  font-weight: 400 !important;
  font-size: 33px !important;
  line-height: 40px !important;
  letter-spacing: 0.02em !important;
  color: #414F23 !important;
  margin: 0 0 24px;
  max-width: 834px;
}

.gg-intro-body p {
  margin: 0 0 30px;
}

.gg-intro-body p:last-child {
  margin-bottom: 0;
}

.gg-intro-signature {
  width: 248px;
  height: 81px;
  margin-left: 482px;
  margin-top: 54px;
}

.gg-intro-signature img {
  width: 100%;
  height: 100%;
  display: block;
}

/* 5-Card Tilted Collage (Figma 39:857–39:861) */
.gg-collage-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.gg-collage-card {
  position: absolute;
  display: block;
  text-decoration: none;
  pointer-events: auto;
  transition: transform 0.25s ease;
}

.gg-collage-card:hover {
  transform: translateY(-6px) scale(1.02);
  z-index: 10 !important;
}

.gg-collage-rect {
  position: absolute;
  display: block;
  pointer-events: none;
}

.gg-collage-product {
  position: absolute;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

.gg-collage-brand-label {
  position: absolute;
  font-family: 'Magra', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  color: #FFFFFF;
  white-space: nowrap;
  pointer-events: none;
  z-index: 6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* 1. BalooLiving (Reduced 20px, moved up 30px to top 81px) */
.gg-collage-card--baloo {
  left: 933px;
  top: 81px;
  width: 440px;
  height: 470px;
  z-index: 2;
}
.gg-collage-card--baloo .gg-collage-rect {
  left: 1.33px;
  top: 35.94px;
  width: 435px;
  height: 434px;
}
.gg-collage-card--baloo .gg-collage-product {
  left: 9.11px;
  top: 7.72px;
  width: 422px;
  height: 455px;
  transform: rotate(-2.12741deg);
}
.gg-collage-card--baloo .gg-collage-brand-label {
  left: 22px;
  bottom: 10px;
  transform: rotate(-2.12741deg);
}

/* 2. ZenBud (Reduced 20px, moved up 30px) */
.gg-collage-card--zenbud {
  left: 929px;
  top: 543px;
  width: 444px;
  height: 506px;
  z-index: 3;
}
.gg-collage-card--zenbud .gg-collage-rect {
  left: 0px;
  top: 65.8px;
  width: 441px;
  height: 441px;
}
.gg-collage-card--zenbud .gg-collage-product {
  left: 31.68px;
  top: 11.08px;
  width: 382px;
  height: 484px;
  transform: rotate(3.07693deg);
}
.gg-collage-card--zenbud .gg-collage-brand-label {
  left: 34px;
  top: 76px;
  transform: rotate(3.07693deg);
}

/* 3. Eight Sleep (Reduced 20px, moved up 30px) */
.gg-collage-card--eightsleep {
  left: 15px;
  top: 984px;
  width: 464px;
  height: 424px;
  z-index: 4;
}
.gg-collage-card--eightsleep .gg-collage-rect {
  left: 0.58px;
  top: 0.55px;
  width: 424px;
  height: 424px;
}
.gg-collage-card--eightsleep .gg-collage-product {
  left: 3.29px;
  top: 44.78px;
  width: 458px;
  height: 370px;
  transform: rotate(-0.800502deg);
}
.gg-collage-card--eightsleep .gg-collage-brand-label {
  left: 18px;
  top: 16px;
  transform: rotate(-0.800502deg);
}

/* 4. TheOneDevice (Reduced 20px, moved up 30px) */
.gg-collage-card--onedevice {
  left: 469px;
  top: 1059px;
  width: 449px;
  height: 500px;
  z-index: 3;
}
.gg-collage-card--onedevice .gg-collage-rect {
  left: 0px;
  top: 54.22px;
  width: 446px;
  height: 446px;
}
.gg-collage-card--onedevice .gg-collage-product {
  left: 54.92px;
  top: 13.84px;
  width: 341px;
  height: 472px;
  transform: rotate(3.75492deg);
}
.gg-collage-card--onedevice .gg-collage-brand-label {
  right: 18px;
  top: 88px;
  transform: rotate(3.75492deg);
}

/* 5. Memory Air (Reduced 20px, moved up 30px) */
.gg-collage-card--memoryair {
  left: 944px;
  top: 1087px;
  width: 456px;
  height: 457px;
  z-index: 2;
}
.gg-collage-card--memoryair .gg-collage-rect {
  left: 0px;
  top: 0.71px;
  width: 444px;
  height: 443px;
}
.gg-collage-card--memoryair .gg-collage-product {
  left: 58.74px;
  top: 29.8px;
  width: 386px;
  height: 414px;
  transform: rotate(-3.2986deg);
}
.gg-collage-card--memoryair .gg-collage-brand-label {
  right: 46px;
  top: 14px;
  transform: rotate(-3.2986deg);
}

/* ==========================================================================
   SECTION 3: CATEGORY HUB (Figma 39:883 | 1440 x 1017)
   ========================================================================== */
.gg-hub {
  background-color: #38451D;
  color: var(--gg-white);
  position: relative;
  padding: 80px 0 90px;
  overflow: hidden;
}

.gg-hub-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 54px;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Center-Crossing SVG Grid Lines (Passes horizontally & vertically through circle centers) */
.gg-hub-grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.gg-hub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  margin-bottom: 76px;
}

.gg-hub-row--2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 76px;
}

.gg-hub-row--3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}

.gg-hub-card {
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.gg-hub-card:hover {
  transform: translateY(-6px);
}

.gg-hub-circle {
  width: 256px;
  height: 256px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  color: #414F23;
  font-family: 'League Gothic', 'Impact', sans-serif !important;
  font-size: 51px !important;
  line-height: 0.95 !important;
  text-transform: uppercase !important;
  text-align: center;
  border: 3px solid #FFFFFF;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.gg-hub-circle.supplements {
  color: #D7E678;
}

.gg-hub-circle.nutrition-food {
  color: #D7E678;
}

.gg-hub-card:hover .gg-hub-circle {
  box-shadow: 0 14px 32px rgba(0,0,0,0.5);
  border-color: #D7E678;
}

/* Center Gold Ribbon (Figma 39:938 | 738 x 97) */
.gg-hub-center-ribbon {
  width: 738px;
  height: 97px;
  background-color: #E5B42C;
  color: #38451D;
  font-family: 'League Gothic', 'Impact', sans-serif !important;
  font-size: 53px !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

/* ==========================================================================
   SECTION 4: FIXED STICKY NAVIGATION (Figma Sticky Bar)
   ========================================================================== */
.gg-sticky-bar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99999;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
  background: rgba(46, 56, 24, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid #E5B42C;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.gg-sticky-bar.is-visible {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.gg-sticky-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px clamp(16px, 2.2vw, 40px) 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gg-sticky-mobile-header {
  display: none;
}

.gg-sticky-menu-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.gg-category-pills {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: clamp(4px, 0.45vw, 8px);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.gg-cat-pills-row {
  display: contents;
}

.gg-category-pills::-webkit-scrollbar {
  display: none;
}

.gg-cat-pill {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  font-family: 'League Gothic', 'Impact', sans-serif !important;
  font-size: clamp(14px, 1.1vw, 21px) !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em;
  padding: 8px clamp(5px, 0.6vw, 12px);
  border-radius: 30px;
  background: rgba(255,255,255,0.14);
  color: var(--gg-white);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.4vw, 7px);
}

.gg-cat-pill .pill-dot {
  width: clamp(8px, 0.75vw, 12px);
  height: clamp(8px, 0.75vw, 12px);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.gg-cat-pill:hover,
.gg-cat-pill.active {
  background: #E5B42C;
  color: #38451D;
}

.gg-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px dashed rgba(255,255,255,0.25);
  padding-top: 10px;
}

.gg-filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gg-filter-label {
  font-family: 'League Gothic', 'Impact', sans-serif !important;
  font-size: clamp(20px, 1.5vw, 28px) !important;
  line-height: 1 !important;
  text-transform: uppercase;
  color: #D7E678;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.gg-filter-btn {
  font-family: 'Magra', sans-serif !important;
  font-size: clamp(14px, 1.1vw, 19px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  padding: 6px clamp(10px, 1.1vw, 20px);
  border-radius: 24px;
  background: rgba(255,255,255,0.14);
  color: var(--gg-white);
  border: 1.5px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.15s ease;
}

.gg-filter-btn:hover {
  background: rgba(255,255,255,0.28);
}

.gg-filter-btn.active {
  background: #D7E678;
  color: #38451D;
  border-color: #D7E678;
}

.gg-filter-btn.clear-btn {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: var(--gg-light-text);
  display: none;
}

.gg-filter-btn.clear-btn.visible {
  display: inline-block;
}

.gg-result-count {
  font-family: 'Magra', sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--gg-light-text);
}

/* ==========================================================================
   SECTION 5: CATEGORY HEADERS & BRAND ROWS (Figma 39:990 / 39:1020)
   ========================================================================== */
.gg-category {
  position: relative;
  scroll-margin-top: 145px;
}

/* Category Header Banner (1440 x 460) */
.gg-category-header {
  min-height: 460px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 60px 54px;
}

.gg-cat-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  min-height: 340px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gg-cat-header-content {
  max-width: 820px;
  position: relative;
  z-index: 2;
  padding-top: 15px;
}

body.dave-gift-guide-canvas .gg-cat-title,
.dave-gift-guide-wrapper .gg-cat-title {
  font-family: 'League Gothic', 'Impact', sans-serif !important;
  font-size: 120px !important;
  line-height: 120px !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  margin: 0 0 10px;
}

.gg-category[data-category="sleep"] .gg-cat-title,
#sleep .gg-cat-title {
  color: #02A196 !important;
}

.gg-cat-subtitle {
  font-family: 'League Gothic', 'Impact', sans-serif !important;
  font-weight: 400 !important;
  font-size: 53px !important;
  line-height: 1.05 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  margin-bottom: 12px;
}

.gg-cat-overview {
  font-family: 'Magra', sans-serif;
  font-size: 30px;
  line-height: 36px;
  max-width: 780px;
  margin: 0;
}

/* Right-side Category Vector Illustration */
.gg-cat-illustration-box {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 340px;
}

.gg-cat-illustration {
  max-height: 340px;
  max-width: 500px;
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Brand Rows */
.gg-brand-row {
  position: relative;
  min-height: 780px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gg-row-color-strip {
  display: none;
}

.gg-brand-row-body {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 150px 54px 80px;
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 50px;
  align-items: stretch;
  position: relative;
}

/* Red Circular Price Tier Badge (Figma Top-Right, Images 1-3) */
.gg-price-tier-badge {
  position: absolute;
  top: 45px;
  right: 54px;
  width: 110px;
  height: 110px;
  z-index: 6;
  pointer-events: none;
}
.gg-price-tier-badge .gg-tier-badge-img,
.gg-price-tier-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

/* Alternating Parity (Figma 39:1020 / 39:1125) */
.gg-brand-row.gg-row--odd {
  background-color: #38451D;
  color: #FFFFFF;
}
.gg-brand-row.gg-row--odd .gg-brand-name {
  color: #D7E678 !important;
}
.gg-brand-row.gg-row--odd .gg-brand-subtitle {
  color: #C8D0D0 !important;
}
.gg-brand-row.gg-row--odd .gg-brand-body {
  color: #FFFFFF;
}
.gg-brand-row.gg-row--odd .gg-dashed-rule {
  border-color: #D7E678;
}
.gg-brand-row.gg-row--odd .gg-offer-text {
  color: #FFFFFF;
}
.gg-brand-row.gg-row--odd .gg-promo-code {
  background: var(--cat-color);
  color: var(--cat-btn-text, #FFFFFF) !important;
}

.gg-brand-row.gg-row--even {
  background-color: #D7E678;
  color: #38451D;
}
.gg-brand-row.gg-row--even .gg-brand-name {
  color: #38451D !important;
}
.gg-brand-row.gg-row--even .gg-brand-subtitle {
  color: #708592 !important;
}
.gg-brand-row.gg-row--even .gg-brand-body {
  color: #38451D;
}
.gg-brand-row.gg-row--even .gg-dashed-rule {
  border-color: #FFFFFF;
}
.gg-brand-row.gg-row--even .gg-offer-text {
  color: #38451D;
}
.gg-brand-row.gg-row--even .gg-promo-code {
  background: var(--cat-color);
  color: var(--cat-btn-text, #FFFFFF) !important;
}

/* Visual Column */
.gg-brand-visual {
  position: relative;
  width: 460px;
  height: 460px;
}

/* Category-Colored Square Backdrop (460x460) */
.gg-backdrop-box {
  width: 460px;
  height: 460px;
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--cat-color);
  z-index: 1;
}

.gg-product-img-wrap {
  position: relative;
  z-index: 2;
  width: 460px;
  height: 460px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

/* All Product Images anchored flush to the left of the 460x460 square with zero left-side overflow */
.gg-product-img {
  position: absolute;
  bottom: 0;
  top: auto;
  left: 0;
  transform: none;
  width: auto;
  height: auto;
  max-width: 460px;
  max-height: 540px;
  object-fit: contain;
  object-position: bottom left;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.35));
}

/* Brand-specific Figma cutout sizing refinements (Flush left edge) */
.gg-brand-row[data-brand="memory-air"] .gg-product-img {
  height: 540px;
  max-height: 540px;
  max-width: 440px;
  left: 0;
  bottom: 0;
  object-position: bottom left;
}

.gg-brand-row[data-brand="the-one-device"] .gg-product-img {
  height: 560px;
  max-height: 560px;
  max-width: 440px;
  left: 0;
  bottom: 0;
  object-position: bottom left;
}

.gg-brand-row[data-brand="zenbud"] .gg-product-img {
  height: 560px;
  max-height: 560px;
  max-width: 450px;
  left: 0;
  bottom: 0;
  object-position: bottom left;
}

.gg-brand-row[data-brand="baloo-living"] .gg-product-img {
  height: 470px;
  max-height: 470px;
  max-width: 450px;
  left: 0;
  bottom: 0;
  object-position: bottom left;
}

.gg-brand-row[data-brand="eight-sleep"] .gg-product-img {
  width: 460px;
  max-width: 460px;
  max-height: 450px;
  left: 0;
  bottom: 0;
  object-position: bottom left;
}

/* Danger Coffee: Restored Figma full-cutout pouch starting flush at left */
.gg-brand-row:not(.gg-brand-row--has-box)[data-brand="danger-coffee"] .gg-product-img {
  width: 580px;
  max-width: none;
  max-height: none;
  height: auto;
  left: 0;
  bottom: 0;
  object-position: bottom left;
}

/* Danger Creatine: Dramatic Water Splash Overflow */
.gg-brand-row:not(.gg-brand-row--has-box)[data-brand="danger-creatine"] .gg-product-img {
  width: 500px;
  max-width: none;
  max-height: none;
  height: auto;
  left: -20px;
  bottom: -15px;
  object-position: bottom center;
}

/* Wonderfeel ChocoCreatin: Chocolate Bar Bottom Overflow */
.gg-brand-row:not(.gg-brand-row--has-box)[data-brand="wonderfeel-chococreatin"] .gg-product-img {
  width: 520px;
  max-width: none;
  max-height: none;
  height: auto;
  left: 0;
  bottom: -40px;
  object-position: bottom left;
}

/* Universal Support for native <img> and Imagify <picture> wrapper */
.gg-product-img-wrap picture.gg-product-img,
.gg-product-img-wrap .gg-product-img {
  display: block;
}
.gg-product-img-wrap picture.gg-product-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: inherit;
  object-position: inherit;
}

/* Card with pre-composed background box (Full Figma composite export) */
.gg-brand-row--has-box .gg-backdrop-box {
  display: none !important;
}
.gg-brand-row--has-box .gg-brand-visual {
  overflow: visible !important;
}
.gg-brand-row--has-box .gg-product-img-wrap {
  overflow: visible !important;
}
.gg-brand-row--has-box .gg-product-img,
.gg-brand-row--has-box picture.gg-product-img {
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  right: auto !important;
  width: 460px !important;
  height: 540px !important;
  max-width: 460px !important;
  max-height: 540px !important;
  display: block !important;
  filter: none !important;
}
.gg-brand-row--has-box .gg-product-img img,
.gg-brand-row--has-box picture.gg-product-img img {
  width: 100% !important;
  height: 100% !important;
  max-width: 460px !important;
  max-height: 540px !important;
  object-fit: contain !important;
  object-position: bottom left !important;
  display: block !important;
  filter: none !important;
}

/* Custom Per-Item Image Width & Position Offsets (WP Admin overrides) */
.gg-brand-row.gg-brand-row--sized .gg-brand-visual,
.gg-brand-row.gg-brand-row--sized .gg-product-img-wrap {
  overflow: visible !important;
}
.gg-brand-row.gg-brand-row--sized[data-brand] .gg-product-img,
.gg-brand-row.gg-brand-row--sized[data-brand] picture.gg-product-img,
.gg-brand-row.gg-brand-row--sized .gg-product-img,
.gg-brand-row.gg-brand-row--sized picture.gg-product-img {
  position: absolute !important;
  left: var(--gg-img-x, 0px) !important;
  bottom: var(--gg-img-y, 0px) !important;
  top: auto !important;
  right: auto !important;
  width: var(--gg-img-w, 460px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
}
.gg-brand-row.gg-brand-row--sized[data-brand] .gg-product-img img,
.gg-brand-row.gg-brand-row--sized[data-brand] picture.gg-product-img img,
.gg-brand-row.gg-brand-row--sized .gg-product-img img,
.gg-brand-row.gg-brand-row--sized picture.gg-product-img img {
  width: var(--gg-img-w, 460px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: bottom left !important;
  display: block !important;
}

/* Figma FPO Cutout (Flush left, top overlapping) */
.gg-product-img.is-fpo-img {
  position: absolute;
  bottom: 0;
  top: auto;
  left: 0;
  transform: none;
  width: 460px;
  max-width: 460px;
  max-height: 560px;
  height: auto;
  object-fit: contain;
  object-position: bottom left;
}

/* Figma "IMAGE FPO" text overlay */
.gg-fpo-overlay-label {
  position: absolute;
  bottom: 54px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'League Gothic', 'Impact', sans-serif !important;
  font-size: 67px !important;
  color: #FFFFFF !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 4px 14px rgba(0,0,0,0.65);
  pointer-events: none;
  z-index: 4;
}

/* Top Pick PNG Badge (3 Positions: Top, Top Right, Bottom Right) */
.gg-top-pick-badge {
  position: absolute;
  width: 176px;
  height: 176px;
  z-index: 5;
  pointer-events: none;
  background: none;
  border: none;
  box-shadow: none;
  transform: none;
}

.gg-top-pick-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.32));
}

/* Position 1: Top (Dave's Top Pick default — Figma Image 3) */
.gg-top-pick-badge.pos-top {
  top: -88px;
  left: 26px;
  right: auto;
  bottom: auto;
}

/* Position 1b: Top Left (Figma Frame 17 — Baloo Living) */
.gg-top-pick-badge.pos-top_left {
  top: -68px;
  left: -26px;
  right: auto;
  bottom: auto;
}

/* Position 2: Top Right */
.gg-top-pick-badge.pos-top_right {
  top: -64px;
  right: -54px;
  left: auto;
  bottom: auto;
}

/* Position 3: Bottom Right (Other Top Picks default) */
.gg-top-pick-badge.pos-bottom_right {
  bottom: -48px;
  right: -54px;
  top: auto;
  left: auto;
}

/* Details Column */
.gg-brand-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 460px;
  z-index: 2;
}

/* Shift Header Group (Under $ tier + Brand Name + Subtitle + Description) up by 100px relative to 460x460 box */
.gg-brand-header-group {
  margin-top: -100px;
  padding-right: 140px;
  box-sizing: border-box;
}

.gg-brand-tier-wrap {
  margin-bottom: 8px;
}

.gg-brand-tier-tag {
  display: inline-block;
  background-color: var(--cat-color);
  color: #38451D;
  font-family: 'League Gothic', 'Impact', sans-serif;
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
  padding: 4px 14px 2px;
}

/* White text for Under $ badges on dark category backgrounds */
.gg-category[data-category="supplements"] .gg-brand-tier-tag,
.gg-category[data-category="skin-beauty"] .gg-brand-tier-tag,
.gg-category[data-category="lifestyle"] .gg-brand-tier-tag,
.gg-category[data-category="nutrition-food"] .gg-brand-tier-tag,
.gg-category[data-category="recovery"] .gg-brand-tier-tag,
.gg-category[data-category="calm"] .gg-brand-tier-tag {
  color: #FFFFFF !important;
}

body.dave-gift-guide-canvas .gg-brand-name,
.dave-gift-guide-wrapper .gg-brand-name {
  font-family: 'League Gothic', 'Impact', sans-serif !important;
  font-size: clamp(68px, 6.8vw, 108px) !important;
  line-height: 0.93 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  margin: 0 0 6px;
}

body.dave-gift-guide-canvas .gg-brand-subtitle,
.dave-gift-guide-wrapper .gg-brand-subtitle,
.gg-brand-subtitle {
  font-family: 'League Gothic', 'Impact', sans-serif !important;
  font-weight: 400 !important;
  font-size: clamp(41px, 4.1vw, 61px) !important;
  line-height: 0.91 !important;
  text-transform: capitalize !important;
  letter-spacing: 0.02em !important;
  margin-bottom: 14px;
}

.gg-brand-body {
  font-family: 'Magra', sans-serif;
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 20px;
  max-width: 620px;
}

.gg-brand-body p {
  margin: 0 0 12px;
}
.gg-brand-body p:last-child {
  margin-bottom: 0;
}

/* Side-by-Side Offer Box & CTA Row (Figma 39:1020) */
.gg-offer-and-cta-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 36px;
  margin-top: auto;
  padding-top: 24px;
  flex-wrap: wrap;
}

.gg-offer-box {
  width: 460px;
  flex-shrink: 0;
}

.gg-dashed-rule {
  border: none;
  border-top: 3px dashed;
  margin: 8px 0;
}

.gg-offer-line {
  font-family: 'League Gothic', 'Impact', sans-serif;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 4px 0;
}

.gg-promo-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  font-family: 'Magra', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
  color: var(--cat-btn-text, #FFFFFF) !important;
}

.gg-promo-code code {
  font-family: inherit;
  font-size: 1.3rem;
  color: var(--cat-btn-text, #FFFFFF) !important;
  background: transparent;
}

.gg-copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--cat-btn-text, #FFFFFF) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease;
}

.gg-copy-btn .copy-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cat-btn-text, #FFFFFF) !important;
}

.gg-copy-btn:hover {
  opacity: 0.8;
}

.gg-copy-btn.copied {
  background: #38451D;
  color: #FFFFFF !important;
  border-radius: 3px;
}

.gg-cta-wrap {
  flex-shrink: 0;
}

.gg-cta-btn {
  min-width: 173px;
  height: 75px;
  background-color: var(--cat-color);
  color: var(--cat-btn-text, #FFFFFF) !important;
  font-family: 'League Gothic', 'Impact', sans-serif !important;
  font-size: 48px !important;
  line-height: 1 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Explicit dark text enforcement when category accent background is light (e.g. Sleep #C8D0D0) */
.gg-category--light-accent .gg-cta-btn,
.gg-category[data-category="sleep"] .gg-cta-btn,
.gg-category--light-accent .gg-promo-code,
.gg-category[data-category="sleep"] .gg-promo-code,
.gg-category--light-accent .gg-promo-code code,
.gg-category[data-category="sleep"] .gg-promo-code code,
.gg-category--light-accent .gg-copy-btn,
.gg-category[data-category="sleep"] .gg-copy-btn,
.gg-category--light-accent .gg-copy-btn .copy-text,
.gg-category[data-category="sleep"] .gg-copy-btn .copy-text {
  color: #38451D !important;
}
.gg-category--light-accent .gg-copy-btn.copied,
.gg-category[data-category="sleep"] .gg-copy-btn.copied,
.gg-category--light-accent .gg-copy-btn.copied .copy-text,
.gg-category[data-category="sleep"] .gg-copy-btn.copied .copy-text {
  color: #FFFFFF !important;
}

.gg-cta-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.gg-cta-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   SECTION 6: EMPTY STATE, DISCLOSURE & FOOTER
   ========================================================================== */
.gg-empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #38451D;
  color: #FFFFFF;
  padding: 80px 54px;
  gap: 18px;
  border-top: 2px dashed rgba(215, 230, 120, 0.35);
}

.gg-empty-state.visible {
  display: flex;
}

.gg-empty-state h3 {
  font-family: 'League Gothic', 'Impact', sans-serif !important;
  font-size: 64px !important;
  line-height: 1 !important;
  color: #D7E678 !important;
  text-transform: uppercase !important;
  margin: 0;
}

.gg-empty-state p {
  font-family: 'Magra', sans-serif !important;
  font-size: 22px !important;
  line-height: 30px !important;
  color: #FFFFFF !important;
  max-width: 640px;
  margin: 0;
}

#gg-empty-reset-btn {
  margin-top: 8px;
  padding: 12px 32px;
  font-size: 20px !important;
  background-color: #D7E678;
  color: #38451D;
  border-color: #D7E678;
  border-radius: 30px;
  cursor: pointer;
}

#gg-empty-reset-btn:hover {
  background-color: #E5B42C;
  border-color: #E5B42C;
  color: #38451D;
}

.gg-disclosure {
  background-color: #38451D;
  color: var(--gg-light-text);
  padding: 40px 54px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.gg-disclosure-inner {
  max-width: 1440px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 28px;
  opacity: 0.92;
}

.gg-footer {
  background-color: #2E3818;
  color: #E2E9E9;
  padding: 48px 54px;
  text-align: center;
  font-size: 18px !important;
  line-height: 28px !important;
}

.gg-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gg-disclosure-box p,
.gg-copyright p {
  font-family: 'Magra', sans-serif !important;
  font-size: 18px !important;
  line-height: 28px !important;
  color: #E2E9E9 !important;
  margin: 0 auto;
  max-width: 1100px;
}

.gg-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 90px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #E5B42C;
  color: #38451D;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
}

.gg-back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.gg-back-to-top:hover {
  transform: translateY(-3px);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE ENGINE)
   ========================================================================== */
@media (max-width: 1200px) {
  body.dave-gift-guide-canvas .gg-hero-title,
  .dave-gift-guide-wrapper .gg-hero-title {
    font-size: 90px !important;
    line-height: 75px !important;
    left: auto;
    right: 40px;
    width: 550px;
  }
  .gg-hero-logo-box {
    left: auto;
    right: 40px;
  }
  .gg-hub-circle {
    width: 200px;
    height: 200px;
    font-size: 40px !important;
  }
  .gg-hub-center-ribbon {
    width: 500px;
    font-size: 40px !important;
  }
  body.dave-gift-guide-canvas .gg-cat-title,
  .dave-gift-guide-wrapper .gg-cat-title {
    font-size: clamp(76px, 8.5vw, 104px) !important;
    line-height: 0.95 !important;
  }
  body.dave-gift-guide-canvas .gg-cat-subtitle,
  .dave-gift-guide-wrapper .gg-cat-subtitle,
  .gg-cat-subtitle {
    font-size: clamp(36px, 3.8vw, 46px) !important;
    line-height: 1.05 !important;
  }
  body.dave-gift-guide-canvas .gg-brand-name,
  .dave-gift-guide-wrapper .gg-brand-name {
    font-size: clamp(68px, 7.2vw, 96px) !important;
    line-height: 0.94 !important;
  }
  body.dave-gift-guide-canvas .gg-brand-subtitle,
  .dave-gift-guide-wrapper .gg-brand-subtitle,
  .gg-brand-subtitle {
    font-size: clamp(42px, 4.5vw, 58px) !important;
    line-height: 0.95 !important;
  }
}

@media (max-width: 992px) {
  .gg-brand-row-body {
    grid-template-columns: 380px 1fr;
    gap: 32px;
    padding: 110px 32px 60px;
  }
  body.dave-gift-guide-canvas .gg-brand-name,
  .dave-gift-guide-wrapper .gg-brand-name {
    font-size: clamp(54px, 6.5vw, 72px) !important;
    line-height: 0.95 !important;
  }
  body.dave-gift-guide-canvas .gg-brand-subtitle,
  .dave-gift-guide-wrapper .gg-brand-subtitle,
  .gg-brand-subtitle {
    font-size: clamp(34px, 4.2vw, 46px) !important;
    line-height: 0.98 !important;
  }
}

@media (max-width: 768px) {
  /* 1. Global & Headings Specificity Overrides */
  body.dave-gift-guide-canvas .gg-hero-title,
  .dave-gift-guide-wrapper .gg-hero-title {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    width: 100% !important;
    height: auto !important;
    font-size: clamp(44px, 12vw, 62px) !important;
    line-height: 0.95 !important;
    text-align: center !important;
    white-space: normal !important;
    margin: 16px auto 0 !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
  }

  body.dave-gift-guide-canvas .gg-intro-headline,
  .dave-gift-guide-wrapper .gg-intro-headline {
    font-size: clamp(36px, 10vw, 52px) !important;
    line-height: 0.95 !important;
    max-width: 100% !important;
    text-align: left !important;
    margin-bottom: 18px !important;
  }

  body.dave-gift-guide-canvas .gg-cat-title,
  .dave-gift-guide-wrapper .gg-cat-title {
    font-size: clamp(48px, 13vw, 72px) !important;
    line-height: 0.95 !important;
    text-align: center !important;
    margin-bottom: 8px !important;
  }

  /* 2. Hero Section Mobile Stacking */
  .gg-hero {
    height: auto !important;
    min-height: auto !important;
    padding: 24px 16px 0 !important;
    overflow: hidden !important;
  }
  .gg-hero-canvas {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
  }
  .gg-hero-logo-box {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    width: 120px !important;
    height: auto !important;
    margin: 0 auto 12px !important;
  }
  .gg-hero-logo-img {
    width: 100% !important;
    height: auto !important;
  }
  .gg-hero-portrait-img,
  picture.gg-hero-portrait-img {
    position: relative !important;
    left: auto !important;
    bottom: 0 !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 280px !important;
    height: auto !important;
    margin: 16px auto 0 !important;
    display: block !important;
    vertical-align: bottom !important;
    line-height: 0 !important;
  }
  .gg-hero-portrait-img img,
  picture.gg-hero-portrait-img img {
    width: 100% !important;
    max-width: 280px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    vertical-align: bottom !important;
    object-fit: contain !important;
    object-position: bottom center !important;
  }

  /* 3. Intro Section & Dave's Letter */
  .gg-intro {
    height: auto !important;
    min-height: auto !important;
    padding: 36px 16px 48px !important;
    overflow: hidden !important;
  }
  .gg-intro-stage {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    position: relative !important;
  }
  .gg-intro-letter-col {
    margin-left: 0 !important;
    padding-top: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .gg-intro-body {
    font-size: 17px !important;
    line-height: 25px !important;
  }
  .gg-intro-body p {
    font-size: 17px !important;
    line-height: 25px !important;
    margin-bottom: 14px !important;
  }
  .gg-intro-signature {
    position: relative !important;
    margin: 18px 0 28px auto !important;
    width: 170px !important;
    height: auto !important;
    display: block !important;
  }
  .gg-intro-signature img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* 4. Intro 5-Card Touch Carousel */
  .gg-collage-track {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    gap: 14px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 10px 4px 18px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    pointer-events: auto !important;
    scrollbar-width: none !important;
    box-sizing: border-box !important;
  }
  .gg-collage-track::-webkit-scrollbar {
    display: none !important;
  }
  .gg-collage-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    flex: 0 0 240px !important;
    width: 240px !important;
    height: 260px !important;
    scroll-snap-align: start !important;
    transform: none !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 4px !important;
  }
  .gg-collage-card:hover {
    transform: none !important;
  }
  .gg-collage-rect {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    object-fit: fill !important;
  }
  .gg-collage-product {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    object-fit: contain !important;
  }
  .gg-collage-brand-label {
    transform: none !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
  }
  .gg-collage-card--baloo .gg-collage-brand-label {
    left: 14px !important;
    bottom: 14px !important;
  }
  .gg-collage-card--zenbud .gg-collage-brand-label {
    left: 14px !important;
    top: 14px !important;
  }
  .gg-collage-card--eightsleep .gg-collage-brand-label {
    left: 14px !important;
    top: 14px !important;
  }
  .gg-collage-card--onedevice .gg-collage-brand-label {
    right: 14px !important;
    top: 14px !important;
  }
  .gg-collage-card--memoryair .gg-collage-brand-label {
    right: 14px !important;
    top: 14px !important;
  }

  /* 5. Category Hub (2-Column Mobile Grid) */
  .gg-hub {
    padding: 40px 16px 50px !important;
    overflow: hidden !important;
  }
  .gg-hub-container {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .gg-hub-grid-lines {
    display: none !important;
  }
  .gg-hub-row,
  .gg-hub-row--2,
  .gg-hub-row--3 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    margin-bottom: 14px !important;
    justify-items: center !important;
    width: 100% !important;
  }
  .gg-hub-card {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .gg-hub-circle {
    width: 130px !important;
    height: 130px !important;
    font-size: 23px !important;
    padding: 10px !important;
    line-height: 0.95 !important;
  }
  .gg-hub-center-ribbon {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 320px !important;
    height: auto !important;
    min-height: 52px !important;
    font-size: 25px !important;
    padding: 10px 14px !important;
    margin: 6px auto !important;
    justify-self: center !important;
  }

  /* 6. Mobile Sticky Hamburger Bar & Drawer */
  .gg-sticky-bar {
    overflow: visible !important;
    padding: 0 !important;
  }
  .gg-sticky-inner {
    padding: 0 !important;
    gap: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .gg-sticky-mobile-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 16px !important;
    background: rgba(38, 46, 20, 0.98) !important;
    min-height: 48px !important;
    border-bottom: 2px solid #E5B42C !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  .gg-mobile-menu-title {
    font-family: 'League Gothic', 'Impact', sans-serif !important;
    font-size: 26px !important;
    color: #E5B42C !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    letter-spacing: 0.04em !important;
    line-height: 1 !important;
  }
  .gg-burger-btn {
    background: transparent !important;
    border: 1.5px solid #E5B42C !important;
    border-radius: 4px !important;
    color: #FFFFFF !important;
    padding: 6px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-family: 'Magra', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
  }
  .gg-burger-btn:hover,
  .gg-burger-btn:active {
    background-color: rgba(229, 180, 44, 0.15) !important;
  }
  .gg-burger-icon {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 16px !important;
    height: 12px !important;
  }
  .burger-bar {
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    background-color: #E5B42C !important;
    border-radius: 1px !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
  }
  .gg-sticky-bar.menu-open .burger-bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg) !important;
  }
  .gg-sticky-bar.menu-open .burger-bar:nth-child(2) {
    opacity: 0 !important;
  }
  .gg-sticky-bar.menu-open .burger-bar:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg) !important;
  }
  .gg-sticky-menu-content {
    display: none !important;
  }
  .gg-sticky-bar.menu-open .gg-sticky-menu-content {
    display: flex !important;
    flex-direction: column !important;
    padding: 16px 16px 20px !important;
    gap: 14px !important;
    background: rgba(30, 38, 16, 0.99) !important;
    border-bottom: 3px solid #E5B42C !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.6) !important;
    max-height: calc(100vh - 60px) !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }
  .gg-category-pills {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    width: 100% !important;
    overflow-x: visible !important;
    justify-content: flex-start !important;
  }
  .gg-cat-pills-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .gg-cat-pill {
    flex: 1 1 auto !important;
    font-size: 15px !important;
    padding: 7px 9px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    letter-spacing: 0.02em !important;
    border-radius: 20px !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  .gg-cat-pill .pill-dot {
    width: 9px !important;
    height: 9px !important;
    margin-right: 2px !important;
  }
  .gg-cat-pills-row--2 {
    gap: 4px !important;
  }
  .gg-cat-pills-row--2 .gg-cat-pill {
    font-size: 13.5px !important;
    padding: 6px 6px !important;
  }
  .gg-filter-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    overflow-x: visible !important;
    padding-top: 6px !important;
    border-top: 1px solid rgba(255,255,255,0.15) !important;
  }
  .gg-filter-group {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    align-items: center !important;
  }
  .gg-filter-label {
    display: inline-block !important;
    font-family: 'League Gothic', sans-serif !important;
    font-size: 18px !important;
    color: #D7E678 !important;
    min-width: 44px !important;
  }
  .gg-result-count {
    display: none !important;
  }
  .gg-filter-btn {
    font-size: 13px !important;
    padding: 5px 10px !important;
    white-space: nowrap !important;
  }
  .gg-filter-reset {
    font-size: 13px !important;
    padding: 6px 12px !important;
    margin-top: 4px !important;
    align-self: flex-start !important;
  }

  /* 7. Category Headers */
  .gg-category-header {
    min-height: auto !important;
    padding: 36px 16px 28px !important;
  }
  .gg-cat-header-inner {
    flex-direction: column !important;
    min-height: auto !important;
    text-align: center !important;
  }
  .gg-cat-header-content {
    padding-top: 0 !important;
    max-width: 100% !important;
  }
  body.dave-gift-guide-canvas .gg-cat-subtitle,
  .dave-gift-guide-wrapper .gg-cat-subtitle,
  .gg-cat-subtitle {
    font-size: clamp(26px, 7vw, 34px) !important;
    line-height: 1.05 !important;
    margin-bottom: 8px !important;
  }
  .gg-cat-overview {
    font-size: 17px !important;
    line-height: 24px !important;
    margin: 0 auto !important;
  }
  .gg-cat-illustration-box {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    height: auto !important;
    max-height: 190px !important;
    margin-top: 18px !important;
    display: flex !important;
    justify-content: center !important;
  }
  .gg-cat-illustration {
    max-height: 170px !important;
    max-width: 230px !important;
  }

  /* 8. Brand Rows (Dynamic Content Height with Compact Spacing & Headroom for Cutouts) */
  .gg-brand-row {
    min-height: auto !important;
    height: auto !important;
    padding: 68px 0 32px !important;
  }
  .gg-brand-row-body {
    grid-template-columns: 1fr !important;
    padding: 0 16px !important;
    gap: 16px !important;
    width: 100% !important;
    text-align: center !important;
    justify-items: center !important;
    box-sizing: border-box !important;
  }
  .gg-brand-visual {
    width: 100% !important;
    max-width: 320px !important;
    height: 320px !important;
    margin: 0 auto !important;
    position: relative !important;
  }
  .gg-backdrop-box {
    width: 100% !important;
    height: 100% !important;
  }
  .gg-product-img-wrap {
    width: 100% !important;
    height: 100% !important;
    justify-content: flex-start !important;
  }
  .gg-product-img {
    max-width: 320px !important;
    max-height: 350px !important;
    object-position: bottom left !important;
    left: 0 !important;
    bottom: 0 !important;
  }
  .gg-brand-row:not(.gg-brand-row--has-box)[data-brand="danger-coffee"] .gg-product-img {
    width: 320px !important;
    max-width: 320px !important;
    max-height: none !important;
    height: auto !important;
    left: 0 !important;
    bottom: 0 !important;
  }
  .gg-brand-row:not(.gg-brand-row--has-box)[data-brand="danger-creatine"] .gg-product-img {
    width: 330px !important;
    max-width: 330px !important;
    max-height: none !important;
    height: auto !important;
    left: -5px !important;
    bottom: -10px !important;
  }
  .gg-brand-row:not(.gg-brand-row--has-box)[data-brand="wonderfeel-chococreatin"] .gg-product-img {
    width: 340px !important;
    max-width: 340px !important;
    max-height: none !important;
    height: auto !important;
    left: 0 !important;
    bottom: -25px !important;
  }
  /* Mobile: Red Circular Price Tier Badge */
  .gg-price-tier-badge {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 75px !important;
    height: 75px !important;
    z-index: 6 !important;
  }

  /* Mobile: Card with pre-composed background box */
  .gg-brand-row.gg-brand-row--has-box .gg-backdrop-box {
    display: none !important;
  }
  .gg-brand-row.gg-brand-row--has-box .gg-brand-visual,
  .gg-brand-row.gg-brand-row--has-box .gg-product-img-wrap {
    overflow: visible !important;
  }
  .gg-brand-row.gg-brand-row--has-box .gg-product-img,
  .gg-brand-row.gg-brand-row--has-box picture.gg-product-img {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 320px !important;
    height: 350px !important;
    max-height: 350px !important;
    display: block !important;
    filter: none !important;
  }
  .gg-brand-row.gg-brand-row--has-box .gg-product-img img,
  .gg-brand-row.gg-brand-row--has-box picture.gg-product-img img {
    width: 100% !important;
    height: 100% !important;
    max-width: 320px !important;
    max-height: 350px !important;
    object-fit: contain !important;
    object-position: bottom left !important;
    display: block !important;
    filter: none !important;
  }

  /* Mobile: Custom Per-Item Image Width & Position Offsets (Scaled proportionally to 320px box) */
  .gg-brand-row.gg-brand-row--sized .gg-brand-visual,
  .gg-brand-row.gg-brand-row--sized .gg-product-img-wrap {
    overflow: visible !important;
  }
  .gg-brand-row.gg-brand-row--sized[data-brand] .gg-product-img,
  .gg-brand-row.gg-brand-row--sized[data-brand] picture.gg-product-img,
  .gg-brand-row.gg-brand-row--sized .gg-product-img,
  .gg-brand-row.gg-brand-row--sized picture.gg-product-img {
    position: absolute !important;
    left: calc(var(--gg-img-x-num, 0) * 320px / 460) !important;
    bottom: calc(var(--gg-img-y-num, 0) * 320px / 460) !important;
    top: auto !important;
    right: auto !important;
    width: calc(var(--gg-img-w-num, 460) * 320px / 460) !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
  }
  .gg-brand-row.gg-brand-row--sized[data-brand] .gg-product-img img,
  .gg-brand-row.gg-brand-row--sized[data-brand] picture.gg-product-img img,
  .gg-brand-row.gg-brand-row--sized .gg-product-img img,
  .gg-brand-row.gg-brand-row--sized picture.gg-product-img img {
    width: calc(var(--gg-img-w-num, 460) * 320px / 460) !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: bottom left !important;
    display: block !important;
  }
  .gg-brand-row[data-brand="memory-air"] .gg-product-img {
    height: 340px !important;
    max-height: 340px !important;
    max-width: 300px !important;
    left: 0 !important;
  }
  .gg-brand-row[data-brand="eight-sleep"] .gg-product-img {
    width: 320px !important;
    max-width: 320px !important;
    max-height: 310px !important;
    left: 0 !important;
  }
  .gg-top-pick-badge {
    width: 90px !important;
    height: 90px !important;
  }
  .gg-top-pick-badge.pos-top {
    top: -15px !important;
    left: 10px !important;
  }
  .gg-top-pick-badge.pos-top_left {
    top: -15px !important;
    left: -10px !important;
    right: auto !important;
    bottom: auto !important;
  }
  .gg-top-pick-badge.pos-top_right {
    top: -15px !important;
    right: -10px !important;
    left: auto !important;
    bottom: auto !important;
  }
  .gg-top-pick-badge.pos-bottom_right {
    bottom: -15px !important;
    right: -10px !important;
  }

  /* Scaled FPO overlay on mobile (unobtrusive, placed at base of image) */
  .gg-fpo-overlay-label {
    font-size: 24px !important;
    bottom: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    letter-spacing: 0.04em !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8) !important;
  }

  /* Brand details: natural height without -100px negative margin */
  .gg-brand-details {
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    text-align: center !important;
  }
  .gg-brand-header-group {
    margin-top: 0 !important;
    padding-right: 0 !important;
  }
  .gg-brand-tier-wrap {
    justify-content: center !important;
    display: flex !important;
    margin-top: 14px !important;
    margin-bottom: 6px !important;
  }
  .gg-brand-tier-tag {
    font-size: 24px !important;
    padding: 3px 12px 1px !important;
    line-height: 1 !important;
  }
  body.dave-gift-guide-canvas .gg-brand-name,
  .dave-gift-guide-wrapper .gg-brand-name,
  .gg-brand-name {
    font-size: clamp(40px, 10.5vw, 54px) !important;
    line-height: 0.95 !important;
    text-align: center !important;
    margin: 4px 0 8px !important;
  }
  body.dave-gift-guide-canvas .gg-brand-subtitle,
  .dave-gift-guide-wrapper .gg-brand-subtitle,
  .gg-brand-subtitle {
    font-size: clamp(26px, 7vw, 34px) !important;
    line-height: 1.05 !important;
    text-align: center !important;
    margin-bottom: 10px !important;
  }
  .gg-brand-body {
    font-size: 16px !important;
    line-height: 24px !important;
    text-align: center !important;
    margin-bottom: 10px !important;
  }
  .gg-brand-body p {
    font-size: 16px !important;
    line-height: 24px !important;
    margin-bottom: 8px !important;
  }

  /* Compact Offer Box: Centered promo code on next line, snug to GET OFFER */
  .gg-offer-and-cta-row {
    flex-direction: column !important;
    width: 100% !important;
    margin-top: 0 !important;
    padding-top: 4px !important;
    gap: 14px !important;
    align-items: stretch !important;
  }
  .gg-offer-box {
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  .gg-offer-line {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
    padding: 6px 0 !important;
    width: 100% !important;
  }
  .gg-offer-text {
    font-size: 17px !important;
    line-height: 1.25 !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
  }
  .gg-promo-code {
    display: inline-flex !important;
    margin: 4px auto 0 !important;
    align-self: center !important;
    font-size: 15px !important;
    padding: 4px 12px !important;
  }
  .gg-promo-code code {
    font-size: 15px !important;
  }
  .gg-copy-btn {
    font-size: 13px !important;
    padding: 2px 6px !important;
  }
  .gg-cta-wrap {
    width: 100% !important;
  }
  .gg-cta-btn {
    width: 100% !important;
    min-width: 100% !important;
    height: 54px !important;
    font-size: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* 9. Footer & Disclosure */
  .gg-disclosure {
    padding: 28px 16px !important;
  }
  .gg-disclosure-inner {
    font-size: 15px !important;
    line-height: 22px !important;
  }
  .gg-footer {
    padding: 30px 16px 36px !important;
  }
  .gg-disclosure-box p,
  .gg-copyright p {
    font-size: 15px !important;
    line-height: 22px !important;
  }
  .gg-back-to-top {
    bottom: 20px !important;
    right: 78px !important;
    width: 44px !important;
    height: 44px !important;
  }
}
