/* ==========================================================================
   Retrobörse — Main Stylesheet
   Dark Apple-style theme for retro gaming marketplace
   ========================================================================== */

/* ── Reset & base ────────────────────────────────────────────────────────── */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  height: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  max-width: 100%;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Utility ─────────────────────────────────────────────────────────────── */

.rb-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 56px;
}

/* ── Film grain overlay ──────────────────────────────────────────────────── */

#rb-grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: rb-grain 0.5s steps(2) infinite;
}

@keyframes rb-grain {
  0%, 100% { transform: translate(0, 0); }
  25%       { transform: translate(-1%, -1%); }
  50%       { transform: translate(1%, 0); }
  75%       { transform: translate(0, 1%); }
}

/* ── Three.js Canvas ─────────────────────────────────────────────────────── */

#rb-canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 3;  /* above dividers (z-2), below section content (z-4) */
  pointer-events: none;
  transition: opacity 0.4s;
}

#rb-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Loader ──────────────────────────────────────────────────────────────── */

#rb-loader {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

#rb-loader.done,
.rb-loader-skip #rb-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.rb-loader-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 0.1em;
  color: var(--text);
}

.rb-loader-name em,
.rb-loader-logo em,
.rb-loader-logo span { color: var(--accent); font-style: normal; }

.rb-loader-bar {
  width: 180px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

#rb-loader-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.25s ease;
}

.rb-loader-hint {
  font-family: 'Syne Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Navigation ──────────────────────────────────────────────────────────── */

.rb-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 56px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(8, 8, 8, 0.72);
  border-bottom: 1px solid var(--border);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Desktop: slide nav up when scrolling down */
@media (min-width: 1025px) {
  .rb-nav--hidden {
    transform: translateY(-100%);
  }
}

/* Sticky logo — top-right, only visible on desktop when nav is hidden */
#rb-sticky-logo {
  display: flex;
  align-items: center;
  position: fixed;
  top: 18px;
  right: 56px;
  z-index: 150;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
#rb-sticky-logo span { color: var(--accent); }
#rb-sticky-logo img { height: var(--rb-logo-size, 36px) !important; width: auto !important; }

#rb-sticky-logo.rb-logo--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* On mobile: completely hidden, no interaction */
@media (max-width: 1024px) {
  #rb-sticky-logo {
    display: none;
  }
}

.rb-nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--text);
}

.rb-nav-logo img { height: var(--rb-logo-size, 36px) !important; width: auto !important; }
.rb-nav-logo span { color: var(--accent); }

.rb-nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.rb-nav-links a {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.rb-nav-links a:hover { color: var(--text); }

/* ── Dropdown submenus (desktop) ────────────────────────────────────────── */

.rb-nav-links > li {
  position: relative;
}

/* Arrow indicator */
.rb-nav-links > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.2s;
}

.rb-nav-links > li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* Invisible bridge fills the gap between link and dropdown panel
   so moving the mouse downward doesn't lose hover state. */
.rb-nav-links > li.menu-item-has-children::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px; /* matches gap below */
}

/* Dropdown panel */
.rb-nav-links .sub-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* visibility delayed on hide so it doesn't clip before fade-out */
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  z-index: 500;
  box-shadow: 0 12px 32px rgba(0,0,0,0.55);
}

.rb-nav-links > li:hover > .sub-menu,
.rb-nav-links > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}

.rb-nav-links .sub-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--text-secondary);
}

.rb-nav-links .sub-menu a:hover {
  color: var(--accent);
  background: rgba(255,255,255,0.04);
}

.rb-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rb-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.rb-cart-btn:hover { color: var(--text); }

.rb-cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  background: var(--accent);
  color: #000;
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.rb-nav-btn {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #000;
  background: var(--accent);
  padding: 9px 22px;
  border-radius: 100px;
  transition: opacity 0.2s, box-shadow 0.2s;
}

