.rtp-shell{
  --rtp-text:#f3f6fb;
  --rtp-muted:#9ca6b7;
  --rtp-accent:#fa004d;
  --rtp-accent-2:#a63cff;
  --rtp-success:#51d48a;
  --rtp-border:rgba(255,255,255,.08);
  --rtp-surface:rgba(255,255,255,.04);
  --rtp-surface-2:rgba(255,255,255,.06);
  color:var(--rtp-text);
  position:relative;
  width:100%;
  max-width:100%;
  padding:28px;
  border-radius:32px;
  background:
    radial-gradient(circle at top left, rgba(250,0,77,.14) 0%, rgba(250,0,77,0) 34%),
    radial-gradient(circle at top right, rgba(166,60,255,.12) 0%, rgba(166,60,255,0) 30%),
    linear-gradient(180deg, rgba(8,10,18,.96) 0%, rgba(10,11,18,.98) 100%);
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 28px 80px rgba(0,0,0,.34);
  overflow:hidden;
}

.rtp-shell *,.rtp-shell *:before,.rtp-shell *:after{box-sizing:border-box}

.rtp-head{margin:0 0 22px}
.rtp-kicker{
  display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;
  background:rgba(250,0,77,.12);border:1px solid rgba(250,0,77,.18);
  color:#ff86b7;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase
}
.rtp-head h2{
  margin:14px 0 10px;max-width:920px;color:#fff;
  font-size:clamp(34px,4.6vw,72px);line-height:.98;letter-spacing:-.05em;font-weight:900
}
.rtp-head p{
  margin:0;max-width:760px;color:var(--rtp-muted);font-size:17px;line-height:1.7
}

.rtp-toolbar{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:end;margin:0 0 18px
}
.rtp-meta-bar{display:flex;align-items:center;gap:12px;color:var(--rtp-muted);font-size:14px}
.rtp-meta-pill{
  display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border-radius:999px;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);color:#d8deeb;font-weight:700
}

.rtp-filters{
  display:grid;
  grid-template-columns:minmax(260px,1.4fr) repeat(4,minmax(0,1fr)) auto;
  gap:12px;
  width:100%;
  margin:0 0 18px;
  padding:18px;
  border-radius:24px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(14px);
}

.rtp-filters > *{min-width:0!important;max-width:100%!important}

.rtp-filters input,
.rtp-filters select,
.rtp-filters button{
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:54px;margin:0!important;padding:0 16px;border-radius:16px;font-size:14px;line-height:1;
}

.rtp-filters input,
.rtp-filters select{
  appearance:none;-webkit-appearance:none;
  color:#fff!important;
  background:rgba(255,255,255,.06)!important;
  border:1px solid rgba(255,255,255,.08)!important;
  box-shadow:none!important;
  outline:none;
}

