.bp-onsalesproduct {
  direction: rtl;
  margin: 2rem 0;
  text-align: right;
}

.bp-onsalesproduct,
.bp-onsalesproduct * {
  box-sizing: border-box;
}

.bp-onsalesproduct-shell {
  background: #e72b61;
  border-radius: 14px;
  overflow: hidden;
  padding: 0 0.5rem 0.75rem;
}

.bp-onsalesproduct-header {
  padding: 0.75rem 0.5rem 0.25rem;
}

.bp-onsalesproduct-header-link {
  align-items: center;
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 44px;
  text-decoration: none;
  width: 100%;
}

.bp-onsalesproduct-header-link:hover,
.bp-onsalesproduct-header-link:focus {
  color: #fff;
  text-decoration: none;
}

.bp-onsalesproduct-heading {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bp-onsalesproduct-heading strong {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
}

.bp-onsalesproduct-kicker {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.8;
  padding: 0 0.6rem;
}

.bp-onsalesproduct-viewall {
  align-items: center;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.35rem;
  white-space: nowrap;
}

.bp-onsalesproduct-arrow {
  fill: currentColor;
  height: 0.95rem;
  width: 0.95rem;
}

.bp-onsalesproduct-slider {
  direction: rtl;
  overflow: hidden;
  padding: 0.5rem 0;
  position: relative;
}

.bp-onsalesproduct-viewport {
  cursor: grab;
  direction: rtl;
  overflow: hidden;
  overscroll-behavior: auto;
  touch-action: pan-y;
  width: 100%;
}

.bp-onsalesproduct-track {
  direction: rtl;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  justify-content: flex-start;
  margin-left: auto;
  margin-right: 0;
  transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.bp-onsalesproduct-is-dragging .bp-onsalesproduct-viewport {
  cursor: grabbing;
}

.bp-onsalesproduct-is-dragging .bp-onsalesproduct-track {
  user-select: none;
}

.bp-onsalesproduct-track img {
  -webkit-user-drag: none;
  user-drag: none;
}

.bp-onsalesproduct-slide {
  direction: rtl;
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 0.25rem;
}

.bp-onsalesproduct-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
  color: #1f1f1f;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  min-height: 248px;
  padding: 0.55rem;
  position: relative;
  text-decoration: none;
}

.bp-onsalesproduct-card:hover,
.bp-onsalesproduct-card:focus {
  color: #1f1f1f;
  text-decoration: none;
}

.bp-onsalesproduct-image-wrap {
  align-items: center;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 140px;
  width: 100%;
}

.bp-onsalesproduct-image {
  display: block;
  height: 100%;
  max-height: 140px;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.bp-onsalesproduct-no-image {
  background: #f4f4f4;
  border-radius: 10px;
  display: block;
  height: 100%;
  width: 100%;
}

.bp-onsalesproduct-brand {
  color: #777;
  display: block;
  font-size: 0.75rem;
  line-height: 1.6;
  min-height: 1.2rem;
}

.bp-onsalesproduct-name {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #111;
  display: -webkit-box;
  flex: 1 1 auto;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.65;
  margin: 0;
  min-height: 2.55rem;
  overflow: hidden;
}

.bp-onsalesproduct-pricing {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
  margin-top: auto;
  width: 100%;
}

.bp-onsalesproduct-pricebox {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bp-onsalesproduct-regular-price {
  color: #777;
  font-size: 0.72rem;
  line-height: 1.2;
  text-decoration: line-through;
}

.bp-onsalesproduct-price {
  color: #111;
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1.4;
}

.bp-onsalesproduct-discount {
  align-items: center;
  background: #d91535;
  border-radius: 7px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  min-width: 34px;
  padding: 0 0.25rem;
}

.bp-onsalesproduct-control {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: #333;
  cursor: pointer;
  display: none;
  height: 34px;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  z-index: 3;
}

.bp-onsalesproduct-control[disabled] {
  cursor: default;
  opacity: 0.35;
}

.bp-onsalesproduct-control-icon {
  fill: currentColor;
  height: 24px;
  width: 24px;
}

.bp-onsalesproduct-prev {
  left: auto;
  right: 0.7rem;
}

.bp-onsalesproduct-next {
  left: 0.7rem;
  right: auto;
}

@media (min-width: 768px) and (orientation: portrait) {
  .bp-onsalesproduct-slide {
    flex-basis: 33.333333%;
    max-width: 33.333333%;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) and (orientation: landscape) {
  .bp-onsalesproduct-slide {
    flex-basis: 25%;
    max-width: 25%;
  }
}

@media (min-width: 992px) {
  .bp-onsalesproduct-shell {
    padding: 0.5rem 0.75rem 1rem;
  }

  .bp-onsalesproduct-header {
    padding: 0.5rem 0.5rem 0.65rem;
  }

  .bp-onsalesproduct-heading strong {
    font-size: 1.35rem;
  }

  .bp-onsalesproduct-card {
    min-height: 290px;
    padding: 0.75rem;
  }

  .bp-onsalesproduct-brand,
  .bp-onsalesproduct-name,
  .bp-onsalesproduct-price {
    font-size: 0.9rem;
  }

  .bp-onsalesproduct-regular-price {
    font-size: 0.82rem;
  }

  .bp-onsalesproduct-discount {
    border-radius: 9px;
    font-size: 0.9rem;
    height: 26px;
    min-width: 44px;
  }

  .bp-onsalesproduct-control {
    display: flex;
  }
}

@media (min-width: 1200px) {
  .bp-onsalesproduct-slide {
    flex-basis: 20%;
    max-width: 20%;
  }
}


.bp-onsalesproduct-viewall-slide {
  display: flex;
}

.bp-onsalesproduct-viewall-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  justify-content: center;
  min-height: 220px;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  width: 100%;
}

.bp-onsalesproduct-viewall-card:hover,
.bp-onsalesproduct-viewall-card:focus {
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.bp-onsalesproduct-viewall-card-icon {
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 50%;
  fill: none;
  height: 2.75rem;
  padding: 0.62rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
  width: 2.75rem;
}

.bp-onsalesproduct-viewall-card-text {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.5;
}

/* Lazy app-like loading state: product data is fetched only after viewport entry. */
.bp-onsalesproduct-lazy {
  min-height: 20rem;
}

.bp-onsalesproduct-lazy.is-loading {
  pointer-events: none;
}

.bp-onsalesproduct-skeleton-slider {
  direction: rtl;
  overflow: hidden;
  padding: 0.5rem 0;
  width: 100%;
}

.bp-onsalesproduct-skeleton-track {
  direction: rtl;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
}

.bp-onsalesproduct-skeleton-card {
  direction: rtl;
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 0.25rem;
}

.bp-onsalesproduct-skeleton-card,
.bp-onsalesproduct-skeleton-image,
.bp-onsalesproduct-skeleton-line,
.bp-onsalesproduct-skeleton-price-row,
.bp-onsalesproduct-skeleton-discount,
.bp-onsalesproduct-skeleton-price {
  display: block;
}

.bp-onsalesproduct-skeleton-card::before,
.bp-onsalesproduct-skeleton-image,
.bp-onsalesproduct-skeleton-line,
.bp-onsalesproduct-skeleton-discount,
.bp-onsalesproduct-skeleton-price {
  animation: bp-onsalesproduct-skeleton 1.15s ease-in-out infinite;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72) 25%, rgba(255, 255, 255, 0.93) 37%, rgba(255, 255, 255, 0.72) 63%);
  background-size: 400% 100%;
}

.bp-onsalesproduct-skeleton-card {
  min-height: 248px;
  position: relative;
}

.bp-onsalesproduct-skeleton-card::before {
  border-radius: 10px;
  bottom: 0;
  content: '';
  left: 0.25rem;
  position: absolute;
  right: 0.25rem;
  top: 0;
  z-index: 0;
}

.bp-onsalesproduct-skeleton-image,
.bp-onsalesproduct-skeleton-line,
.bp-onsalesproduct-skeleton-price-row {
  position: relative;
  z-index: 1;
}

.bp-onsalesproduct-skeleton-image {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  margin: 0.55rem auto 0.8rem;
  max-width: 140px;
  width: calc(100% - 1.1rem);
}

.bp-onsalesproduct-skeleton-line {
  border-radius: 999px;
  height: 0.75rem;
  margin: 0.55rem 0.7rem 0;
}

.bp-onsalesproduct-skeleton-line-brand {
  width: 42%;
}

.bp-onsalesproduct-skeleton-line-title {
  height: 0.85rem;
  width: 78%;
}

.bp-onsalesproduct-skeleton-price-row {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
  margin: 1rem 0.7rem 0;
}

.bp-onsalesproduct-skeleton-discount {
  border-radius: 7px;
  height: 22px;
  width: 34px;
}

.bp-onsalesproduct-skeleton-price {
  border-radius: 999px;
  height: 0.9rem;
  width: 5rem;
}

.bp-onsalesproduct-error {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 10px;
  color: #333;
  margin: 0.75rem 0;
  padding: 1rem;
}

@keyframes bp-onsalesproduct-skeleton {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

@media (min-width: 768px) and (orientation: portrait) {
  .bp-onsalesproduct-skeleton-card {
    flex-basis: 33.333333%;
    max-width: 33.333333%;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) and (orientation: landscape) {
  .bp-onsalesproduct-skeleton-card {
    flex-basis: 25%;
    max-width: 25%;
  }
}

@media (min-width: 992px) {
  .bp-onsalesproduct-skeleton-card {
    min-height: 290px;
  }
}

@media (min-width: 1200px) {
  .bp-onsalesproduct-skeleton-card {
    flex-basis: 20%;
    max-width: 20%;
  }
}
