/* =====================================================
   صفحه جزئیات محصول گُل‌شاپ — Premium Product Detail
   ===================================================== */

.pd-page {
  position: relative;
  background: #fff;
  min-height: 100vh;
  overflow-x: clip;
  box-sizing: border-box;
  padding: 40px 24px 70px;
}

.pd-page *,
.pd-page *::before,
.pd-page *::after {
  box-sizing: border-box;
}

/* ---------- تزئینات برگی ---------- */
.pd-leaf {
  position: absolute;
  width: 260px;
  opacity: 0.06;
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.pd-leaf svg {
  display: block;
  width: 100%;
  height: auto;
}

.pd-leaf--tr {
  top: -80px;
  right: -60px;
  transform: rotate(-12deg);
}

.pd-leaf--bl {
  bottom: -70px;
  left: -60px;
  transform: rotate(14deg);
}

.pd-shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
}

/* ---------- مسیر راهنما ---------- */
.pd-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  font-size: 13px;
  color: #727872;
}

.pd-crumbs a {
  color: #727872;
  text-decoration: none;
  transition: color 0.23s ease-out;
}

.pd-crumbs a:hover {
  color: #6d189c;
}

.pd-crumb-sep {
  color: #B9BFB9;
  font-size: 12px;
}

.pd-crumb-current {
  color: #6d189c;
  font-weight: 600;
}

/* ---------- کارت پایه ---------- */
.pd-card {
  background: #ffffff;
  border: 1px solid #ede0ff;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(32, 37, 31, 0.07);
}

/* ---------- بخش اصلی محصول ---------- */
.pd-product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 44px;
  padding: 34px;
}

/* ---------- گالری (راست) ---------- */
.pd-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pd-gallery-main {
  position: relative;
}

.pd-main-image {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, #f0f6f0 0%, #e7efe7 100%);
  border: 1px solid #EDF1ED;
}

.pd-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease-out, opacity 0.25s ease;
}

.pd-gallery-main:hover .pd-main-image img {
  transform: scale(1.03);
}

/* دکمه علاقه‌مندی */
.pd-fav {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #E9EEE9;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #7c847c;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(32, 37, 31, 0.12);
  transition: color 0.23s ease-out, transform 0.23s ease-out, background 0.23s ease-out;
}

.pd-fav svg {
  width: 19px;
  height: 19px;
}

.pd-fav:hover {
  color: #6d189c;
  transform: scale(1.08);
}

.pd-fav.is-active {
  color: #ffffff;
  background: #FF3B4A;
  border-color: #FF3B4A;
}

/* تصاویر کوچک */
.pd-thumbs {
  display: flex;
  gap: 12px;
}

