.rainori-bestsellers-page .rb-categories {
  height: 573px;
  padding-block: 48px 0;
}
.rainori-bestsellers-page .rb-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.rainori-bestsellers-page .rb-category {
  height: 450px;
}
.rainori-bestsellers-page .rb-shelf {
  height: auto;
  padding-block: 48px 64px;
  scroll-margin-top: calc(var(--rainori-season-height, 58px) + 64px);
}
.rainori-bestsellers-page .rb-shelf .rh-section-heading {
  margin-bottom: 32px;
}
.rainori-bestsellers-page .rb-accessories {
  padding-bottom: 0;
}
.rainori-bestsellers-page .rb-accessories .rh-section-heading {
  margin-bottom: 32px;
}
.rainori-bestsellers-page .rb-product-list .product-image-wrap {
  background: #fff;
}
.rainori-bestsellers-page .rb-product-list .product-image-wrap img {
  object-fit: cover;
}
.rainori-bestsellers-page .rb-newsletter {
  background: #eee6d8;
}

@media (max-width: 900px) {
  .rainori-bestsellers-page .rb-categories {
    height: auto;
    padding-block: 48px;
  }
  .rainori-bestsellers-page .rb-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rainori-bestsellers-page .rb-category {
    height: 316px;
  }
  .rainori-bestsellers-page .rb-shelf {
    padding-block: 38px 44px;
  }
  .rainori-bestsellers-page .rb-accessories {
    padding-bottom: 0;
  }
}

@media (max-width: 540px) {
  .rainori-bestsellers-page .rb-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .rainori-bestsellers-page .rb-category {
    height: clamp(230px, 74vw, 316px);
  }
  .rainori-bestsellers-page .rb-category > span {
    right: 12px;
    bottom: 13px;
    left: 12px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .rainori-bestsellers-page .rb-category strong {
    font-size: clamp(15px, 4vw, 20px);
  }
  .rainori-bestsellers-page .rb-category b {
    min-height: 30px;
    padding-inline: 10px;
    font-size: 10px;
  }
  .rainori-bestsellers-page .rb-shelf {
    padding-block: 34px 40px;
  }
  .rainori-bestsellers-page .rb-accessories {
    padding-bottom: 0;
  }
}

/* Bestseller landing uses the shared editorial hero and review/photo cards. */
@media (max-width: 760px) {
  .rainori-bestsellers-page .rh-hero h1 {
    max-width: 100%;
    font-size: clamp(32px, 9.2vw, 38px);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .rainori-bestsellers-page .rh-anniversary {
    gap: 9px;
    padding: 10px;
  }

  .rainori-bestsellers-page .rh-anniversary svg { width: 50px; }
  .rainori-bestsellers-page .rh-anniversary > span { font-size: 13px; line-height: 1.35; }
  .rainori-bestsellers-page .rh-anniversary > span > strong { font-size: 16px; line-height: 1.2; }

  .rainori-bestsellers-page .rh-product-badges {
    top: 8px;
    right: 8px;
    left: 8px;
    justify-content: flex-end;
    gap: 5px;
  }

  .rainori-bestsellers-page .rh-product-badges > span {
    max-width: 100%;
    padding: 4px 7px;
    font-size: 9px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .rainori-bestsellers-page .rh-review-controls button,
  .rainori-bestsellers-page .rh-shelf-arrows button,
  .rainori-bestsellers-page .rh-social-arrows button {
    width: 44px;
    height: 44px;
  }

  .rainori-bestsellers-page .rh-review-card { min-width: 0; overflow-wrap: anywhere; }
  .rainori-bestsellers-page .rh-review-product { min-width: 0; }
  .rainori-bestsellers-page .rh-review-product > span { min-width: 0; overflow-wrap: anywhere; }

  .rainori-bestsellers-page .rb-category > span {
    right: 10px;
    bottom: 10px;
    left: 10px;
    gap: 7px;
  }

  .rainori-bestsellers-page .rb-category strong {
    max-width: 100%;
    font-size: clamp(14px, 3.8vw, 18px);
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  .rainori-bestsellers-page .rb-category b {
    min-height: 36px;
    max-width: 100%;
    padding-inline: 8px;
    font-size: 9px;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .rainori-bestsellers-page .rb-category-grid { grid-template-columns: minmax(0, 1fr); }
  .rainori-bestsellers-page .rb-category { height: clamp(230px, 72vw, 270px); }
  .rainori-bestsellers-page .rh-review { grid-template-columns: minmax(86px, 30%) minmax(0, 1fr); }
  .rainori-bestsellers-page .rh-review-card { padding: 12px 9px 10px; }
  .rainori-bestsellers-page .rh-review-card h3 { font-size: 14px; }
}
