/* کارت محصول: رنگ و فاصله‌ها مطابق طرح ویترین پاراکیک */
.nm-store .pc-product-card {
  --pc-purple: #591875;
  --pc-ink: #251833;
  --pc-line: #e2d1ed;
  --pc-surface: #fbf9fc;
  background: var(--pc-surface);
  border: 1px solid var(--pc-line);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 8px 22px rgba(69, 29, 88, .06);
}

/*  .nm-store .pc-product-card .fz-product-media {
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
  }
*/
.nm-store .pc-product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 260px; /* جلوگیری از باد کردن کارت اگر والدش تمام‌عرض بود */
  margin: 0 auto;
}

  /* ۲. کانتینر تصویر */
  .nm-store .pc-product-card .fz-product-media {
    position: relative;
    width: 100%;
    height: 200px; /* ارتفاع ثابت استاندارد کارت‌های فروشگاهی */
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
  }

    /* ۳. تصویر و لینک والدش (خیلی مهم: تگ <a> هم باید ارتفاع بگیره) */
    .nm-store .pc-product-card .fz-product-media > a {
      display: block;
      width: 100%;
      height: 100%;
    }

    .nm-store .pc-product-card .fz-product-media img {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      display: block;
    }

  .nm-store .pc-product-card .pc-wishlist {
    top: 10px;
    right: auto;
    left: 10px;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    padding: 0;
    background: rgba(255,255,255,.91);
    color: var(--pc-purple);
    box-shadow: 0 3px 12px rgba(30,12,40,.1);
  }

.pc-product-card .pc-wishlist svg {
  width: 23px;
  height: 23px;
}

.nm-store .pc-product-card .fz-product-body {
  border: 0;
  padding: .8rem .35rem .35rem;
  gap: .75rem;
}

.pc-product-card .fz-product-cat {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: #8955a1;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.pc-category-icon {
  width: 19px;
  height: 19px;
  flex: none;
}

.nm-store .pc-product-card .fz-product-name {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 0;
  color: var(--pc-ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.4;
}

.pc-variants {
  overflow: visible;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--pc-line);
  border-radius: 13px;
  background: #f3ecf9;
}

.pc-variant {
  position: relative;
  overflow: visible;
  flex: 1 1 0;
  min-width: 0;
  padding: .5rem .3rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--pc-purple);
  font-size: .8rem;
  line-height: 1.4;
  font-weight: 800;
  cursor: pointer;
  white-space: normal;
}

.pc-variant-hint {
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  padding: 5px 9px;
  border: 1px solid rgba(100, 23, 125, .18);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(40, 20, 50, .12);
  color: #64177d;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  direction: rtl;
}

.pc-variant-hint::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #fff;
}

.pc-variant-hint[hidden] {
  display: none !important;
}

  .pc-variant.is-selected {
    background: var(--pc-purple);
    color: #fff;
    box-shadow: 0 3px 8px rgba(70,20,90,.18);
  }

  .pc-variant:focus-visible, .pc-stepper button:focus-visible, .pc-wishlist:focus-visible, .pc-cart-btn:focus-visible {
    outline: 3px solid #ae78c7;
    outline-offset: 2px;
  }

.pc-purchase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: auto;
}

.pc-product-card .pc-stepper {
  direction: rtl;
  flex: none;
  gap: 0;
  padding: 0;
  border: 1px solid var(--pc-line);
  border-radius: 10px;
  overflow: hidden;
}

  .pc-product-card .pc-stepper button {
    width: 31px;
    height: 31px;
    border-radius: 0;
    background: #f5effa;
    color: var(--pc-purple);
    font-size: 1.05rem;
  }

    .pc-product-card .pc-stepper button:last-child {
      background: #f5effa;
      color: var(--pc-purple);
    }

  .pc-product-card .pc-stepper output {
    display: grid;
    place-items: center;
    min-width: 30px;
    height: 31px;
    border-inline: 1px solid var(--pc-line);
    color: var(--pc-ink);
    font-size: .82rem;
  }

.pc-card-price {
  color: var(--pc-purple);
  font-size: .91rem;
  font-weight: 900;
  line-height: 1.4;
  text-align: left;
}

.pc-product-card .pc-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 43px;
  margin-top: 0;
  background: var(--pc-purple) !important;
  border-radius: 12px;
  color: #fff !important;
  font-size: .84rem;
  line-height: 1.35;
}

  .pc-product-card .pc-cart-btn svg {
    width: 19px;
    height: 19px;
    flex: none;
  }

html.dark .nm-store .pc-product-card {
  --pc-surface: #24172b;
  --pc-ink: #fbf5fd;
  --pc-line: #573d65;
  --pc-purple: #743295;
}

html.dark .pc-product-card .pc-variants, html.dark .pc-product-card .pc-stepper button {
  background: #382143;
}

html.dark .pc-product-card .pc-stepper button, html.dark .pc-product-card .pc-card-price, html.dark .pc-product-card .pc-variant:not(.is-selected) {
  color: #f0d9f6;
}

html.dark .pc-product-card .pc-wishlist {
  color: #591875;
}

@media (max-width: 639px) {
  .nm-store .fm-slider .pc-product-card {
    flex-basis: 188px;
    padding: 6px;
    border-radius: 16px;
  }

  .nm-store .pc-product-card .fz-product-body {
    padding: .55rem .15rem .15rem;
    gap: .5rem;
  }

  .nm-store .pc-product-card .fz-product-name {
    font-size: .79rem;
    min-height: 2.8em;
  }

  .pc-product-card .fz-product-cat {
    font-size: .64rem;
  }

  .pc-category-icon {
    width: 16px;
    height: 16px;
  }

  .pc-variant {
    font-size: .66rem;
    padding: .4rem .15rem;
  }

  .pc-purchase-row {
    gap: .3rem;
    flex-wrap: wrap;
  }

  .pc-product-card .pc-stepper button {
    width: 25px;
    height: 27px;
    font-size: .9rem;
  }

  .pc-product-card .pc-stepper output {
    min-width: 25px;
    height: 27px;
    font-size: .7rem;
  }

  .pc-card-price {
    font-size: .72rem;
  }

  .pc-product-card .pc-cart-btn {
    min-height: 38px;
    padding: .45rem .2rem;
    font-size: .67rem;
    gap: .25rem;
  }

    .pc-product-card .pc-cart-btn svg {
      width: 16px;
      height: 16px;
    }

  .nm-store .pc-product-card .pc-wishlist {
    top: 7px;
    left: 7px;
    width: 35px;
    height: 35px;
    padding: 0;
    border-radius: 50%;
  }

  .pc-product-card .pc-wishlist svg {
    width: 19px;
    height: 19px;
  }







}
