/* ==========================================================================
   Rog Bikes - Home Page Stylesheet
   Bright Technical Design System (Oswald + Be Vietnam Pro, #E10600 Accent)
   ========================================================================== */

/* --- Base Home Wrapper & Vertical Rhythm --- */
.rb-home {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background-color: var(--rb-color-bg, #FFFFFF);
  color: var(--rb-color-ink, #111418);
  font-family: var(--rb-font-body, 'Be Vietnam Pro', system-ui, sans-serif);
  line-height: var(--rb-lh-base, 1.65);
  overflow-x: hidden;
  overflow-x: clip;
}

.rb-home:has(> .rb-home-newsletter:last-child) {
  padding-bottom: 0;
}

/* ==========================================================================
   1. HERO SECTION (.rb-home-hero)
   ========================================================================== */
.rb-home__intro {
  display: flex;
  flex-direction: column;
}

.rb-home-hero {
  --rb-hero-pad-b: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  background-color: var(--rb-color-ink, #111418);
  color: #FFFFFF;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
}

.rb-home-hero:is([data-count="2"], [data-count="3"], [data-count="4"]) {
  --rb-hero-pad-b: clamp(5rem, 9vw, 6.5rem);
}

.rb-home-hero__slides {
  display: grid;
}

.rb-home-hero__slide {
  position: relative;
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  min-height: clamp(32rem, 72vh, 44rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1)), translate 900ms var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1)), visibility 0s linear 900ms;
}

.rb-home-hero__slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.rb-home-hero[data-effect="slide"] .rb-home-hero__slide {
  translate: 8% 0;
}

.rb-home-hero[data-effect="slide"] .rb-home-hero__slide.is-active {
  translate: 0 0;
}

.rb-home-hero__slide > .container {
  position: relative;
  z-index: 1;
}

.rb-home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.rb-home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(17 20 24 / 0.88) 0%, rgb(17 20 24 / 0.62) 42%, rgb(17 20 24 / 0.06) 78%);
}

.rb-home-hero__picture {
  display: block;
  width: 100%;
  height: 100%;
}

.rb-home-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.rb-home-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  max-width: 38rem;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 var(--rb-hero-pad-b);
}

.rb-home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.75rem;
  background-color: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: var(--rb-radius-pill, 62.5rem);
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rb-home-hero__badge-dot {
  width: 0.4375rem;
  height: 0.4375rem;
  background-color: var(--rb-color-accent, #E10600);
  border-radius: var(--rb-radius-pill, 62.5rem);
}

.rb-home-hero__title {
  color: #FFFFFF;
  margin: 0;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: clamp(2.25rem, 5.6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.rb-home-hero__desc {
  margin: 0;
  max-width: 32rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.86);
}

.rb-home-hero__pricing {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.rb-home-hero__price-label {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.72);
}

.rb-home-hero__price-value {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  color: #FFFFFF;
}

.rb-home-hero__stock-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background-color: rgb(255 255 255 / 0.14);
  border-radius: var(--rb-radius, 0.25rem);
  font-size: 0.8125rem;
  font-weight: 500;
}

.rb-home-hero__stock-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: #34D27B;
  border-radius: var(--rb-radius-pill, 62.5rem);
}

.rb-home-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.rb-home-hero .rb-btn--ghost {
  color: #FFFFFF;
  border-color: rgb(255 255 255 / 0.55);
}

@media (hover: hover) {
  .rb-home-hero .rb-btn--ghost:hover {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--rb-color-ink, #111418);
  }
}

.rb-home-hero__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.5rem;
  width: 100%;
  max-width: 32rem;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.22);
}

.rb-home-hero__spec-box {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
  padding-left: 0.75rem;
  border-left: 2px solid var(--rb-color-accent, #E10600);
}

.rb-home-hero__spec-label {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.66);
}

.rb-home-hero__spec-value {
  overflow: hidden;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rb-home-hero__spec-sub {
  overflow: hidden;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgb(255 255 255 / 0.7);
}

/* Hero slider controls */
.rb-home-hero__controls-wrap {
  position: absolute;
  inset: auto 0 1.5rem;
  z-index: 3;
  pointer-events: none;
}

.rb-home-hero__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rb-home-hero__bars {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto;
}

.rb-home-hero__bar {
  position: relative;
  width: 3.5rem;
  height: 1.75rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.rb-home-hero__bar::before,
.rb-home-hero__bar-fill {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 0.1875rem;
  margin-top: -0.09375rem;
  border-radius: var(--rb-radius-pill, 62.5rem);
}

.rb-home-hero__bar::before {
  background-color: rgb(255 255 255 / 0.32);
  transition: background-color var(--rb-dur-fast, 150ms) var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1));
}

.rb-home-hero__bar-fill {
  background-color: var(--rb-color-accent, #E10600);
  transform: scaleX(0);
  transform-origin: left center;
}

.rb-home-hero__bar.is-done .rb-home-hero__bar-fill {
  transform: scaleX(1);
}

.rb-home-hero__bar.is-active .rb-home-hero__bar-fill {
  animation: rb-hero-progress var(--rb-hero-delay, 6000ms) linear forwards;
}

.rb-home-hero[data-autoplay="false"] .rb-home-hero__bar.is-active .rb-home-hero__bar-fill {
  animation: none;
  transform: scaleX(1);
}

.rb-home-hero.is-paused .rb-home-hero__bar.is-active .rb-home-hero__bar-fill {
  animation-play-state: paused;
}

@media (hover: hover) {
  .rb-home-hero__bar:hover::before {
    background-color: rgb(255 255 255 / 0.6);
  }
}

.rb-home-hero__arrows {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  pointer-events: auto;
}

.rb-home-hero__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background-color: rgb(17 20 24 / 0.45);
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: var(--rb-radius, 0.25rem);
  color: #FFFFFF;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color var(--rb-dur-fast, 150ms) var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1)), color var(--rb-dur-fast, 150ms) var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1));
}

