.rppm-catalog,
.rppm-catalog * { box-sizing: border-box; }

.rppm-catalog {
  --rppm-accent: #06b6d4;
  --rppm-ink: #0b132b;
  --rppm-text: #162033;
  --rppm-muted: #68758b;
  --rppm-line: #e7ebf1;
  --rppm-soft: #f5f8fb;
  width: 100%;
  max-width: 1480px;
  margin: 28px auto;
  color: var(--rppm-text);
  background: #fff;
  border: 1px solid #edf0f4;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(11, 19, 43, .09);
  direction: rtl;
  font-family: inherit;
  overflow: hidden;
}

.rppm-catalog button,
.rppm-catalog input,
.rppm-catalog select { font: inherit; }
.rppm-catalog button { -webkit-tap-highlight-color: transparent; }
.rppm-catalog [hidden] { display: none !important; }

.rppm-header {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(300px, 1fr) auto;
  gap: clamp(25px, 4vw, 65px);
  align-items: center;
  min-height: 250px;
  padding: clamp(32px, 5vw, 68px);
  color: #fff;
  background: var(--rppm-ink);
  isolation: isolate;
}

.rppm-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 13% 25%, color-mix(in srgb, var(--rppm-accent) 26%, transparent), transparent 24%),
    linear-gradient(115deg, transparent 58%, rgba(255,255,255,.035));
}

.rppm-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -90px;
  left: -40px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.018);
}

.rppm-brand { display: flex; align-items: center; gap: 12px; min-width: 165px; }
.rppm-brand-mark {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 15px;
  color: var(--rppm-ink);
  background: var(--rppm-accent);
  font: 900 24px/1 Arial, sans-serif;
  transform: rotate(-5deg);
}
.rppm-brand > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.rppm-brand b { font: 800 15px/1.2 Arial, sans-serif; letter-spacing: 2.5px; }
.rppm-brand small { color: rgba(255,255,255,.55); font-size: 10px; }

