/* ============================================================
   Acend PDP — Hero section styles
   Built on Real Botanicals design system (Acend sub-brand palette).
   ============================================================ */

@import url("./design-system/colors_and_type.css");
@import url("./design-system/tokens.css");

/* ============================================================
   ACEND SUB-BRAND PALETTE OVERRIDES
   Remaps the Real Botanicals red/beige tokens to Acend's
   green primary + cream surface. Yellow is a scoped accent.
   ============================================================ */
:root {
  --acend-green:        #1D9C55;
  --acend-green-hover:  #17803F;
  --acend-yellow:       #FDEE19;
  --acend-cream:        #F4F0E9;

  /* remap so every var(--rb-red*) resolves to Acend green */
  --rb-red:             var(--acend-green);
  --rb-red-hover:       var(--acend-green-hover);
  --rb-red-tint:        rgba(29, 156, 85, 0.08);
  --rb-red-tint-strong: rgba(29, 156, 85, 0.18);

  /* warm cream page + panel backgrounds */
  --rb-bg:              var(--acend-cream);
  --rb-paper:           #EBE6DC;

  /* keep review stars in warm gold; success stays green */
  --rb-success:         var(--acend-green-hover);
}


html, body {
  margin: 0;
  padding: 0;
  background: var(--rb-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.rb-announce {
  background: var(--rb-red);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.rb-announce strong { font-weight: 800; }

/* ============================================================
   HEADER
   ============================================================ */
.rb-header {
  position: sticky;
  top: 0;
  background: var(--rb-bg);
  z-index: var(--z-sticky);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 200ms var(--ease-out), background 200ms var(--ease-out);
}
.rb-header.scrolled {
  background: rgba(244, 240, 233, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px -10px rgba(0, 0, 0, 0.18);
}
.rb-header-inner {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 18px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
}
.rb-brand { display: flex; align-items: center; cursor: pointer; }
.rb-brand img { height: 42px; }
.rb-nav {
  display: flex;
  gap: 32px;
  justify-content: center;
}
.rb-nav a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--rb-fg);
  cursor: pointer;
  text-decoration: none;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color 160ms var(--ease-out);
}
.rb-nav a:hover { color: var(--rb-red); }
.rb-utility { display: flex; align-items: center; gap: 16px; }
.rb-utility button,
.rb-utility > a {
  background: none; border: 0; cursor: pointer;
  color: var(--rb-fg); padding: 8px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  transition: background 160ms var(--ease-out);
}
.rb-utility button:hover,
.rb-utility > a:hover { background: rgba(0, 0, 0, 0.05); }
.rb-utility .rb-cart { position: relative; }
.rb-cart-count {
  position: absolute;
  top: 2px; right: 0;
  background: var(--rb-red);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10px;
  border-radius: 999px;
  padding: 2px 6px;
  min-width: 18px;
  text-align: center;
  line-height: 1;
}
/* Mobile-only hamburger; hidden here so it takes no grid column on desktop. */
.rb-mobile-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  color: var(--rb-fg); padding: 8px;
  align-items: center; justify-content: center;
}

/* ============================================================
   HERO LAYOUT
   ============================================================ */
.rb-hero {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 32px 28px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

/* ----- GALLERY ----- */
/* min-width: 0 everywhere an image sits in a flex/grid item: Safari otherwise
   floors these boxes at the image's intrinsic width and the page overflows. */
.rb-gallery { position: sticky; top: 96px; min-width: 0; }
.rb-gallery-main {
  min-width: 0;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  position: relative;
  overflow: hidden;
}
.rb-gallery-main::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  width: 70%;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.18), transparent 70%);
  filter: blur(8px);
  z-index: 0;
}
.rb-gallery-main img {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  transition: opacity 240ms var(--ease-out), transform 320ms var(--ease-out);
}
.rb-gallery-main img.fading { opacity: 0; transform: scale(0.98); }
.rb-gallery-badge {
  position: absolute;
  top: 24px; left: 24px;
  background: var(--rb-bg-inverse);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 4px;
  z-index: 2;
}
.rb-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  /* Stretch is the grid default and gives items a definite height, which Safari
     resolves ahead of aspect-ratio. Start-align so the ratio drives the height. */
  align-items: start;
}
.rb-gallery-thumb {
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  min-width: 0;
  /* Square, whatever the artwork's intrinsic ratio: height comes from the track
     width, and min-height: 0 stops the image's intrinsic height from winning. */
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.rb-gallery-thumb:hover { transform: translateY(-2px); }
.rb-gallery-thumb.active { border-color: var(--rb-red); }
/* Belt and braces: the image is square too, so the thumb comes out 1:1 (image +
   8px padding on both axes) even where WebKit ignores aspect-ratio on a <button>. */
.rb-gallery-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Mobile swipeable gallery */
.rb-gallery-dots { display: none; }

/* ============================================================
   BUY BOX (right column)
   ============================================================ */
.rb-buybox { padding-top: 4px; min-width: 0; }

/* Review row */
.rb-bb-review {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.rb-bb-review .stars { color: var(--rb-gold); font-size: 16px; letter-spacing: 2px; line-height: 1; }
.rb-bb-review .count {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--rb-gray-500);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.rb-bb-review .divider {
  width: 1px; height: 14px;
  background: var(--color-border);
}
.rb-bb-review .verified {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rb-success);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* Title + supporting */
.rb-bb-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: none;
  margin: 0 0 6px;
  color: var(--rb-fg);
}
.rb-bb-subline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--rb-gray-500);
  margin: 0 0 22px;
}
.rb-bb-subline span { display: inline-block; margin: 0 6px; opacity: 0.35; }