@media (hover: hover) {
  .rb-home-hero__arrow:hover {
    background-color: #FFFFFF;
    color: var(--rb-color-ink, #111418);
  }
}

@keyframes rb-hero-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.rb-home-hero__cta {
  position: relative;
  overflow: hidden;
}

.rb-home-hero__cta::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.45), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

@media (hover: hover) {
  .rb-home-hero__cta:hover::after {
    animation: rb-shine 700ms var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1));
  }
}

@keyframes rb-shine {
  to { inset-inline-start: 130%; }
}


/* ==========================================================================
   2. CATEGORY TILES (.rb-home-categories)
   ========================================================================== */
.rb-home-categories__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.rb-home-categories__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--rb-color-ink, #111418);
}

.rb-home-categories__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.rb-home-categories__eyebrow {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--rb-color-accent-ink, #B80500);
  text-transform: uppercase;
}

.rb-home-categories__title {
  margin: 0;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: var(--rb-lh-tight, 1.18);
  text-transform: uppercase;
}

.rb-home-categories__sub {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--rb-color-muted, #6B7280);
}

.rb-home-categories__badge {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: var(--rb-color-muted, #6B7280);
}

.rb-home-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.rb-home-categories__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 4 / 3;
  padding: 1rem;
  overflow: hidden;
  background-color: var(--rb-color-ink, #111418);
  border-radius: var(--rb-radius, 0.25rem);
  text-decoration: none;
  color: #FFFFFF;
  isolation: isolate;
}

.rb-home-categories__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--rb-dur-slow, 420ms) var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1));
}

.rb-home-categories__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(17 20 24 / 0.4) 0%, rgb(17 20 24 / 0) 30%, rgb(17 20 24 / 0.9) 100%);
}

@media (hover: hover) {
  .rb-home-categories__card:hover .rb-home-categories__img {
    transform: scale(1.06);
  }

  .rb-home-categories__card:hover .rb-home-categories__card-arrow {
    background-color: var(--rb-color-accent, #E10600);
    border-color: var(--rb-color-accent, #E10600);
  }
}

.rb-home-categories__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rb-home-categories__card-code {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgb(255 255 255 / 0.9);
}

.rb-home-categories__card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid rgb(255 255 255 / 0.6);
  border-radius: var(--rb-radius-pill, 62.5rem);
  transition: background-color var(--rb-dur-fast, 150ms) var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1)),
              border-color var(--rb-dur-fast, 150ms) var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1));
}

.rb-home-categories__card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rb-home-categories__card-title {
  color: #FFFFFF;
  margin: 0;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.rb-home-categories__card-sub {
  margin: 0;
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 0.85);
}

.rb-home-categories__card-count {
  font-size: 0.75rem;
  color: rgb(255 255 255 / 0.7);
}