.rb-nav-btn:hover {
  opacity: 0.88;
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Logo centered layout */
.rb-nav--center {
  justify-content: center;
  position: relative;
}
.rb-nav--center .rb-nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.rb-nav--center .rb-nav-links {
  margin-right: auto;
}
.rb-nav--center .rb-nav-actions {
  margin-left: auto;
}

/* Transparent nav (front page hero) */
.rb-nav--transparent {
  background: transparent;
  border-bottom-color: transparent;
  transition: background 0.4s, border-color 0.4s;
}
.rb-nav--transparent.rb-nav--scrolled {
  background: rgba(8, 8, 8, 0.72);
  border-bottom-color: var(--border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* ── Burger / Mobile menu ────────────────────────────────────────────────── */

.rb-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.rb-burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.rb-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.rb-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rb-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

#rb-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 8, 8, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

#rb-mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.rb-mobile-close {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 22px;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
}

.rb-mobile-nav-list {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.rb-mobile-nav-list a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  letter-spacing: 0.04em;
  color: var(--text);
  transition: color 0.2s;
}

.rb-mobile-nav-list a:hover { color: var(--accent); }

/* Mobile dropdown toggle button */
.rb-mobile-nav-list .rb-submenu-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  line-height: 1;
  padding: 0 12px;
  cursor: pointer;
  vertical-align: middle;
  transition: transform 0.2s, color 0.2s;
}

.rb-mobile-nav-list li.is-open > .rb-submenu-toggle {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Mobile submenu: hidden by default, shown when li.is-open */
.rb-mobile-nav-list .sub-menu {
  list-style: none;
  display: none;
  padding: 12px 0 4px;
  gap: 16px;
  flex-direction: column;
}

.rb-mobile-nav-list li.is-open > .sub-menu {
  display: flex;
}

.rb-mobile-nav-list .sub-menu a {
  font-size: 28px;
  color: var(--text-secondary);
}

.rb-mobile-nav-list .sub-menu a:hover { color: var(--accent); }

/* ── Sections — shared ───────────────────────────────────────────────────── */

.rb-section {
  position: relative;
  /* No z-index here — stacking context would trap children below the canvas.
     Content z-index is set on .rb-section-content instead. */
  height: 100vh;
  height: 100svh;
  background: transparent;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

@media (max-width: 768px) {
  /* Mobile: disable all scroll-snap — html has scroll-snap-type: y mandatory,
     so removing snap-align from sections (but not from the footer) caused
     the browser to jump directly to the footer as the only remaining snap target. */
  html {
    scroll-snap-type: none;
  }
  body.home .rb-footer {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  /* Mobile: sections fill the viewport but can grow with content.
     svh = small viewport height (stable, doesn't change with browser chrome). */
  .rb-section {
    height: auto;
    min-height: 100svh;
    overflow: hidden;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  /* Sections need a real background — the 3D canvas is hidden on mobile */
  #rb-front-page .rb-section {
    background: var(--bg);
  }

  /* Hide Three.js canvas on mobile: it's tiny (0.4x scale), adds heavy GPU
     overhead, and sits as a fixed overlay above all content */
  #rb-canvas-wrap {
    display: none;
  }
}

.rb-bg-surface   { background: var(--surface); }
.rb-bg-gradient  { background: linear-gradient(160deg, var(--bg) 0%, #0a0f00 100%); }

/* ── Block-content sections (rb_section CPT / Kadence Blocks) ────────────── */

/* Sections with auto height (set in Sektion Einstellungen sidebar) */
.rb-section-auto-height {
  height: auto;
  min-height: 50vh;
  overflow: visible;
}

/* ── Section shape dividers ──────────────────────────────────────────────── */
.rb-sec-divider {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 2;  /* below canvas (z-3) and content (z-4) */
  line-height: 0;
  pointer-events: none;
}
.rb-sec-divider--bottom {
  bottom: 0;
  filter: drop-shadow(0 -6px 10px rgba(0, 0, 0, 0.45));
}
.rb-sec-divider--top {
  top: 0;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}
/* SVG sized via CSS custom properties set as inline style on the wrapper */
.rb-sec-divider__svg {
  display: block;
  width: 100%;
  height: var(--rb-div-hd, 80px);
}
@media (max-width: 1024px) {
  .rb-sec-divider__svg {
    height: var(--rb-div-hm, 48px);
  }
}

/* Wrapper around block editor output — centers content, limits width */
.rb-section-content {
  position: relative;
  z-index: 4;  /* above canvas (z-3) and dividers (z-2) */
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 56px;
  overflow: visible; /* allow alignfull children to break out via negative margins */
}

/* Viewport-height block sections: vertically center the block content */
.rb-block-section:not(.rb-section-auto-height) {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Section content — will-change hint for GSAP enter/leave animations (desktop only) */
@media (min-width: 1025px) {
  #rb-front-page .rb-section .rb-section-content {
    will-change: opacity, transform;
  }
}

/* ── Directional depth shadow — light from upper-left (same as Game Boy) ── */
/* Two-layer approach: bright upper-left corner + dark lower-right shadow.    */
/* z-index 1: above bg (::before, z-0), below content (z-3) and canvas (z-2) */
/* Disabled on sections with a solid color background — shadow looks wrong there. */
.rb-has-solid-bg::after { display: none; }

.rb-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Bright highlight — upper-left corner */
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(255,255,255,0.12) 0%, transparent 70%),
    /* Deep shadow — lower-right corner */
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(0,0,0,0.55) 0%, transparent 65%),
    /* Subtle center-to-edge vignette for depth */
    radial-gradient(ellipse 80% 80% at 50% 50%, transparent 40%, rgba(0,0,0,0.22) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ── Solid-color background effects ──────────────────────────────────────── */
/* Rendered via a real <div class="rb-bg-fx-layer"> injected by PHP — avoids
   fighting the ::after cascade entirely. */

.rb-bg-fx-layer {
  position: absolute !important; /* override .rb-has-bg > * { position: relative } */
  inset: 0;
  z-index: 1 !important;         /* below dividers (z-2) and content (z-4), above bg (z-0) */
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Scanlines: dark lines — visible on light AND dark backgrounds via overlay */
.rb-bg-fx--scanlines {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.55) 3px,
    rgba(0, 0, 0, 0.55) 4px
  );
}

/* Noise: visible grain via overlay blend */
.rb-bg-fx--noise {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.5;
}

/* Dots: dark dots darken any background via overlay */
.rb-bg-fx--dots {
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.6) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
}

/* Vignette: dark edges — overlay darkens any bg toward the border */
.rb-bg-fx--vignette {
  background: radial-gradient(
    ellipse 70% 70% at 50% 50%,
    transparent 0%,
    transparent 45%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

/* Bevel: white top-left lightens, black bottom-right darkens — visible on any bg */
.rb-bg-fx--bevel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, transparent 40%),
    linear-gradient(315deg, rgba(0, 0, 0, 0.65) 0%, transparent 45%);
}

/* ── Kadence Blocks — dark theme integration ─────────────────────────────── */

/* Row Layout fills the available width */
.rb-section-content .kb-row-layout-wrap,
.rb-section-content .kb-section-wrap {
  width: 100%;
}

/* Headings — only set font-family; color inherits from body (var(--text)).
   No color override here so Kadence editor colors always win. */
.rb-section-content h1,
.rb-section-content h2,
.rb-section-content h3,
.rb-section-content h4 {
  font-family: 'Syne', sans-serif;
}

/* Body text — only line-height; color inherits from body. */
.rb-section-content p,
.rb-section-content li {
  line-height: 1.7;
}

/* Kadence buttons — structural styles only, no color overrides */
.rb-section-content .kb-button.kt-button,
.rb-section-content .wp-block-button__link {
  border-radius: 4px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Kadence Accordion — border for dark theme separation */
.rb-section-content .kt-accordion-panel-inner {
  border: 1px solid var(--border);
}

/* Kadence Info Box — structural padding/border */
.rb-section-content .kt-blocks-info-box-link-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

/* alignfull blocks break out of the content wrapper to span full viewport width.
   Uses negative margins instead of 100vw to avoid scrollbar-triggered overflow. */
.rb-section-content > .alignfull,
.rb-section-content > .wp-block-kadence-rowlayout.alignfull,
.rb-section-content > .wp-block-kadence-column.alignfull {
  width: calc(100% + 112px);
  max-width: calc(100% + 112px);
  margin-left: -56px;
  margin-right: -56px;
}

/* alignwide blocks stretch to the full wrapper width (ignore side padding) */
.rb-section-content > .alignwide,
.rb-section-content > .wp-block-kadence-rowlayout.alignwide,
.rb-section-content > .wp-block-kadence-column.alignwide {
  width: calc(100% + 112px);
  max-width: calc(100% + 112px);
  margin-left: -56px;
  margin-right: -56px;
}

/* Responsive padding */
@media (max-width: 768px) {
  .rb-section-content {
    padding: 60px 24px;
  }
  .rb-section-content > .alignwide,
  .rb-section-content > .wp-block-kadence-rowlayout.alignwide,
  .rb-section-content > .wp-block-kadence-column.alignwide {
    width: calc(100% + 48px);
    max-width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
  }
}

/* ── Section background image + overlay ─────────────────────────────────── */

/* Sections are transparent by default so the fixed canvas shows through */
#rb-front-page .rb-section {
  background: transparent;
}

/* rb-has-bg is only added by PHP when a background image or color is set.
   ::before renders both the solid color (--rb-bg-color) and the dark overlay.
   Background color is passed as a CSS variable — never as an inline
   background-color on the element — so the section itself stays transparent
   and the fixed Three.js canvas (z-index: 2) always shows through transparent sections. */
.rb-has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Solid color via variable — never as background-color on the section itself
     so the section stays transparent and the Three.js canvas shows through.
     Image stacked behind the overlay gradient via multi-layer background-image. */
  background-color: var(--rb-bg-color, transparent);
  background-image:
    linear-gradient(
      rgba(0, 0, 0, var(--rb-bg-overlay, 0.5)),
      rgba(0, 0, 0, var(--rb-bg-overlay, 0.5))
    ),
    var(--rb-bg-image, none);
  background-size: auto, var(--rb-bg-size, cover);
  background-position: center, center;
  background-repeat: no-repeat, var(--rb-bg-repeat, no-repeat);
  pointer-events: none;
  z-index: 0;
}

/* Content sits above the overlay and above the canvas */
.rb-has-bg > * { position: relative; z-index: 4; }

/* ── Parallax background layer (injected by JS) ──────────────────────────── */

/* Fixed background layer: position:fixed covers the full viewport, clip-path is
   updated each rAF frame to reveal only the portion inside the section.
   GPU-composited — no layout/paint triggered. */
.rb-parallax-bg {
  position: fixed !important;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
  will-change: clip-path;
}

/* Overlay must sit above the fixed image layer */
[data-parallax="true"]::before {
  z-index: 1;
}

/* z-index: -1 keeps it below the ::before overlay and all content.
   Scale transition: JS adds .rb-in-view → zoom 1.12 → 1.0 via CSS transition.
   Works with scroll-snap because it triggers on IntersectionObserver, not scroll. */
.rb-zoom-bg {
  position: absolute !important;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1 !important;
  pointer-events: none;
  transform-origin: center center;
  transform: scale(1.12);
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

[data-zoom="true"].rb-in-view .rb-zoom-bg {
  transform: scale(1.0);
}

/* ── Text readability on sections with background images / colors ────────── */

.rb-has-bg .rb-section-title,
.rb-has-bg .rb-hero-title,
.rb-has-bg .rb-cta-title {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.95);
}

.rb-has-bg .rb-section-body,
.rb-has-bg .rb-hero-sub,
.rb-has-bg .rb-cta-sub,
.rb-has-bg .rb-eyebrow,
.rb-has-bg .rb-sec-num {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
}

/* Dark pill around primary text blocks — solid, not frosted glass,
   to ensure readability regardless of background color/brightness. */
.rb-has-bg .rb-text-inner,
.rb-has-bg .rb-cards-header,
.rb-has-bg .rb-featured-header {
  background: rgba(8, 8, 8, 0.62);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 36px 44px;
}

.rb-sec-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.rb-eyebrow {
  font-family: 'Syne Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.rb-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 28px;
}

.rb-section-body {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.rb-btn-primary {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #000;
  background: var(--accent);
  padding: 14px 34px;
  border-radius: 100px;
  transition: opacity 0.2s, box-shadow 0.3s, transform 0.2s;
}

.rb-btn-primary:hover {
  opacity: 0.88;
  box-shadow: 0 0 32px var(--accent-glow);
  transform: translateY(-1px);
}

.rb-btn-primary.rb-btn-large {
  font-size: 16px;
  padding: 16px 48px;
}

.rb-btn-ghost {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  padding: 14px 34px;
  border-radius: 100px;
  transition: border-color 0.2s, transform 0.2s;
}

.rb-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.rb-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 88px 56px 72px;
}

.rb-hero-eyebrow {
  font-family: 'Syne Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.rb-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 8.5vw, 130px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 32px;
}

.rb-hero-title em {
  font-style: normal;
  color: var(--accent);
}

.rb-hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.rb-hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.rb-scroll-cue {
  position: absolute;
  bottom: 32px;
  right: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.rb-scroll-cue span {
  font-family: 'Syne Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.rb-scroll-cue-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: rb-cue 2s ease-in-out infinite;
}

@keyframes rb-cue {
  0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40%, 60%  { opacity: 1; transform: scaleY(1); }
}

/* ── Hero Block (retroboerse/hero Gutenberg block) ───────────────────────── */

/*
 * When a section contains the hero block, override the centered flex layout
 * so the block can stretch to full height and push content to the bottom —
 * matching the original .rb-hero section look.
 */
.rb-section:has(.rb-hero-block) {
  align-items: stretch;
}

.rb-section:has(.rb-hero-block) .rb-section-content {
  display: flex;
  flex-direction: column;
  padding-top: 0;
  padding-bottom: 0;
}

.rb-hero-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 88px 0 72px;
  position: relative; /* scroll cue positions relative to this */
}

@media (max-width: 768px) {
  .rb-hero-block {
    justify-content: center; /* center content vertically on mobile so buttons stay visible */
    padding: 100px 0 40px;
  }
}

/* Editor preview: compensate for wp-admin UI chrome */
.rb-hero-block--editor {
  min-height: 60vh;
}

/* ── Text section ────────────────────────────────────────────────────────── */

.rb-text-section {
  display: flex;
  align-items: center;
  padding: 120px 56px;
}

.rb-text-inner { max-width: 520px; }
.rb-text-inner.align-center      { margin: 0 auto; text-align: center; }
.rb-text-inner.align-right       { margin-left: auto; }
.rb-text-inner.align-left-2col   { width: 65%; max-width: 65%; margin-right: auto; }
.rb-text-inner.align-right-2col  { width: 65%; max-width: 65%; margin-left: auto; }

/* ── Section content image ───────────────────────────────────────────────── */

.rb-has-sec-img { position: relative; }
.rb-has-sec-img.rb-sec-img-right { padding-right: 42%; }
.rb-has-sec-img.rb-sec-img-left  { padding-left: 42%; }

figure.rb-sec-img {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  overflow: hidden;
  margin: 0;
}
.rb-sec-img-right figure.rb-sec-img { right: 0; }
.rb-sec-img-left  figure.rb-sec-img { left: 0; }

figure.rb-sec-img img {
  object-fit: cover;
  display: block;
}

/* ── Cards section ───────────────────────────────────────────────────────── */

.rb-cards-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 56px;
}