/* Description */
.rb-bb-desc-wrap { margin-bottom: 28px; }
.rb-bb-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.62;
  color: var(--rb-fg);
  margin: 0;
}
.rb-bb-desc + .rb-bb-desc { margin-top: 14px; }
.rb-bb-desc-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rb-bb-readmore {
  background: none;
  border: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rb-fg);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  padding: 12px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rb-bb-readmore:hover { color: var(--rb-red); }
.rb-bb-readmore svg { transition: transform 200ms var(--ease-out); }
.rb-bb-readmore.expanded svg { transform: rotate(180deg); }

/* Selector rows */
.rb-bb-row { margin-bottom: 24px; }
.rb-bb-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}
.rb-bb-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rb-fg);
}
.rb-bb-row-value {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--rb-gray-500);
}
.rb-bb-row-value strong { color: var(--rb-fg); font-weight: 700; }

/* Strength chips */
.rb-bb-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rb-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  min-height: 46px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  background: #fff;
  color: var(--rb-fg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  transition: all 180ms var(--ease-out);
  position: relative;
}
.rb-chip:hover { border-color: var(--rb-fg); transform: translateY(-1px); }
.rb-chip.active {
  background: var(--rb-red);
  color: #fff;
  border-color: var(--rb-red);
  box-shadow: 0 4px 12px -4px rgba(29, 156, 85, 0.45);
}

/* Size cards — image + count band (image-forward, AOV callouts) */
.rb-size-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  padding-top: 12px; /* room for absolute ribbons without uneven card heights */
}
.rb-size-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rb-size {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  padding: 0;
  cursor: pointer;
  text-align: center;
  transition: transform 200ms var(--ease-out), border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  min-width: 0;
}
.rb-size.tagged { margin-top: 0; }
.rb-size:hover {
  border-color: var(--rb-fg);
  transform: translateY(-3px);
  box-shadow: 0 14px 24px -16px rgba(0, 0, 0, 0.28);
}
.rb-size.active {
  border-color: var(--rb-red);
  border-width: 2px;
  box-shadow: 0 10px 24px -12px rgba(29, 156, 85, 0.4);
}

