/* ReeBic homepage — AD-dense layout, ReeBic teal brand */
:root {
  --rb-ink: #1a2330;
  --rb-muted: #5c6673;
  --rb-paper: #f5f7f8;
  --rb-white: #ffffff;
  --rb-teal: #00b7c5;
  --rb-teal-deep: #0094a0;
  --rb-yellow: #ffe030;
  --rb-line: #e6eaed;
  --rb-max: 1240px;
  --rb-radius: 2px;
  --rb-gap: 0.5rem;
  --rb-font-display: "Outfit", system-ui, sans-serif;
  --rb-font-body: "Poppins", system-ui, sans-serif;
}

.rb-home,
.rb-home--boss {
  color: var(--rb-ink);
  background: #eef1f3;
  font-family: var(--rb-font-body);
}

.rb-home .rb-wrap {
  width: min(100% - 2rem, var(--rb-max));
  margin-inline: auto;
}

.rb-accent { color: var(--rb-teal); }

/* Dual concise banners (AD style, not tall slider) */
.rb-hero-duo {
  padding: 0.5rem 0 0;
  background: #eef1f3;
}

.rb-hero-duo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--rb-gap);
  align-items: stretch;
}

.rb-hero-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  aspect-ratio: 2.35 / 1;
  min-height: 160px;
  max-height: 260px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #1a2330;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color 0.18s ease;
}

.rb-hero-tile__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.rb-hero-tile__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 16, 22, 0.12) 0%, rgba(6, 14, 20, 0.72) 100%);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.rb-hero-tile__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
  padding: 0.85rem 0.85rem 0.95rem;
  text-align: center;
}

.rb-hero-tile:hover {
  outline-color: var(--rb-teal);
}

.rb-hero-tile:hover .rb-hero-tile__img {
  opacity: 0.78;
  transform: scale(1.03);
}

.rb-hero-tile:hover .rb-hero-tile__shade {
  opacity: 0.55;
}

.rb-hero-tile__kicker {
  font-family: var(--rb-font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rb-teal);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.rb-hero-tile__title {
  font-family: var(--rb-font-display);
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.rb-hero-tile__title .rb-accent { color: var(--rb-teal); }

.rb-hero-tile__text {
  max-width: 28ch;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
}

.rb-hero-tile__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.55rem 1.15rem;
  background: var(--rb-teal);
  color: #fff;
  font-family: var(--rb-font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rb-hero-tile:hover .rb-hero-tile__cta { background: var(--rb-teal-deep); }

.rb-hero,
.rb-hero--slider,
.rb-hero--light { display: none; }

.rb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border: 1.5px solid transparent;
  border-radius: 0;
  font-family: var(--rb-font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rb-btn--primary { background: var(--rb-teal); color: #fff; }
.rb-btn--primary:hover { background: var(--rb-teal-deep); color: #fff; }
.rb-btn--outline { background: #fff; border-color: #1a2330; color: #1a2330; }
.rb-btn--outline:hover { background: #f3f5f7; color: #1a2330; }
.rb-btn--cart { gap: 0.45rem; margin-top: auto; }
.rb-btn--block { width: 100%; }

.rb-section__head { margin-bottom: 0.65rem; }
.rb-section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rb-section__head h2,
.rb-promo h2,
.rb-team__panel h2 {
  margin: 0;
  font-family: var(--rb-font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.rb-section__head h2 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
.rb-section__head p { margin: 0.2rem 0 0; color: var(--rb-muted); font-size: 0.88rem; }
.rb-underline { border-bottom: 3px solid var(--rb-teal); padding-bottom: 0.05rem; }
.rb-text-link {
  color: var(--rb-teal-deep);
  font-family: var(--rb-font-display);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
}
.rb-text-link:hover { text-decoration: underline; }
.rb-section { padding: 0.75rem 0; }

.rb-trust--icons {
  background: #e8eef2;
  border-top: 1px solid #d5dde3;
  border-bottom: 1px solid #d5dde3;
  padding: 0.85rem 0;
  margin-top: 0.5rem;
  width: 100%;
}
.rb-trust__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem 1rem;
  align-items: center;
}
.rb-trust__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  color: var(--rb-muted);
  flex-shrink: 0;
}
.rb-trust__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--rb-teal-deep);
  margin-top: 0;
}
.rb-trust__icon svg {
  display: block;
  width: 28px;
  height: 28px;
}
.rb-trust__copy { display: grid; gap: 0.08rem; min-width: 0; }
.rb-trust__item strong {
  font-family: var(--rb-font-display);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--rb-ink);
}
.rb-trust__mark { display: none; }

.rb-types { background: #eef1f3; }
.rb-type-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--rb-gap);
}
.rb-type-tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  min-height: 0;
  overflow: hidden;
  text-decoration: none;
  background: #dfe5e8;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color 0.18s ease;
}
.rb-type-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.25s ease;
}
.rb-type-tile__shade {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 22, 0.38);
  transition: opacity 0.25s ease;
}
.rb-type-tile__label {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: #fff;
  font-family: var(--rb-font-display);
  font-weight: 800;
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
.rb-type-tile__cta { display: none; }
.rb-type-tile:hover {
  outline-color: var(--rb-teal);
}
.rb-type-tile:hover img {
  transform: scale(1.05);
  opacity: 0.78;
}
.rb-type-tile:hover .rb-type-tile__shade {
  opacity: 0.45;
}

.rb-bestsellers,
.rb-styles,
.rb-promos,
.rb-team { background: #eef1f3; }

.rb-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--rb-gap);
}
.rb-product-grid--scroll {
  display: flex;
  grid-template-columns: none;
  gap: var(--rb-gap);
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 183, 197, 0.45) transparent;
}
.rb-product-grid--scroll::-webkit-scrollbar { height: 5px; }
.rb-product-grid--scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 183, 197, 0.45);
  border-radius: 999px;
}
/* Desktop: exactly 4 full cards — no cut-off / peek */
.rb-product-grid--scroll .rb-card {
  flex: 0 0 calc((100% - (3 * var(--rb-gap))) / 4);
  width: calc((100% - (3 * var(--rb-gap))) / 4);
  max-width: none;
  scroll-snap-align: start;
}

