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

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

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

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

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

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

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

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

.bp-newproducts-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-newproducts-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-newproducts-arrow {
  fill: currentColor;
  height: 0.95rem;
  width: 0.95rem;
}

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

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

.bp-newproducts-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-newproducts-is-dragging .bp-newproducts-viewport {
  cursor: grabbing;
}

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

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

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

.bp-newproducts-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-newproducts-card:hover,
.bp-newproducts-card:focus {
  color: #1f1f1f;
  text-decoration: none;
}

.bp-newproducts-badge {
  align-items: center;
  background: #0aa777;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  min-width: 44px;
  padding: 0 0.45rem;
  position: absolute;
  right: 0.55rem;
  top: 0.55rem;
  z-index: 2;
}

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

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

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

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

.bp-newproducts-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-newproducts-pricing {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
  margin-top: auto;
  width: 100%;
}

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

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

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

.bp-newproducts-discount {
  align-items: center;
  background: #0aa777;
  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-newproducts-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-newproducts-control[disabled] {
  cursor: default;
  opacity: 0.35;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

.bp-newproducts-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-newproducts-viewall-card:hover,
.bp-newproducts-viewall-card:focus {
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.bp-newproducts-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-newproducts-viewall-card-text {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.5;
}

/* Lazy loading skeleton */
.bp-newproducts-lazy .bp-newproducts-shell {
  min-height: 260px;
}

.bp-newproducts-skeleton-slider {
  overflow: hidden;
  padding: 0.5rem 0;
}

.bp-newproducts-skeleton-track {
  direction: rtl;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  justify-content: flex-start;
  margin-left: auto;
  margin-right: 0;
}

.bp-newproducts-skeleton-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);
  display: flex;
  flex: 0 0 50%;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0 0.25rem;
  min-height: 248px;
  padding: 0.65rem;
  position: relative;
}

.bp-newproducts-skeleton-badge,
.bp-newproducts-skeleton-image,
.bp-newproducts-skeleton-line,
.bp-newproducts-skeleton-discount,
.bp-newproducts-skeleton-price {
  animation: bp-newproducts-skeleton-pulse 1.25s ease-in-out infinite;
  background: linear-gradient(90deg, rgba(230, 234, 238, 0.95), rgba(248, 250, 252, 0.95), rgba(230, 234, 238, 0.95));
  background-size: 220% 100%;
  display: block;
}

.bp-newproducts-skeleton-badge {
  border-radius: 999px;
  height: 24px;
  position: absolute;
  right: 0.65rem;
  top: 0.65rem;
  width: 48px;
}

.bp-newproducts-skeleton-image {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  margin: 1.15rem auto 0.25rem;
  max-width: 140px;
  width: 78%;
}

.bp-newproducts-skeleton-line {
  border-radius: 999px;
  height: 0.75rem;
}

.bp-newproducts-skeleton-line-brand {
  width: 38%;
}

.bp-newproducts-skeleton-line-title {
  height: 1rem;
  width: 82%;
}

.bp-newproducts-skeleton-price-row {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  justify-content: space-between;
  margin-top: auto;
}

.bp-newproducts-skeleton-discount {
  border-radius: 9px;
  height: 26px;
  width: 44px;
}

.bp-newproducts-skeleton-price {
  border-radius: 999px;
  height: 0.95rem;
  width: 44%;
}

.bp-newproducts-error {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  color: #333;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.8;
  margin: 0.75rem 0;
  padding: 1rem;
  text-align: center;
}

@keyframes bp-newproducts-skeleton-pulse {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

@media (min-width: 768px) {
  .bp-newproducts-skeleton-card {
    flex-basis: 25%;
    max-width: calc(25% - 0.5rem);
  }
}

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