/* Image well */
.rb-size-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 10px 10px;
  min-width: 0;
  min-height: 108px;
  background: #fff;
  border-radius: 15px 15px 0 0;
}
.rb-size-img img {
  max-height: 92px;
  max-width: 88%;
  object-fit: contain;
  transition: transform 220ms var(--ease-out);
}
.rb-size:hover .rb-size-img img { transform: scale(1.04); }

/* Count band at the bottom — fills red when selected */
.rb-size-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px 12px;
  background: var(--rb-paper);
  border-top: 1px solid var(--color-border);
  border-radius: 0 0 15px 15px;
  transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.rb-size.active .rb-size-band {
  background: var(--rb-red);
  border-top-color: var(--rb-red);
}
.rb-size-count {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 19px;
  color: var(--rb-fg);
  line-height: 1;
  letter-spacing: -0.01em;
}
.rb-size.active .rb-size-count { color: #fff; }
.rb-size-unit {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: inherit;
  margin: 0;
}
.rb-size-per {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--rb-gray-500);
  line-height: 1;
}
.rb-size.active .rb-size-per { color: rgba(255, 255, 255, 0.85); }

/* Callout ribbon (Most Popular / Best Value) */
.rb-size-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  color: #fff;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.35);
}
.rb-size-ribbon.is-popular { background: var(--rb-red); }
.rb-size-ribbon.is-value { background: var(--acend-yellow); color: #1a1a1a; box-shadow: 0 4px 10px -4px rgba(0,0,0,0.28); }

/* Purchase options card */
.rb-purchase {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 20px;
}
.rb-popt {
  position: relative;
  border-radius: 12px;
  border: 1.5px solid var(--color-border);
  padding: 18px 16px;
  cursor: pointer;
  background: #fff;
  transition: all 180ms var(--ease-out);
}
.rb-popt:hover { border-color: var(--rb-fg); }
.rb-popt.selected {
  background: var(--rb-bg);
  border-color: var(--rb-red);
  box-shadow: 0 2px 12px -6px rgba(29, 156, 85, 0.25);
}

/* Subscribe option — always visually elevated (recommended) */
.rb-popt-sub {
  border-width: 2px;
  border-color: var(--rb-red);
  padding-top: 24px;
}
.rb-popt-sub.recommended {
  background: var(--rb-red-tint);
  box-shadow: 0 2px 12px -6px rgba(29, 156, 85, 0.18);
}
.rb-popt-sub.selected {
  background: var(--rb-red-tint);
  box-shadow: 0 6px 22px -10px rgba(29, 156, 85, 0.4);
}
.rb-popt-ribbon {
  position: absolute;
  top: 0;
  left: 16px;
  transform: translateY(-50%);
  background: var(--rb-red);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 10px -4px rgba(29, 156, 85, 0.5);
}
.rb-popt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.rb-popt-radio {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  position: relative;
  background: #fff;
  transition: border-color 160ms var(--ease-out);
}
.rb-popt.selected .rb-popt-radio { border-color: var(--rb-red); }
.rb-popt.selected .rb-popt-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--rb-red);
  border-radius: 999px;
}
.rb-popt-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  color: var(--rb-fg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.rb-popt-label-main {
  font-weight: 800;
  font-size: 15px;
  color: var(--rb-fg);
}
.rb-popt-label-sub {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.35;
  color: var(--rb-gray-500);
}
.rb-popt-price-wrap {
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}
.rb-popt-price {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 18px;
  color: var(--rb-fg);
  line-height: 1;
}
.rb-popt-sub .rb-popt-price { color: var(--rb-red); }
.rb-popt-strike {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--rb-gray-500);
  text-decoration: line-through;
  margin-bottom: 3px;
}
.rb-popt-save-amt {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--rb-success);
  margin-top: 4px;
}
.rb-popt-expanded {
  margin-top: 14px;
  padding-top: 14px;
  padding-left: 32px;
  border-top: 1px solid rgba(29, 156, 85, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rb-popt-freq-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--rb-fg);
}
.rb-popt-freq-select {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  color: var(--rb-fg);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}
.rb-popt-feats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}
.rb-popt-feat {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--rb-fg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rb-popt-feat svg { color: var(--rb-success); flex-shrink: 0; }
.rb-popt-feat { align-items: flex-start; }
.rb-popt-feat svg { margin-top: 2px; }

.rb-save-badge {
  display: inline-block;
  background: var(--rb-success);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 11px;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* Quantity + Add to cart */
.rb-bb-cta-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 14px;
}
.rb-qty {
  display: inline-flex;
  align-items: stretch;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  padding: 0;
  overflow: hidden;
  height: 54px;
}
.rb-qty button {
  width: 52px;
  background: transparent;
  border: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 22px;
  color: var(--rb-fg);
  cursor: pointer;
  transition: background 160ms;
}
.rb-qty button:hover { background: var(--rb-bg); }
.rb-qty .v {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 0 6px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
}

.rb-add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--rb-red);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 32px;
  height: 54px;
  cursor: pointer;
  transition: all 180ms var(--ease-out);
  box-shadow: 0 8px 24px -10px rgba(29, 156, 85, 0.55);
  position: relative;
  overflow: hidden;
}
.rb-add-to-cart:hover { background: var(--rb-red-hover); transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(29, 156, 85, 0.65); }
.rb-add-to-cart:active { transform: translateY(0) scale(0.99); }
.rb-add-to-cart .price-pill {
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Payment + shipping reassurance */
.rb-bb-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--rb-fg);
  margin-bottom: 20px;
  padding: 10px 0;
}
.rb-bb-pay strong { font-weight: 800; }
.rb-bb-pay .pay-brand {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2px 6px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--rb-fg);
}

