
/* ===== Base ===== */
#bsBestSellers {
  width: 100%;
  margin: 24px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bs-gap: 16px;
}

#bsBestSellers,
#bsBestSellers * {
  box-sizing: border-box;
}

#bsBestSellers .bs__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
}

/* ===== Header ===== */
#bsBestSellers .bsTop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

#bsBestSellers .bsTop__title-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

#bsBestSellers .bsTop__title {
  margin: 0;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: .2px;
  color: #2f2a24;
  line-height: 1;
}

#bsBestSellers .bsTop__subtitle {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 24px;
  font-weight: 500;
  color: #2f2a24;
  line-height: 1.2;
}

/* ===== Size Tabs ===== */
#bsBestSellers .bsTop__pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #e9e3d8;
  border: 1px solid #ded6c9;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

#bsBestSellers .bsTop__pillNav {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  color: #6b5e52;
  display: flex;
  align-items: center;
  justify-content: center;
}

#bsBestSellers .bsTop__pillNav:disabled {
  opacity: .35;
  cursor: not-allowed;
}

#bsBestSellers .bsTop__pillTab {
  border: 0 !important;
  background: transparent !important;
  cursor: pointer;
  padding: 10px 38px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 800;
  color: #5f5348;
  line-height: 1;
  white-space: nowrap;
}

#bsBestSellers .bsTop__pillTab.is-active {
  background: #fff !important;
  border: 1px solid #d7cbb9 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  color: #2f2a24;
}

/* ===== Carousel ===== */
#bsBestSellers .bs__rail {
  position: relative;
}

#bsBestSellers .bs__viewport {
  overflow: hidden;
}

#bsBestSellers .bs__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--bs-gap);
  transition: transform .25s ease;
  will-change: transform;
}

#bsBestSellers .bs__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid #e7e2d7;
  background: rgba(255,255,255,.92);
  cursor: pointer;
  font-size: 20px;
  color: #4a4034;
  display: flex;
  align-items: center;
  justify-content: center;
}

#bsBestSellers .bs__nav--prev {
  left: 6px;
}

#bsBestSellers .bs__nav--next {
  right: 6px;
}

#bsBestSellers .bs__nav:disabled {
  opacity: .35;
  cursor: not-allowed;
}

/* ===== Product Card ===== */
#bsBestSellers .card {
  flex: 0 0 calc((100% - var(--bs-gap) * 3) / 4);
  min-width: 0;
  border: 1px solid #e0d8cb;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f3ed;
  display: flex;
  flex-direction: column;
  color: #5a5044;
}

/* ===== Images ===== */
#bsBestSellers .card__media {
  height: 220px;
  background: #e9e3d8;
  overflow: hidden;
  display: block;
  position: relative;
  text-decoration: none;
}

#bsBestSellers .card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .22s ease;
}

#bsBestSellers .card__img--main {
  opacity: 1;
}

#bsBestSellers .card__img--alt {
  opacity: 0;
}

/* Desktop hover: switch to second image */
@media (hover:hover) and (pointer:fine) {
  #bsBestSellers .card:hover .card__img--main {
    opacity: 0;
  }

  #bsBestSellers .card:hover .card__img--alt {
    opacity: 1;
  }
}

/* ===== Card Body ===== */
#bsBestSellers .card__body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Product Information */
#bsBestSellers .card__product-info {
  padding: 16px 16px 12px;
  background: #f7f3ed;
  text-align: center;
  border-bottom: 1px solid #e0d8cb;
}

#bsBestSellers .card__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #2f2a24;
  line-height: 1.2;
}

#bsBestSellers .card__sub {
  margin: 0;
  font-size: 14px;
  color: #6b5e52;
  line-height: 1.3;
}

/* ===== Price Area ===== */
#bsBestSellers .card__price-area {
  padding: 16px;
  background: #f2ede6;
  text-align: center;
  border-top: 1px solid #e0d8cb;
  border-bottom: 1px solid #e0d8cb;
}

#bsBestSellers .card__priceLabel {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  color: #5a5044;
}

#bsBestSellers .card__price {
  margin: 0 0 10px;
  font-size: 36px;
  font-weight: 900;
  color: #2f2a24;
  line-height: 1.1;
}

#bsBestSellers .card__volume {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #8b5a2b;
  line-height: 1.3;
}

#bsBestSellers .card__volume-main {
  display: block;
}

/* ===== Features ===== */
#bsBestSellers .card__features {
  padding: 12px 16px;
  background: #f7f3ed;
  flex: 1;
  border-bottom: 1px solid #e0d8cb;
}

#bsBestSellers .card__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #5a5044;
}

#bsBestSellers .card__bullets li {
  margin-bottom: 6px;
  line-height: 1.4;
  text-align: center;
}

#bsBestSellers .card__bullets li:last-child {
  margin-bottom: 0;
}

#bsBestSellers .card__bullets li::before {
  content: "•";
  margin-right: 6px;
  color: #8b5a2b;
  opacity: .8;
}