.pd-thumb {
  position: relative;
  width: 84px;
  height: 84px;
  padding: 0;
  border: 2px solid #ede0ff;
  border-radius: 13px;
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.23s ease-out, transform 0.23s ease-out, box-shadow 0.23s ease-out;
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-thumb:hover {
  border-color: #BFDCC2;
  transform: translateY(-2px);
}

.pd-thumb.active {
  border-color: #a82ee0;
  box-shadow: 0 0 0 3px rgba(168, 46, 224, 0.16);
}

.pd-thumb[data-view="leaf"] img {
  transform: scale(1.9);
  object-position: center 18%;
  transform-origin: center center;
}

.pd-thumb[data-view="inside"] img {
  object-position: center bottom;
}

.pd-thumb[data-view="side"] img {
  object-position: 30% center;
}

/* ---------- اطلاعات (چپ) ---------- */
.pd-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pd-cat {
  align-self: flex-start;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: #6d189c;
  background: #f0e6ff;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #d8c5f0;
}

.pd-name {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 800;
  color: #20251F;
  line-height: 1.5;
}

.pd-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.pd-stars {
  display: inline-flex;
  gap: 2px;
  color: #F4B740;
}

.pd-stars svg {
  width: 17px;
  height: 17px;
}

.pd-stars .empty {
  color: #E2E6E2;
}

.pd-rating strong {
  font-size: 14px;
  font-weight: 700;
  color: #20251F;
}

.pd-rating-count {
  font-size: 13px;
  color: #727872;
}

.pd-rating-count::before {
  content: "|";
  margin-left: 10px;
  color: #C7CDC7;
}

.pd-desc {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 2;
  color: #5f665f;
  max-width: 100%;
  /* توضیح کوتاه کنار عکس: حداکثر ۴ خط با … — متن کامل در تب «توضیحات» */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- ویژگی‌ها ---------- */
.pd-benefits {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pd-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid #E5EAE5;
  border-radius: 13px;
  background: #FDFEFD;
  font-size: 13.5px;
  font-weight: 600;
  color: #3f463f;
  transition: border-color 0.23s ease-out, background 0.23s ease-out;
}

.pd-benefit:hover {
  border-color: #C9DDCB;
  background: #f5f0ff;
}

.pd-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid #CBE3CD;
  color: #6d189c;
  background: #f0e6ff;
}

.pd-benefit-icon svg {
  width: 17px;
  height: 17px;
}

.pd-divider {
  height: 1px;
  background: #E5EAE5;
  margin: 0 0 26px;
}

/* ---------- قیمت ---------- */
.pd-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.pd-price-old {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pd-old {
  font-size: 15px;
  color: #A4A8A4;
  text-decoration: line-through;
  font-weight: 500;
}

.pd-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #FF3B4A;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 59, 74, 0.28);
}

.pd-price {
  font-size: 27px;
  font-weight: 800;
  color: #6d189c;
  letter-spacing: -0.2px;
}

.pd-price small {
  font-size: 13px;
  font-weight: 600;
  color: #727872;
  margin-right: 4px;
}

.pd-stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 26px;
  font-size: 13.5px;
  font-weight: 600;
  color: #6d189c;
  background: #f0e6ff;
  border: 1px solid #d8c5f0;
  padding: 6px 13px;
  border-radius: 999px;
}

.pd-stock svg {
  width: 15px;
  height: 15px;
}

.pd-stock.is-out {
  color: #C0463B;
  background: #FDF1F0;
  border-color: #F2C9C4;
}

.pd-stock.is-preorder {
  color: #92400e;
  background: #fef3c7;
  border-color: #fcd34d;
}

.pd-preorder-est {
  font-weight: 400;
  font-size: 12px;
  color: #a16207;
}

.pd-addcart--preorder {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #fff !important;
}

.pd-addcart--preorder:hover {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
}

/* ---------- خرید ---------- */
.pd-buy {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.pd-qty {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #E5EAE5;
  border-radius: 14px;
  padding: 4px;
}

.pd-qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  font-family: inherit;
  transition: background 0.23s ease-out, color 0.23s ease-out, transform 0.23s ease-out;
}

.pd-qty-btn svg {
  width: 17px;
  height: 17px;
}

.pd-qty-btn--minus {
  color: #a9afa9;
}

.pd-qty-btn--minus:hover {
  background: #F3F5F3;
  color: #7c847c;
}

.pd-qty-btn--plus {
  color: #6d189c;
}

.pd-qty-btn--plus:hover {
  background: #f0e6ff;
  transform: scale(1.08);
}

.pd-qty-btn:active {
  transform: scale(0.92);
}

.pd-qty-value {
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #20251F;
}

.pd-addcart {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  margin: 0;
  padding: 0 20px;
  border: none;
  border-radius: 14px;
  background: #a82ee0;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(168, 46, 224, 0.32);
  transition: background 0.23s ease-out, transform 0.23s ease-out, box-shadow 0.23s ease-out, opacity 0.23s ease-out;
}

.pd-addcart svg {
  width: 20px;
  height: 20px;
}

.pd-addcart:hover {
  background: #7b1baf;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(168, 46, 224, 0.38);
}

.pd-addcart:active {
  transform: translateY(0);
}