.rb-cards-header { margin-bottom: 56px; }

.rb-kat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-left: auto;
  max-width: 900px;
}

.rb-kat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}

.rb-kat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.012) 3px,
    rgba(255, 255, 255, 0.012) 4px
  );
  pointer-events: none;
}

.rb-kat-card:hover {
  border-color: rgba(155, 188, 15, 0.4);
  background: var(--surface2);
  transform: translateY(-5px);
}

.rb-kat-icon {
  display: block;
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 20px;
}

.rb-kat-name {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.rb-kat-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.65;
}

.rb-kat-count {
  display: inline-block;
  margin-top: 22px;
  font-family: 'Syne Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* ── Stats / Vertrauen ───────────────────────────────────────────────────── */

.rb-stats-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 56px;
}

.rb-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 64px;
  width: 100%;
  max-width: 860px;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.rb-trust-item {
  padding: 48px 24px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rb-trust-item:last-child { border-right: none; }

.rb-trust-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
}

.rb-trust-label {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: center;
}

/* ── Featured products section ───────────────────────────────────────────── */

.rb-featured-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 56px;
}

.rb-featured-header { margin-bottom: 48px; }

/* ── Product grid & cards ────────────────────────────────────────────────── */

.rb-prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 840px;
  margin-left: auto;
}

