/* Wrapper */
.sjp-ps-wrapper {
  width: 100%;
  position: relative;
  font-family: inherit;
}

/* Preloader overlay */
.sjp-ps-preloader {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.98) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.sjp-ps-preloader-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #b3b3b3;
}

.sjp-ps-preloader-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background-color: #ff5757;
  animation: sjp-ps-bounce 0.9s infinite alternate;
}

.sjp-ps-preloader-dot:nth-child(2) {
  animation-delay: 0.15s;
}
.sjp-ps-preloader-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes sjp-ps-bounce {
  0% { transform: translateY(0); opacity: 0.4; }
  100% { transform: translateY(-4px); opacity: 1; }
}

/* Header */
.sjp-ps-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 12px;
}

.sjp-ps-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

/* Tabs row */
.sjp-ps-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  border-bottom: 1px solid #f4f4f4;
  margin-bottom: 16px;
}

.sjp-ps-tabs button {
  position: relative;
  background: none;
  border: none;
  padding: 8px 0;
  cursor: pointer;
  font-size: 14px;
  color: #777;
  outline: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.sjp-ps-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background-color: transparent;
  transition: background-color 0.2s ease;
}

.sjp-ps-tabs button.is-active {
  color: #ff5757;
  font-weight: 600;
}

.sjp-ps-tabs button.is-active::after {
  background-color: #ff5757;
}

/* Tabs content */
.sjp-ps-tabs-content {
  position: relative;
}

.sjp-ps-tab-panel {
  display: none;
}

.sjp-ps-tab-panel.is-active {
  display: block;
}

/* Swiper container */
.sjp-ps-swiper-container {
  padding-top: 4px;
}

/* Equal height slides & cards */
.sjp-ps-swiper-container .swiper-wrapper {
  align-items: stretch;
}

.sjp-ps-swiper-container .swiper-slide {
  display: flex;
  height: auto;
}

.sjp-ps-swiper-container .swiper-slide .sjp-ps-card {
  height: 100%;
}

/* Product card */
.sjp-ps-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background-color: #ffffff;
  border-radius: 14px;
  border: 1px solid #f1f1f1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  padding: 18px 14px 16px;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* Image block */
.sjp-ps-image-wrap {
  width: 100%;
  padding-top: 85%;
  position: relative;
  margin-bottom: 12px;
  border-radius: 12px;
  background-color: #ffffff;
}

.sjp-ps-image-wrap .sjp-ps-image,
.sjp-ps-image-wrap img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Content داخل کارت */
.sjp-ps-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Title */
.sjp-ps-title-text {
  font-size: 13px;
  font-weight: 500;
  color: #222;
  line-height: 1.6;
  max-height: 3.2em;
  overflow: hidden;
  margin-bottom: 10px;
  text-align: center;
}

/* Price row - وسطچین شده */
.sjp-ps-price-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 4px;
  margin-top: auto;
}

.sjp-ps-price-regular {
  font-size: 11px;
  color: #b1b1b1;
  text-decoration: line-through;
}

.sjp-ps-price-sale,
.sjp-ps-price-main {
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

/* Discount badge */
.sjp-ps-discount-badge {
  margin-top: 6px;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: #ff5757;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(255, 87, 87, 0.35);
}

/* Arrows */
.sjp-ps-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.sjp-ps-arrow svg {
  width: 16px;
  height: 16px;
  fill: #444;
}

.sjp-ps-arrow-prev {
  inset-inline-start: -16px;
}

.sjp-ps-arrow-next {
  inset-inline-end: -16px;
}

/* Dots */
.sjp-ps-swiper-container .swiper-pagination {
  position: static;
  margin-top: 12px;
  text-align: center;
}

.sjp-ps-swiper-container .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  margin: 0 3px;
  background-color: #ccc;
  opacity: 1;
}

.sjp-ps-swiper-container .swiper-pagination-bullet-active {
  background-color: #ff5757;
}

/* No products */
.sjp-ps-no-products {
  padding: 12px 0;
  font-size: 13px;
  color: #888;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .sjp-ps-arrow-prev {
    inset-inline-start: -8px;
  }
  .sjp-ps-arrow-next {
    inset-inline-end: -8px;
  }
}

@media (max-width: 768px) {
  .sjp-ps-tabs {
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .sjp-ps-arrow {
    width: 28px;
    height: 28px;
  }
}

/* ==== View All slide – minimal style ==== */

.sjp-ps-view-all-slide .sjp-ps-card--view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: none;            /* کارت ساده و مینیمال */
  border-style: solid;
  border-width: 1px;
  border-color: #f1f1f1;
  background-color: #ffffff;
  font-family: "PeydaWeb", inherit;
}

/* داخل کارت */
.sjp-ps-view-all-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
}

/* متن مشاهده همه */
.sjp-ps-view-all-text {
  font-size: 14px;
  font-weight: 500;
  color: #ff5757;
  line-height: 1.6;
  white-space: nowrap;
}

/* دایره آیکن */
.sjp-ps-view-all-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #ff5757;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* خود آیکن فلش */
.sjp-ps-view-all-icon svg {
  width: 20px;
  height: 20px;
  fill: #ff5757;
}

/* هاور مینیمال مثل سایت‌های تمیز */
.sjp-ps-card--view-all:hover {
  background-color: #fff7fa;
  border-color: #ffd1e0;
}

.sjp-ps-card--view-all:hover .sjp-ps-view-all-text {
  color: #ff3f6f;
}

.sjp-ps-card--view-all:hover .sjp-ps-view-all-icon {
  border-color: #ff3f6f;
}

.sjp-ps-card--view-all,
.sjp-ps-view-all-icon,
.sjp-ps-view-all-text {
  transition: all 0.2s ease;
}

/* ریسپانسیو موبایل – کمی متن ریزتر که تو اسلاید جا بشه */
@media (max-width: 768px) {
  .sjp-ps-view-all-text {
    font-size: 13px;
  }
  .sjp-ps-view-all-icon {
    width: 36px;
    height: 36px;
  }
}