.pd-addcart.is-disabled,
.pd-buynow.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none !important;
}

.pd-buynow {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  margin: 0 0 28px;
  border: 1px solid #C3DCC5;
  border-radius: 14px;
  background: #ffffff;
  color: #6d189c;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.23s ease-out, border-color 0.23s ease-out, transform 0.23s ease-out;
}

.pd-buynow svg {
  width: 19px;
  height: 19px;
}

.pd-buynow:hover {
  background: #f0e6ff;
  border-color: #a82ee0;
  transform: translateY(-2px);
}

/* ---------- خدمات ---------- */
.pd-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px dashed #DDE8DE;
  border-radius: 16px;
  background: #FBFDFB;
}

.pd-service {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pd-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #CFE4D2;
  color: #6d189c;
  background: #f0e6ff;
  margin-bottom: 6px;
}

.pd-service-icon svg {
  width: 19px;
  height: 19px;
}

.pd-service-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #20251F;
}

.pd-service-text {
  font-size: 12px;
  color: #727872;
  line-height: 1.8;
}

/* ---------- تب‌ها ---------- */
.pd-tabs {
  margin-top: 32px;
  overflow: hidden;
}

.pd-tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  border-bottom: 1px solid #E5EAE5;
  overflow-x: auto;
  scrollbar-width: none;
}

.pd-tabs-nav::-webkit-scrollbar {
  display: none;
}

.pd-tab {
  position: relative;
  padding: 18px 20px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #727872;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.23s ease-out;
}

.pd-tab::after {
  content: "";
  position: absolute;
  right: 18px;
  left: 18px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #a82ee0;
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.23s ease-out, transform 0.23s ease-out;
}

.pd-tab:hover {
  color: #6d189c;
}

.pd-tab.active {
  color: #6d189c;
  font-weight: 700;
}

.pd-tab.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.pd-panel {
  display: none;
  padding: 34px 40px;
  animation: pdFade 0.3s ease-out;
}

.pd-panel.active {
  display: block;
}

@keyframes pdFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* توصیف */
.pd-desc-text {
  font-size: 15px;
  line-height: 2.1;
  color: #4d544d;
}

.pd-desc-text p {
  margin: 0 0 16px;
}

.pd-desc-text p:last-child {
  margin-bottom: 0;
}

.pd-desc-text strong {
  color: #6d189c;
  font-weight: 700;
}

.pd-desc-text br {
  display: block;
  content: "";
  margin-top: 8px;
}

.pd-desc-text ul, .pd-desc-text ol {
  margin: 12px 0;
  padding-right: 20px;
}

.pd-desc-text li {
  margin-bottom: 6px;
  line-height: 2;
}

.pd-desc-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.pd-desc-text table th,
.pd-desc-text table td {
  border: 1px solid #e5e7e5;
  padding: 8px 12px;
  text-align: right;
  font-size: 14px;
}

.pd-desc-text table th {
  background: #f8f5ff;
  font-weight: 700;
  color: #20251F;
}

/* مشخصات */
.pd-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #E5EAE5;
  border-radius: 16px;
  overflow: hidden;
}

.pd-spec {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 14px;
}

.pd-spec:nth-child(4n + 1),
.pd-spec:nth-child(4n + 2) {
  background: #f5f0ff;
}

.pd-spec-title {
  color: #727872;
  font-weight: 600;
}

.pd-spec-value {
  color: #20251F;
  font-weight: 700;
  margin-right: auto;
}

.pd-spec-value .fa-ltr {
  direction: ltr;
  unicode-bidi: embed;
}

/* نگهداری */
.pd-care {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pd-care-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  border: 1px solid #E5EAE5;
  border-radius: 16px;
  background: #FDFEFD;
  transition: transform 0.23s ease-out, box-shadow 0.23s ease-out, border-color 0.23s ease-out;
}

.pd-care-card:hover {
  transform: translateY(-3px);
  border-color: #C9DDCB;
  box-shadow: 0 12px 30px rgba(32, 37, 31, 0.09);
}