.rb-card {
  display: flex;
  flex-direction: column;
  background: var(--rb-white);
  border: 1px solid var(--rb-line);
  overflow: hidden;
  min-height: 100%;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color 0.18s ease, border-color 0.18s ease;
}
.rb-card:hover {
  outline-color: var(--rb-teal);
  border-color: var(--rb-teal);
}
.rb-card__media {
  display: block;
  position: relative;
  aspect-ratio: 1;
  background: var(--rb-paper);
  overflow: hidden;
}
.rb-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.45rem;
  transition: opacity 0.25s ease, transform 0.3s ease;
}
.rb-card:hover .rb-card__media img {
  opacity: 0.82;
  transform: scale(1.03);
}
.rb-badge {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  padding: 0.2rem 0.4rem;
  background: var(--rb-ink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
}
.rb-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.55rem 0.6rem 0.7rem;
}
.rb-card__title {
  margin: 0 0 0.25rem;
  font-family: var(--rb-font-display);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.25;
}
.rb-card__title a { color: var(--rb-ink); text-decoration: none; }
.rb-card__rating { margin: 0 0 0.3rem; font-size: 0.72rem; color: var(--rb-teal-deep); }
.rb-card__price {
  margin: 0 0 0.4rem;
  font-family: var(--rb-font-display);
  font-weight: 800;
  font-size: 0.95rem;
}
.rb-card__from { font-weight: 600; font-size: 0.78rem; color: var(--rb-muted); }
.rb-card__features { margin: 0 0 0.55rem; padding: 0; list-style: none; }
.rb-card__features li {
  position: relative;
  padding: 0.08rem 0 0.08rem 0.85rem;
  font-size: 0.72rem;
  color: var(--rb-muted);
  line-height: 1.3;
}
.rb-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--rb-teal);
}
.rb-card__features li:empty { display: none; }

.rb-bestsellers__track { position: relative; padding: 0 2.4rem; }
.rb-bestsellers__arrow {
  position: absolute !important;
  top: 38%;
  z-index: 3;
  transform: translateY(-50%);
  width: 2.25rem !important;
  height: 2.25rem !important;
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  border: 1.5px solid rgba(26, 35, 48, 0.35) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--rb-ink) !important;
  cursor: pointer;
  box-shadow: none !important;
  outline: none !important;
  appearance: none !important;
}
.rb-bestsellers__arrow--prev { left: 0; }
.rb-bestsellers__arrow--next { right: 0; }
.rb-bestsellers__arrow:hover,
.rb-bestsellers__arrow:focus,
.rb-bestsellers__arrow:focus-visible {
  border-color: var(--rb-teal) !important;
  color: var(--rb-teal-deep) !important;
  background: #fff !important;
}
.rb-bestsellers__arrow:disabled,
.rb-bestsellers__arrow[aria-disabled="true"] {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.rb-bestsellers__arrow svg { display: block; width: 1rem; height: 1rem; pointer-events: none; }

.rb-promos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--rb-gap);
}
.rb-promo {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  color: #fff;
  background-color: #1a2330;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color 0.18s ease;
}
.rb-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rb-promo-image) center / cover no-repeat;
  transition: opacity 0.25s ease, transform 0.35s ease;
}
.rb-promo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(8, 18, 24, 0.78), rgba(8, 18, 24, 0.35));
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.rb-promo--light {
  color: var(--rb-ink);
  background-color: #dfe7ec;
}
.rb-promo--light::after {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.45));
}
.rb-promo:hover {
  outline-color: var(--rb-teal);
}
.rb-promo:hover::before {
  opacity: 0.72;
  transform: scale(1.03);
}
.rb-promo:hover::after {
  opacity: 0.55;
}
.rb-promo__copy {
  position: relative;
  z-index: 1;
  max-width: 22rem;
  padding: 1.15rem 1.1rem;
}
.rb-promo h2 { margin: 0 0 0.25rem; font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.rb-promo__tag {
  margin: 0 0 0.4rem;
  font-family: var(--rb-font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rb-teal);
}
.rb-promo p { margin: 0 0 0.75rem; font-size: 0.88rem; line-height: 1.4; }

.rb-styles__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--rb-gap);
}
.rb-style-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 160px;
  padding: 0.85rem;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background-color: #1a2330;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color 0.18s ease;
}
.rb-style-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rb-style-image) center / cover no-repeat;
  transition: opacity 0.25s ease, transform 0.35s ease;
}
.rb-style-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 25%, rgba(8, 16, 22, 0.82));
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.rb-style-card:hover {
  outline-color: var(--rb-teal);
}
.rb-style-card:hover::before {
  opacity: 0.72;
  transform: scale(1.04);
}
.rb-style-card:hover::after {
  opacity: 0.5;
}
.rb-style-card__title,
.rb-style-card__cta {
  position: relative;
  z-index: 1;
}
.rb-style-card__title {
  font-family: var(--rb-font-display);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
}
.rb-style-card__cta {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rb-teal);
}

