/* Best Products only: keep the shared header and other catalog pages unchanged. */
.best-products-page .best-container {
  --best-ink: #202a38;
  --best-muted: #536170;
  --best-border: #dfe5eb;
  --best-focus: #075985;
  max-width: 1320px;
  margin: 22px auto 48px;
  padding: 0 24px;
  color: var(--best-ink);
}

.best-products-page .best-container,
.best-products-page .best-container *,
.best-products-page .best-container *::before,
.best-products-page .best-container *::after {
  box-sizing: border-box;
}

.best-products-page .breadcrumb {
  padding: 16px 0;
  color: var(--best-muted);
  font-size: .875rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.best-products-page .best-container a:focus-visible,
.best-products-page .best-container summary:focus-visible {
  outline: 3px solid var(--best-focus);
  outline-offset: 3px;
}

/* Reuse the category photography and its warm, quiet editorial background. */
.best-products-page .best-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 228px;
  margin: 0 0 12px;
  padding: 28px 32px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #e9dfd1;
  border-radius: 18px;
  background: #f1e5d4;
  text-align: left;
}

.best-products-page .best-hero-image {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: 76%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.best-products-page .best-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #f3e8d8 0%, rgba(243, 232, 216, .98) 32%, rgba(243, 232, 216, .78) 52%, rgba(243, 232, 216, .08) 75%);
}

.best-products-page .best-hero-copy {
  width: 65%;
  min-width: 0;
  max-width: 760px;
}

.best-products-page .best-hero .update-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 5px 11px;
  border: 1px solid #d5dccd;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #395640;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
}

.best-products-page .best-hero h1 {
  max-width: 710px;
  margin: 0 0 12px;
  color: #222a30;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  line-height: 1.23;
  letter-spacing: -.025em;
  overflow-wrap: break-word;
}

.best-products-page .best-hero .subtitle {
  max-width: 680px;
  margin: 0;
  color: #3d464d;
  font-size: .95rem;
  line-height: 1.65;
}

.best-products-page .best-hero-note {
  margin: 0 2px 18px;
  color: var(--best-muted);
  font-size: .85rem;
  line-height: 1.6;
}

/* One row of category links, with space for keyboard focus inside the track. */
.best-products-page .best-category-nav {
  min-width: 0;
  margin: 18px 0 26px;
}

.best-products-page .best-category-label {
  display: block;
  margin: 0 0 8px;
  color: #3d4857;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.5;
}

.best-products-page .best-category-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  margin: 0 -5px;
  padding: 5px 5px 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #a8b3bf #edf0f4;
}

.best-products-page .best-category-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid #d5e5f0;
  border-radius: 999px;
  background: #edf5fb;
  color: #284c63;
  font-size: .825rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s, border-color .18s;
}

