@font-face {
  font-family: 'Vazirmatn';
  src: url('../../vendor/fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../../vendor/fonts/vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../../vendor/fonts/vazirmatn/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../../vendor/fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --pl-bg: #f4f1ea;
  --pl-paper: #fffcf7;
  --pl-ink: #12151c;
  --pl-mute: #6b7280;
  --pl-line: rgba(18, 21, 28, 0.08);
  --pl-navy: #0c1b33;
  --pl-navy-2: #163054;
  --pl-gold: #b0893e;
  --pl-gold-soft: #f3e6c8;
  --pl-radius: 18px;
  --pl-shadow: 0 10px 32px rgba(12, 27, 51, 0.07);
}

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

html { scroll-behavior: smooth; }

body.pl-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 480px at 100% -10%, rgba(176, 137, 62, 0.12), transparent 55%),
    radial-gradient(900px 420px at -10% 0%, rgba(22, 48, 84, 0.08), transparent 50%),
    var(--pl-bg);
  color: var(--pl-ink);
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

.pl-top {
  background: linear-gradient(145deg, var(--pl-navy) 0%, var(--pl-navy-2) 70%);
  color: #fff;
}

.pl-top__bar {
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 0.85rem 0 0.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pl-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.pl-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 4px;
}

.pl-logo strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pl-logo span {
  display: block;
  font-size: 0.78rem;
  opacity: 0.7;
  font-weight: 400;
}

.pl-top__meta {
  font-size: 0.8rem;
  opacity: 0.72;
  text-align: left;
}

.pl-hero {
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.1rem 0 1.35rem;
}

.pl-hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pl-hero p {
  margin: 0;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.pl-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--pl-line);
}

.pl-sticky__inner {
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 0.75rem 0 0.8rem;
}

.pl-search {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--pl-paper);
  border: 1px solid var(--pl-line);
  border-radius: 14px;
  padding: 0.15rem 0.9rem;
  box-shadow: var(--pl-shadow);
}

.pl-search svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--pl-gold);
}

.pl-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--pl-ink);
  font: inherit;
  font-size: 0.98rem;
  padding: 0.85rem 0;
  min-width: 0;
}

.pl-search input::placeholder { color: #9aa1ad; }

.pl-search__count {
  font-size: 0.75rem;
  color: var(--pl-mute);
  white-space: nowrap;
  background: #f3efe6;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.pl-chips {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.7rem 0 0.1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pl-chips::-webkit-scrollbar { display: none; }

.pl-chip {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--pl-navy);
  background: var(--pl-paper);
  border: 1px solid var(--pl-line);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.pl-chip:hover {
  border-color: var(--pl-gold);
  background: var(--pl-gold-soft);
}

.pl-wrap {
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.15rem 0 2.6rem;
}

.pl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.pl-card {
  background: var(--pl-paper);
  border: 1px solid var(--pl-line);
  border-radius: var(--pl-radius);
  box-shadow: var(--pl-shadow);
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}

@media (min-width: 861px) {
  .pl-card--wide {
    grid-column: 1 / -1;
  }
  .pl-card--wide .pl-table {
    table-layout: auto;
  }
}

.pl-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.05rem 0.8rem;
  border-bottom: 1px solid var(--pl-line);
  background: linear-gradient(180deg, #fff 0%, #fbf8f1 100%);
}

.pl-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.pl-card__title::before {
  content: '';
  width: 7px;
  height: 22px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--pl-gold), #d4b56a);
}

.pl-card__count {
  font-size: 0.75rem;
  color: var(--pl-mute);
  background: #f3efe6;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-weight: 600;
}

.pl-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.pl-table thead th {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--pl-mute);
  text-align: right;
  padding: 0.45rem 1.05rem;
  background: #faf7f0;
  border-bottom: 1px solid var(--pl-line);
}

.pl-table thead th:last-child {
  text-align: left;
  width: 38%;
}

.pl-table tbody td {
  padding: 0.62rem 1.05rem;
  border-bottom: 1px solid var(--pl-line);
  vertical-align: middle;
  font-size: 0.9rem;
}

.pl-table tbody tr:last-child td { border-bottom: 0; }
.pl-table tbody tr:nth-child(even) td { background: rgba(244, 241, 234, 0.45); }
.pl-table tbody tr:hover td { background: var(--pl-gold-soft); }

.pl-name {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.pl-price {
  text-align: left;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  direction: ltr;
  color: var(--pl-navy);
}

.pl-price small {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--pl-mute);
  margin-right: 0.2rem;
}

.pl-price.is-empty {
  color: var(--pl-mute);
  font-weight: 600;
  direction: rtl;
  text-align: left;
}

.pl-empty {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--pl-mute);
  background: var(--pl-paper);
  border-radius: var(--pl-radius);
  border: 1px dashed var(--pl-line);
}
.pl-empty.is-on { display: block; }

.pl-foot {
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto 1.5rem;
  color: var(--pl-mute);
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.pl-foot a { color: var(--pl-navy); text-decoration: none; font-weight: 600; }

.is-hidden { display: none !important; }

@media (max-width: 860px) {
  .pl-grid { grid-template-columns: 1fr; }
  .pl-top__meta { display: none; }
  .pl-logo span { display: none; }
  .pl-table tbody td,
  .pl-table thead th { padding-inline: 0.85rem; }
}

@media (max-width: 480px) {
  .pl-hero { padding-top: 0.7rem; }
  .pl-search { padding-inline: 0.7rem; }
  .pl-search__count { display: none; }
  .pl-table tbody td { font-size: 0.84rem; padding-block: 0.55rem; }
  .pl-card__title { font-size: 0.98rem; }
}
