/* Product listing pages. Prefixed so Molla/Bootstrap rules stay intact. */
.pl-page {
  background: #fff;
  color: #1f2430;
  text-align: right;
  font-family: "dana", "iransans", Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  overflow-x: clip;
}

.pl-page,
.pl-page button,
.pl-page input,
.pl-page select,
.pl-page textarea {
  font-family: "dana", "iransans", Tahoma, sans-serif;
}

.pl-page a,
.pl-page a:hover,
.pl-page a:focus {
  text-decoration: none;
}

.pl-emoji {
  display: inline-block;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  vertical-align: -0.12em;
}

.pl-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 36px;
}

.pl-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 18px 0;
  margin: 0;
  list-style: none;
  color: #6b7280;
  font-size: 12.5px;
}

.pl-crumbs a {
  color: #6b7280;
}

.pl-crumbs a:hover,
.pl-crumbs a:focus {
  color: #2563eb;
}

.pl-crumbs .pl-sep {
  color: #c0c4cc;
  font-size: 12px;
}

.pl-crumbs .pl-current {
  color: #0f172a;
  font-weight: 800;
}

.pl-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 36px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .35);
}

.pl-hero::before,
.pl-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.pl-hero::before {
  top: -120px;
  right: -80px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(245, 158, 11, .3), transparent 70%);
}

.pl-hero::after {
  bottom: -140px;
  left: -100px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(37, 99, 235, .35), transparent 70%);
}

.pl-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pl-hero-text {
  flex: 1;
  min-width: 240px;
}

.pl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px 14px;
  border: 1px solid rgba(245, 158, 11, .4);
  border-radius: 99px;
  background: rgba(245, 158, 11, .2);
  color: #fcd34d;
  font-size: 12px;
  font-weight: 700;
}

.pl-badge .pl-emoji {
  font-size: 15px;
}

.pl-hero h1 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
  background: linear-gradient(90deg, #fff, #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.pl-hero p,
.pl-hero-copy {
  max-width: 560px;
  margin: 0;
  color: #cbd5e1;
  font-size: 13.5px;
  line-height: 1.9;
}

.pl-hero-copy,
.pl-hero-copy p {
  color: #cbd5e1;
}

.pl-stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pl-stat {
  min-width: 100px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  text-align: center;
}

.pl-stat strong {
  display: block;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.pl-stat span {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 11px;
}

.pl-intro {
  margin: -6px 0 18px;
  padding: 18px 20px;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  background: #fff;
  color: #4b5563;
  font-size: 13.5px;
  line-height: 1.9;
}

.pl-subs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 4px 0 4px;
}

.pl-sub,
.pl-sub:hover,
.pl-sub:focus {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border: 1.5px solid #eef0f4;
  border-radius: 99px;
  background: #fff;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.pl-sub:hover,
.pl-sub:focus {
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-2px);
}

.pl-sub.is-active,
.pl-sub.is-active:hover,
.pl-sub.is-active:focus {
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .3);
}

