/*
 * PH Popular Products v1.4.9 — Wilderness121 storefront
 * PrestaHeroes, 2026-09-13
 * Theme-aware merchandising with safe product actions and clear stock state.
 */

.ph-bestsellers,
.ph-bestsellers-page,
.ph-bs-sidebar {
  --ph-wild-green: var(--wilderness-green, #174a36);
  --ph-wild-green-deep: var(--wilderness-green-deep, #0e2f23);
  --ph-wild-green-soft: var(--wilderness-green-soft, #eaf3ee);
  --ph-wild-fire: var(--wilderness-fire, #c83a21);
  --ph-wild-ink: var(--wilderness-ink, #17211d);
  --ph-wild-muted: var(--wilderness-muted, #5d6963);
  --ph-wild-line: var(--wilderness-line, #dbe3de);
  --ph-wild-paper: var(--wilderness-paper, #fff);
  --ph-wild-radius: var(--wilderness-radius, 14px);
  width: 100%;
  max-width: 100%;
  margin: clamp(2rem, 5vw, 4.5rem) 0;
  clear: both;
  color: var(--ph-wild-ink);
  font-family: inherit;
}

.ph-bestsellers *,
.ph-bestsellers-page *,
.ph-bs-sidebar * {
  box-sizing: border-box;
}

/* Match the centered Wilderness121 header/content grid. The fallback is the
   measured theme container width; either theme variable can override it. */
.ph-bestsellers-page {
  width: calc(100% - clamp(1rem, 3vw, 2rem));
  max-width: var(--wilderness-container-max, var(--wilderness-content-width, 1440px));
  margin-right: auto;
  margin-left: auto;
}

/* Category left-column discovery rail. It replaces the large category carousel
   when sidebar mode is active, lifting the native product list above the fold. */
.ph-bs-sidebar {
  position: relative;
  width: 100%;
  margin: 1.35rem 0;
  overflow: hidden;
  border: 1px solid rgba(87, 154, 112, .28);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 5%, rgba(55, 132, 83, .22), transparent 38%),
    linear-gradient(155deg, #101a15 0%, #08100c 72%);
  color: #fff;
  font-family: inherit;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
}

.ph-bs-sidebar::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--ph-wild-fire) 0 30%, #2f8050 30% 100%);
}

.ph-bs-sidebar__header {
  padding: 1.15rem 1rem .85rem;
}

.ph-bs-sidebar__eyebrow {
  display: block;
  margin-bottom: .38rem;
  color: #8ed3a4;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .105em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ph-bs-sidebar__title {
  margin: 0;
  color: #fff !important;
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.ph-bs-sidebar__title::after {
  content: '';
  display: block;
  width: 2.6rem;
  height: 3px;
  margin-top: .55rem;
  border-radius: 999px;
  background: var(--ph-wild-fire);
}

.ph-bs-sidebar__intro {
  margin: .65rem 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: .76rem;
  line-height: 1.45;
}

.ph-bs-sidebar__picks {
  display: grid;
  gap: 1px;
  padding: 0 .72rem .72rem;
}

.ph-bs-sidebar-pick {
  position: relative;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 18px;
  align-items: center;
  gap: .72rem;
  min-width: 0;
  min-height: 84px;
  padding: .62rem .5rem;
  border: 1px solid transparent;
  border-bottom-color: rgba(255, 255, 255, .1);
  border-radius: 9px;
  color: #fff !important;
  text-decoration: none !important;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.ph-bs-sidebar-pick:hover,
.ph-bs-sidebar-pick:focus-visible {
  border-color: rgba(124, 204, 151, .34);
  background: rgba(255, 255, 255, .075);
  color: #fff !important;
  transform: translateX(2px);
}

.ph-bs-sidebar-pick__rank {
  position: absolute;
  z-index: 2;
  top: .38rem;
  left: .26rem;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border: 2px solid #101a15;
  border-radius: 50%;
  background: var(--ph-wild-fire);
  color: #fff;
  font-size: .62rem;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .28);
}

.ph-bs-sidebar-pick__image {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  padding: .3rem;
  overflow: hidden;
  border-radius: 8px;
  background: #f7f9f8;
  color: #526159;
  font-size: .58rem;
  text-align: center;
}

.ph-bs-sidebar-pick__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ph-bs-sidebar-pick__content {
  display: block;
  min-width: 0;
}

.ph-bs-sidebar-pick__brand {
  display: block;
  margin-bottom: .22rem;
  overflow: hidden;
  color: #8ed3a4;
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .075em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ph-bs-sidebar-pick__name {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ph-bs-sidebar-pick__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .35rem;
}

.ph-bs-sidebar-pick__meta b {
  color: #ff765e;
  font-size: .82rem;
  font-weight: 900;
}

.ph-bs-sidebar-pick__stock {
  width: .48rem;
  height: .48rem;
  border-radius: 50%;
  background: #4fc079;
  box-shadow: 0 0 0 3px rgba(79, 192, 121, .12);
}

.ph-bs-sidebar-pick__stock--backorder {
  background: #d59a37;
  box-shadow: 0 0 0 3px rgba(213, 154, 55, .13);
}

.ph-bs-sidebar-pick__stock--unavailable {
  background: var(--ph-wild-fire);
  box-shadow: 0 0 0 3px rgba(200, 58, 33, .14);
}

.ph-bs-sidebar-pick__arrow {
  color: #8ed3a4;
  font-size: 1rem;
  transition: color .18s ease, transform .18s ease;
}

.ph-bs-sidebar-pick:hover .ph-bs-sidebar-pick__arrow,
.ph-bs-sidebar-pick:focus-visible .ph-bs-sidebar-pick__arrow {
  color: #fff;
  transform: translateX(2px);
}

.ph-bs-sidebar__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 48px;
  padding: .8rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(42, 111, 67, .2);
  color: #fff !important;
  font-size: .76rem;
  font-weight: 850;
  text-decoration: none !important;
  transition: background-color .18s ease, color .18s ease;
}

.ph-bs-sidebar__all:hover,
.ph-bs-sidebar__all:focus-visible {
  background: var(--ph-wild-fire);
  color: #fff !important;
}

.ph-bestsellers__header,
.ph-bs-section__header,
.ph-bs-category-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.15rem;
}

.ph-bestsellers__title,
.ph-bs-section__title,
.ph-bs-category-section__title {
  margin: 0;
  color: var(--ph-wild-green-deep);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.ph-bestsellers__eyebrow {
  display: block;
  margin-bottom: .38rem;
  color: var(--ph-wild-fire);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.ph-bestsellers__title::after,
.ph-bs-section__title::after,
.ph-bs-category-section__title::after {
  content: '';
  display: block;
  width: 3.25rem;
  height: 4px;
  margin-top: .55rem;
  border-radius: 999px;
  background: var(--ph-wild-fire);
}

.ph-bestsellers__link,
.ph-bs-category-section__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  flex: 0 0 auto;
  min-height: 42px;
  padding: .65rem .9rem;
  border: 1px solid var(--ph-wild-green);
  border-radius: 999px;
  color: var(--ph-wild-green-deep) !important;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.ph-bestsellers__link::after,
.ph-bs-category-section__link::after {
  content: '→';
}

.ph-bestsellers__link:hover,
.ph-bestsellers__link:focus-visible,
.ph-bs-category-section__link:hover,
.ph-bs-category-section__link:focus-visible {
  background: var(--ph-wild-green);
  color: #fff !important;
  transform: translateY(-1px);
}

.ph-bestsellers-grid,
.ph-bestsellers__products,
.ph-bestsellers-page__products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.85rem, 2vw, 1.35rem);
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.ph-bestsellers__item,
.ph-bestsellers__item.js-product.product {
  position: relative;
  display: flex !important;
  flex-direction: column;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  scroll-snap-align: start;
}

.ph-bestsellers__rank {
  position: absolute;
  z-index: 4;
  top: .65rem;
  left: .65rem;
  display: inline-grid;
  place-items: center;
  min-width: 2.15rem;
  min-height: 2.15rem;
  padding: .35rem .5rem;
  border: 2px solid rgba(255, 255, 255, .88);
  border-radius: 999px;
  background: var(--ph-wild-fire);
  color: #fff;
  font-size: .77rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(40, 20, 12, .24);
}

.ph-bs-card.js-product-miniature {
  position: relative !important;
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  border: 1px solid var(--ph-wild-line) !important;
  border-radius: var(--ph-wild-radius) !important;
  background: var(--ph-wild-paper) !important;
  color: var(--ph-wild-ink) !important;
  box-shadow: 0 7px 24px rgba(15, 47, 35, .07) !important;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ph-bs-card.js-product-miniature:hover,
.ph-bs-card.js-product-miniature:focus-within {
  border-color: rgba(23, 74, 54, .52) !important;
  box-shadow: 0 14px 34px rgba(15, 47, 35, .14) !important;
  transform: translateY(-3px);
}

.ph-bs-card__image {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  aspect-ratio: 1 / .86;
  min-height: 190px;
  padding: .85rem;
  overflow: hidden;
  background: linear-gradient(145deg, #f8faf9 0%, #eef3f0 100%);
  text-decoration: none !important;
}

.ph-bs-card__image::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ph-wild-green) 0 76%, var(--ph-wild-fire) 76% 100%);
  opacity: .92;
}

.ph-bs-card__image img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 100% !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  transition: transform .28s ease;
}

.ph-bs-card:hover .ph-bs-card__image img,
.ph-bs-card:focus-within .ph-bs-card__image img {
  transform: scale(1.035);
}

.ph-bs-card__no-image {
  color: var(--ph-wild-muted);
  font-size: .82rem;
  font-weight: 700;
}

.ph-bs-card__body {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 1rem !important;
  background: var(--ph-wild-paper) !important;
  text-align: left !important;
}

.ph-bs-card__sold,
.ph-bs-card__brand {
  display: block;
  margin: 0 0 .38rem;
  overflow: hidden;
  color: var(--ph-wild-green);
  font-size: .69rem;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: .075em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-bs-card__sold {
  width: fit-content;
  padding: .3rem .5rem;
  border-radius: 999px;
  background: var(--ph-wild-green-soft);
  letter-spacing: .02em;
  text-transform: none;
}

.ph-bs-card__sold-icon {
  color: var(--ph-wild-fire);
}

.ph-bs-card__title,
.ph-bs-card__title a {
  display: -webkit-box !important;
  width: 100% !important;
  min-height: 2.7em;
  margin: 0 !important;
  overflow: hidden;
  color: var(--ph-wild-ink) !important;
  font-size: .98rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  text-decoration: none !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ph-bs-card__title a:hover,
.ph-bs-card__title a:focus-visible {
  color: var(--ph-wild-green) !important;
}

.ph-bs-card__pricing {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .62rem 0 .3rem;
}

.ph-bs-card__price {
  color: var(--ph-wild-fire) !important;
  font-size: 1.14rem !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: -.015em;
}

.ph-bs-card__regular-price {
  color: var(--ph-wild-muted);
  font-size: .78rem;
  text-decoration: line-through;
}

.ph-bs-card__availability {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  width: fit-content;
  min-height: 1.55rem;
  margin: .15rem 0 .8rem;
  color: var(--ph-wild-muted);
  font-size: .76rem;
  font-weight: 750;
  line-height: 1.2;
}

.ph-bs-card__availability-dot {
  width: .5rem;
  height: .5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #25834c;
  box-shadow: 0 0 0 3px rgba(37, 131, 76, .12);
}

.ph-bs-card__availability--backorder .ph-bs-card__availability-dot {
  background: #b47713;
  box-shadow: 0 0 0 3px rgba(180, 119, 19, .13);
}

.ph-bs-card__availability--unavailable {
  color: #8c3025;
}

.ph-bs-card__availability--unavailable .ph-bs-card__availability-dot {
  background: var(--ph-wild-fire);
  box-shadow: 0 0 0 3px rgba(200, 58, 33, .13);
}

.ph-bs-card__actions {
  width: 100%;
  margin-top: auto;
  padding-top: .1rem;
}

.ph-bs-card__actions form {
  margin: 0;
}

.ph-bs-card__ph-atc-slot {
  position: relative;
  width: 100%;
  min-height: 43px;
}

.ph-bs-card__atc-loading {
  display: block;
  width: 100%;
  min-height: 43px;
  border-radius: 9px;
  background: linear-gradient(100deg, rgba(18, 78, 55, .08) 20%, rgba(18, 78, 55, .16) 40%, rgba(18, 78, 55, .08) 60%);
  background-size: 220% 100%;
  animation: ph-bs-atc-loading 1.1s ease-in-out infinite;
}

.ph-bs-card__atc-loading[hidden],
.ph-bs-card__atc-fallback[hidden] {
  display: none !important;
}

@keyframes ph-bs-atc-loading {
  to {
    background-position-x: -220%;
  }
}

.ph-bs-card__cta,
.ph-bs-card__actions .ph-bs-card__cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100% !important;
  min-height: 43px;
  margin: 0 !important;
  padding: .68rem .8rem !important;
  border: 1px solid var(--ph-wild-green) !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: var(--ph-wild-green-deep) !important;
  font: inherit !important;
  font-size: .83rem !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: none !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.ph-bs-card__cta--primary,
.ph-bs-card__actions .ph-bs-card__cta--primary {
  border-color: var(--ph-wild-green) !important;
  background: var(--ph-wild-green) !important;
  color: #fff !important;
}

.ph-bs-card__cta:hover,
.ph-bs-card__cta:focus-visible,
.ph-bs-card__actions .ph-bs-card__cta:hover,
.ph-bs-card__actions .ph-bs-card__cta:focus-visible {
  border-color: var(--ph-wild-fire) !important;
  background: var(--ph-wild-fire) !important;
  color: #fff !important;
}

.ph-bs-slider-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ph-bestsellers-slider {
  display: flex !important;
  grid-template-columns: none !important;
  gap: clamp(.85rem, 1.8vw, 1.25rem);
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0;
  padding: .25rem .15rem .85rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(23, 74, 54, .38) rgba(23, 74, 54, .08);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.ph-bestsellers-slider::-webkit-scrollbar {
  height: 7px;
}

.ph-bestsellers-slider::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(23, 74, 54, .4);
}

.ph-bestsellers-slider::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(23, 74, 54, .08);
}

.ph-bestsellers-slider .ph-bestsellers__item {
  flex: 0 0 clamp(210px, 21vw, 268px) !important;
  width: auto !important;
}

.ph-bs-slider-btn {
  position: absolute;
  z-index: 8;
  top: 42%;
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--ph-wild-green-deep);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 7px 22px rgba(14, 47, 35, .24);
  transform: translateY(-50%);
  transition: background-color .18s ease, opacity .18s ease, transform .18s ease;
}

.ph-bs-slider-shell.is-overflowing .ph-bs-slider-btn {
  display: grid;
}

.ph-bs-slider-btn--prev {
  left: -15px;
}

.ph-bs-slider-btn--next {
  right: -15px;
}

.ph-bs-slider-btn:hover,
.ph-bs-slider-btn:focus-visible {
  background: var(--ph-wild-fire);
  transform: translateY(-50%) scale(1.06);
}

.ph-bs-slider-btn.is-disabled,
.ph-bs-slider-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.ph-bs-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: calc(var(--ph-wild-radius) + 4px);
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, .12) 0 9%, transparent 9.4%),
    linear-gradient(128deg, var(--ph-wild-green-deep), var(--ph-wild-green));
  color: #fff;
  box-shadow: 0 16px 42px rgba(14, 47, 35, .16);
}

.ph-bs-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 9px;
  height: 100%;
  background: var(--ph-wild-fire);
}

.ph-bs-journey-card__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding: clamp(1.4rem, 4vw, 2.6rem);
}

