/*
 * shop-skeleton.css — کارت‌های خاکستری پالسی حین درخواست‌های AJAX
 * (فیلتر/مرتب‌سازی/صفحه‌بندی). ساختار مطابق .product-card تا layout نپرد.
 */

#pc-shop .pc-skeleton {
  position: relative;
  overflow: hidden;
  background: #ececec;
  border-radius: 10px;
}

#pc-shop .pc-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: pc-skeleton-shimmer 1.2s infinite;
}

@keyframes pc-skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

#pc-shop .pc-skeleton-card {
  pointer-events: none;
}

#pc-shop .pc-skeleton-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 15px;
}

#pc-shop .pc-skeleton-title {
  height: 18px;
  width: 85%;
  margin: 12px 0 8px;
}

#pc-shop .pc-skeleton-category {
  height: 14px;
  width: 55%;
  margin-bottom: 10px;
}

#pc-shop .pc-skeleton-price {
  height: 18px;
  width: 65%;
  margin-bottom: 12px;
}

#pc-shop .pc-skeleton-button {
  height: 42px;
  width: 100%;
  border-radius: 12px;
}

/* پیام «محصولی پیدا نشد» */
#pc-shop .pc-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #777;
  font-size: 16px;
}

/* گزینه‌های اضافه‌شده به مودال (تاب + قیمت نهایی) — هم‌خانواده با استایل‌های مودال استاتیک */
#pc-shop .modal-tab-option {
  display: flex;
  align-items: center;
  gap: 10px;
}

#pc-shop .modal-tab-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--pc-primary);
  cursor: pointer;
}

#pc-shop .modal-tab-option .modal-option-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

#pc-shop .modal-tab-price-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--pc-primary);
  background: var(--pc-primary-soft);
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

#pc-shop .product-modal__price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 4px;
  font-size: 15px;
  font-weight: 600;
}

#pc-shop .product-modal__price .price-value bdi {
  font-size: 17px;
}

#pc-shop .modal-select.pc-invalid, #pc-shop .modal-text-input.pc-invalid {
  border-color: #ff4d6d !important;
}