.pd-care-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid #CFE4D2;
  background: #f0e6ff;
  color: #6d189c;
  margin-bottom: 6px;
}

.pd-care-icon svg {
  width: 21px;
  height: 21px;
}

.pd-care-title {
  font-size: 14px;
  font-weight: 700;
  color: #20251F;
}

.pd-care-text {
  font-size: 12.5px;
  color: #727872;
  line-height: 1.9;
}

/* نظرات */
.pd-reviews-head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.pd-reviews-score {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pd-reviews-num {
  font-size: 34px;
  font-weight: 800;
  color: #20251F;
  line-height: 1;
}

.pd-reviews-num small {
  font-size: 15px;
  font-weight: 600;
  color: #727872;
  margin-right: 4px;
}

.pd-reviews-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pd-reviews-count {
  font-size: 13.5px;
  color: #727872;
}

.pd-comment {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid #E5EAE5;
}

.pd-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #ede0ff;
  background: #f0e6ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6d189c;
  font-weight: 700;
  font-size: 16px;
}

.pd-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-comment-body {
  min-width: 0;
}

.pd-comment-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pd-comment-name {
  font-size: 14px;
  font-weight: 700;
  color: #20251F;
}

.pd-comment-date {
  font-size: 12px;
  color: #9aa09a;
}

.pd-comment-stars {
  display: inline-flex;
  gap: 1px;
  color: #F4B740;
  margin: 4px 0 6px;
}

.pd-comment-stars svg {
  width: 13px;
  height: 13px;
}

.pd-comment-stars .empty {
  color: #E2E6E2;
}

.pd-comment-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: #525a52;
}

/* فرم نظر */
.pd-comment-form {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid #E5EAE5;
}

.pd-comment-form h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #20251F;
}

.pd-comment-form p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #727872;
}

.pd-form-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
}

.pd-form-stars {
  display: inline-flex;
  gap: 4px;
  direction: ltr;
}

.pd-form-stars button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: #DEE3DE;
  font-size: 26px;
  line-height: 1;
  transition: color 0.15s ease-out, transform 0.15s ease-out;
}

.pd-form-stars button:hover,
.pd-form-stars button.is-on {
  color: #F4B740;
  transform: scale(1.08);
}

.pd-input {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid #E5EAE5;
  border-radius: 14px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.9;
  color: #20251F;
  background: #ffffff;
  outline: none;
  transition: border-color 0.23s ease-out, box-shadow 0.23s ease-out;
}

.pd-input:focus {
  border-color: #a82ee0;
  box-shadow: 0 0 0 3px rgba(168, 46, 224, 0.12);
}

.pd-submit-btn {
  grid-column: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border: none;
  border-radius: 12px;
  background: #a82ee0;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(168, 46, 224, 0.32);
  transition: background 0.23s ease-out, transform 0.23s ease-out;
}

.pd-submit-btn:hover {
  background: #7b1baf;
  transform: translateY(-2px);
}

/* ---------- محصولات مرتبط ---------- */
.pd-related {
  margin-top: 44px;
}

.pd-related-head {
  position: relative;
  text-align: center;
  margin-bottom: 28px;
}

.pd-related-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #20251F;
}

.pd-related-head p {
  margin: 6px 0 0;
  font-size: 14px;
  color: #727872;
}

.pd-rel-nav {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #ede0ff;
  border-radius: 50%;
  background: #ffffff;
  color: #6d189c;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(32, 37, 31, 0.08);
  transition: background 0.23s ease-out, color 0.23s ease-out, transform 0.23s ease-out, box-shadow 0.23s ease-out;
  z-index: 5;
}

.pd-rel-nav:hover {
  background: #a82ee0;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(168, 46, 224, 0.35);
  transform: translateY(-1px);
}

.pd-rel-nav svg {
  width: 20px;
  height: 20px;
}