.rtp-filters input::placeholder{color:#98a2b3}
.rtp-filters select{
  padding-right:42px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  background-image:
    linear-gradient(45deg, transparent 50%, #c5cada 50%),
    linear-gradient(135deg, #c5cada 50%, transparent 50%)!important;
  background-position:calc(100% - 20px) 24px, calc(100% - 14px) 24px!important;
  background-size:6px 6px,6px 6px!important;
  background-repeat:no-repeat!important;
}
.rtp-filters select option{color:#111827}
.rtp-filters input:focus,.rtp-filters select:focus{
  border-color:rgba(250,0,77,.45)!important;
  box-shadow:0 0 0 4px rgba(250,0,77,.12)!important;
}
.rtp-filters button{
  border:0!important;cursor:pointer;color:#fff!important;font-weight:800;
  background:linear-gradient(135deg,var(--rtp-accent) 0%,var(--rtp-accent-2) 100%)!important;
  box-shadow:0 16px 34px rgba(250,0,77,.24)!important;
  transition:transform .18s ease,box-shadow .18s ease;
}
.rtp-filters button:hover{transform:translateY(-1px);box-shadow:0 20px 42px rgba(250,0,77,.30)!important}

.rtp-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  width:100%;
  margin:0;
}

.rtp-card{
  display:flex;flex-direction:column;min-width:0;overflow:hidden;
  border-radius:24px;
  background:linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.03) 100%);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 18px 46px rgba(0,0,0,.18);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.rtp-card:hover{
  transform:translateY(-4px);
  border-color:rgba(250,0,77,.24);
  box-shadow:0 24px 56px rgba(0,0,0,.24);
}
.rtp-card.is-featured{border-color:rgba(250,0,77,.32)}

.rtp-media{aspect-ratio:4/3;background:rgba(255,255,255,.04);overflow:hidden}
.rtp-media img{width:100%;height:100%;display:block;object-fit:cover}

.rtp-body{
  display:flex;flex-direction:column;gap:10px;min-width:0;min-height:100%;padding:18px
}
.rtp-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.rtp-store{
  min-width:0;color:#c0c8d8;font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.rtp-discount{
  flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;
  min-width:46px;padding:6px 9px;border-radius:999px;
  background:rgba(81,212,138,.14);color:#8cf0b4;font-size:12px;font-weight:900
}
.rtp-card h3{
  margin:0;color:#fff;font-size:20px;line-height:1.3;font-weight:800;letter-spacing:-.02em;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:78px
}
.rtp-cat{
  margin:0;color:var(--rtp-muted);font-size:13px;line-height:1.55;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:40px
}
.rtp-price{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:6px}
.rtp-price del{color:#7d8698;font-size:13px}
.rtp-price ins{
  color:#fff;font-size:28px;line-height:1;font-weight:900;letter-spacing:-.04em;text-decoration:none
}
.rtp-coupon{
  display:inline-flex;align-items:center;gap:8px;width:fit-content;max-width:100%;
  padding:10px 12px;border-radius:14px;background:rgba(250,0,77,.10);border:1px solid rgba(250,0,77,.18);
  color:#ffd1df;font-size:13px;font-weight:700
}
.rtp-coupon code{
  padding:4px 8px;border-radius:10px;background:rgba(255,255,255,.12);color:#fff;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace
}
.rtp-actions{margin-top:6px}
.rtp-actions a{
  display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;padding:0 16px;
  border-radius:14px;text-decoration:none;border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(135deg, rgba(250,0,77,.16) 0%, rgba(166,60,255,.16) 100%);
  color:#fff;font-size:14px;font-weight:800;transition:transform .18s ease,border-color .18s ease,background .18s ease
}
.rtp-actions a:hover{
  transform:translateY(-1px);border-color:rgba(250,0,77,.26);
  background:linear-gradient(135deg, rgba(250,0,77,.26) 0%, rgba(166,60,255,.22) 100%)
}

.rtp-empty{
  padding:28px;border-radius:24px;background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);color:var(--rtp-muted);text-align:center
}
.rtp-grid.is-loading{opacity:.55;pointer-events:none}

@media (max-width:1280px){
  .rtp-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
  .rtp-filters input{grid-column:span 3}
  .rtp-filters button{grid-column:span 3}
  .rtp-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:860px){
  .rtp-shell{padding:20px;border-radius:24px}
  .rtp-toolbar{grid-template-columns:1fr}
  .rtp-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;border-radius:20px}
  .rtp-filters input{grid-column:span 2}
  .rtp-filters button{grid-column:span 2}
  .rtp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .rtp-card h3{font-size:17px;min-height:66px}
  .rtp-price ins{font-size:22px}
}
@media (max-width:560px){
  .rtp-shell{padding:16px;border-radius:20px}
  .rtp-head h2{font-size:36px}
  .rtp-head p{font-size:15px}
  .rtp-filters{grid-template-columns:1fr}
  .rtp-filters input,.rtp-filters button{grid-column:auto}
  .rtp-grid{grid-template-columns:1fr}
  .rtp-body{padding:16px}
}
.rtp-media.is-empty{
  position: relative;
  background:
    radial-gradient(circle at 30% 30%, rgba(250,0,77,.14), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
}

.rtp-media.is-empty::after{
  content: "reTEST";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.22);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .08em;
}

.rtp-card{
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.rtp-media{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 220px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}

.rtp-media img{
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 220px !important;
  object-fit: cover !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.rtp-media.is-empty{
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.45);
  font-size: 14px;
  font-weight: 700;
}

.rtp-pagination{
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.rtp-pagination-inner{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.rtp-page-btn{
  appearance: none;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}

.rtp-page-btn[disabled]{
  opacity: .45;
  cursor: not-allowed;
}

.rtp-page-info{
  color: rgba(255,255,255,.8);
  font-size: 14px;
}