.rb-team--light { padding-bottom: 1rem; }
.rb-team__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.15rem;
  background: linear-gradient(180deg, #e8f7f9 0%, #f5fbfc 100%);
  border: 1px solid var(--rb-line);
}
.rb-team__script {
  margin: 0 0 0.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--rb-teal-deep);
}
.rb-team__panel h2 { margin: 0 0 0.25rem; font-size: 1.25rem; }
.rb-team__panel p { margin: 0; color: var(--rb-muted); font-size: 0.88rem; }

@media (max-width: 1100px) and (min-width: 768px) {
  /* Tablet desktop: 3 full cards, no peek cut-off */
  .rb-product-grid--scroll .rb-card {
    flex: 0 0 calc((100% - (2 * var(--rb-gap))) / 3);
    width: calc((100% - (2 * var(--rb-gap))) / 3);
  }
}
@media (max-width: 1024px) and (min-width: 768px) {
  .rb-trust__grid { grid-template-columns: repeat(3, 1fr); }
  .rb-type-grid { grid-template-columns: repeat(3, 1fr); }
  .rb-styles__grid { grid-template-columns: 1fr 1fr; }
  .rb-product-grid { grid-template-columns: none; }
}
@media (max-width: 900px) {
  /* Hide USP + trust strip below 901px */
  .rb-usp,
  .rb-trust,
  .rb-trust--icons {
    display: none !important;
  }

  .rb-hero-duo__grid { grid-template-columns: 1fr; }
  .rb-hero-tile {
    aspect-ratio: auto;
    max-height: none;
    min-height: 180px;
    height: auto;
    overflow: hidden;
  }
  .rb-hero-tile__copy {
    padding: 1rem 0.9rem 1.05rem;
    gap: 0.35rem;
  }
  .rb-hero-tile__kicker {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    line-height: 1.25;
  }
  .rb-hero-tile__title {
    font-size: clamp(1.15rem, 5.5vw, 1.55rem);
    line-height: 1.15;
  }
  .rb-hero-tile__text {
    font-size: 0.78rem;
  }
}

/* Mobile / small */
@media (max-width: 767px) {
  .rb-promos__grid,
  .rb-styles__grid { grid-template-columns: 1fr; }

  /* Shop by category — 2-col grid; odd last item full width */
  .rb-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--rb-gap);
    width: 100%;
    margin-right: 0;
    padding-right: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .rb-type-tile {
    flex: none;
    width: 100%;
    max-width: none;
    aspect-ratio: 1;
    min-height: 0;
  }
  .rb-type-tile:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    aspect-ratio: 2.2 / 1;
    min-height: 140px;
  }

  /* Bestsellers — AD mobile peek; 2 cards + cut-off next */
  .rb-bestsellers__track {
    padding: 0;
    width: calc(100% + 1rem);
    margin-right: -1rem;
  }
  .rb-product-grid--scroll {
    padding-right: 0.35rem;
    padding-bottom: 0;
    scrollbar-width: none;
  }
  .rb-product-grid--scroll::-webkit-scrollbar { display: none; }
  .rb-product-grid--scroll .rb-card {
    flex: 0 0 46vw;
    width: 46vw;
    max-width: 200px;
  }
  .rb-bestsellers__arrow {
    display: inline-flex !important;
    top: 11.5%;
    width: 2rem !important;
    height: 2rem !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(26, 35, 48, 0.2) !important;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12) !important;
  }
  .rb-bestsellers__arrow--prev { left: 0.35rem; }
  .rb-bestsellers__arrow--next { right: 0.35rem; }
}