.pd-rel-nav--prev {
  right: -14px;
  transform: translateY(-50%);
}

.pd-rel-nav--next {
  left: -14px;
  transform: translateY(-50%);
}

.pd-rel-nav--prev:hover {
  transform: translateY(calc(-50% - 1px));
}

.pd-rel-nav--next:hover {
  transform: translateY(calc(-50% - 1px));
}

.pd-related-swiper {
  padding: 6px 4px 14px;
  overflow: hidden;
}

.pd-related-swiper .swiper-wrapper {
  align-items: stretch;
}

.pd-related-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.pd-related-swiper .swiper-slide>.pd-card-product {
  width: 100%;
}

/* کارت محصول */
.pd-card-product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #ede0ff;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(32, 37, 31, 0.05);
  transition: transform 0.23s ease-out, box-shadow 0.23s ease-out;
}

.pd-card-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(32, 37, 31, 0.09);
}

.pd-card-media {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #F1F5F1;
}

.pd-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.pd-card-product:hover .pd-card-media img {
  transform: scale(1.04);
}

.pd-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: #FF3B4A;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(255, 59, 74, 0.28);
  line-height: 1;
}

.pd-card-name {
  margin: 13px 6px 4px;
  font-size: 14.5px;
  font-weight: 700;
  color: #20251F;
  text-align: center;
  line-height: 1.6;
}

.pd-card-name a {
  color: inherit;
  text-decoration: none;
}

.pd-card-name a:hover {
  color: #6d189c;
}

.pd-card-price {
  text-align: center;
  margin: 2px 0 12px;
}

.pd-card-old {
  display: block;
  font-size: 12px;
  color: #A4A8A4;
  text-decoration: line-through;
  font-weight: 500;
}

.pd-card-new {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #6d189c;
}

.pd-card-btn {
  width: 100%;
  height: 42px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  background: #a82ee0;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.23s ease-out, transform 0.23s ease-out, box-shadow 0.23s ease-out, opacity 0.23s ease-out;
}

.pd-card-btn:hover {
  background: #7b1baf;
  box-shadow: 0 10px 22px rgba(168, 46, 224, 0.32);
  transform: translateY(-1px);
}

.pd-card-btn.is-added {
  background: #6d189c;
  opacity: 0.92;
}