.ph-bs-journey-card__eyebrow {
  display: inline-flex;
  margin-bottom: .72rem;
  padding: .35rem .62rem;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.ph-bs-hero__title {
  margin: 0 0 .7rem;
  color: #fff !important;
  font-size: clamp(1.65rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.ph-bs-hero__intro {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(.95rem, 1.5vw, 1.08rem);
  line-height: 1.58;
}

.ph-bs-section,
.ph-bs-category-section {
  margin: clamp(1.6rem, 4vw, 3.25rem) 0;
  scroll-margin-top: 7rem;
}

.ph-bs-section__subtitle {
  max-width: 760px;
  margin: .65rem 0 0;
  color: var(--ph-wild-muted);
  font-size: .93rem;
  line-height: 1.55;
}

/* v1.4.9: keep the dark-page category gateway unmistakably Wilderness. */
.ph-bs-section--gateway .ph-bs-section__title {
  color: var(--ph-wild-fire) !important;
}

.ph-bs-section--gateway .ph-bs-section__subtitle {
  color: #fff !important;
}

.ph-bs-gateway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.ph-bs-gateway-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: .9rem 1rem;
  overflow: hidden;
  border: 1px solid var(--ph-wild-line);
  border-left: 5px solid var(--ph-wild-green);
  border-radius: 10px;
  background: var(--ph-wild-paper);
  color: var(--ph-wild-green-deep) !important;
  font-size: .86rem;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none !important;
  box-shadow: 0 5px 16px rgba(14, 47, 35, .05);
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.ph-bs-gateway-card::after {
  content: '↓';
  margin-left: .6rem;
  color: var(--ph-wild-fire);
  font-size: 1rem;
}

.ph-bs-gateway-card:hover,
.ph-bs-gateway-card:focus-visible {
  border-color: var(--ph-wild-green);
  background: var(--ph-wild-green);
  color: #fff !important;
  transform: translateY(-2px);
}

.ph-bs-gateway-card:hover::after,
.ph-bs-gateway-card:focus-visible::after {
  color: #fff;
}

.ph-bs-category-section {
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border: 1px solid var(--ph-wild-line);
  border-radius: calc(var(--ph-wild-radius) + 2px);
  background: linear-gradient(180deg, #f8fbf9, #fff 34%);
  box-shadow: 0 9px 28px rgba(14, 47, 35, .055);
}

.ph-bs-category-section__title a {
  color: inherit !important;
  text-decoration: none !important;
}

.ph-bs-category-section__meta {
  display: inline-flex;
  margin-top: .55rem;
  color: var(--ph-wild-muted);
  font-size: .76rem;
  font-weight: 700;
}

.ph-bestsellers--product {
  margin: 1.5rem 0;
}

.ph-bestsellers--product .ph-bestsellers__link,
.ph-bestsellers--product .ph-bestsellers__rank,
.ph-bestsellers--product .ph-bs-card__sold {
  display: none !important;
}

.ph-bestsellers--product .ph-bestsellers-slider .ph-bestsellers__item {
  flex-basis: clamp(180px, 17vw, 220px) !important;
}

.ph-bestsellers--product .ph-bs-card__image {
  min-height: 145px;
}

.ph-bestsellers--product .ph-bs-card__body {
  padding: .8rem !important;
}

.ph-bestsellers--smart-home {
  margin: 0;
}

.ph-bestsellers-page--home-embed {
  margin-top: 0;
}

.ph-bestsellers-page--home-embed .ph-bs-hero {
  margin-top: 0;
}

.ph-bestsellers-page .alert-info {
  padding: 1rem 1.15rem;
  border: 1px solid var(--ph-wild-line);
  border-radius: 10px;
  background: var(--ph-wild-green-soft);
  color: var(--ph-wild-green-deep);
}

@media (max-width: 1199px) {
  .ph-bestsellers-grid,
  .ph-bestsellers__products,
  .ph-bestsellers-page__products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ph-bs-gateway-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ph-bestsellers,
  .ph-bestsellers-page {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .ph-bestsellers-page {
    margin-right: auto;
    margin-left: auto;
  }

  .ph-bestsellers__header,
  .ph-bs-section__header,
  .ph-bs-category-section__header {
    align-items: flex-start;
    flex-direction: column;
    gap: .8rem;
  }

  .ph-bestsellers-grid,
  .ph-bestsellers__products,
  .ph-bestsellers-page__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ph-bs-gateway-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ph-bestsellers-slider .ph-bestsellers__item,
  .ph-bestsellers--product .ph-bestsellers-slider .ph-bestsellers__item {
    flex-basis: min(78vw, 260px) !important;
  }

  .ph-bs-slider-btn {
    display: none !important;
  }

  .ph-bs-card__image {
    min-height: 165px;
  }

  .ph-bs-journey-card__inner {
    padding-right: 1.75rem;
  }

  .ph-bs-sidebar {
    margin: 1rem 0 1.5rem;
  }

  .ph-bs-sidebar__picks {
    display: flex;
    gap: .55rem;
    overflow-x: auto;
    padding-bottom: .85rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .ph-bs-sidebar-pick {
    flex: 0 0 min(82vw, 300px);
    border-color: rgba(255, 255, 255, .1);
    scroll-snap-align: start;
  }
}

@media (max-width: 460px) {
  .ph-bestsellers-grid,
  .ph-bestsellers__products,
  .ph-bestsellers-page__products,
  .ph-bs-gateway-grid {
    grid-template-columns: 1fr;
  }

  .ph-bestsellers-slider .ph-bestsellers__item,
  .ph-bestsellers--product .ph-bestsellers-slider .ph-bestsellers__item {
    flex-basis: 82vw !important;
  }

  .ph-bs-card__title,
  .ph-bs-card__title a {
    font-size: .95rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ph-bestsellers *,
  .ph-bestsellers-page *,
  .ph-bs-sidebar * {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .ph-bs-card__atc-loading {
    animation: none !important;
  }
}

/* v1.4.11: compact home merchandising on dark Wilderness landing sections.
   Isolated to home context: gateway, product, and standalone pages retain styling. */
.ph-bestsellers--home {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 1.25rem clamp(12px, 1.5vw, 24px) 1.5rem;
  margin-block: 1.25rem 2rem;
  border-radius: 14px;
  background: #101b16;
  color: #f5f8f6;
}
.ph-bestsellers--home .ph-bestsellers__title {
  color: #fff !important;
}
.ph-bestsellers--home .ph-bestsellers__eyebrow {
  color: #f36b51 !important;
}
.ph-bestsellers--home .ph-bestsellers__link {
  color: #fff !important;
  border-color: #6a9a7c !important;
  background: #214732 !important;
}
.ph-bestsellers--home .ph-bestsellers__link:hover,
.ph-bestsellers--home .ph-bestsellers__link:focus-visible {
  color: #fff !important;
  background: #b93520 !important;
}
.ph-bestsellers--home .ph-bs-slider-shell { min-width: 0; max-width: 100%; }
.ph-bestsellers--home .ph-bestsellers-slider {
  display: flex !important;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 1rem;
  gap: 14px;
}
/* fixed maximum card size eliminates viewport-driven oversized images */
.ph-bestsellers--home .ph-bestsellers-slider > .ph-bestsellers__item,
.ph-bestsellers--home .ph-bestsellers-slider > .ph-bestsellers__item.js-product.product {
  flex: 0 0 268px !important;
  width: 268px !important;
  max-width: 268px !important;
}
.ph-bestsellers--home .ph-bs-card__image {
  aspect-ratio: auto !important;
  height: 205px !important;
  min-height: 0 !important;
  max-height: 205px !important;
  padding: 12px !important;
}
.ph-bestsellers--home .ph-bs-card__image img {
  max-height: 178px !important;
  max-width: 100% !important;
  object-fit: contain !important;
}
@media (max-width: 767px) {
  .ph-bestsellers--home { padding: 1rem 10px 1.25rem; }
  .ph-bestsellers--home .ph-bestsellers-slider > .ph-bestsellers__item,
  .ph-bestsellers--home .ph-bestsellers-slider > .ph-bestsellers__item.js-product.product {
    flex: 0 0 min(78vw, 260px) !important;
    width: min(78vw, 260px) !important;
    max-width: min(78vw, 260px) !important;
  }
  .ph-bestsellers--home .ph-bs-card__image { height: 185px !important; max-height: 185px !important; }
}

/* v1.4.12 — constrained homepage snippet; does not affect the gateway/full page. */
.ph-bestsellers--home {
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 1440px;
  margin: 1.25rem auto 2rem;
}
.ph-bestsellers--home .ph-bs-slider-shell,
.ph-bestsellers--home .ph-bestsellers-slider { box-sizing: border-box; min-width: 0; width: 100%; }
/* Exact slide widths: no fifth card intruding into the desktop viewport. */
.ph-bestsellers--home .ph-bestsellers-slider > .ph-bestsellers__item,
.ph-bestsellers--home .ph-bestsellers-slider > .ph-bestsellers__item.js-product.product {
  box-sizing: border-box;
  flex: 0 0 calc((100% - 42px) / 4) !important;
  width: calc((100% - 42px) / 4) !important;
  max-width: calc((100% - 42px) / 4) !important;
  min-width: 0 !important;
}
@media (max-width: 1199px) {
  .ph-bestsellers--home .ph-bestsellers-slider > .ph-bestsellers__item,
  .ph-bestsellers--home .ph-bestsellers-slider > .ph-bestsellers__item.js-product.product {
    flex-basis: calc((100% - 28px) / 3) !important;
    width: calc((100% - 28px) / 3) !important;
    max-width: calc((100% - 28px) / 3) !important;
  }
}
@media (max-width: 899px) {
  .ph-bestsellers--home .ph-bestsellers-slider > .ph-bestsellers__item,
  .ph-bestsellers--home .ph-bestsellers-slider > .ph-bestsellers__item.js-product.product {
    flex-basis: calc((100% - 14px) / 2) !important;
    width: calc((100% - 14px) / 2) !important;
    max-width: calc((100% - 14px) / 2) !important;
  }
}
@media (max-width: 559px) {
  .ph-bestsellers--home { width: calc(100% - 20px); }
  .ph-bestsellers--home .ph-bestsellers-slider > .ph-bestsellers__item,
  .ph-bestsellers--home .ph-bestsellers-slider > .ph-bestsellers__item.js-product.product {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* v1.4.13 — Dedicated Popular Products page: Wilderness121 dark visual language.
   All rules are limited to the module route; home snippet remains unchanged. */
body#module-ph_bestsellers-list,
body#module-ph_bestsellers-list #wrapper,
body#module-ph_bestsellers-list #content-wrapper,
body#module-ph_bestsellers-list main,
body#module-ph_bestsellers-list #main {
  background: #0b1510;
}
body#module-ph_bestsellers-list #wrapper {
  color: #eef7ef;
}
body#module-ph_bestsellers-list #content.page-content,
body#module-ph_bestsellers-list .page-content,
body#module-ph_bestsellers-list #main > .card,
body#module-ph_bestsellers-list #main > .page-content {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body#module-ph_bestsellers-list .page-header h1,
body#module-ph_bestsellers-list h1.page-title,
body#module-ph_bestsellers-list #main > h1 {
  color: #fff !important;
}
body#module-ph_bestsellers-list .ph-bestsellers-page {
  --ph-wild-ink: #f2f8f3;
  --ph-wild-muted: #b7cbbd;
  --ph-wild-line: rgba(159, 199, 165, .24);
  color: #edf5ef;
}
body#module-ph_bestsellers-list .ph-bs-page-shell {
  padding: clamp(.3rem, 1.5vw, 1.2rem) 0 clamp(2rem, 4vw, 4rem);
}
body#module-ph_bestsellers-list .ph-bs-hero {
  border: 1px solid rgba(145, 197, 157, .27);
  background: radial-gradient(circle at 90% 8%, rgba(87, 146, 101, .3), transparent 31%),linear-gradient(125deg, #143c2c, #0b2118);
}
body#module-ph_bestsellers-list .ph-bs-section__title,
body#module-ph_bestsellers-list .ph-bs-category-section__title,
body#module-ph_bestsellers-list .ph-bestsellers__title {
  color: #fff !important;
}
body#module-ph_bestsellers-list .ph-bs-section--gateway .ph-bs-section__title {
  color: #f36b4c !important;
}
body#module-ph_bestsellers-list .ph-bs-section__subtitle,
body#module-ph_bestsellers-list .ph-bs-category-section__meta {
  color: #b7cbbd !important;
}
body#module-ph_bestsellers-list .ph-bs-gateway-card {
  border-color: rgba(137, 191, 152, .32);
  border-left-color: #68a477;
  background: #192b21;
  color: #f0f8f0 !important;
  box-shadow: none;
}
body#module-ph_bestsellers-list .ph-bs-gateway-card:hover,
body#module-ph_bestsellers-list .ph-bs-gateway-card:focus-visible {
  background: #28603d;
  color: #fff !important;
}
body#module-ph_bestsellers-list .ph-bs-category-section {
  border-color: rgba(125, 177, 139, .3);
  background: linear-gradient(145deg, #14271d, #0f2018 70%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}
body#module-ph_bestsellers-list .ph-bestsellers__link,
body#module-ph_bestsellers-list .ph-bs-category-section__link {
  border-color: #77b88c;
  color: #e6f5e8 !important;
}
body#module-ph_bestsellers-list .ph-bs-category-section .ph-bs-card,
body#module-ph_bestsellers-list .ph-bs-card {
  --ph-wild-ink: #17211d;
  --ph-wild-muted: #5d6963;
  --ph-wild-line: #dbe3de;
  --ph-wild-paper: #fff;
}
@media (max-width: 767px) {
  body#module-ph_bestsellers-list .ph-bs-category-section { padding: 1rem .75rem; }
}