/* Reassurance strip */
.rb-bb-reassure {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px 0 8px;
  border-top: 1px solid var(--color-border);
}
.rb-bb-reassure-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.35;
  color: var(--rb-fg);
}
.rb-bb-reassure-item svg { color: var(--rb-red); flex-shrink: 0; }
.rb-bb-reassure-item strong {
  display: block;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.rb-bb-reassure-item .s {
  font-weight: 400;
  font-size: 12px;
  color: var(--rb-gray-500);
}

/* ============================================================
   FOOTER
   ============================================================ */
.rb-footer {
  background: var(--rb-red);
  color: #fff;
  padding: 72px 28px 32px;
  margin-bottom: 0;
}
.rb-footer-inner {
  max-width: var(--container-xl);
  margin: 0 auto;
}
.rb-footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 64px;
  padding-bottom: 48px;
}
.rb-footer-brand img {
  height: 48px;
  /* Acend wordmark is yellow — keep it as-is on the green footer */
  filter: none;
  margin-bottom: 18px;
}
.rb-footer-brand p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 280px;
  margin: 0;
}
.rb-footer h5 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 20px;
}
.rb-footer-nav ul,
.rb-footer-trust-list,
.rb-footer-legal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Align nav column with the trust column (which has an h5) */
.rb-footer-nav { padding-top: 33px; }
.rb-footer-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms var(--ease-out);
}
.rb-footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rb-footer-trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}
.rb-footer-trust-list svg { flex-shrink: 0; color: #fff; }

.rb-footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 0 28px;
}

.rb-footer-bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.rb-footer-copy {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}
.rb-footer-legal {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px 22px;
  justify-content: center;
}
.rb-footer-legal a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 160ms var(--ease-out);
}
.rb-footer-legal a:hover { color: #fff; }

.rb-footer-pay {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rb-pay-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 4px;
}
.rb-pay-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 4px;
  min-width: 38px;
}

@media (max-width: 900px) {
  .rb-footer { padding: 56px 20px 24px; }
  .rb-footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 36px;
  }
  .rb-footer-nav { padding-top: 0; }
  .rb-footer-bottom {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }
  .rb-footer-copy { white-space: normal; }
  .rb-footer-legal { justify-content: center; }
  .rb-footer-pay { justify-content: center; flex-wrap: wrap; }
}