/* ===== Button ===== */
#bsBestSellers .card__actions {
  padding: 12px 16px;
  background: #f7f3ed;
}

#bsBestSellers .btn {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #8b5a2b;
  background: #fff;
  color: #8b5a2b;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all .2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

#bsBestSellers .btn:hover {
  background: #8b5a2b;
  color: #fff;
  border-color: #704a22;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
  transform: translateY(-1px);
}

/* ===== Tablet: 2 Products ===== */
@media (max-width: 900px) {
  #bsBestSellers .card {
    flex-basis: calc((100% - var(--bs-gap)) / 2);
  }

  #bsBestSellers .card__media {
    height: 240px;
  }

  #bsBestSellers .bsTop__title {
    font-size: 36px;
  }

  #bsBestSellers .bsTop__subtitle {
    font-size: 20px;
  }

  #bsBestSellers .bsTop__pillTab {
    font-size: 20px;
    padding: 10px 28px;
  }

  #bsBestSellers .card__priceLabel {
    font-size: 16px;
  }

  #bsBestSellers .card__price {
    font-size: 32px;
  }

  #bsBestSellers .card__volume {
    font-size: 18px;
  }

  #bsBestSellers .btn {
    height: 40px;
    font-size: 14px;
  }
}

/* ===== Mobile: 2 Products ===== */
@media (max-width: 520px) {
  #bsBestSellers .bs__inner {
    padding: 0 8px;
  }

  #bsBestSellers .card {
    flex-basis: calc((100% - var(--bs-gap)) / 2);
  }

  #bsBestSellers .card__media {
    height: 160px;
  }

  #bsBestSellers .bsTop__title {
    font-size: 24px;
  }

  #bsBestSellers .bsTop__subtitle {
    font-size: 18px;
    text-align: center;
  }

  #bsBestSellers .bsTop__pill {
    gap: 6px;
    padding: 8px;
  }

  #bsBestSellers .bsTop__pillTab {
    font-size: 18px;
    padding: 10px 18px;
  }

  #bsBestSellers .bsTop__pillNav {
    width: 30px;
    height: 30px;
  }

  #bsBestSellers .bs__nav {
    width: 34px;
    height: 34px;
  }

  #bsBestSellers .card__title {
    font-size: 16px;
  }

  #bsBestSellers .card__sub {
    font-size: 12px;
  }

  #bsBestSellers .card__priceLabel {
    font-size: 14px;
  }

  #bsBestSellers .card__price {
    font-size: 28px;
  }

  #bsBestSellers .card__volume {
    font-size: 15px;
  }

  #bsBestSellers .card__bullets {
    font-size: 12px;
  }

  #bsBestSellers .btn {
    height: 38px;
    font-size: 13px;
  }
}

/* ===== Mobile: 3 Products on One Screen ===== */
@media (max-width: 520px) {
  #bsBestSellers.is-m3 {
    --bs-gap: 12px;
  }

  #bsBestSellers.is-m3 .card {
    flex-basis: calc((100% - var(--bs-gap) * 2) / 3);
  }

  #bsBestSellers.is-m3 .card__media {
    height: 120px;
  }

  #bsBestSellers.is-m3 .card__product-info,
  #bsBestSellers.is-m3 .card__price-area,
  #bsBestSellers.is-m3 .card__features,
  #bsBestSellers.is-m3 .card__actions {
    padding: 8px 7px;
  }

  #bsBestSellers.is-m3 .card__title {
    font-size: 13px;
    line-height: 1.2;
    margin-bottom: 3px;
  }

  #bsBestSellers.is-m3 .card__sub {
    font-size: 10px;
    line-height: 1.3;
  }

  #bsBestSellers.is-m3 .card__priceLabel {
    font-size: 11px;
    margin-bottom: 4px;
  }

  #bsBestSellers.is-m3 .card__price {
    font-size: 21px;
    margin-bottom: 5px;
    letter-spacing: -.4px;
  }

  #bsBestSellers.is-m3 .card__volume {
    font-size: 11px;
    line-height: 1.25;
  }

  #bsBestSellers.is-m3 .card__bullets {
    font-size: 9px;
    line-height: 1.25;
  }

  #bsBestSellers.is-m3 .card__bullets li {
    margin-bottom: 4px;
    line-height: 1.3;
  }

  #bsBestSellers.is-m3 .card__bullets li::before {
    margin-right: 3px;
  }

  #bsBestSellers.is-m3 .btn {
    height: 32px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
  }
}

/* Small phone adjustment */
@media (max-width: 375px) {
  #bsBestSellers .bsTop__pill {
    gap: 3px;
    padding: 7px 5px;
  }

  #bsBestSellers .bsTop__pillTab {
    padding: 9px 13px;
    font-size: 16px;
  }

  #bsBestSellers.is-m3 {
    --bs-gap: 8px;
  }

  #bsBestSellers.is-m3 .card__price {
    font-size: 19px;
  }

  #bsBestSellers.is-m3 .card__volume {
    font-size: 10px;
  }
}