.rppm-header-copy { max-width: 680px; }
.rppm-overline { display: block; margin-bottom: 11px; color: var(--rppm-accent); font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.rppm-header h2 { margin: 0 0 12px; color: #fff; font-size: clamp(28px, 3.6vw, 47px); font-weight: 900; line-height: 1.3; }
.rppm-header p { max-width: 650px; margin: 0; color: rgba(255,255,255,.65); font-size: 14px; line-height: 2; }

.rppm-header-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 17px 20px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(10px);
}
.rppm-header-stats span { display: flex; flex-direction: column; align-items: center; min-width: 67px; }
.rppm-header-stats b { color: #fff; font-size: 20px; }
.rppm-header-stats small { margin-top: 3px; color: rgba(255,255,255,.5); font-size: 9px; }
.rppm-header-stats i { width: 1px; height: 34px; background: rgba(255,255,255,.12); }

.rppm-shell { padding: clamp(26px, 4vw, 58px); }
.rppm-category-section,
.rppm-shape-section,
.rppm-search-section { margin-bottom: clamp(38px, 5vw, 64px); }

.rppm-section-title { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.rppm-section-title > span {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: var(--rppm-ink);
  background: #dff7fb;
  background: color-mix(in srgb, var(--rppm-accent) 23%, #fff);
}
.rppm-section-title > span b { font-size: 13px; }
.rppm-section-title h3 { margin: 0 0 3px; color: var(--rppm-ink); font-size: 17px; font-weight: 900; }
.rppm-section-title p { margin: 0; color: var(--rppm-muted); font-size: 11px; }

.rppm-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.rppm-category-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 78px;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 17px;
  color: var(--rppm-text);
  background: var(--rppm-soft);
  text-align: right;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.rppm-category-card:hover { border-color: #dce3eb; background: #fff; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(11,19,43,.07); }
.rppm-category-card.is-active { border-color: #74d8e8; border-color: color-mix(in srgb, var(--rppm-accent) 65%, #fff); background: #fff; box-shadow: 0 10px 28px rgba(6,182,212,.12); box-shadow: 0 10px 28px color-mix(in srgb, var(--rppm-accent) 12%, transparent); }
.rppm-category-icon {
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  color: #536176;
  background: #fff;
  box-shadow: 0 4px 13px rgba(11,19,43,.06);
}
.rppm-category-card.is-active .rppm-category-icon { color: var(--rppm-ink); background: var(--rppm-accent); }
.rppm-category-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rppm-category-card > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.rppm-category-card b { overflow: hidden; color: inherit; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.rppm-category-card small { margin-top: 5px; color: #8a96a8; font-size: 9px; }
.rppm-category-card > i {
  position: absolute;
  top: 9px;
  left: 9px;
  display: none;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: var(--rppm-ink);
  background: var(--rppm-accent);
  font-size: 10px;
  font-style: normal;
}
.rppm-category-card.is-active > i { display: grid; }

.rppm-shape-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.rppm-shape-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 91px;
  padding: 15px 17px;
  border: 1px solid var(--rppm-line);
  border-radius: 18px;
  color: #435067;
  background: #fff;
  text-align: right;
  cursor: pointer;
  transition: .2s ease;
}
.rppm-shape-card:hover { border-color: #cbd4df; transform: translateY(-2px); }
.rppm-shape-card.is-active { border-color: var(--rppm-ink); color: var(--rppm-ink); background: #f0fbfd; background: color-mix(in srgb, var(--rppm-accent) 7%, #fff); box-shadow: inset 0 0 0 1px var(--rppm-ink); }
.rppm-shape-card > span:last-child { display: flex; flex-direction: column; }
.rppm-shape-card b { font-size: 13px; font-weight: 900; }
.rppm-shape-card small { margin-top: 5px; color: #8b96a7; font-size: 9px; }
.rppm-shape-icon { position: relative; display: block; flex: 0 0 48px; width: 48px; height: 48px; color: #78859a; }
.rppm-shape-card.is-active .rppm-shape-icon { color: var(--rppm-accent); }
.rppm-shape-rectangle::before,
.rppm-shape-square::before,
.rppm-shape-circle::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  border: 3px solid currentColor;
  transform: translate(-50%, -50%);
}
.rppm-shape-rectangle::before { width: 44px; height: 27px; border-radius: 5px; }
.rppm-shape-square::before { width: 33px; height: 33px; border-radius: 5px; }
.rppm-shape-circle::before { width: 35px; height: 35px; border-radius: 50%; }
.rppm-shape-all i { position: absolute; border: 2px solid currentColor; }
.rppm-shape-all i:nth-child(1) { top: 5px; right: 4px; width: 22px; height: 15px; border-radius: 3px; }
.rppm-shape-all i:nth-child(2) { bottom: 3px; right: 7px; width: 18px; height: 18px; border-radius: 3px; }
.rppm-shape-all i:nth-child(3) { bottom: 4px; left: 2px; width: 19px; height: 19px; border-radius: 50%; }

.rppm-search-section {
  padding: clamp(20px, 3vw, 31px);
  border-radius: 23px;
  background: var(--rppm-soft);
}
.rppm-section-title-inline { margin-bottom: 17px; }
.rppm-search-bar { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.rppm-search-box { position: relative; display: block; }
.rppm-search-box svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 17px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #8793a6;
  stroke-width: 1.8;
  stroke-linecap: round;
  transform: translateY(-50%);
}
.rppm-search-input {
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 50px 0 40px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: var(--rppm-text);
  background: #fff;
  box-shadow: 0 5px 20px rgba(11,19,43,.045);
  font-size: 12px;
  outline: none;
}
.rppm-search-input:focus { border-color: var(--rppm-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rppm-accent) 12%, transparent); }
.rppm-search-clear {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #8b96a7;
  background: #f0f3f7;
  cursor: pointer;
  transform: translateY(-50%);
}
.rppm-more-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 174px;
  height: 54px;
  padding: 0 17px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: var(--rppm-ink);
  cursor: pointer;
}
.rppm-more-filter svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.rppm-more-filter span { font-size: 11px; font-weight: 800; }
.rppm-filter-badge { display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 50%; color: var(--rppm-ink); background: var(--rppm-accent); font-size: 9px; }

.rppm-advanced-filters { margin-top: 14px; padding: 19px; border: 1px solid #e3e8ef; border-radius: 17px; background: #fff; }
.rppm-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rppm-filter-grid label { display: flex; flex-direction: column; gap: 7px; }
.rppm-filter-grid label > span,
.rppm-price-filter > span { color: #536075; font-size: 10px; font-weight: 800; }
.rppm-filter-grid select,
.rppm-price-filter input,
.rppm-sort-label select {
  width: 100%;
  min-height: 43px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid var(--rppm-line);
  border-radius: 11px;
  color: #354257;
  background-color: #fbfcfd;
  font-size: 10px;
  outline: 0;
}
.rppm-filter-grid select:focus,
.rppm-price-filter input:focus,
.rppm-sort-label select:focus { border-color: var(--rppm-accent); background: #fff; }
.rppm-price-filter { display: grid; grid-template-columns: auto 1fr auto 1fr auto; gap: 10px; align-items: end; margin-top: 15px; padding-top: 15px; border-top: 1px solid #edf0f4; }
.rppm-price-filter > span { align-self: center; min-width: 110px; }
.rppm-price-filter label { display: flex; flex-direction: column; gap: 5px; }
.rppm-price-filter small { color: #9aa4b3; font-size: 9px; }
.rppm-price-filter > i { align-self: center; color: #9aa4b3; font-size: 10px; font-style: normal; }
.rppm-reset-all,
.rppm-reset-empty {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #dce2ea;
  border-radius: 11px;
  color: #526077;
  background: #fff;
  font-size: 10px;
  cursor: pointer;
}
.rppm-reset-all:hover,
.rppm-reset-empty:hover { border-color: #ef4444; color: #b91c1c; }

.rppm-active-filters { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 13px; }
.rppm-active-filters > span { margin-left: 3px; color: #8b96a7; font-size: 9px; }
.rppm-active-filters button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 10px;
  border: 0;
  border-radius: 99px;
  color: #425066;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e0e6ed;
  font-size: 9px;
  cursor: pointer;
}
.rppm-active-filters button:hover { color: #b91c1c; box-shadow: inset 0 0 0 1px #fecaca; }
.rppm-active-filters button b { font-size: 14px; font-weight: 400; }

.rppm-results-section { scroll-margin-top: 25px; }
.rppm-results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.rppm-results-toolbar h3 { margin: 0 0 4px; color: var(--rppm-ink); font-size: 18px; font-weight: 900; }
.rppm-result-status { margin: 0; color: var(--rppm-muted); font-size: 10px; }
.rppm-sort-label { display: flex; align-items: center; gap: 9px; }
.rppm-sort-label > span { color: #7a879a; font-size: 10px; }
.rppm-sort-label select { min-width: 150px; background-color: #fff; }

.rppm-product-grid,
.rppm-loading-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.rppm-product-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--rppm-line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.rppm-product-card:hover { border-color: #d5dde6; transform: translateY(-2px); box-shadow: 0 15px 36px rgba(11,19,43,.075); }
.rppm-product-card.is-open { grid-column: 1 / -1; transform: none; border-color: color-mix(in srgb, var(--rppm-accent) 55%, #fff); box-shadow: 0 16px 42px rgba(11,19,43,.08); }
.rppm-product-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 18px 0; }
.rppm-product-shape { position: relative; display: block; width: 40px; height: 32px; color: var(--rppm-accent); }
.rppm-product-shape::before { content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 22px; border: 2px solid currentColor; border-radius: 4px; transform: translate(-50%,-50%); }
.rppm-product-shape.is-square::before { width: 26px; height: 26px; }
.rppm-product-shape.is-circle::before { width: 27px; height: 27px; border-radius: 50%; }
.rppm-product-shape.is-oval::before { width: 34px; height: 24px; border-radius: 50%; }
.rppm-product-shape.is-polygon::before { width: 29px; height: 29px; border: 0; background: currentColor; clip-path: polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%); opacity: .75; }
.rppm-product-shape.is-free::before { width: 30px; height: 27px; border-radius: 40% 60% 52% 48%; transform: translate(-50%,-50%) rotate(15deg); }
.rppm-product-badges { display: flex; justify-content: flex-end; gap: 5px; flex-wrap: wrap; }
.rppm-product-badges span { padding: 5px 8px; border-radius: 99px; color: #657287; background: #f3f6f9; font-size: 8px; }
.rppm-product-card > h4 { min-height: 48px; margin: 17px 18px 5px; color: var(--rppm-ink); font-size: 13px; font-weight: 900; line-height: 1.85; }
.rppm-product-sub { min-height: 19px; margin: 0 18px; color: #8994a5; font-size: 9px; line-height: 1.7; }
.rppm-product-summary { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 18px; padding-top: 15px; border-top: 1px solid #edf0f4; }
.rppm-product-summary > span:first-child { display: flex; flex-direction: column; }
.rppm-product-summary > span:first-child b { color: #445167; font-size: 16px; }
.rppm-product-summary > span:first-child small { color: #9aa4b3; font-size: 8px; }
.rppm-card-price { display: flex; align-items: baseline; justify-content: flex-end; gap: 5px; flex-wrap: wrap; text-align: left; }
.rppm-card-price small { color: #8a95a6; font-size: 8px; }
.rppm-card-price strong { color: var(--rppm-ink); font-size: 14px; font-weight: 900; white-space: nowrap; }
.rppm-card-price em { width: 100%; color: #8b96a7; font-size: 8px; font-style: normal; }
.rppm-product-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: calc(100% - 36px);
  min-height: 42px;
  margin: 0 18px 18px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  color: var(--rppm-ink);
  background: #dff7fb;
  background: color-mix(in srgb, var(--rppm-accent) 19%, #fff);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
.rppm-product-open:hover { background: var(--rppm-accent); }
.rppm-product-open svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s; }
.rppm-product-open[aria-expanded="true"] svg { transform: rotate(180deg); }

.rppm-variants { padding: 0 18px 18px; }
.rppm-variants-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 15px; border-radius: 12px 12px 0 0; color: #fff; background: var(--rppm-ink); }
.rppm-variants-head b { font-size: 10px; }
.rppm-variants-head small { color: rgba(255,255,255,.6); font-size: 8px; }
.rppm-variant-list { max-height: 430px; border: 1px solid var(--rppm-line); border-top: 0; border-radius: 0 0 12px 12px; overflow-y: auto; }
.rppm-variant-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; min-height: 61px; padding: 11px 15px; border-bottom: 1px solid #edf0f4; }
.rppm-variant-row:last-child { border-bottom: 0; }
.rppm-variant-row:nth-child(even) { background: #fafbfd; }
.rppm-variant-row > div { display: flex; gap: 6px; flex-wrap: wrap; }
.rppm-variant-row span { padding: 5px 8px; border-radius: 7px; color: #59667a; background: #f0f3f7; font-size: 8px; }
.rppm-variant-row > b { color: #087e8b; font-size: 11px; font-weight: 900; white-space: nowrap; }

.rppm-loading-grid { grid-column: 1/-1; }
.rppm-loading-grid i { height: 295px; border-radius: 20px; background: linear-gradient(100deg,#f1f4f7 25%,#fafbfd 40%,#f1f4f7 55%); background-size: 200% 100%; animation: rppm-shimmer 1.25s infinite; }
@keyframes rppm-shimmer { to { background-position-x: -200%; } }
.rppm-catalog.is-loading .rppm-product-grid { opacity: .25; pointer-events: none; }

.rppm-empty { padding: 70px 20px; border: 1px dashed #d9e0e8; border-radius: 20px; color: var(--rppm-muted); background: #fafbfd; text-align: center; }
.rppm-empty > span { display: block; margin-bottom: 8px; color: #a0aaba; font: 300 45px/1 Arial, sans-serif; }
.rppm-empty h3 { margin: 0 0 7px; color: var(--rppm-ink); font-size: 16px; }
.rppm-empty p { margin: 0 0 17px; font-size: 10px; }

.rppm-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 28px; }
.rppm-pagination button { min-width: 39px; height: 39px; padding: 0 10px; border: 1px solid var(--rppm-line); border-radius: 11px; color: #4f5c70; background: #fff; font-size: 10px; cursor: pointer; }
.rppm-pagination button:hover:not(:disabled),
.rppm-pagination button.is-active { border-color: var(--rppm-ink); color: #fff; background: var(--rppm-ink); }
.rppm-pagination button:disabled { opacity: .35; cursor: not-allowed; }
.rppm-pagination .rppm-page-arrow { min-width: 64px; }
.rppm-pagination span { color: #9ba5b4; }

@media (max-width: 1120px) {
  .rppm-header { grid-template-columns: 1fr auto; }
  .rppm-brand { grid-column: 1 / -1; }
  .rppm-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rppm-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rppm-product-grid, .rppm-loading-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .rppm-catalog { margin: 14px auto; border-radius: 20px; }
  .rppm-header { grid-template-columns: 1fr; gap: 23px; min-height: 0; padding: 30px 23px 34px; }
  .rppm-brand { grid-column: auto; }
  .rppm-header-stats { width: max-content; }
  .rppm-shell { padding: 25px 17px 34px; }
  .rppm-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rppm-shape-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rppm-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rppm-price-filter { grid-template-columns: 1fr 1fr; }
  .rppm-price-filter > span { grid-column: 1/-1; }
  .rppm-price-filter > i { display: none; }
  .rppm-reset-all { grid-column: 1/-1; }
  .rppm-results-toolbar { align-items: flex-start; flex-direction: column; }
  .rppm-sort-label { width: 100%; }
  .rppm-sort-label select { flex: 1; }
}

@media (max-width: 560px) {
  .rppm-header h2 { font-size: 28px; }
  .rppm-header p { font-size: 12px; }
  .rppm-category-card { min-height: 70px; padding: 10px; border-radius: 14px; }
  .rppm-category-icon { flex-basis: 37px; width: 37px; height: 37px; }
  .rppm-category-icon svg { width: 22px; height: 22px; }
  .rppm-category-card b { font-size: 10px; }
  .rppm-shape-card { min-height: 81px; padding: 12px; gap: 10px; }
  .rppm-shape-icon { flex-basis: 38px; width: 38px; transform: scale(.82); }
  .rppm-search-bar { grid-template-columns: 1fr; }
  .rppm-more-filter { width: 100%; }
  .rppm-filter-grid { grid-template-columns: 1fr; }
  .rppm-product-grid, .rppm-loading-grid { grid-template-columns: 1fr; }
  .rppm-product-card.is-open { grid-column: auto; }
  .rppm-variant-row { grid-template-columns: 1fr; gap: 9px; }
  .rppm-variant-row > b { padding-top: 8px; border-top: 1px dashed #dfe5ec; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .rppm-catalog *, .rppm-catalog *::before, .rppm-catalog *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
