/* چیدمان: گالری راست + اطلاعات چپ */
.pps-g-grid.pps-dk{
  display: flex;
  gap: 22px;
  align-items: flex-start;
  flex-direction: row-reverse;
}

/* گالری بزرگ‌تر (سمت راست) */
.pps-g-wrap{
  width: 40%;
  max-width: 720px;
}

/* اطلاعات (سمت چپ) */
.pps-g-info{
  width: 60%;
  direction: rtl;
  text-align: right;
}

/* ریسپانسیو */
@media (max-width: 900px){
  .pps-g-grid.pps-dk{
    flex-direction: column;
  }
  .pps-g-wrap, .pps-g-info{
    width: 100%;
    max-width: none;
  }
}

/* ===== استایل نزدیک دیجیکالا ===== */
.pps-g-title{
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.8;
  font-weight: 700;
  color:#00afa0;
}

.pps-g-price{
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 700;
}

.pps-g-variant-price{
  margin-top: 10px;
  font-size: 14px;
  opacity: .95;
}

/* باکس ویژگی‌ها */
.pps-g-attrs{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.pps-g-attrs-title{
  font-size: 14px;
  margin-bottom: 10px;
  opacity: .8;
  font-weight: 600;
}

.pps-g-pill {
  border: 2px solid #00afa0 !important;
  color: #00afa0 !important;
  background: #fff !important;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease; /* افزودن transition برای تغییرات رنگ */
}

.pps-g-pill.is-disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

.pps-g-pill:hover{
  background: rgba(0,175,160,.08) !important;
}

.pps-g-pill.is-active {
  background: #00afa0 !important;
  color: #fff !important;
  border-color: #00afa0 !important;
}

/* ===== گالری ===== */
.pps-g-main{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  position: relative;
}

.pps-g-main-img{
  width: 100%;
  height: 520px; /* بزرگ‌تر شد */
  object-fit: contain;
  display: block;
}

/* thumbnails */
.pps-g-thumbs{
  margin-top: 12px;
}

.pps-g-thumbs .swiper-slide{
  width: 92px;
  opacity: .55;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.pps-g-thumbs .swiper-slide-thumb-active{
  opacity: 1;
  border-color: rgba(0,0,0,.45);
}

.pps-g-thumb-img{
  width: 100%;
  height: 78px;
  object-fit: cover;
  display: block;
}

/* nav */
.pps-g-prev, .pps-g-next{
  all: unset;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  display: block;
}

.pps-g-prev{
  right: 12px;
}

.pps-g-next{
  left: 12px;
}

.pps-g-prev::before, .pps-g-next::before{
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(0,0,0,.7);
  border-right: 2px solid rgba(0,0,0,.7);
}

.pps-g-next::before {
  transform: rotate(-135deg);
}

.pps-g-prev::before {
  transform: rotate(45deg);
}

/* جلوگیری از خراب شدن با CSS عمومی */
.pps-g-prev, .pps-g-next{
  all: unset;
}

.pps-addtocart{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #00afa0;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  border: 2px solid #00afa0;
  cursor: pointer;
  transition: .2s ease;
}

.pps-addtocart:hover{
  filter: brightness(0.95);
}

a.pps-addtocart, a.pps-addtocart:visited{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 14px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  background: #00afa0 !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  border: 2px solid #00afa0 !important;
  cursor: pointer !important;
  transition: .2s ease !important;
}

a.pps-addtocart:hover{
  background: #009b8e !important;
  border-color: #009b8e !important;
  color: #fff !important;
}

/* اصلاح مشکل انتخاب دکمه‌ها */
button, a {
  pointer-events: auto !important;
  z-index: 1000;
}