.pl-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.pl-filters-anchor {
  position: sticky;
  top: 28px;
  align-self: start;
  width: 100%;
  min-width: 0;
  max-height: calc(100dvh - 28px - 12px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.pl-filters-anchor::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.pl-filters {
  padding: 22px;
  border: 1px solid #eef0f4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.pl-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef0f4;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}

.pl-filters-head .pl-emoji {
  font-size: 16px;
}

.pl-filter-close {
  display: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 18px;
  cursor: pointer;
}

.pl-group {
  display: block;
  width: 100%;
  clear: both;
  margin-bottom: 22px;
}

.pl-group:last-child {
  margin-bottom: 0;
}

.pl-group h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

.pl-group h4::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #2563eb, #f59e0b);
}

.pl-filter-search {
  width: 100%;
  margin-bottom: 8px;
  padding: 8px 12px;
  border: 1.5px solid #eef0f4;
  border-radius: 9px;
  background: #f8fafc;
  color: #1f2430;
  font-size: 12px;
}

.pl-filter-search:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
}

.pl-checks {
  display: flex;
  flex-direction: column;
}

.pl-checks--collapsible:not(.is-expanded):not(.is-searching) .pl-check--extra {
  display: none;
}

.pl-checks-toggle {
  display: block;
  width: 100%;
  margin: 4px 0 0;
  padding: 6px 0 0;
  border: 0;
  background: none;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
}

.pl-checks-toggle:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.pl-page label {
  float: none;
}

.pl-check {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  clear: both;
  float: none;
  margin: 0;
  padding: 7px 0;
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

.pl-check:hover {
  color: #2563eb;
}

.pl-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
}

.pl-prices {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pl-prices input {
  width: 100%;
  min-width: 0;
  padding: 9px 12px;
  border: 1.5px solid #eef0f4;
  border-radius: 9px;
  background: #f8fafc;
  color: #1f2430;
  font-size: 12px;
}

.pl-prices input:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
}

.pl-prices span {
  color: #6b7280;
  font-size: 12px;
}

.pl-apply,
.pl-clear {
  width: 100%;
  margin-top: 8px;
  padding: 11px;
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.pl-apply {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .3);
}

.pl-apply:hover,
.pl-apply:focus {
  color: #fff;
  transform: translateY(-2px);
}

.pl-clear {
  width: 100%;
  margin-top: 8px;
  background: #fff;
  color: #ef4444;
  border: 1.5px solid #fee2e2;
}

.pl-results {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.pl-results.is-loading {
  pointer-events: none;
}

.pl-loading {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(2px);
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
}

.pl-loading[hidden] {
  display: none !important;
}

.pl-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(37, 99, 235, .2);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: pl-spin .75s linear infinite;
}

@keyframes pl-spin {
  to {
    transform: rotate(360deg);
  }
}

.pl-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.pl-tools-info {
  color: #6b7280;
  font-size: 13.5px;
}

.pl-tools-info strong {
  color: #0f172a;
  font-weight: 800;
}

.pl-tools-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pl-sort {
  padding: 10px 16px;
  border: 1.5px solid #eef0f4;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pl-sort:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.pl-filter-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1.5px solid #eef0f4;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.pl-filter-toggle .pl-emoji {
  font-size: 15px;
}

.pl-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(37, 99, 235, .15);
  border-radius: 99px;
  background: rgba(37, 99, 235, .08);
  color: #2563eb;
  font-size: 11.5px;
  font-weight: 700;
}

.pl-chip button {
  padding: 0;
  border: 0;
  background: none;
  color: #2563eb;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.pl-chip button:hover {
  color: #ef4444;
}

.pl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pl-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  transition: transform .32s cubic-bezier(.34, 1.56, .64, 1), box-shadow .32s, border-color .32s;
}

.pl-card:hover {
  border-color: transparent;
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(37, 99, 235, .18);
}

.pl-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 6px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(248, 250, 252, .2), rgba(238, 240, 244, .2)),
    repeating-linear-gradient(45deg, #e9e9ef, #e9e9ef 10px, #f4f4f8 10px, #f4f4f8 20px);
}

.pl-media img {
    border-radius:10px;
  object-fit: contain;
  transition: transform .3s;
}

.pl-card:hover .pl-media img {
  transform: scale(1.05);
}

.pl-media.is-missing img {
  visibility: hidden;
}

.pl-media.is-missing::after {
  content: "تصویر محصول";
  position: absolute;
  color: #a0a0b0;
  font-size: 12px;
  font-weight: 700;
}

.pl-label {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 99px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(239, 68, 68, .35);
}

.pl-label.is-out {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  box-shadow: 0 4px 12px rgba(107, 114, 128, .3);
}

.pl-stock {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border: 1px solid rgba(16, 185, 129, .3);
  border-radius: 99px;
  background: rgba(16, 185, 129, .15);
  color: #059669;
  font-size: 11px;
  font-weight: 800;
}

.pl-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
}

.pl-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
}

.pl-brand i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}