.best-products-page .best-category-pill:nth-child(4n+2) { background: #f9eef3; border-color: #ecdce4; color: #674753; }
.best-products-page .best-category-pill:nth-child(4n+3) { background: #f0eff9; border-color: #e1def0; color: #4c526d; }
.best-products-page .best-category-pill:nth-child(4n+4) { background: #edf6f0; border-color: #d4e7dc; color: #345e52; }
.best-products-page .best-category-pill:hover { border-color: currentColor; }
.best-products-page .best-category-pill[aria-current="page"] { background: #263d57; border-color: #263d57; color: #fff; }

.best-products-page .best-section-heading {
  margin: 30px 0 18px;
  color: var(--best-ink);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.35;
  letter-spacing: -.018em;
}

.best-products-page .seo-products-section { margin: 28px 0 36px; }
.best-products-page .seo-products-section h2 { padding-bottom: 0; border-bottom: 0; }

/* Explicit columns avoid the shared toplist minimum widths on small screens. */
.best-products-page .products-grid.best-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
  margin-bottom: 28px;
}

.best-products-page .best-products-grid .seo-product-card {
  position: relative;
  min-width: 0;
  max-width: none;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--best-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(26, 42, 58, .045);
  transform: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.best-products-page .best-products-grid .product-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.best-products-page .best-products-grid .product-link:focus-visible {
  outline-offset: -3px;
  border-radius: inherit;
}

.best-products-page .best-products-grid .product-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  min-height: 170px;
  padding: 20px;
  overflow: hidden;
  border-bottom: 1px solid #eef1f4;
  background: #fff;
}

.best-products-page .best-products-grid .product-image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  transition: transform .25s ease;
}

.best-products-page .best-products-grid .product-info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 18px;
}

.best-products-page .best-products-grid .product-title {
  display: -webkit-box;
  min-height: 4.35em;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--best-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

.best-products-page .best-products-grid .product-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  margin-bottom: 5px;
}

.best-products-page .best-products-grid .product-rating i { color: #a76500; font-size: .78rem; }
.best-products-page .best-products-grid .rating-value { margin-left: 4px; color: #485566; font-size: .825rem; }
.best-products-page .best-products-grid .review-count { margin-bottom: 10px; color: #596574; font-size: .8rem; line-height: 1.4; }

.best-products-page .best-products-grid .product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 9px;
  margin: auto 0 12px;
  padding-top: 10px;
  line-height: 1.3;
}

.best-products-page .best-products-grid .product-price .nexa-price {
  max-width: 100%;
  color: #ac2531;
  font-size: 1.2rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.best-products-page .best-products-grid .product-price .original-price {
  color: #69717d;
  font-size: .825rem;
  font-weight: 400;
  text-decoration: line-through;
}

.best-products-page .best-products-grid .view-deal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #5d4bb0;
  border-radius: 10px;
  background: linear-gradient(120deg, #5d4bb0, #69439c);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  box-shadow: none;
}

.best-products-page .best-products-grid .rank-badge {
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid #e8d6a2;
  background: #fff3cc;
  color: #684c0f;
  box-shadow: none;
  font-size: .8rem;
  pointer-events: none;
}

.best-products-page .best-products-grid .discount-badge {
  top: 10px;
  right: 10px;
  border-radius: 6px;
  background: #ad2834;
  color: #fff;
  font-size: .75rem;
  pointer-events: none;
}

.best-products-page .best-products-grid .no-products { grid-column: 1 / -1; }

@media (hover: hover) {
  .best-products-page .best-products-grid .seo-product-card:hover {
    transform: translateY(-3px);
    border-color: #b8c7d6;
    box-shadow: 0 10px 25px rgba(26, 42, 58, .09);
  }
  .best-products-page .best-products-grid .seo-product-card:hover .product-image-wrapper img { transform: scale(1.025); }
  .best-products-page .best-products-grid .seo-product-card:hover .view-deal-btn { background: #4f3e96; border-color: #4f3e96; box-shadow: none; }
}

/* Supporting content uses the same restrained surfaces as category pages. */
.best-products-page .best-guide {
  margin: 16px 0 20px;
  padding: 0 20px;
  border: 1px solid var(--best-border);
  border-radius: 12px;
  background: #fff;
  color: #43515f;
  font-size: .925rem;
  line-height: 1.75;
}

.best-products-page .best-guide > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 13px 0;
  color: var(--best-ink);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}

.best-products-page .best-guide > summary::-webkit-details-marker { display: none; }
.best-products-page .best-guide > summary::after { content: "+"; flex: 0 0 auto; color: #075985; font-size: 1.3rem; }
.best-products-page .best-guide[open] > summary::after { content: "\2212"; }
.best-products-page .best-guide[open] { padding-bottom: 18px; }
.best-products-page .best-guide .intro-text { margin: 0; padding: 4px 0 0; border: 0; background: transparent; color: inherit; font-size: inherit; line-height: inherit; }

.best-products-page .category-hub { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.best-products-page .category-hub .cat-card { min-width: 0; padding: 22px; overflow: hidden; border: 1px solid var(--best-border); border-radius: 14px; box-shadow: 0 4px 16px rgba(26, 42, 58, .045); }
.best-products-page .category-hub .cat-card:hover { transform: translateY(-2px); border-color: #b8c7d6; }
.best-products-page .category-hub .cat-card h3 { font-size: 1.1rem; line-height: 1.4; }
.best-products-page .category-hub .cat-card p { color: var(--best-muted); font-size: .875rem; line-height: 1.65; }
.best-products-page .best-category-image { display: block; width: calc(100% + 44px); max-width: none; height: 140px; margin: -22px -22px 18px; object-fit: cover; object-position: right center; background: #f1e5d4; }
.best-products-page .category-hub .cat-card .count { color: #28526d; background: #edf5fb; font-size: .8rem; }

.best-products-page .best-browse-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  margin: 0 auto 36px;
  padding: 12px 22px;
  border: 1px solid #c7d8e5;
  border-radius: 11px;
  background: #edf5fb;
  color: #174e6e;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.best-products-page .best-browse-more:hover { background: #deedf7; border-color: #8aaec6; }
.best-products-page .tips-section { padding: 28px; border: 1px solid #dedfee; background: #f3f2f9; color: #394153; border-radius: 14px; }
.best-products-page .tips-section h2 { color: #34364e; font-size: 1.35rem; line-height: 1.4; }
.best-products-page .tips-section li { font-size: .925rem; }
.best-products-page .faq-section h2 { font-size: 1.45rem; line-height: 1.4; }
.best-products-page .faq-item { padding: 0 20px; border: 1px solid var(--best-border); box-shadow: none; }
.best-products-page .faq-item > summary { min-height: 58px; gap: 16px; padding: 15px 0; font-size: .925rem; line-height: 1.5; }
.best-products-page .faq-item > summary::after { flex-shrink: 0; color: #075985; }
.best-products-page .faq-item > .faq-answer { display: block; padding: 0 0 18px; color: #536170; font-size: .925rem; line-height: 1.75; }
.best-products-page .internal-links { display: block; padding: 24px; border: 1px solid var(--best-border); background: #f8fafc; }
.best-products-page .internal-links a { margin: 4px 4px 4px 0; color: #215378; background: #edf3fa; }
.best-products-page .internal-links a:hover { color: #fff; background: #275d83; border-color: #275d83; }

@media (min-width: 780px) {
  .best-products-page .products-grid.best-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

@media (min-width: 1180px) {
  .best-products-page .products-grid.best-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
}

@media (max-width: 900px) {
  .best-products-page .best-hero-copy { width: 80%; }
  .best-products-page .best-hero::after { background: linear-gradient(90deg, #f3e8d8 0%, rgba(243, 232, 216, .96) 44%, rgba(243, 232, 216, .58) 78%, rgba(243, 232, 216, .22) 100%); }
  .best-products-page .category-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .best-products-page .best-container { margin-bottom: 32px; padding: 0 12px; }
  .best-products-page .breadcrumb { font-size: .8rem; }
  .best-products-page .best-hero { min-height: 210px; padding: 22px 20px; border-radius: 14px; }
  .best-products-page .best-hero-copy { width: 100%; max-width: none; }
  .best-products-page .best-hero-image { width: 100%; }
  .best-products-page .best-hero::after { background: linear-gradient(90deg, rgba(243, 232, 216, .98) 0%, rgba(243, 232, 216, .94) 52%, rgba(243, 232, 216, .76) 100%); }
  .best-products-page .best-hero h1 { font-size: 1.55rem; line-height: 1.25; }
  .best-products-page .best-hero .subtitle { font-size: .875rem; line-height: 1.6; }
  .best-products-page .best-hero-note { font-size: .8rem; }
  .best-products-page .best-category-pill { min-height: 44px; padding: 9px 13px; }
  .best-products-page .products-grid.best-products-grid { gap: 10px; }
  .best-products-page .best-products-grid .seo-product-card { border-radius: 12px; }
  .best-products-page .best-products-grid .product-image-wrapper { min-height: 154px; padding: 12px; }
  .best-products-page .best-products-grid .product-info { padding: 12px 10px; }
  .best-products-page .best-products-grid .product-title { min-height: 4.35em; margin-bottom: 10px; font-size: .875rem; }
  .best-products-page .best-products-grid .product-price .nexa-price { font-size: 1.05rem; }
  .best-products-page .best-products-grid .product-price .original-price { font-size: .75rem; }
  .best-products-page .best-products-grid .view-deal-btn { padding: 10px 6px; font-size: .8125rem; }
  .best-products-page .best-products-grid .rank-badge { top: 7px; left: 7px; width: 28px; height: 28px; font-size: .75rem; }
  .best-products-page .best-products-grid .discount-badge { top: 7px; right: 7px; padding: 4px 6px; font-size: .7rem; }
  .best-products-page .best-guide { padding-right: 16px; padding-left: 16px; }
  .best-products-page .category-hub { grid-template-columns: 1fr; gap: 14px; }
  .best-products-page .best-category-image { height: 150px; }
  .best-products-page .tips-section { padding: 22px 18px; }
  .best-products-page .faq-item { padding: 0 16px; }
  .best-products-page .internal-links { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .best-products-page .best-products-grid .seo-product-card,
  .best-products-page .best-products-grid .product-image-wrapper img,
  .best-products-page .best-products-grid .view-deal-btn,
  .best-products-page .best-category-pill,
  .best-products-page .category-hub .cat-card { transition: none; }
  .best-products-page .best-products-grid .seo-product-card:hover,
  .best-products-page .best-products-grid .seo-product-card:hover .product-image-wrapper img,
  .best-products-page .category-hub .cat-card:hover { transform: none; }
}

/* Keep department navigation compact even for categories with many sections. */
.best-products-page .subcategories {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 4px 4px 9px;
  margin-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: #9baebc #eef2f5;
}
.best-products-page .subcategory-tag {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  border-width: 1px;
  font-size: .83rem;
  line-height: 1.4;
  white-space: nowrap;
}
.best-products-page .faq-item[open] .faq-toggle { transform: rotate(45deg); }