.rb-prod-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s;
  display: block;
}

.rb-prod-card:hover {
  transform: translateY(-5px);
  border-color: rgba(155, 188, 15, 0.3);
}

.rb-prod-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #0d1800 0%, #1a2c00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  color: var(--accent);
}

.rb-prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rb-prod-img svg {
  width: 64px;
  height: 64px;
  opacity: 0.5;
}

.rb-prod-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(155, 188, 15, 0.03) 2px,
    rgba(155, 188, 15, 0.03) 3px
  );
  pointer-events: none;
}

.rb-prod-info { padding: 22px 20px; }

.rb-prod-condition {
  font-family: 'Syne Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 7px;
}

.rb-prod-name {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.rb-prod-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--text);
}

/* WooCommerce price styling */
.rb-prod-price .woocommerce-Price-amount { font-size: inherit; }
.rb-prod-price del { opacity: 0.4; margin-right: 8px; }
.rb-prod-price ins { text-decoration: none; }

/* ── CTA section ─────────────────────────────────────────────────────────── */

.rb-cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 56px;
  position: relative;
  overflow: hidden;
}

.rb-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(155, 188, 15, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.rb-cta-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.rb-cta-sub {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

/* ── Gallery section ─────────────────────────────────────────────────────── */

.rb-gallery-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 56px;
}

.rb-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.rb-gallery-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
  cursor: zoom-in;
}

