@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&display=swap");

/* ── Widget outer wrapper (Elementor widget) ── */
.wcs-outer {
  position: relative;
  overflow: hidden;
}

.wcs-widget-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── Shortcode outer wrapper ── */
.outer {
  padding: 0;
  margin: 0;
  color: white;
}

.container-sl {
  width: 100%;
  min-height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.swiper {
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
}

.swiper .swiper-slide {
  position: relative;
  width: var(--wc-card-width, 300px);
  height: var(--wc-card-height, 400px);
  transition: all 0.8s cubic-bezier(0.25, 0.4, 0.45, 1.4);
  border-radius: 15px;
  background: linear-gradient(to right, #c31432, #240b36);
  overflow: hidden;
}

.swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Card color overlay ── */
.swiper .swiper-slide .slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

/* ── Info block — base ── */
.swiper .swiper-slide .info {
  width: 100%;
  position: absolute;
  z-index: 10;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Horizontal alignment — driven by class added in render */
.swiper .swiper-slide .info.info-align-right  { align-items: flex-end;   text-align: right; }
.swiper .swiper-slide .info.info-align-center { align-items: center;      text-align: center; }
.swiper .swiper-slide .info.info-align-left   { align-items: flex-start;  text-align: left; }

/* Vertical position variants */
.swiper .swiper-slide .info--bottom {
  bottom: 0;
  top: auto;
  box-shadow: inset 0 -120px 120px -120px black, inset 0 -120px 120px -120px black;
}

.swiper .swiper-slide .info--top {
  top: 0;
  bottom: auto;
  box-shadow: inset 0 120px 120px -120px black;
}

.swiper .swiper-slide .info--center {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  width: calc(100% - 30px);
  left: 15px;
  border-radius: 8px;
}

/* ── Product title ── */
.swiper .swiper-slide .info h4 {
  margin: 0;
  padding-bottom: 3px;
  color: #fff;
  font-size: 18px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* ── Price ── */
.swiper .swiper-slide .info .type {
  color: #fff;
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}

/* ── CTA button — hidden by default, slides up on hover ── */
.swiper .swiper-slide .slide-cta {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 18px;
  background-color: #ffffff;
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  pointer-events: none;
}

.swiper .swiper-slide:hover .slide-cta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.swiper .swiper-slide:hover .slide-cta:hover {
  /* hover styles applied via Elementor selectors */
}

/* ── Active slide — remove grayscale (Elementor control handles non-active) ── */
.swiper .swiper-slide-active {
  filter: none !important;
}

/* ── Pagination ── */
.swiper .swiper-pagination-bullet-active {
  background-color: #c31432 !important;
}

.swiper .swiper-pagination-bullet {
  background-color: grey;
}

/* ── Dynamic fields ── */
.wcs-rating {
  margin: 4px 0;
}
.wcs-rating .star-rating {
  float: none;
  display: inline-block;
}
.wcs-short-desc {
  margin: 5px 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}
.wcs-sku {
  display: block;
  font-size: 11px;
  margin: 3px 0;
  opacity: 0.75;
}
.wcs-stock {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  margin: 4px 0;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,0.15);
}
.wcs-in-stock  { color: #4ade80; }
.wcs-out-of-stock { color: #f87171; }
.wcs-categories {
  display: block;
  font-size: 11px;
  margin: 3px 0;
  opacity: 0.7;
}
.wcs-categories a {
  color: inherit;
  text-decoration: none;
}

/* ── Navigation buttons ── */
.swiper .swiper-button-prev,
.swiper .swiper-button-next {
  top: 50%;
  width: 40px;
  height: 40px;
  background: white;
  border: 3px solid #240b36;
  border-radius: 50%;
  color: #c31432;
  font-weight: 700;
  outline: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.swiper .swiper-button-prev::after,
.swiper .swiper-button-next::after {
  font-size: 18px;
}

.swiper .swiper-button-prev:after { position: relative; left: -1px; }
.swiper .swiper-button-next:after { position: relative; left: 1px; }

.swiper .swiper-button-prev,
.swiper .swiper-container-rtl .swiper-button-next {
  left: 10px;
  right: auto;
}

.swiper .swiper-button-next,
.swiper .swiper-container-rtl .swiper-button-prev {
  right: 10px;
  left: auto;
}

.swiper .swiper-button-prev.swiper-button-disabled,
.swiper .swiper-button-next.swiper-button-disabled {
  opacity: 0;
  cursor: auto;
  pointer-events: none;
}