@media (max-width: 1023px) {
  .rb-home-categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .rb-home-categories__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   3. WHY US BAND (.rb-home-why)
   ========================================================================== */
.rb-home-why {
  background-color: var(--rb-color-bg, #FFFFFF);
  border-bottom: 1px solid var(--rb-color-line, #D9DCE1);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
}

.rb-home-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.rb-home-why__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-right: 1rem;
  border-right: 1px solid var(--rb-color-line, #D9DCE1);
}

.rb-home-why__item:last-child {
  border-right: none;
  padding-right: 0;
}

.rb-home-why__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  margin-bottom: 0.5rem;
  background-color: var(--rb-color-bg, #FFFFFF);
  border: 1px solid var(--rb-color-line, #D9DCE1);
  border-radius: var(--rb-radius, 0.25rem);
  color: var(--rb-color-accent, #E10600);
}

.rb-home-why__icon {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
}

.rb-home-why__label {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--rb-color-muted, #6B7280);
  text-transform: uppercase;
}

.rb-home-why__title {
  margin: 0;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.rb-home-why__desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--rb-color-ink-2, #4A5160);
  line-height: 1.5;
}

.rb-home-why__metric {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 0.75rem;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rb-color-accent-ink, #B80500);
}

.rb-home-why__metric-dot {
  width: 0.375rem;
  height: 0.375rem;
  background-color: var(--rb-color-accent, #E10600);
  border-radius: var(--rb-radius-pill, 62.5rem);
}

@media (max-width: 1023px) {
  .rb-home-why__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rb-home-why__item:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 639px) {
  .rb-home-why__grid {
    grid-template-columns: 1fr;
  }

  .rb-home-why__item {
    border-right: none;
    border-bottom: 1px solid var(--rb-color-line, #D9DCE1);
    padding-bottom: 1.5rem;
    padding-right: 0;
  }

  .rb-home-why__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* ==========================================================================
   4. PRODUCT RAILS & TABS (.rb-home-rails & .rb-home-deal)
   ========================================================================== */
.rb-home-rails__inner,
.rb-home-deal__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.rb-home-rails__head,
.rb-home-deal__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--rb-color-ink, #111418);
}

.rb-home-rails__title-group,
.rb-home-deal__head-left {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.rb-home-rails__eyebrow,
.rb-home-deal__badge {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--rb-color-accent-ink, #B80500);
  text-transform: uppercase;
}

.rb-home-rails__title,
.rb-home-deal__title {
  margin: 0;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: var(--rb-lh-tight, 1.18);
  text-transform: uppercase;
}

/* Tabs list */
.rb-home-rails__tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rb-home-rails__tab-btn {
  padding: 0.625rem 1rem;
  background-color: var(--rb-color-surface, #F2F3F5);
  color: var(--rb-color-ink-2, #4A5160);
  border: 1px solid var(--rb-color-line, #D9DCE1);
  border-radius: var(--rb-radius, 0.25rem);
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--rb-dur-fast, 150ms) var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1));
}

.rb-home-rails__tab-btn.is-active,
.rb-home-rails__tab-btn[aria-selected="true"] {
  background-color: var(--rb-color-ink, #111418);
  border-color: var(--rb-color-ink, #111418);
  color: #FFFFFF;
}

@media (hover: hover) {
  .rb-home-rails__tab-btn:hover:not(.is-active) {
    background-color: var(--rb-color-surface-2, #E8EAEE);
    color: var(--rb-color-ink, #111418);
  }
}

/* Slider Wrap & Swiper Container */
.rb-home-rails__slider-wrap,
.rb-home-deal__slider-wrap {
  position: relative;
}

.rb-product-slider {
  width: 100%;
  overflow: hidden;
  padding: 0.5rem 0.125rem;
}

/* Scroll-snap fallback before Swiper boots */
.rb-product-slider:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1.25rem;
}

.rb-product-slider:not(.swiper-initialized) .swiper-slide {
  flex: 0 0 calc(25% - 0.9375rem);
  scroll-snap-align: start;
}

@media (max-width: 1199px) {
  .rb-product-slider:not(.swiper-initialized) .swiper-slide {
    flex: 0 0 calc(33.333% - 0.833rem);
  }
}

@media (max-width: 767px) {
  .rb-product-slider:not(.swiper-initialized) .swiper-slide {
    flex: 0 0 calc(50% - 0.625rem);
  }
}

@media (max-width: 479px) {
  .rb-product-slider:not(.swiper-initialized) .swiper-slide {
    flex: 0 0 85%;
  }
}

.rb-product-slider .swiper-slide {
  height: auto;
  display: flex;
}

.rb-product-slider .swiper-slide > * {
  width: 100%;
}

/* Slider Navigation Buttons */
.rb-home-rails__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 1rem 0;
}

.rb-home-deal__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.rb-home-rails__nav-btn,
.rb-home-deal__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background-color: var(--rb-color-bg, #FFFFFF);
  border: 1px solid var(--rb-color-line, #D9DCE1);
  color: var(--rb-color-ink, #111418);
  border-radius: var(--rb-radius, 0.25rem);
  cursor: pointer;
  transition: all var(--rb-dur-fast, 150ms) var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1));
}

.rb-home-rails__nav-btn.swiper-button-disabled,
.rb-home-deal__nav-btn.swiper-button-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.rb-home-rails__nav-btn.swiper-button-lock,
.rb-home-deal__nav-btn.swiper-button-lock {
  display: none;
}

@media (hover: hover) {
  .rb-home-rails__nav-btn:hover,
  .rb-home-deal__nav-btn:hover {
    background-color: var(--rb-color-ink, #111418);
    color: #FFFFFF;
    border-color: var(--rb-color-ink, #111418);
  }
}

.rb-home-rails__footer-action {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* Deal Countdown Timer */
.rb-home-deal {
  background-color: var(--rb-color-surface, #F2F3F5);
  border: 1px solid var(--rb-color-line, #D9DCE1);
  border-radius: var(--rb-radius, 0.25rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.rb-home-deal__timer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rb-home-deal__timer-label {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rb-color-muted, #6B7280);
  letter-spacing: 0.05em;
}

.rb-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.rb-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  padding: 0.25rem 0.375rem;
  background-color: var(--rb-color-ink, #111418);
  color: #FFFFFF;
  border-radius: var(--rb-radius, 0.25rem);
}

.rb-countdown__val {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.1;
}

.rb-countdown__tag {
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--rb-color-muted, #6B7280);
}

.rb-countdown__sep {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--rb-color-ink, #111418);
}

@media (max-width: 767px) {
  .rb-home-rails__nav,
  .rb-home-deal__nav {
    position: static;
    margin-top: 1rem;
    justify-content: flex-end;
  }
}

/* Flash Sale: dark band with energy accents */
.rb-home-deal {
  position: relative;
  background-color: var(--rb-color-ink, #111418);
  border-color: var(--rb-color-ink, #111418);
  color: #FFFFFF;
  overflow: hidden;
  overflow: clip;
}

.rb-home-deal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 0.25rem;
  background: linear-gradient(90deg, var(--rb-color-accent, #E10600) 0%, #FF7A59 50%, var(--rb-color-accent, #E10600) 100%);
  background-size: 200% 100%;
  animation: rb-deal-sweep 3s linear infinite;
}

.rb-home-deal__head {
  border-bottom-color: rgb(255 255 255 / 0.22);
}

.rb-home-deal__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #FF6B5E;
}

.rb-home-deal__badge svg {
  flex: none;
  animation: rb-bolt 1.8s ease-in-out infinite;
}

.rb-home-deal__title {
  color: #FFFFFF;
}

.rb-home-deal__desc {
  max-width: 34rem;
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgb(255 255 255 / 0.74);
}

.rb-home-deal__head-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.rb-home-deal__discount {
  display: inline-flex;
  align-items: baseline;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background-color: var(--rb-color-accent, #E10600);
  border-radius: var(--rb-radius, 0.25rem);
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rb-home-deal__discount strong {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.rb-home-deal__timer-label {
  color: rgb(255 255 255 / 0.72);
}

.rb-home-deal .rb-countdown__unit {
  background-color: var(--rb-color-accent, #E10600);
}

.rb-home-deal .rb-countdown__tag {
  color: rgb(255 255 255 / 0.86);
}

.rb-home-deal .rb-countdown__sep {
  color: #FFFFFF;
}

.rb-home-deal .rb-countdown__unit:nth-of-type(4) .rb-countdown__val {
  display: inline-block;
  animation: rb-tick 1s ease-in-out infinite;
}

.rb-home-deal .rb-home-deal__nav-btn {
  background-color: transparent;
  border-color: rgb(255 255 255 / 0.4);
  color: #FFFFFF;
}

@media (hover: hover) {
  .rb-home-deal .rb-home-deal__nav-btn:hover {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--rb-color-ink, #111418);
  }
}

.rb-home-deal__footer {
  display: flex;
  justify-content: center;
}

.rb-home-deal__footer .rb-btn--ghost {
  color: #FFFFFF;
  border-color: rgb(255 255 255 / 0.55);
}

@media (hover: hover) {
  .rb-home-deal__footer .rb-btn--ghost:hover {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--rb-color-ink, #111418);
  }
}

@keyframes rb-deal-sweep {
  to { background-position: -200% 0; }
}

@keyframes rb-bolt {
  0%, 60%, 100% { opacity: 1; scale: 1; }
  70% { opacity: 0.35; scale: 0.9; }
  80% { opacity: 1; scale: 1.15; }
}

@keyframes rb-tick {
  0% { scale: 1.18; }
  100% { scale: 1; }
}

/* ==========================================================================
   5. SIZE & FIT FINDER (.rb-home-fit)
   ========================================================================== */
.rb-home-fit {
  background-color: var(--rb-color-bg, #FFFFFF);
  border: 1px solid var(--rb-color-line, #D9DCE1);
  border-radius: var(--rb-radius, 0.25rem);
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.rb-home-fit__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.rb-home-fit__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--rb-color-ink, #111418);
}

.rb-home-fit__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.rb-home-fit__eyebrow {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--rb-color-accent-ink, #B80500);
  text-transform: uppercase;
}

.rb-home-fit__title {
  margin: 0;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: var(--rb-lh-tight, 1.18);
  text-transform: uppercase;
}

.rb-home-fit__desc {
  margin: 0;
  max-width: 40rem;
  font-size: 0.9375rem;
  line-height: var(--rb-lh-base, 1.6);
  color: var(--rb-color-ink-2, #4A5160);
}

.rb-home-fit__cert {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--rb-color-muted, #6B7280);
}

/* 2-Column Stage */
.rb-home-fit__stage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.rb-home-fit__inputs {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-right: 1.5rem;
  border-right: 1px solid var(--rb-color-line, #D9DCE1);
}

.rb-home-fit__field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rb-home-fit__field-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.rb-home-fit__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--rb-color-ink, #111418);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rb-home-fit__num {
  color: var(--rb-color-accent, #E10600);
}

.rb-home-fit__val-display {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
}

.rb-home-fit__val-num {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rb-color-accent-ink, #B80500);
  line-height: 1;
}

.rb-home-fit__val-unit {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.875rem;
  color: var(--rb-color-muted, #6B7280);
}

.rb-home-fit__range {
  width: 100%;
  height: 0.375rem;
  background: var(--rb-color-line, #D9DCE1);
  border-radius: var(--rb-radius-pill, 62.5rem);
  cursor: pointer;
  accent-color: var(--rb-color-accent, #E10600);
}

.rb-home-fit__range:focus-visible {
  outline: 2px solid var(--rb-color-accent, #E10600);
  outline-offset: 4px;
}

.rb-home-fit__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.375rem;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.75rem;
  color: var(--rb-color-muted, #6B7280);
}

.rb-home-fit__posture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.rb-home-fit__posture-btn {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 0.75rem;
  background-color: var(--rb-color-surface, #F2F3F5);
  border: 1px solid var(--rb-color-line, #D9DCE1);
  border-radius: var(--rb-radius, 0.25rem);
  text-align: left;
  cursor: pointer;
  transition: all var(--rb-dur-fast, 150ms) var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1));
}

@media (hover: hover) {
  .rb-home-fit__posture-btn:hover {
    background-color: var(--rb-color-surface-2, #E8EAEE);
    border-color: var(--rb-color-ink, #111418);
  }
}

.rb-home-fit__posture-btn.is-active,
.rb-home-fit__posture-btn[aria-checked="true"] {
  background-color: var(--rb-color-ink, #111418);
  border-color: var(--rb-color-ink, #111418);
  color: #FFFFFF;
}

.rb-home-fit__posture-btn.is-active .rb-home-fit__posture-desc {
  color: var(--rb-color-surface-2, #E8EAEE);
}

.rb-home-fit__posture-title {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rb-home-fit__posture-desc {
  font-size: 0.75rem;
  color: var(--rb-color-muted, #6B7280);
  line-height: 1.35;
}

/* Output Panel */
.rb-home-fit__output {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  background-color: var(--rb-color-surface, #F2F3F5);
  border: 1px solid var(--rb-color-line, #D9DCE1);
  border-radius: var(--rb-radius, 0.25rem);
}

.rb-home-fit__output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rb-color-line, #D9DCE1);
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rb-color-muted, #6B7280);
}

.rb-home-fit__output-badge {
  color: var(--rb-color-accent-ink, #B80500);
  font-weight: 600;
}

.rb-home-fit__size-hero {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rb-color-line, #D9DCE1);
}

.rb-home-fit__size-label {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--rb-color-ink-2, #4A5160);
  letter-spacing: 0.04em;
}

.rb-home-fit__size-number {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--rb-color-accent-ink, #B80500);
  line-height: 1;
}

.rb-home-fit__specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.rb-home-fit__spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background-color: var(--rb-color-bg, #FFFFFF);
  border: 1px solid var(--rb-color-line, #D9DCE1);
  border-radius: var(--rb-radius, 0.25rem);
}

.rb-home-fit__spec-name {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.6875rem;
  color: var(--rb-color-muted, #6B7280);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rb-home-fit__spec-data {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rb-color-ink, #111418);
  line-height: 1.1;
}

.rb-home-fit__spec-desc {
  font-size: 0.75rem;
  color: var(--rb-color-ink-2, #4A5160);
}

.rb-home-fit__ratio-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem;
  background-color: var(--rb-color-surface-2, #E8EAEE);
  border-radius: var(--rb-radius, 0.25rem);
  font-size: 0.8125rem;
  color: var(--rb-color-ink-2, #4A5160);
}

.rb-home-fit__ratio-icon {
  color: var(--rb-color-accent, #E10600);
}

.rb-home-fit__output-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.rb-home-fit__primary-btn {
  width: 100%;
}

.rb-home-fit__secondary-btn {
  width: 100%;
  font-size: 0.8125rem;
}

@media (max-width: 1023px) {
  .rb-home-fit__stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .rb-home-fit__inputs {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--rb-color-line, #D9DCE1);
    padding-bottom: 2rem;
  }
}

@media (max-width: 639px) {
  .rb-home-fit__posture-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   6. BRAND STRIP (.rb-home-brands)
   ========================================================================== */
.rb-home-brands__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rb-color-line, #D9DCE1);
  border-bottom: 1px solid var(--rb-color-line, #D9DCE1);
}

.rb-home-brands__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rb-home-brands__title-wrap {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.rb-home-brands__eyebrow {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--rb-color-accent-ink, #B80500);
  text-transform: uppercase;
}

.rb-home-brands__title {
  margin: 0;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
}

.rb-home-brands__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.rb-home-brands__tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--rb-color-ink, #111418);
  border-radius: var(--rb-radius, 0.25rem);
  color: #FFFFFF;
  text-decoration: none;
}

.rb-home-brands__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--rb-dur, 240ms) var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1));
}

.rb-home-brands__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(17 20 24 / 0.05) 25%, rgb(17 20 24 / 0.85) 100%);
}

.rb-home-brands__arrow {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background-color: #FFFFFF;
  border-radius: var(--rb-radius, 0.25rem);
  color: var(--rb-color-ink, #111418);
  transition: background-color var(--rb-dur-fast, 150ms) var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1)),
              color var(--rb-dur-fast, 150ms) var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1));
}

.rb-home-brands__body {
  position: absolute;
  right: 0.75rem;
  bottom: 0.625rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.rb-home-brands__name {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.rb-home-brands__count {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.8);
}

@media (hover: hover) {
  .rb-home-brands__tile:hover .rb-home-brands__media {
    transform: scale(1.06);
  }

  .rb-home-brands__tile:hover .rb-home-brands__arrow {
    background-color: var(--rb-color-accent, #E10600);
    color: #FFFFFF;
  }
}

@media (max-width: 1279px) {
  .rb-home-brands__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1023px) {
  .rb-home-brands__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 639px) {
  .rb-home-brands__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rb-home-brands__name {
    font-size: 1rem;
  }
}

/* ==========================================================================
   7. WORKSHOP SERVICE BAND (.rb-home-workshop)
   ========================================================================== */
.rb-home-workshop {
  background-color: var(--rb-color-surface, #F2F3F5);
  border-top: 1px solid var(--rb-color-line, #D9DCE1);
  border-bottom: 1px solid var(--rb-color-line, #D9DCE1);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.rb-home-workshop__layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.rb-home-workshop__main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.rb-home-workshop__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rb-home-workshop__eyebrow {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--rb-color-accent-ink, #B80500);
  text-transform: uppercase;
}

.rb-home-workshop__title {
  margin: 0;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: var(--rb-lh-tight, 1.18);
  text-transform: uppercase;
}

.rb-home-workshop__desc {
  margin: 0;
  font-size: 1rem;
  color: var(--rb-color-ink-2, #4A5160);
  line-height: 1.6;
}

.rb-home-workshop__services {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rb-home-workshop__service-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  background-color: var(--rb-color-bg, #FFFFFF);
  border: 1px solid var(--rb-color-line, #D9DCE1);
  border-left: 3px solid var(--rb-color-accent, #E10600);
  border-radius: var(--rb-radius, 0.25rem);
}

.rb-home-workshop__service-num {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rb-color-accent-ink, #B80500);
  line-height: 1;
}

.rb-home-workshop__service-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rb-home-workshop__service-title {
  margin: 0;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
}

.rb-home-workshop__service-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--rb-color-ink-2, #4A5160);
  line-height: 1.5;
}

/* Workshop Right Spec Card */
.rb-home-workshop__spec-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.75rem;
  background-color: var(--rb-color-bg, #FFFFFF);
  border: 1px solid var(--rb-color-line, #D9DCE1);
  border-radius: var(--rb-radius, 0.25rem);
  box-shadow: var(--rb-shadow-1, 0 0.0625rem 0.125rem rgb(17 20 24 / 0.06));
}

.rb-home-workshop__spec-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rb-color-line, #D9DCE1);
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rb-home-workshop__spec-badge {
  color: var(--rb-color-accent-ink, #B80500);
  font-weight: 600;
}

.rb-home-workshop__spec-code {
  color: var(--rb-color-muted, #6B7280);
}

.rb-home-workshop__spec-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rb-home-workshop__spec-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.rb-home-workshop__spec-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--rb-color-surface, #F2F3F5);
  border-radius: var(--rb-radius, 0.25rem);
  color: var(--rb-color-accent, #E10600);
}

.rb-home-workshop__spec-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.rb-home-workshop__spec-text strong {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.9375rem;
  color: var(--rb-color-ink, #111418);
  letter-spacing: 0.02em;
}

.rb-home-workshop__spec-text span {
  font-size: 0.8125rem;
  color: var(--rb-color-ink-2, #4A5160);
  line-height: 1.4;
}

.rb-home-workshop__spec-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--rb-color-line, #D9DCE1);
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--rb-color-muted, #6B7280);
  text-transform: uppercase;
}

@media (max-width: 1023px) {
  .rb-home-workshop__layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   8. BLOG LATEST SECTION (.rb-home-blog)
   ========================================================================== */
.rb-home-blog__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.rb-home-blog__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--rb-color-ink, #111418);
}

.rb-home-blog__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.rb-home-blog__eyebrow {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--rb-color-accent-ink, #B80500);
  text-transform: uppercase;
}

.rb-home-blog__title {
  margin: 0;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: var(--rb-lh-tight, 1.18);
  text-transform: uppercase;
}

.rb-home-blog__view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--rb-color-ink, #111418);
  transition: color var(--rb-dur-fast, 150ms) var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1));
}

@media (hover: hover) {
  .rb-home-blog__view-all:hover {
    color: var(--rb-color-accent, #E10600);
  }
}

.rb-home-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.rb-home-blog__card {
  display: flex;
  flex-direction: column;
  background-color: var(--rb-color-bg, #FFFFFF);
  border: 1px solid var(--rb-color-line, #D9DCE1);
  border-radius: var(--rb-radius, 0.25rem);
  overflow: hidden;
  transition: transform var(--rb-dur-fast, 150ms) var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1)),
              box-shadow var(--rb-dur-fast, 150ms) var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1));
}

@media (hover: hover) {
  .rb-home-blog__card:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--rb-shadow-2, 0 0.5rem 1.5rem rgb(17 20 24 / 0.10));
  }
}

.rb-home-blog__media-link {
  display: block;
  overflow: hidden;
}

.rb-home-blog__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: var(--rb-color-surface, #F2F3F5);
}

.rb-home-blog__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--rb-dur-slow, 420ms) var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1));
}

@media (hover: hover) {
  .rb-home-blog__card:hover .rb-home-blog__img {
    transform: scale(1.04);
  }
}

.rb-home-blog__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--rb-color-muted, #6B7280);
}

.rb-home-blog__body {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.25rem;
  flex-grow: 1;
}

.rb-home-blog__meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--rb-color-muted, #6B7280);
}

.rb-home-blog__meta-sep {
  color: var(--rb-color-line, #D9DCE1);
}

.rb-home-blog__tag {
  color: var(--rb-color-accent-ink, #B80500);
  font-weight: 500;
  text-transform: uppercase;
}

.rb-home-blog__card-title {
  margin: 0;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.rb-home-blog__card-title a {
  text-decoration: none;
  color: var(--rb-color-ink, #111418);
  transition: color var(--rb-dur-fast, 150ms) var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1));
}

@media (hover: hover) {
  .rb-home-blog__card-title a:hover {
    color: var(--rb-color-accent, #E10600);
  }
}

.rb-home-blog__excerpt {
  margin: 0;
  font-size: 0.875rem;
  color: var(--rb-color-ink-2, #4A5160);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rb-home-blog__card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rb-color-line, #D9DCE1);
}

.rb-home-blog__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--rb-color-accent-ink, #B80500);
  text-transform: uppercase;
  transition: color var(--rb-dur-fast, 150ms) var(--rb-ease, ease);
}

@media (hover: hover) {
  .rb-home-blog__read-more:hover {
    color: var(--rb-color-accent, #E10600);
  }
}

@media (max-width: 1023px) {
  .rb-home-blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .rb-home-blog__grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    padding-block: 0.25rem 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .rb-home-blog__grid::-webkit-scrollbar {
    display: none;
  }

  .rb-home-blog__grid .rb-home-blog__card {
    flex: 0 0 84%;
    min-width: 0;
    scroll-snap-align: start;
    animation: none;
  }
}

/* ==========================================================================
   9. NEWSLETTER BAND (.rb-home-newsletter)
   ========================================================================== */
.rb-home-newsletter {
  background-color: var(--rb-color-ink, #111418);
  color: #FFFFFF;
  border-top: 3px solid var(--rb-color-accent, #E10600);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.rb-home-newsletter__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.rb-home-newsletter__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rb-home-newsletter__eyebrow {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--rb-color-accent, #E10600);
  text-transform: uppercase;
}

.rb-home-newsletter__title {
  margin: 0;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: var(--rb-lh-tight, 1.18);
  color: #FFFFFF;
  text-transform: uppercase;
}

.rb-home-newsletter__desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--rb-color-surface-2, #E8EAEE);
  line-height: 1.6;
}

/* Newsletter Form Elements */
.rb-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.rb-newsletter-form__field {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.rb-newsletter-form__input {
  flex-grow: 1;
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  background-color: var(--rb-color-surface, #F2F3F5);
  border: 1px solid var(--rb-color-line, #D9DCE1);
  border-radius: var(--rb-radius, 0.25rem);
  color: var(--rb-color-ink, #111418);
  font-family: var(--rb-font-body, sans-serif);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--rb-dur-fast, 150ms) var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1)),
              box-shadow var(--rb-dur-fast, 150ms) var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1));
}

.rb-newsletter-form__input:focus-visible {
  border-color: var(--rb-color-accent, #E10600);
  box-shadow: 0 0 0 2px rgb(225 6 0 / 0.25);
}

.rb-newsletter-form__submit {
  flex-shrink: 0;
  white-space: nowrap;
}

.rb-newsletter-form__note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--rb-color-muted, #6B7280);
}

@media (max-width: 1023px) {
  .rb-home-newsletter__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 639px) {
  .rb-newsletter-form__field {
    flex-direction: column;
  }

  .rb-newsletter-form__submit {
    width: 100%;
  }
}

/* ==========================================================================
   HOME IMAGERY: hero responsive, promos, feature banner, mosaic, media slots
   ========================================================================== */
@media (max-width: 767px) {
  .rb-home-hero__slide {
    align-items: flex-end;
    min-height: 34rem;
  }

  .rb-home-hero__media::after {
    background: linear-gradient(180deg, rgb(17 20 24 / 0.35) 0%, rgb(17 20 24 / 0.78) 55%, rgb(17 20 24 / 0.92) 100%);
  }

  .rb-home-hero__img {
    object-position: 78% center;
  }
}

@media (max-width: 639px) {
  .rb-home-hero__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .rb-home-hero__actions .rb-btn {
    width: 100%;
  }

  .rb-home-hero__specs {
    display: none;
  }
}

.rb-home-promos__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.rb-home-promos__card {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 10;
  padding: 1.5rem;
  overflow: hidden;
  background-color: var(--rb-color-ink, #111418);
  border-radius: var(--rb-radius, 0.25rem);
  color: #FFFFFF;
  text-decoration: none;
  isolation: isolate;
}

.rb-home-promos__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--rb-dur-slow, 420ms) var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1));
}

.rb-home-promos__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(17 20 24 / 0.1) 0%, rgb(17 20 24 / 0.35) 40%, rgb(17 20 24 / 0.9) 100%);
}

@media (hover: hover) {
  .rb-home-promos__card:hover .rb-home-promos__img {
    transform: scale(1.05);
  }

  .rb-home-promos__card:hover .rb-home-promos__more {
    color: #FFFFFF;
    gap: 0.75rem;
  }
}

.rb-home-promos__body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.rb-home-promos__kicker {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  align-self: flex-start;
  padding: 0.125rem 0.5rem;
  background-color: var(--rb-color-accent, #E10600);
  border-radius: var(--rb-radius, 0.25rem);
  color: #FFFFFF;
}

.rb-home-promos__title {
  color: #FFFFFF;
  margin: 0;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.rb-home-promos__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.85);
  transition: gap var(--rb-dur-fast, 150ms) var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1));
}

.rb-home-feature__card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(20rem, 38vw, 28rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
  overflow: clip;
  background-color: var(--rb-color-ink, #111418);
  border-radius: var(--rb-radius, 0.25rem);
  color: #FFFFFF;
  isolation: isolate;
}

.rb-home-feature__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
}

.rb-home-feature__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(17 20 24 / 0.82) 0%, rgb(17 20 24 / 0.5) 45%, rgb(17 20 24 / 0) 80%);
}

.rb-home-feature__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  max-width: 30rem;
}

.rb-home-feature__eyebrow {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FF6A63;
}

.rb-home-feature__title {
  color: #FFFFFF;
  margin: 0;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: clamp(1.875rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.rb-home-feature__desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.86);
}

.rb-home-mosaic__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rb-home-mosaic__head {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--rb-color-ink, #111418);
}

.rb-home-mosaic__eyebrow {
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rb-color-accent-ink, #B80500);
}

.rb-home-mosaic__title {
  margin: 0;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: var(--rb-lh-tight, 1.18);
  text-transform: uppercase;
}

.rb-home-mosaic__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, clamp(10rem, 18vw, 15rem));
  gap: 1rem;
}

.rb-home-mosaic__cell {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--rb-color-ink, #111418);
  border-radius: var(--rb-radius, 0.25rem);
  color: #FFFFFF;
  text-decoration: none;
  isolation: isolate;
}

.rb-home-mosaic__cell--1,
.rb-home-mosaic__cell--2 {
  grid-row: span 2;
}

.rb-home-mosaic__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--rb-dur-slow, 420ms) var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1));
}

.rb-home-mosaic__cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(17 20 24 / 0) 55%, rgb(17 20 24 / 0.75) 100%);
}

@media (hover: hover) {
  .rb-home-mosaic__cell:hover .rb-home-mosaic__img {
    transform: scale(1.05);
  }
}

.rb-home-mosaic__label {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.875rem;
  z-index: 1;
  font-family: var(--rb-font-display, 'Oswald', sans-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rb-home-workshop__aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rb-home-workshop__media {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--rb-radius, 0.25rem);
}

.rb-home-workshop__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1023px) {
  .rb-home-promos__grid {
    grid-template-columns: 1fr;
  }

  .rb-home-promos__card {
    aspect-ratio: 16 / 7;
  }

  .rb-home-mosaic__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, clamp(10rem, 28vw, 14rem));
  }

  .rb-home-mosaic__cell--1 {
    grid-column: span 2;
    grid-row: auto;
  }

  .rb-home-mosaic__cell--2 {
    grid-row: span 2;
  }
}

@media (max-width: 639px) {
  .rb-home-promos__card {
    aspect-ratio: 4 / 3;
  }

  .rb-home-feature__shade {
    background: linear-gradient(180deg, rgb(17 20 24 / 0.2) 0%, rgb(17 20 24 / 0.85) 100%);
  }

  .rb-home-feature__card {
    align-items: flex-end;
  }
}

/* ==========================================================================
   EFFECTS - hero entrance, status pulse, scroll-driven reveal and parallax
   ========================================================================== */
@keyframes rb-hero-rise {
  from { opacity: 0; translate: 0 1.5rem; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes rb-hero-zoom {
  from { scale: 1.12; }
  to { scale: 1; }
}

@keyframes rb-ping {
  70%, 100% { transform: scale(2.8); opacity: 0; }
}

.rb-home-hero__slide.is-active .rb-home-hero__content > * {
  animation: rb-hero-rise 700ms var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1)) both;
}

.rb-home-hero__slide.is-active .rb-home-hero__content > :nth-child(2) { animation-delay: 90ms; }
.rb-home-hero__slide.is-active .rb-home-hero__content > :nth-child(3) { animation-delay: 180ms; }
.rb-home-hero__slide.is-active .rb-home-hero__content > :nth-child(4) { animation-delay: 270ms; }
.rb-home-hero__slide.is-active .rb-home-hero__content > :nth-child(5) { animation-delay: 360ms; }
.rb-home-hero__slide.is-active .rb-home-hero__content > :nth-child(6) { animation-delay: 450ms; }
.rb-home-hero__slide.is-active .rb-home-hero__content > :nth-child(n + 7) { animation-delay: 540ms; }

.rb-home-hero__slide.is-active .rb-home-hero__img {
  animation: rb-hero-zoom 7000ms var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1)) both;
}

.rb-home-hero__badge-dot,
.rb-home-hero__stock-dot,
.rb-home-why__metric-dot {
  position: relative;
}

.rb-home-hero__badge-dot::after,
.rb-home-hero__stock-dot::after,
.rb-home-why__metric-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: inherit;
  animation: rb-ping 2s var(--rb-ease, cubic-bezier(0.2, 0.7, 0.2, 1)) infinite;
}

@supports (animation-timeline: view()) {
  @keyframes rb-parallax-y {
    from { translate: 0 0; }
    to { translate: 0 1.25rem; }
  }

  @keyframes rb-drift {
    from { scale: 1; }
    to { scale: 1.12; }
  }

  .rb-home-hero__picture {
    scale: 1.1;
    animation: rb-parallax-y linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 100%;
  }

  .rb-home-feature__img {
    animation: rb-drift linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }

  .rb-home-categories__head,
  .rb-home-rails__head,
  .rb-home-mosaic__head,
  .rb-home-brands__header,
  .rb-home-blog__head,
  .rb-home-newsletter__content,
  .rb-home-why__item,
  .rb-home-categories__card,
  .rb-home-promos__card,
  .rb-home-mosaic__cell,
  .rb-home-brands__tile,
  .rb-home-blog__card,
  .rb-home-workshop__spec-card,
  .rb-home-workshop__services,
  .rb-home-feature__card,
  .rb-home-fit__inner,
  .rb-home-deal__inner {
    animation: rb-reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 50%;
  }

  :is(.rb-home-why__item, .rb-home-categories__card, .rb-home-promos__card, .rb-home-mosaic__cell, .rb-home-brands__tile, .rb-home-blog__card):nth-child(4n + 2) {
    animation-range: entry 6% entry 56%;
  }

  :is(.rb-home-why__item, .rb-home-categories__card, .rb-home-promos__card, .rb-home-mosaic__cell, .rb-home-brands__tile, .rb-home-blog__card):nth-child(4n + 3) {
    animation-range: entry 12% entry 62%;
  }

  :is(.rb-home-why__item, .rb-home-categories__card, .rb-home-promos__card, .rb-home-mosaic__cell, .rb-home-brands__tile, .rb-home-blog__card):nth-child(4n + 4) {
    animation-range: entry 18% entry 68%;
  }
}

/* Master switch: settings.rb_home_motion_enable = false */
.rb-home[data-motion="off"] *,
.rb-home[data-motion="off"] *::before,
.rb-home[data-motion="off"] *::after {
  animation: none;
}

.rb-home[data-motion="off"] .rb-home-hero__slide.is-active .rb-home-hero__content > *,
.rb-home[data-motion="off"] .rb-home-hero__slide.is-active .rb-home-hero__img,
.rb-home[data-motion="off"] .rb-home-deal .rb-countdown__val {
  animation: none;
}

@media (max-width: 639px) {
  .rb-home-hero__arrows {
    display: none;
  }

  .rb-home-hero__bars {
    width: 100%;
  }

  .rb-home-hero__bar {
    flex: 1 1 0;
    width: auto;
  }
}