.rb-gallery-item:hover {
  transform: scale(1.02);
  border-color: rgba(155, 188, 15, 0.3);
}

.rb-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* ── Divider ─────────────────────────────────────────────────────────────── */

.rb-divider {
  height: 1px;
  background: var(--border);
  margin: 0 56px;
  position: relative;
  z-index: 2;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.rb-footer {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* On the front page the footer must be a scroll-snap target,
   otherwise the last 100vh section blocks scrolling to it. */
body.home .rb-footer {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.rb-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 64px 56px 36px;
}

.rb-footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 48px;
}

.rb-footer-brand {}

.rb-footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--text);
  display: block;
  margin-bottom: 16px;
}

.rb-footer-logo span { color: var(--accent); }

.rb-footer-tagline {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 240px;
}

.rb-footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.rb-footer-col h4,
.rb-footer-col .widget-title {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.rb-footer-col ul { list-style: none; }

.rb-footer-col ul li { margin-bottom: 12px; }

.rb-footer-col ul a {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.rb-footer-col ul a:hover { color: var(--text); }

.rb-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.rb-footer-copy {
  font-family: 'Syne Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.rb-footer-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.rb-footer-nav a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.rb-footer-nav a:hover { color: var(--text-secondary); }

/* ── Inner page layout ───────────────────────────────────────────────────── */

.rb-main {
  padding-top: 120px; /* below fixed nav + breathing room */
  min-height: 80vh;
}

/* Front page overrides nav offset */
.rb-main--front-page { padding-top: 0; }

#rb-front-page { /* scroll-snap container handled by html */ }

.rb-page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 32px;
}

.rb-post-single {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 0 80px;
}

/* Page content: full-width for Kadence Row Layouts.
   Side padding lives here; alignfull blocks break out via negative margins. */
.rb-page-content {
  width: 100%;
  padding: 0 56px 80px;
  box-sizing: border-box;
}

/* alignfull: break fully out of the side padding */
.rb-page-content > .alignfull,
.rb-page-content > .wp-block-kadence-rowlayout.alignfull,
.rb-page-content > .wp-block-kadence-section.alignfull {
  margin-left: -56px;
  margin-right: -56px;
  max-width: calc(100% + 112px);
  width: calc(100% + 112px);
}

/* alignwide: fill full content width */
.rb-page-content > .alignwide,
.rb-page-content > .wp-block-kadence-rowlayout.alignwide,
.rb-page-content > .wp-block-kadence-section.alignwide {
  max-width: 100%;
  width: 100%;
}

/* Fallback: plain text pages */
.rb-page-content .rb-prose {
  max-width: 780px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .rb-page-content {
    padding: 0 20px 60px;
  }
  .rb-page-content > .alignfull,
  .rb-page-content > .wp-block-kadence-rowlayout.alignfull,
  .rb-page-content > .wp-block-kadence-section.alignfull {
    margin-left: -20px;
    margin-right: -20px;
    max-width: calc(100% + 40px);
    width: calc(100% + 40px);
  }
}

.rb-page-header { margin-bottom: 48px; }

.rb-page-hero-img,
.rb-post-featured-img {
  border-radius: 16px;
  overflow: hidden;
  margin: 32px 0 48px;
  border: 1px solid var(--border);
}

.rb-page-hero-img img,
.rb-post-featured-img img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* ── Prose (page/post content) ───────────────────────────────────────────── */

.rb-prose {
  color: var(--text-secondary);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
}

.rb-prose h1, .rb-prose h2, .rb-prose h3,
.rb-prose h4, .rb-prose h5, .rb-prose h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 16px;
  line-height: 1.2;
}

.rb-prose h2 { font-size: clamp(24px, 3vw, 36px); }
.rb-prose h3 { font-size: clamp(20px, 2.5vw, 28px); }

.rb-prose p { margin-bottom: 24px; }
.rb-prose a { color: var(--accent); border-bottom: 1px solid var(--accent-dim); transition: border-color 0.2s; }
.rb-prose a:hover { border-color: var(--accent); }

.rb-prose ul, .rb-prose ol,
.rb-page-content ul:not([class]),
.rb-page-content ol:not([class]),
.rb-page-content .wp-block-list {
  margin: 0 0 24px 24px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.rb-prose li,
.rb-page-content ul:not([class]) li,
.rb-page-content ol:not([class]) li,
.rb-page-content .wp-block-list li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.rb-prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 24px;
  margin: 32px 0;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.rb-prose img {
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 24px 0;
}

.rb-prose pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  overflow-x: auto;
  font-family: 'Syne Mono', monospace;
  font-size: 14px;
  margin: 24px 0;
}

.rb-prose code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: 'Syne Mono', monospace;
  font-size: 0.88em;
}