/* Pad bottom so the sticky mobile cart never overlaps the footer */
@media (max-width: 768px) {
  .rb-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

/* ============================================================
   REVIEWS SECTION
   ============================================================ */
.rb-reviews {
  background: #fff;
  padding: 96px 28px;
  border-top: 1px solid var(--color-border);
}
.rb-reviews-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.rb-reviews-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 36px);
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--rb-fg);
  margin: 0 0 48px;
}

/* Star color */
.rb-rstars {
  color: var(--rb-gold);
  letter-spacing: 2px;
  line-height: 1;
  white-space: nowrap;
}

/* Summary row */
.rb-reviews-summary {
  display: grid;
  grid-template-columns: 1fr auto 1.4fr auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
}
.rb-rsum-divider {
  width: 1px;
  height: 80px;
  background: var(--color-border);
  justify-self: center;
}
.rb-rsum-avg {
  display: flex; flex-direction: column;
  gap: 8px; align-items: center;
}
.rb-rsum-num { line-height: 1; }
.rb-rsum-link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--rb-fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.rb-rsum-link:hover { color: var(--rb-red); }
.rb-rsum-based {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--rb-gray-500);
}

.rb-rsum-hist {
  display: flex; flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 360px;
  justify-self: center;
}
.rb-rsum-row {
  display: grid;
  grid-template-columns: auto 1fr 48px;
  gap: 14px;
  align-items: center;
}
.rb-rsum-bar {
  height: 8px;
  background: var(--rb-paper);
  border-radius: 999px;
  overflow: hidden;
}
.rb-rsum-bar-fill {
  height: 100%;
  background: var(--rb-red);
  border-radius: 999px;
  transition: width 400ms var(--ease-out);
}
.rb-rsum-count {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--rb-gray-500);
  text-align: right;
}

.rb-rsum-cta { justify-self: end; }
.rb-write-review {
  background: var(--rb-red);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 14px 26px;
  cursor: pointer;
  transition: all 180ms var(--ease-out);
  box-shadow: 0 6px 18px -8px rgba(29, 156, 85, 0.4);
}
.rb-write-review:hover {
  background: var(--rb-red-hover);
  transform: translateY(-1px);
}

/* Sort */
.rb-reviews-sort {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex; justify-content: flex-start;
}
.rb-sort-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rb-red);
  padding: 4px 0;
}
.rb-sort-btn:hover { color: var(--rb-red-hover); }

/* Review rows */
.rb-review-list { padding-top: 8px; }
.rb-review-row {
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex; flex-direction: column; gap: 14px;
}
.rb-review-meta {
  display: flex; align-items: center; gap: 10px;
}
.rb-review-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--rb-fg);
}
.rb-review-verified {
  background: var(--rb-red);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.rb-review-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--rb-fg);
  margin: 0;
  max-width: 900px;
}

.rb-review-more {
  display: flex; justify-content: center;
  padding-top: 36px;
}
.rb-load-more {
  background: transparent;
  border: 1.5px solid var(--rb-fg);
  color: var(--rb-fg);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 32px;
  cursor: pointer;
  transition: all 180ms var(--ease-out);
}
.rb-load-more:hover {
  background: var(--rb-fg);
  color: #fff;
}

@media (max-width: 900px) {
  .rb-reviews { padding: 64px 20px; }
  .rb-reviews-title { margin-bottom: 32px; }
  .rb-reviews-summary {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 20px 0;
  }
  .rb-rsum-divider { display: none; }
  .rb-rsum-hist { max-width: 100%; }
  .rb-rsum-cta { justify-self: stretch; }
  .rb-write-review { width: 100%; padding: 16px 24px; }
  .rb-review-row { padding: 22px 0; }
}

/* ============================================================
   FAQs
   ============================================================ */