.pl-title {
  min-height: 3.4em;
  margin: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pl-title a,
.pl-title a:hover,
.pl-title a:focus {
  color: inherit;
}

.pl-card:hover .pl-title a {
  color: #2563eb;
}

.pl-price {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.pl-now {
  color: #0f172a;
  font-size: 17px;
  font-weight: 800;
}

.pl-now small {
  color: #6b7280;
  font-size: 11px;
  font-weight: 500;
}

.pl-old {
  color: #a0a0b0;
  font-size: 12px;
  text-decoration: line-through;
}

.pl-add,
.pl-add:hover,
.pl-add:focus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
  padding: 11px;
  border: 0;
  border-radius: 10px;
  background: #f8fafc;
  color: #1f2430;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.pl-add .pl-emoji {
  font-size: 16px;
}

.pl-add:hover,
.pl-add:focus {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .3);
}

.pl-add.is-off,
.pl-add.is-off:hover,
.pl-add.is-off:focus {
  background: #f3f4f6;
  color: #9ca3af;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.pl-pages {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.pl-page-btn,
.pl-page-btn:hover,
.pl-page-btn:focus {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1.5px solid #eef0f4;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
}

.pl-page-btn:hover,
.pl-page-btn:focus {
  border-color: #2563eb;
  color: #2563eb;
}

.pl-page-btn.is-active,
.pl-page-btn.is-active:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .3);
}

.pl-page-btn:disabled {
  opacity: .4;
  cursor: default;
}

.pl-page-gap {
  min-width: 28px;
  color: #6b7280;
  text-align: center;
}

.pl-seo {
  margin-top: 6px;
  padding: 26px 28px;
  border: 1px solid #eef0f4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  color: #4b5563;
  font-size: 13px;
  line-height: 2;
}

.pl-seo h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
}

.pl-seo h2::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, #2563eb, #f59e0b);
}

.pl-empty {
  padding: 42px 20px;
  border: 1px dashed #e5e7eb;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.pl-empty strong {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 18px;
}

.pl-empty p {
  margin: 0 0 16px;
  color: #6b7280;
}

.pl-empty a,
.pl-empty a:hover,
.pl-empty a:focus {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-weight: 800;
}

.pl-backdrop {
  display: none;
}

@media (max-width: 980px) {
  .pl-layout {
    grid-template-columns: 1fr;
  }

  .pl-filters-anchor {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .pl-filters {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1400;
    width: min(380px, 92vw);
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -ms-overflow-style: none;
    scrollbar-width: none;
    border-radius: 0 0 0 18px;
  }

  .pl-filters::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .pl-filters.is-open {
    display: block;
  }

  .pl-filter-close {
    display: grid;
    place-items: center;
  }

  .pl-filter-toggle {
    display: inline-flex;
  }

  .pl-backdrop.is-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1390;
    background: rgba(15, 23, 42, .45);
  }

  .pl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pl-hero {
    padding: 28px 24px;
    border-radius: 18px;
  }

  .pl-hero h1 {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .pl-wrap {
    padding-bottom: 84px;
  }

  .pl-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .pl-title {
    font-size: 12px;
  }

  .pl-now {
    font-size: 14px;
  }

  .pl-hero {
    padding: 24px 18px;
  }

  .pl-hero h1 {
    font-size: 20px;
  }

  .pl-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .pl-stats {
    width: 100%;
  }

  .pl-stat {
    flex: 1;
    min-width: 80px;
    padding: 10px 12px;
  }

  .pl-stat strong {
    font-size: 18px;
  }

  .pl-tools {
    padding: 12px 14px;
  }

  .pl-sub,
  .pl-sub:hover,
  .pl-sub:focus {
    padding: 8px 14px;
    font-size: 12px;
  }

  .pl-seo {
    padding: 20px 16px;
  }

  .pl-body {
    padding: 12px 12px 14px;
  }

  .pl-add,
  .pl-add:hover,
  .pl-add:focus {
    font-size: 12px;
    padding: 9px;
  }
}