/* ── Blog post cards ─────────────────────────────────────────────────────── */

.rb-archive-header {
  padding: 60px 0 48px;
}

.rb-archive-desc {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 560px;
}

.rb-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 80px;
}

.rb-post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.rb-post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(155, 188, 15, 0.25);
}

.rb-post-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.rb-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.rb-post-card:hover .rb-post-thumb img { transform: scale(1.04); }

.rb-post-body { padding: 24px; }

.rb-post-meta {
  font-family: 'Syne Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.rb-post-title {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 12px;
}

.rb-post-title a { transition: color 0.2s; }
.rb-post-title a:hover { color: var(--accent); }

.rb-post-excerpt {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.rb-read-more {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.rb-read-more:hover { opacity: 0.7; }

/* ── Pagination ──────────────────────────────────────────────────────────── */

.rb-pagination {
  padding: 40px 0;
  display: flex;
  justify-content: center;
}

.rb-pagination .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.rb-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.rb-pagination .page-numbers.current,
.rb-pagination .page-numbers:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Sidebar layout ──────────────────────────────────────────────────────── */

.rb-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 80px;
}

.rb-sidebar {
  position: sticky;
  top: 96px;
  height: fit-content;
}

.rb-sidebar .widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.rb-sidebar .widget-title {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ── Single post ─────────────────────────────────────────────────────────── */

.rb-post-meta-bar {
  display: flex;
  gap: 20px;
  font-family: 'Syne Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.rb-post-cats {
  font-family: 'Syne Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.rb-post-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.rb-post-tags {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.rb-post-tags a {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  margin: 4px;
  transition: border-color 0.2s, color 0.2s;
}

.rb-post-tags a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.rb-post-nav .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.rb-post-nav .nav-previous a,
.rb-post-nav .nav-next a {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.rb-post-nav .nav-previous a:hover,
.rb-post-nav .nav-next a:hover { color: var(--text); }

/* ── 404 ─────────────────────────────────────────────────────────────────── */

.rb-404-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
}

.rb-404-content {
  text-align: center;
  max-width: 560px;
}

.rb-404-code {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(96px, 15vw, 180px);
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 60px var(--accent-glow);
  margin-bottom: 8px;
}

.rb-404-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-secondary);
  margin: 16px 0 40px;
  line-height: 1.7;
}

