/* DreamyShelf Product Carousel 1.2.4 - progressive, dependency-free scroll-snap layout. */
.ds-pc-slot {
  display: block;
  width: 100%;
  min-height: 1px;
}

.ds-products-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  --ds-pc-space: 12px;
  --ds-pc-spv-m: 2;
  --ds-pc-spv-t: 3;
  --ds-pc-spv-d: 4;
  --ds-pc-card-radius: 22px;
  --ds-pc-image-radius: 18px;
  --ds-pc-card-padding: 8px;
  --ds-pc-shadow-alpha: .06;
  --ds-pc-shadow-alpha-h: .12;
  --ds-pc-hover-scale: 1.015;
  --ds-pc-title-color: #041e42;
  --ds-pc-author-color: #6c757d;
}

.ds-products-carousel[hidden] {
  display: none !important;
}

.ds-products-carousel .ds-pc__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 6px 10px;
}

.ds-products-carousel .ds-pc__title {
  margin: 0;
  color: var(--ds-pc-title-color);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.ds-products-carousel .ds-pc__view-all {
  flex: 0 0 auto;
  color: var(--ds-pc-title-color);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.ds-products-carousel .ds-pc__view-all:hover,
.ds-products-carousel .ds-pc__view-all:focus-visible {
  text-decoration: underline;
}

.ds-products-carousel .ds-pc-swiper-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.ds-products-carousel .ds-pc__body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.ds-products-carousel .ds-pc-swiper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 6px 12px;
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.ds-products-carousel .ds-pc-swiper::-webkit-scrollbar {
  display: none;
}

.ds-products-carousel .swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--ds-pc-space);
  width: 100%;
  min-width: 0;
  transform: none !important;
  box-sizing: border-box;
}

.ds-products-carousel .swiper-slide {
  display: flex;
  flex: 0 0 calc((100% - (var(--ds-pc-space) * (var(--ds-pc-spv-d) - 1))) / var(--ds-pc-spv-d));
  max-width: calc((100% - (var(--ds-pc-space) * (var(--ds-pc-spv-d) - 1))) / var(--ds-pc-spv-d));
  height: auto;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.ds-products-carousel.ds-pc-centered .swiper-slide {
  scroll-snap-align: center;
}

.ds-products-carousel.ds-pc-free .ds-pc-swiper {
  scroll-snap-type: none;
}

.ds-products-carousel .ds-pc-swiper.ds-pc-grab {
  cursor: grab;
}

.ds-products-carousel .ds-pc-swiper.ds-pc-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.ds-products-carousel.ds-pc-remote .ds-pc-swiper-wrap {
  min-height: 320px;
}

.ds-products-carousel .ds-pc-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #53606d;
}

.ds-products-carousel .ds-pc-loading__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(4, 30, 66, .18);
  border-top-color: rgba(4, 30, 66, .7);
  border-radius: 50%;
  animation: dsPcSpin .8s linear infinite;
}

.ds-products-carousel .ds-pc-loading__text {
  font-size: 14px;
}

@keyframes dsPcSpin {
  to { transform: rotate(360deg); }
}

.ds-products-carousel .ds-pc-card {
  display: flex;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: visible;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

.ds-products-carousel .ds-pc-card__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: var(--ds-pc-card-padding);
  overflow: hidden;
  border-radius: var(--ds-pc-card-radius);
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, var(--ds-pc-shadow-alpha));
  transition: transform .22s ease, box-shadow .22s ease;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .ds-products-carousel .swiper-slide:hover .ds-pc-card__inner {
    transform: scale(var(--ds-pc-hover-scale));
    box-shadow: 0 8px 22px rgba(0, 0, 0, var(--ds-pc-shadow-alpha-h));
  }
}

.ds-products-carousel .ds-pc-thumb-link {
  display: block;
  width: 100%;
  min-width: 0;
}

.ds-products-carousel .woocommerce-loop-product__thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  aspect-ratio: var(--ds-pc-thumb-ar, 2 / 3);
  border-radius: var(--ds-pc-image-radius);
  background: #f3f5f7;
}

.ds-products-carousel .woocommerce-loop-product__thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .ds-products-carousel .swiper-slide:hover .woocommerce-loop-product__thumbnail img {
    transform: scale(1.03);
  }
}

.ds-products-carousel .woocommerce-loop-product__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding-top: 10px;
}