.rb-faq {
  background: var(--rb-bg);
  padding: 96px 28px;
}
.rb-faq-inner {
  max-width: 880px;
  margin: 0 auto;
}
.rb-faq-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
  color: var(--rb-fg);
  margin: 0 0 28px;
}
.rb-faq-divider {
  width: 64px;
  height: 3px;
  background: var(--rb-red);
  margin: 0 auto 48px;
  border-radius: 999px;
}
.rb-faq-list {
  border-top: 1px solid var(--color-border);
}
.rb-faq-item {
  border-bottom: 1px solid var(--color-border);
}
.rb-faq-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 28px 8px;
  gap: 24px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--rb-fg);
  text-align: left;
  transition: color 160ms var(--ease-out);
}
.rb-faq-head:hover { color: var(--rb-red); }
.rb-faq-head svg {
  color: var(--rb-fg);
  flex-shrink: 0;
  transition: transform 280ms var(--ease-out), color 160ms var(--ease-out);
}
.rb-faq-head:hover svg { color: var(--rb-red); }
.rb-faq-item.open .rb-faq-head svg { transform: rotate(180deg); color: var(--rb-red); }
.rb-faq-body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease-out);
}
.rb-faq-item.open .rb-faq-body-wrap { grid-template-rows: 1fr; }
.rb-faq-body {
  overflow: hidden;
}
.rb-faq-item.open .rb-faq-body { padding: 0 8px 28px; }
.rb-faq-body p {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--rb-fg);
  max-width: 760px;
}

@media (max-width: 768px) {
  .rb-faq { padding: 64px 20px; }
  .rb-faq-divider { margin-bottom: 32px; }
  .rb-faq-head { padding: 22px 4px; }
  .rb-faq-item.open .rb-faq-body { padding: 0 4px 22px; }
}

/* ============================================================
   KEY BENEFITS SECTION
   ============================================================ */
.rb-benefits {
  background: var(--rb-paper);
  padding: 80px 28px;
}
.rb-benefits-inner {
  max-width: var(--container-lg);
  margin: 0 auto;
}
.rb-benefits-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--rb-fg);
  margin: 0 0 56px;
}
.rb-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.rb-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 0 12px;
}
.rb-benefit-circle {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 1.5px solid var(--rb-fg);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rb-red);
  transition: transform 280ms var(--ease-out), background 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
}
.rb-benefit:hover .rb-benefit-circle {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: 0 16px 28px -16px rgba(29, 156, 85, 0.35);
}
.rb-benefit-label {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rb-fg);
  line-height: 1.2;
}
.rb-benefit-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.55;
  color: var(--rb-gray-500);
  max-width: 220px;
}

@media (max-width: 768px) {
  .rb-benefits { padding: 56px 20px; }
  .rb-benefits-title { margin-bottom: 40px; }
  .rb-benefits-grid { grid-template-columns: 1fr; gap: 36px; }
  .rb-benefit-circle { width: 84px; height: 84px; }
}

/* ============================================================
   DETAIL ACCORDION (Product Details / Supplement Facts / Safety / COA)
   ============================================================ */