.rb-404-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 40px;
}

/* ── Reveal animations ───────────────────────────────────────────────────── */

.reveal,
.hero-reveal {
  opacity: 0;
  transform: translateY(44px);
}

/* ── Lightbox (PhotoSwipe) ───────────────────────────────────────────────── */

.pswp {
  --pswp-bg: rgba(0, 0, 0, 0.95);
  --pswp-icon-color: #f0ede6;
  --pswp-icon-color-secondary: #484848;
}

/* ── No results ──────────────────────────────────────────────────────────── */

.rb-no-results,
.rb-no-products {
  text-align: center;
  padding: 80px 0;
  color: var(--text-secondary);
}

.rb-no-results h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: var(--text);
  margin-bottom: 16px;
}

/* ── Search form ─────────────────────────────────────────────────────────── */

.search-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 32px auto 0;
}

.search-form .search-field {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 12px 20px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-form .search-field:focus { border-color: rgba(155, 188, 15, 0.5); }

.search-form .search-submit {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #000;
  background: var(--accent);
  border: none;
  border-radius: 100px;
  padding: 12px 22px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.search-form .search-submit:hover { opacity: 0.85; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */

.rb-breadcrumb {
  font-family: 'Syne Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.rb-breadcrumb a { color: var(--text-secondary); transition: color 0.2s; }
.rb-breadcrumb a:hover { color: var(--text); }
.rb-bc-sep { margin: 0 2px; }

/* ── Comments ────────────────────────────────────────────────────────────── */

.rb-comments { padding: 56px 0; }

.rb-comments .comments-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
}

.rb-comments .comment-list { list-style: none; }

.rb-comments .comment {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.rb-comments .comment-author .fn {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.rb-comments .comment-metadata {
  font-family: 'Syne Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.rb-comments .comment-content {
  margin: 16px 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.rb-comments .comment-form label {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.rb-comments .comment-form input[type="text"],
.rb-comments .comment-form input[type="email"],
.rb-comments .comment-form input[type="url"],
.rb-comments .comment-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.rb-comments .comment-form textarea { min-height: 140px; resize: vertical; }

.rb-comments .comment-form input:focus,
.rb-comments .comment-form textarea:focus {
  border-color: rgba(155, 188, 15, 0.5);
}

.rb-comments .comment-form .submit {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  background: var(--accent);
  border: none;
  border-radius: 100px;
  padding: 12px 28px;
  cursor: pointer;
  transition: opacity 0.2s;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1200px) {
  .rb-footer-top { grid-template-columns: 1fr; gap: 40px; }
  .rb-footer-widgets { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .rb-container { padding: 0 32px; }
  .rb-nav { padding: 18px 32px; }
  .rb-nav-links { display: none; }
  .rb-burger { display: flex; }
  .rb-hero { padding-left: 32px; padding-right: 32px; }
  .rb-text-section { padding: 60px 32px; }
  .rb-cards-section, .rb-featured-section { padding: 60px 32px; }
  .rb-stats-section, .rb-cta-section { padding: 80px 32px; }
  .rb-hero-title { font-size: clamp(48px, 10vw, 100px); }
  .rb-kat-grid, .rb-prod-grid { max-width: 100%; }
  .rb-trust-grid { max-width: 100%; }
  .rb-posts-grid { grid-template-columns: repeat(2, 1fr); }
  .rb-sidebar-wrap { grid-template-columns: 1fr; }
  .rb-sidebar { position: static; }
}

@media (max-width: 768px) {
  .rb-container { padding: 0 24px; }
  .rb-nav { padding: 16px 24px; }
  .rb-hero { padding: 80px 24px 56px; }
  .rb-text-section, .rb-stats-section, .rb-cta-section { padding: 60px 24px; }
  .rb-cards-section, .rb-featured-section, .rb-gallery-section { padding: 48px 24px; }
  .rb-hero-title { font-size: clamp(42px, 12vw, 80px); }
  .rb-hero-sub { font-size: 15px; }
  .rb-section-title { font-size: clamp(36px, 8vw, 60px); }
  .rb-kat-grid { grid-template-columns: 1fr; gap: 12px; margin-left: 0; }
  .rb-prod-grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-left: 0; }
  .rb-trust-grid { grid-template-columns: 1fr 1fr; }
  .rb-trust-item:nth-child(2) { border-right: none; }
  .rb-trust-item:nth-child(3) { border-top: 1px solid var(--border); }
  .rb-trust-item:nth-child(4) { border-top: 1px solid var(--border); }
  .rb-cta-title { font-size: clamp(40px, 9vw, 72px); }
  .rb-footer-widgets { grid-template-columns: 1fr 1fr; }
  .rb-footer-inner { padding: 48px 24px 28px; }
  .rb-footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
  .rb-posts-grid { grid-template-columns: 1fr; }
  #rb-canvas-wrap { opacity: 0.5; }
  .rb-text-inner.align-left-2col,
  .rb-text-inner.align-right-2col { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }
  .rb-has-sec-img.rb-sec-img-right,
  .rb-has-sec-img.rb-sec-img-left { padding-right: 0; padding-left: 0; }
  .rb-sec-img-hide-mobile { display: none; }
  figure.rb-sec-img { position: static; width: 100%; height: 240px; margin-bottom: 24px; }
}

@media (max-width: 480px) {
  .rb-prod-grid { grid-template-columns: 1fr; }
  .rb-hero-actions { flex-direction: column; align-items: flex-start; }
  .rb-footer-widgets { grid-template-columns: 1fr; }
  .rb-404-actions { flex-direction: column; align-items: center; }
  #rb-canvas-wrap { opacity: 0.3; }
}