.ds-products-carousel .bwgb-products-carousel__product-title,
.ds-products-carousel .ds-pc-title {
  display: -webkit-box;
  min-width: 0;
  margin: 0 0 4px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ds-products-carousel .bwgb-products-carousel__product-title a,
.ds-products-carousel .ds-pc-title a {
  color: var(--ds-pc-title-color);
  font-weight: 600;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.ds-products-carousel .bwgb-products-carousel__product-title a:hover,
.ds-products-carousel .ds-pc-title a:hover {
  text-decoration: underline;
}

.ds-products-carousel .woocommerce-loop-product__author {
  margin: 0 0 6px;
  color: var(--ds-pc-author-color);
  font-size: 13px;
  line-height: 1.35;
}

.ds-products-carousel .woocommerce-loop-product__author a {
  color: inherit;
  text-decoration: none;
}

.ds-products-carousel .bwgb-products-carousel__product-price {
  display: flex;
  justify-content: center;
  margin: 6px 0 10px;
  text-align: center;
}

.ds-products-carousel .bwgb-products-carousel__product-price .price {
  font-weight: 700;
}

.ds-products-carousel .ds-pc-stock {
  margin: 6px 0 8px;
}

.ds-products-carousel .ds-pc-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.ds-products-carousel .ds-pc-actions form,
.ds-products-carousel .ds-pc-actions .cart {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
}

.ds-products-carousel .ds-pc-actions .button,
.ds-products-carousel .ds-pc-actions .add_to_cart_button,
.ds-products-carousel .ds-pc-actions .single_add_to_cart_button {
  margin: 0;
}

.ds-products-carousel .ds-pc-wishlist {
  display: inline-flex;
}

.ds-products-carousel .ds-pc-wishlist a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(4, 30, 66, .18);
  border-radius: 50%;
  background: #fff;
  color: var(--ds-pc-title-color);
  font-size: 0;
  line-height: 0;
  text-decoration: none;
}

.ds-products-carousel .ds-pc-wishlist svg {
  display: block;
  width: 18px;
  height: 18px;
}

.ds-products-carousel .swiper-button-prev,
.ds-products-carousel .swiper-button-next {
  position: absolute;
  z-index: 20;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(4, 30, 66, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
  color: var(--ds-pc-title-color);
  cursor: pointer;
  appearance: none;
}

.ds-products-carousel .swiper-button-prev { left: 10px; }
.ds-products-carousel .swiper-button-next { right: 10px; }

.ds-products-carousel .swiper-button-prev::after,
.ds-products-carousel .swiper-button-next::after {
  content: '';
  display: block;
  width: 9px;
  height: 9px;
  transform: rotate(-45deg);
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.ds-products-carousel .swiper-button-prev::after {
  transform: rotate(135deg);
}

.ds-products-carousel .swiper-button-prev:focus-visible,
.ds-products-carousel .swiper-button-next:focus-visible,
.ds-products-carousel .ds-pc-pagination__dot:focus-visible {
  outline: 2px solid #087fbd;
  outline-offset: 2px;
}

.ds-products-carousel .swiper-button-prev:disabled,
.ds-products-carousel .swiper-button-next:disabled {
  visibility: hidden;
  pointer-events: none;
}

.ds-products-carousel .ds-pc-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 18px;
  margin-top: 6px;
}

.ds-products-carousel .ds-pc-pagination__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(4, 30, 66, .25);
  cursor: pointer;
  appearance: none;
}

.ds-products-carousel .ds-pc-pagination__dot.is-active {
  background: var(--ds-pc-title-color);
  transform: scale(1.25);
}

@media (max-width: 1023px) {
  .ds-products-carousel .swiper-slide {
    flex-basis: calc((100% - (var(--ds-pc-space) * (var(--ds-pc-spv-t) - 1))) / var(--ds-pc-spv-t));
    max-width: calc((100% - (var(--ds-pc-space) * (var(--ds-pc-spv-t) - 1))) / var(--ds-pc-spv-t));
  }
}

@media (max-width: 639px) {
  .ds-products-carousel .ds-pc__head {
    align-items: flex-start;
    margin-bottom: 8px;
  }

  .ds-products-carousel .ds-pc__title {
    font-size: 18px;
  }

  .ds-products-carousel .ds-pc__view-all {
    font-size: 13px;
  }

  .ds-products-carousel .swiper-slide {
    flex-basis: calc((100% - (var(--ds-pc-space) * (var(--ds-pc-spv-m) - 1))) / var(--ds-pc-spv-m));
    max-width: calc((100% - (var(--ds-pc-space) * (var(--ds-pc-spv-m) - 1))) / var(--ds-pc-spv-m));
  }

  .ds-products-carousel .swiper-button-prev,
  .ds-products-carousel .swiper-button-next {
    width: 38px;
    height: 38px;
  }

  .ds-products-carousel .swiper-button-prev { left: 6px; }
  .ds-products-carousel .swiper-button-next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .ds-products-carousel .ds-pc-swiper {
    scroll-behavior: auto;
  }

  .ds-products-carousel .ds-pc-card__inner,
  .ds-products-carousel .woocommerce-loop-product__thumbnail img,
  .ds-products-carousel .ds-pc-loading__spinner {
    animation: none;
    transition: none;
  }
}