.rb-detail-acc {
  margin-top: 28px;
  border-top: 1px solid var(--color-border);
}
.rb-detail-item {
  border-bottom: 1px solid var(--color-border);
}
.rb-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 22px 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--rb-fg);
  text-align: left;
}
.rb-detail-head:hover { color: var(--rb-red); }
.rb-detail-head .lh {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.rb-detail-head > svg:last-child {
  color: var(--rb-fg);
  transition: transform 240ms var(--ease-out);
  flex-shrink: 0;
}
.rb-detail-item.open .rb-detail-head > svg:last-child {
  transform: rotate(180deg);
}
.rb-detail-body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms var(--ease-out);
}
.rb-detail-item.open .rb-detail-body-wrap {
  grid-template-rows: 1fr;
}
.rb-detail-body {
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--rb-fg);
}
.rb-detail-item.open .rb-detail-body {
  padding: 0 4px 22px;
}
.rb-detail-body p { margin: 0 0 12px; }
.rb-detail-body p:last-child { margin-bottom: 0; }
.rb-detail-body ul {
  margin: 0; padding-left: 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.rb-detail-link {
  color: var(--rb-red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.rb-detail-link:hover { color: var(--rb-red-hover); }

/* ============================================================
   MOBILE STICKY ADD-TO-CART
   ============================================================ */
.rb-sticky-cart {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--color-border);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: none;
  gap: 12px;
  align-items: center;
  transform: translateY(120%);
  transition: transform 300ms var(--ease-out);
  box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.18);
}
.rb-sticky-cart.show { transform: translateY(0); }
.rb-sticky-cart .pimg {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--rb-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rb-sticky-cart .pimg img { max-height: 38px; }
.rb-sticky-cart .meta { flex: 1; min-width: 0; }
.rb-sticky-cart .t {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  color: var(--rb-fg);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rb-sticky-cart .v {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--rb-gray-500);
}
.rb-sticky-cart .price {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  color: var(--rb-fg);
  margin-right: 4px;
}
.rb-sticky-cart .rb-add-to-cart {
  padding: 0 18px;
  height: 44px;
  font-size: 13px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .rb-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 24px 20px 64px;
  }
  .rb-gallery { position: static; }
  .rb-gallery-main { min-height: 420px; padding: 20px; }
  .rb-gallery-main img { max-height: 380px; }
  .rb-gallery-thumbs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .rb-header-inner {
    padding: 14px 16px;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }
  .rb-brand img { height: 34px; }
  .rb-nav { display: none; }
  /* menu · logo · cart */
  .rb-mobile-toggle { display: inline-flex; margin-left: -8px; }
  .rb-brand { justify-self: center; }
  .rb-utility { gap: 4px; margin-right: -8px; }
  /* Account moves into the mobile menu so the cart sits flush right. */
  .rb-utility .rb-account { display: none; }
  .rb-announce {
    font-size: 11px;
    letter-spacing: 0.14em;
    padding: 9px 12px;
  }

  .rb-bb-title { font-size: 28px; }
  .rb-bb-row { margin-bottom: 20px; }

  .rb-size-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .rb-size-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rb-size { padding: 0; }
  .rb-size-img { min-height: 78px; padding: 12px 6px 6px; }
  .rb-size-img img { max-height: 62px; }
  .rb-size-count { font-size: 16px; }
  .rb-size-unit { font-size: 11px; }
  .rb-size-per { font-size: 10px; }
  .rb-size-ribbon { font-size: 8.5px; padding: 3px 7px; letter-spacing: 0.05em; }

  /* Keep the three badges on one row — icon stacked over the label. */
  .rb-bb-reassure {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 14px 0 6px;
  }
  .rb-bb-reassure-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 6px 0;
  }
  /* Same 14/12px as desktop; only the tracking tightens to hold three across. */
  .rb-bb-reassure-item svg { width: 20px; height: 20px; }
  .rb-bb-reassure-item strong { letter-spacing: 0.02em; }

  .rb-sticky-cart { display: flex; }

  .rb-gallery-main { min-height: 360px; }
  .rb-gallery-main img { max-height: 320px; }
  .rb-gallery-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rb-gallery-thumb:nth-child(n+5) { display: none; }

  /* Quantity and Add To Cart stay side by side — sized down so they fit ~360px. */
  .rb-bb-cta-row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
  }
  .rb-qty { height: 50px; }
  .rb-qty button { width: 34px; font-size: 18px; }
  .rb-qty .v { min-width: 22px; padding: 0 2px; font-size: 15px; }
  .rb-bb-cta-row .rb-add-to-cart {
    height: 50px;
    gap: 8px;
    padding: 0 14px;
    font-size: 13px;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }
  .rb-bb-cta-row .rb-add-to-cart .price-pill { padding: 5px 9px; font-size: 12.5px; }
}

