.pc-panel {
  --pc-c1: #93c5fd;
  --pc-c2: #a5b4fc;
  position: relative;
  border-radius: 18px;
  padding: 2px;
  height: auto;
  background: linear-gradient(135deg, var(--pc-c1), var(--pc-c2));
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
  animation: pcIn .45s ease both;
}
.pc-panel:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}
@keyframes pcIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.pc-panel[data-tone="0"] { --pc-c1:#7dd3fc; --pc-c2:#a5b4fc; }
.pc-panel[data-tone="1"] { --pc-c1:#6ee7b7; --pc-c2:#99f6e4; }
.pc-panel[data-tone="2"] { --pc-c1:#f9a8d4; --pc-c2:#c4b5fd; }
.pc-panel[data-tone="3"] { --pc-c1:#fcd34d; --pc-c2:#fdba74; }
.pc-panel[data-tone="4"] { --pc-c1:#67e8f9; --pc-c2:#5eead4; }
.pc-panel[data-tone="5"] { --pc-c1:#c4b5fd; --pc-c2:#f0abfc; }
.pc-panel[data-tone="6"] { --pc-c1:#86efac; --pc-c2:#bef264; }
.pc-panel[data-tone="7"] { --pc-c1:#fda4af; --pc-c2:#fbcfe8; }
.pc-panel[data-tone="8"] { --pc-c1:#93c5fd; --pc-c2:#7dd3fc; }
.pc-panel[data-tone="9"] { --pc-c1:#fde68a; --pc-c2:#fca5a5; }

.pc-panel::before {
  display: none !important;
  content: none !important;
}
@keyframes pcShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.pc-card {
  position: relative; z-index: 1; height: auto;
  display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden;
  background: #fff; text-decoration: none; color: inherit;
}
.pc-img-wrap {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}
.pc-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.pc-panel:hover .pc-img-wrap img { transform: scale(1.06); }

.pc-badge-id {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
  background: rgba(15,23,42,.72); color: #fff;
  font-size: .7rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 999px;
}
.pc-badge-off {
  position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2;
  background: linear-gradient(135deg,#f97316,#ef4444); color: #fff;
  font-size: .72rem; font-weight: 800;
  padding: .2rem .55rem; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(239,68,68,.35);
}
.pc-body {
  padding: .75rem .9rem .9rem;
  display: flex; flex-direction: column; gap: .35rem; flex: 1;
}
.pc-title {
  font-size: .9rem; font-weight: 800; color: #0f172a;
  line-height: 1.35; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-shop {
  font-size: .75rem; color: #64748b; margin: 0;
  text-decoration: none !important;
}
.pc-shop:hover { color: #0f4c81; }
.pc-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; color: #475569; gap: .5rem;
}
.pc-stars .fa-star { font-size: .72rem; }
.pc-price-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: .25rem;
}
.pc-price {
  font-size: 1.05rem; font-weight: 800; color: #0f172a; margin: 0;
}
.pc-price small { font-size: .7rem; font-weight: 600; color: #64748b; margin-inline-start: 2px; }
.pc-fav { cursor: pointer; font-size: 1.1rem; }
.pc-buy {
  width: 100%; margin-top: .5rem;
  border: 0; border-radius: 12px; padding: .55rem .75rem;
  font-weight: 700; font-size: .85rem; color: #fff !important;
  background: linear-gradient(135deg, #0f4c81 0%, #0ea5e9 100%);
  box-shadow: 0 8px 18px rgba(14,165,233,.28);
  transition: filter .2s, transform .2s;
}
.pc-buy:hover { filter: brightness(1.06); transform: translateY(-1px); color: #fff !important; }

/* پنل زیرین مشترک برای کاروسل محصولات */
.pc-stage {
  --st-c1: #93c5fd;
  --st-c2: #c4b5fd;
  position: relative;
  border-radius: 24px;
  padding: 16px 12px 12px;
  margin-bottom: 0.5rem;
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--st-c1) 22%, #fff) 0%,
    color-mix(in srgb, var(--st-c2) 18%, #f8fafc) 100%);
  box-shadow:
    0 18px 40px color-mix(in srgb, var(--st-c1) 42%, transparent),
    0 6px 16px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.7);
  border: 1px solid color-mix(in srgb, var(--st-c1) 35%, transparent);
  transition: box-shadow 1.2s ease, background 1.2s ease, border-color 1.2s ease;
  overflow: hidden;
}
.pc-stage::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background:
    radial-gradient(circle at 30% 40%, color-mix(in srgb, var(--st-c1) 55%, transparent) 0%, transparent 55%),
    radial-gradient(circle at 75% 60%, color-mix(in srgb, var(--st-c2) 50%, transparent) 0%, transparent 50%);
  animation: pcGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes pcGlow {
  0%   { transform: translate(0, 0) scale(1); opacity: .85; }
  100% { transform: translate(4%, -3%) scale(1.08); opacity: 1; }
}
.pc-stage > * { position: relative; z-index: 1; }
.pc-stage .owl-carousel .item { padding: 6px 4px 10px; }
.pc-stage[data-stage="0"] { --st-c1:#7dd3fc; --st-c2:#a5b4fc; }
.pc-stage[data-stage="1"] { --st-c1:#6ee7b7; --st-c2:#99f6e4; }
.pc-stage[data-stage="2"] { --st-c1:#f9a8d4; --st-c2:#c4b5fd; }
.pc-stage[data-stage="3"] { --st-c1:#fcd34d; --st-c2:#fdba74; }
.pc-stage[data-stage="4"] { --st-c1:#67e8f9; --st-c2:#5eead4; }
.pc-stage[data-stage="5"] { --st-c1:#c4b5fd; --st-c2:#f0abfc; }
.pc-stage[data-stage="6"] { --st-c1:#86efac; --st-c2:#bef264; }
.pc-stage[data-stage="7"] { --st-c1:#fda4af; --st-c2:#fbcfe8; }
.pc-stage[data-stage="8"] { --st-c1:#93c5fd; --st-c2:#7dd3fc; }
.pc-stage[data-stage="9"] { --st-c1:#fde68a; --st-c2:#fca5a5; }

/* گرید لیست محصولات فروشگاه */
.pc-stage.pc-stage-grid {
  padding: 18px 14px 8px;
  margin-top: 0.5rem;
}
.pc-stage.pc-stage-grid .product-grid-card {
  display: flex;
  flex-direction: column;
}
.pc-stage.pc-stage-grid .product-grid-card > .pc-panel,
.product-grid-card > .pc-panel {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.product-grid-card .pc-card {
  min-height: 100%;
}
.product-grid-card .pc-img-wrap {
  aspect-ratio: 1 / 1;
  max-height: 220px;
}
.product-grid-card .pc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* خنثی‌سازی استایل قدیمی cardH روی کارت جدید */
.pc-panel .cardH,
.product-grid-card .cardH {
  all: unset;
}
.product-grid-card img.card-img-store,
.product-grid-card .card-img-store,
.storeGrid .pc-img-wrap img,
.pc-stage-grid img {
  max-height: 220px !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.product-grid-card .pc-panel {
  display: flex !important;
  flex-direction: column !important;
}

/* پنل تمام محتوای صفحه محصولات (بدون هدر سایت) */
.pc-stage.pc-stage-page {
  --st-c1: #93c5fd;
  --st-c2: #c4b5fd;
  margin: 1rem auto 2rem;
  max-width: 1400px;
  border-radius: 28px;
  padding: 1.25rem 1rem 1.5rem;
  min-height: 70vh;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--st-c1) 28%, #ffffff) 0%,
    color-mix(in srgb, var(--st-c2) 20%, #f8fafc) 55%,
    #ffffff 100%);
  box-shadow:
    0 24px 60px color-mix(in srgb, var(--st-c1) 40%, transparent),
    0 8px 24px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  border: 1px solid color-mix(in srgb, var(--st-c1) 40%, transparent);
  transition: box-shadow 1.2s ease, background 1.2s ease, border-color 1.2s ease;
}
.pc-stage.pc-stage-page::before {
  border-radius: inherit;
  opacity: 0.9;
}
/* سایدبار و کارت‌های داخلی روی پنل شفاف/شیشه‌ای */
.pc-stage-page .store-sidebar-panel,
.pc-stage-page .card.border-0.shadow-sm {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
}
.pc-stage-page .form-control,
.pc-stage-page input[type="search"],
.pc-stage-page input[type="text"] {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
}
@media (max-width: 991px) {
  .pc-stage.pc-stage-page {
    margin: 0.5rem 0.35rem 1.25rem;
    border-radius: 20px;
    padding: 0.85rem 0.5rem 1rem;
  }
}
