/* Only the Store Locator shortcode. Never use shared .wc-carousel rules. */
.store-locator-selected-slider {
  display: block;
  position: static;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 24px 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  clear: both;
}
.store-locator-selected-slider > .swiper {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 12px 8px 26px;
  box-sizing: border-box;
}
.store-locator-selected-slider .swiper-wrapper { align-items: stretch; }
.store-locator-selected-slider .swiper-slide {
  display: flex;
  flex-shrink: 0;
  width: 300px;
  max-width: calc(100% - 16px);
  height: auto;
  min-width: 0;
  box-sizing: border-box;
}
.store-locator-selected-slider .wc-card-wrap { width: 100%; min-width: 0; }
.store-locator-selected-slider .wc-card { height: 100%; }
.store-locator-selected-slider .swiper-button-prev,
.store-locator-selected-slider .swiper-button-next {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(60,137,92,.95);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.store-locator-selected-slider .swiper-button-prev::after,
.store-locator-selected-slider .swiper-button-next::after {
  font-size: 12px; color: white; font-weight: 700;
}

/* ------------------ Sale Ribbon ------------------ */
.store-locator-selected-slider .wc-card-wrap {
  position: relative;
}

.store-locator-selected-slider .wc-sale-ribbon {
  position: absolute;
  top: -13px;
  left: -10px;
  z-index: 20;
  width: 130px; /* adjust size */
  height: auto;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 768px) {
  .store-locator-selected-slider .wc-sale-ribbon {
    width: 115px;
    top: -11px;
    left: -9px;
  }
}

/* ------------------ Save 26% Badge ------------------ */
.store-locator-selected-slider .wc-save-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 25;

  background: #b61415;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 10px;
  line-height: 1;

  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);

  pointer-events: none;
  user-select: none;
}

@media (max-width: 768px) {
  .store-locator-selected-slider .wc-save-badge {
    top: 12px;
    right: 12px;
    font-size: 10px;
    padding: 9px 14px;
  }
}


/* ------------------ Cards ------------------ */
.store-locator-selected-slider .wc-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.store-locator-selected-slider .wc-card__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #f2f2f2;
}


/* Product content */

.store-locator-selected-slider .wc-prod-body {
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.store-locator-selected-slider .wc-prod-title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  margin: 0;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.25em * 2);
}

.store-locator-selected-slider .wc-prod-title-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}

.store-locator-selected-slider .wc-prod-title-link:hover .wc-prod-title {
  text-decoration: none;
}

.store-locator-selected-slider .wc-prod-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}

.store-locator-selected-slider .wc-prod-price {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  color: #2b1b12;
  white-space: nowrap;
}
.store-locator-selected-slider .wc-prod-price del {
  opacity: 0.45;
  font-weight: 700;
  margin-left: 8px;
  font-size: 16px;
}
.store-locator-selected-slider .wc-prod-price ins {
  text-decoration: none;
}

/* ✅ Out of stock text */
.store-locator-selected-slider .wc-out-of-stock {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  opacity: 0.75;
  color: #2b1b12;
  white-space: nowrap;
}

.store-locator-selected-slider .wc-prod-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  background: #3c895c;
  color: #fff !important;
  text-decoration: none !important;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    filter 0.12s ease;
  white-space: nowrap;
}
.store-locator-selected-slider .wc-prod-btn:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}
.store-locator-selected-slider .wc-prod-btn:active {
  transform: translateY(0);
}

.store-locator-selected-slider .wc-prod-btn.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.store-locator-selected-slider .wc-prod-btn.is-preorder {
  background: #f6c97d; /* yellow */
  color: #2b1b12 !important; /* dark text for contrast */
}

.store-locator-selected-slider .wc-prod-btn.is-preorder:hover {
  filter: brightness(0.95);
}

/* ✅ Mobile: keep button next to price + make it smaller */
@media (max-width: 768px) {
  .store-locator-selected-slider .wc-prod-meta {
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }
  .store-locator-selected-slider .wc-prod-price {
    font-size: 16px !important;
  }
  .store-locator-selected-slider .wc-prod-btn {
    padding: 8px 10px !important;
    font-size: 11px !important;
    letter-spacing: 0.05em !important;
    border-radius: 6px !important;
  }
}




/* =====================================================
   Blocksy / WordPress content alignment
   Uses the theme's content width, not a hardcoded width.
   ===================================================== */
.entry-content.is-layout-constrained > .store-locator-selected-slider,
.entry-content.is-layout-constrained .store-locator-selected-slider {
  width: 100% !important;
  max-width: var(--theme-block-max-width, 100%) !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
}

/* Swiper must measure the width of the constrained wrapper. */
.store-locator-selected-slider > .swiper {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
}

/* Tablet: keep cards inside the available content width. */
@media (max-width: 1024px) {
  .store-locator-selected-slider .swiper-slide {
    width: 300px;
    max-width: 86%;
  }
}

/* Mobile: follow Blocksy's mobile content gutters and prevent overflow. */
@media (max-width: 767px) {
  .entry-content.is-layout-constrained .store-locator-selected-slider {
    width: 100% !important;
    max-width: min(100%, var(--theme-block-max-width, 100%)) !important;
    min-width: 0 !important;
    margin-block: 20px !important;
    margin-inline: auto !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .store-locator-selected-slider > .swiper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 8px 26px !important;
    overflow: hidden !important;
  }

  .store-locator-selected-slider .swiper-slide {
    width: 78%;
    max-width: calc(100% - 16px);
  }

  .store-locator-selected-slider .wc-prod-body {
    padding: 12px 10px;
  }

  .store-locator-selected-slider .wc-prod-title {
    font-size: 14px;
  }

  .store-locator-selected-slider .wc-prod-meta {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .store-locator-selected-slider .wc-prod-price {
    font-size: 15px;
  }

  .store-locator-selected-slider .wc-prod-btn {
    padding: 8px 9px;
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .store-locator-selected-slider .swiper-slide {
    width: 82%;
    max-width: calc(100% - 16px);
  }
}
