/* =====================================================
   ISO Product Carousel — Stylesheet
   ===================================================== */

/* Wrapper */
.ipc-wrapper {
  position: relative;
  padding-bottom: 48px;
  direction: rtl;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}

/* ── Card ── */
.ipc-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(10,30,90,.09), 0 2px 8px rgba(10,30,90,.05);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.ipc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(10,30,90,.14), 0 4px 12px rgba(10,30,90,.07);
}

/* Image */
.ipc-card__img-wrap {
  position: relative;
  background: linear-gradient(145deg,#dce8ff 0%,#eef4ff 50%,#d6e5ff 100%);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.ipc-card__img-wrap::before {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(255,255,255,.85) 0%,rgba(210,228,255,.25) 100%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}

.ipc-card__img {
  position: relative;
  height: 165px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(10,30,90,.16));
  transition: transform .35s ease;
  z-index: 1;
}

.ipc-card:hover .ipc-card__img {
  transform: scale(1.06) translateY(-4px);
}

/* Badge */
.ipc-card__badge {
  position: absolute;
  top: 12px; right: 12px;
  background: #1a3fa0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9px;
  z-index: 2;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}

/* Body */
.ipc-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ipc-card__cat {
  font-size: 11px;
  color: #1a3fa0;
  font-weight: 600;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ipc-card__title {
  font-size: 15px;
  font-weight: 800;
  color: #0d1b3e;
  margin-bottom: 10px;
  line-height: 1.35;
  flex: 1;
}

.ipc-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

.ipc-card__title a:hover { color: #1a3fa0; }

.ipc-card__divider {
  height: 1px;
  background: linear-gradient(90deg,#e2e8f5 0%,transparent 100%);
  margin-bottom: 10px;
}

/* Pricing */
.ipc-card__pricing {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ipc-card__price-now {
  font-size: 16px;
  font-weight: 800;
  color: #0d1b3e;
  display: flex;
  align-items: center;
  gap: 3px;
}

.ipc-card__price-now span {
  font-size: 11px;
  font-weight: 500;
  color: #4a5a7a;
}

.ipc-card__price-old {
  font-size: 12px;
  color: #b0b8cc;
  text-decoration: line-through;
  font-weight: 500;
}

/* Button */
.ipc-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 11px 14px;
  background: linear-gradient(135deg,#1a3fa0 0%,#2657cc 100%);
  color: #fff !important;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .25s, transform .15s, box-shadow .25s;
  box-shadow: 0 4px 12px rgba(26,63,160,.28);
}

.ipc-card__btn:hover {
  background: linear-gradient(135deg,#16368c 0%,#1e4ab8 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26,63,160,.38);
  color: #fff !important;
}

.ipc-card__btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Footer Trust */
.ipc-card__footer {
  display: flex;
  justify-content: space-around;
  padding: 10px 12px;
  background: #f5f8ff;
  border-top: 1px solid #e8edf8;
  gap: 4px;
  flex-shrink: 0;
}

.ipc-card__trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
}

.ipc-card__trust svg {
  width: 18px;
  height: 18px;
  color: #1a3fa0;
}

.ipc-card__trust span {
  font-size: 9.5px;
  color: #5a6a8a;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.ipc-card__trust-sep {
  width: 1px;
  background: #dde4f0;
  margin: 4px 0;
  align-self: stretch;
}

/* ── Navigation Arrows ── */
.ipc-btn-prev,
.ipc-btn-next {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 24px));
  z-index: 10;
  width: 42px;
  height: 42px;
  background: #fff;
  border: 1.5px solid #e0e8f8;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(10,30,90,.10);
  transition: background .2s, box-shadow .2s, transform .2s;
  color: #1a3fa0;
}

.ipc-btn-prev:hover,
.ipc-btn-next:hover {
  background: #1a3fa0;
  color: #fff;
  box-shadow: 0 6px 20px rgba(26,63,160,.25);
  transform: translateY(calc(-50% - 24px)) scale(1.08);
}

.ipc-btn-prev svg,
.ipc-btn-next svg {
  width: 18px;
  height: 18px;
}

.ipc-btn-prev { right: -20px; }
.ipc-btn-next { left: -20px; }

/* ── Pagination dots ── */
.ipc-pagination {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
}

.ipc-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #c5d0e8;
  opacity: 1;
  border-radius: 50%;
  transition: background .25s, width .25s;
  cursor: pointer;
}

.ipc-pagination .swiper-pagination-bullet-active {
  background: #1a3fa0;
  width: 22px;
  border-radius: 4px;
}

/* ── Empty state ── */
.ipc-empty {
  text-align: center;
  padding: 40px 20px;
  color: #8a96b0;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: 14px;
  background: #f5f8ff;
  border-radius: 16px;
  border: 1.5px dashed #d0daf0;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .ipc-btn-prev { right: 0; }
  .ipc-btn-next { left: 0; }
  .ipc-card__img-wrap { height: 180px; }
}