@media (max-width: 480px) {
  .rb-hero { padding: 16px 14px 64px; }
  .rb-utility { gap: 4px; }
}

/* ============================================================
   ACEND — nav + 4-up size grid (4 ct. hidden / OOS)
   ============================================================ */
/* Green primary nav links */
.rb-nav a { color: var(--acend-green); }
.rb-nav a:hover { color: var(--acend-green-hover); }

/* Four in-stock pack sizes across on desktop */
.rb-size-grid[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }

/* Footer contact links (Need To Get In Touch) */
.rb-footer-trust-list a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 160ms var(--ease-out);
}
.rb-footer-trust-list a:hover { color: #fff; }

@media (max-width: 768px) {
  .rb-size-grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   CART DRAWER
   ============================================================ */
.rb-scrim {
  position: fixed;
  inset: 0;
  background: rgba(18, 59, 38, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease-out);
  z-index: var(--z-overlay);
}
.rb-scrim.open { opacity: 1; pointer-events: auto; }

.rb-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  height: 100dvh;
  width: min(420px, 100%);
  background: var(--rb-bg);
  box-shadow: -16px 0 40px -20px rgba(18, 59, 38, 0.35);
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
}
.rb-drawer.open { transform: translateX(0); }

.rb-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.rb-drawer-head h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-fg);
}
.rb-drawer-head button {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--color-fg);
  display: inline-flex;
}

.rb-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.rb-drawer-empty {
  text-align: center;
  color: var(--rb-gray-500, #7a736c);
  padding: 48px 24px;
  font-family: var(--font-body);
  margin: 0;
}

.rb-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  align-items: start;
}
.rb-line .pimg {
  width: 72px;
  height: 72px;
  background: #fff;
  border-radius: var(--radius-3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rb-line .pimg img { max-height: 64px; width: auto; }
.rb-line-meta h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-fg);
}
.rb-line .var {
  font-size: 12.5px;
  color: var(--rb-gray-500, #7a736c);
  margin-bottom: 10px;
}
.rb-line .price {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-fg);
  white-space: nowrap;
}
.rb-line-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rb-line-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: var(--color-fg);
}
.rb-line-qty span {
  min-width: 18px;
  text-align: center;
  font-weight: 600;
  font-size: 13.5px;
}
.rb-line-remove {
  width: auto !important;
  border: none !important;
  background: transparent !important;
  font-size: 12px !important;
  color: var(--rb-gray-500, #7a736c) !important;
  text-decoration: underline;
  padding: 0 0 0 6px !important;
  margin-left: 4px;
}

.rb-drawer-foot {
  padding: 18px 20px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}
.rb-drawer-foot .subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}
.rb-drawer-foot .subtotal .v { color: var(--acend-green); }
.rb-drawer-foot .ship-note {
  font-size: 12.5px;
  color: var(--rb-gray-500, #7a736c);
  margin-bottom: 14px;
}
.rb-checkout-btn {
  width: 100%;
  justify-content: center;
}
.rb-checkout-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}
.rb-drawer-continue {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-fg);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px;
}
.rb-drawer-store {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--rb-gray-500, #7a736c);
  text-decoration: none;
}
.rb-drawer-store:hover { color: var(--acend-green); }

/* ============================================================
   MOBILE MENU DRAWER (slides in from the left)
   ============================================================ */
.rb-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  height: 100dvh;
  width: min(320px, 86%);
  background: var(--rb-bg);
  box-shadow: 16px 0 40px -20px rgba(18, 59, 38, 0.35);
  transform: translateX(-100%);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
}
.rb-menu-drawer.open { transform: translateX(0); }

.rb-menu-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.rb-menu-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rb-menu-nav a {
  display: block;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--rb-fg);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: color 160ms var(--ease-out), background 160ms var(--ease-out);
}
.rb-menu-nav a:hover {
  color: var(--acend-green);
  background: rgba(0, 0, 0, 0.03);
}
.rb-menu-foot {
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