.pd-card-btn svg {
  width: 17px;
  height: 17px;
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 1080px) {
  .pd-product {
    gap: 30px;
    padding: 26px;
  }

  .pd-care {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-services {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .pd-product {
    grid-template-columns: minmax(0, 1fr);
  }

  .pd-info {
    order: 2;
  }

  .pd-gallery {
    order: 1;
  }

  .pd-main-image {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .pd-thumbs {
    justify-content: center;
  }

  .pd-name {
    font-size: 26px;
  }

  .pd-specs {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .pd-page {
    padding: 24px 14px 50px;
  }

  .pd-product {
    padding: 18px;
    border-radius: 20px;
  }

  .pd-name {
    font-size: 23px;
  }

  .pd-thumb {
    width: 72px;
    height: 72px;
  }

  .pd-buy {
    flex-direction: column;
  }

  .pd-qty {
    align-self: stretch;
    justify-content: space-between;
  }

  .pd-qty-value {
    flex: 1;
  }

  .pd-tabs-nav {
    padding: 0 12px;
  }

  .pd-panel {
    padding: 24px 18px;
  }

  .pd-care {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .pd-form-grid {
    grid-template-columns: 1fr;
  }

  .pd-submit-btn {
    grid-column: 1;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .pd-benefits {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- اعلان (Toast) ---------- */
.pd-toast {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #ede0ff;
  box-shadow: 0 16px 40px rgba(32, 37, 31, 0.18);
  font-size: 13.5px;
  font-weight: 600;
  color: #20251F;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  max-width: min(92vw, 380px);
}

.pd-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.pd-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f0e6ff;
  color: #6d189c;
}

.pd-toast-icon svg {
  width: 16px;
  height: 16px;
}

.pd-toast.error {
  border-color: #F2C9C4;
}

.pd-toast.error .pd-toast-icon {
  background: #FDF1F0;
  color: #C0463B;
}

/* ---------- واریانت رنگ/سایز ---------- */
.pd-variants { margin: 16px 0 18px; padding: 16px; border: 1px solid #ede0ff; border-radius: 14px; background: #faf6ff; }
.pd-variant-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pd-variant-group:last-child { margin-bottom: 0; }
.pd-variant-label { font-size: 13px; font-weight: 700; color: #4a4a4a; min-width: 36px; }
.pd-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-color-btn { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #e5e7eb; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #555; background: #fff; transition: all .2s; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.pd-color-btn:hover { border-color: #a82ee0; transform: scale(1.07); }
.pd-color-btn.is-active { border-color: #a82ee0; box-shadow: 0 0 0 3px rgba(168,46,224,.18); transform: scale(1.07); }
.pd-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-size-btn { min-width: 44px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1.5px solid #e5e7eb; background: #fff; font-family: inherit; font-size: 13px; font-weight: 700; color: #333; cursor: pointer; transition: all .2s; }
.pd-size-btn:hover { border-color: #a82ee0; background: #f5edff; }
.pd-size-btn.is-active { background: #a82ee0; color: #fff; border-color: #a82ee0; box-shadow: 0 6px 14px rgba(168,46,224,.25); }
.pd-size-btn.is-disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.pd-variant-selected { font-size: 12px; color: #6d189c; font-weight: 600; }
.pd-variant-info { font-size: 13px; color: #374151; margin-top: 6px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pd-variant-stock { font-size: 12px; color: #059669; background: #ecfdf5; border: 1px solid #a7f3d0; padding: 2px 8px; border-radius: 999px; }
.pd-variant-stock.is-low { color: #d97706; background: #fffbeb; border-color: #fde68a; }
.pd-variant-stock.is-out { color: #dc2626; background: #fef2f2; border-color: #fecaca; }
/* گزینه ترکیبی (رنگ+سایز در یک ردیف) */
.pd-combo-list { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-combo-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 14px 6px 12px; border-radius: 12px; border: 1.5px solid #e5e7eb; background: #fff; font-family: inherit; font-size: 13px; font-weight: 700; color: #333; cursor: pointer; transition: all .2s; }
.pd-combo-btn:hover { border-color: #a82ee0; background: #f5edff; }
.pd-combo-btn.is-active { background: #a82ee0; color: #fff; border-color: #a82ee0; box-shadow: 0 6px 14px rgba(168,46,224,.25); }
.pd-combo-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(0,0,0,.12); flex-shrink: 0; display: inline-block; }
.pd-combo-btn.is-active .pd-combo-dot { border-color: rgba(255,255,255,.7); }
.pd-addcart.is-disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.pd-addcart.is-disabled:hover { transform: none; }

/* ---------- نشانگر امتیاز - دیزاین جدید لوکس بدون سبز ---------- */
.pd-points-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fdfaff 0%, #f5edff 100%);
  border: 1px solid #d8c5f0;
  border-radius: 16px;
  margin: 16px 0;
  box-shadow: 0 8px 22px rgba(124,27,175,0.08);
  position: relative;
  overflow: hidden;
}
.pd-points-badge::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #a82ee0, #7b1baf);
}
.pd-points-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: radial-gradient(120% 120% at 30% 20%, #a82ee0, #7b1baf);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(124,27,175,0.2);
}
.pd-points-icon svg {
  width: 22px;
  height: 22px;
}
.pd-points-text {
  font-size: 13.5px;
  color: #4a2a6b;
  font-weight: 600;
  line-height: 1.7;
}
.pd-points-text strong {
  color: #7b1baf;
  font-weight: 800;
  background: #f5edff;
  border: 1px solid #ede0ff;
  padding: 2px 8px;
  border-radius: 999px;
  margin: 0 4px;
}
