/* =========================
   Red/Black Tabs UI (rtx)
   ========================= */
.rtx{
  --bg:#0b0b0c;
  --panel:#101012;
  --panel2:#0e0e10;
  --stroke:rgba(255,255,255,.10);
  --stroke2:rgba(255,255,255,.14);

  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.70);
  --muted2:rgba(255,255,255,.54);

  --red:#e11d2e;     /* أحمر قريب من الصورة */
  --red2:#ff2d3b;
  --redGlow: rgba(225,29,46,.22);

  --shadow: 0 22px 60px rgba(0,0,0,.55);

  background: var(--bg);
  border:1px solid rgba(255,255,255,.05);
  border-radius:20px;
  overflow:hidden;
  color:var(--text);
  margin-bottom: 30px;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  max-width: none;
}
.rtx, .rtx *{ box-sizing:border-box; font-family:inherit; }
.rtx-shell{ padding: clamp(14px, 2.2vw, 26px); }

/* Header */
.rtx-head{ padding-bottom:14px; border-bottom:1px solid rgba(255,255,255,.08); }
.rtx-top{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:14px; flex-wrap:wrap;
}
.rtx-title{ margin:0; font-size: clamp(20px, 2.5vw, 32px); font-weight: 800; letter-spacing:-0.5px; color:#fff; }
.rtx-sub{ margin:6px 0 0; color:var(--muted2); font-size:13px; line-height:1.6; }

/* Search (improved) */
.rtx-actions{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.rtx-search{
  display:flex;
  align-items:center;
  gap:10px;
  background: rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:16px;
  padding: 8px 12px;
  min-height:48px;
  min-width: min(520px, 92vw);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}
.rtx-search:focus-within{
  border-color: var(--red);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 20px var(--redGlow);
}
.rtx-sIcon{
  width:24px; height:24px;
  display:grid; place-items:center;
  color: var(--red);
  flex:0 0 auto;
}
.rtx-input{
  border:0; outline:0; background:transparent;
  color:var(--text);
  font-size:15px;
  font-weight: 500;
  width: 100%;
  min-width: 160px;
}
.rtx-input::-webkit-search-cancel-button{ -webkit-appearance: none; }
.rtx-input::placeholder{ color: rgba(255,255,255,0.4); }

.rtx-go{
  border:0; outline:0;
  padding: 10px 20px;
  border-radius:12px;
  cursor:pointer;
  color:#fff;
  font-weight:800;
  font-size:14px;
  background: var(--red);
  box-shadow: 0 4px 12px var(--redGlow);
  transition: all 0.3s ease;
  white-space:nowrap;
}
.rtx-go:hover{ transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 6px 16px var(--redGlow); }

.rtx-clear{
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  padding: 11px 12px;
  border-radius:14px;
  cursor:pointer;
  min-height:44px;
  transition: transform .12s ease, background .18s ease, border-color .18s ease;
}
.rtx-clear:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}

/* Tabs Host */
.rtx-tabsHost{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.rtx-level{
  border:none;
  background: transparent;
  padding:0;
  box-shadow: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.rtx-levelHead{
  display:none;
}
.rtx-levelLbl{
  font-weight:950;
  letter-spacing:.2px;
  font-size:12px;
  color: rgba(255,255,255,0.86);
}
.rtx-levelHint{
  color: var(--muted2);
  font-size:12px;
}

/* Tabs row */
.rtx-tabs{
  display:flex;
  gap:10px;
  overflow:auto;
  padding-bottom:2px;
  scrollbar-width: thin;
}
.rtx-tabs::-webkit-scrollbar{ height:10px; }
.rtx-tabs::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.12);
  border:3px solid rgba(0,0,0,0);
  background-clip: padding-box;
  border-radius:999px;
}

/* ===== Tab (Professional & Clean) ===== */
.rtx-tab{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 14px;
  cursor:pointer;
  user-select:none;
  white-space:nowrap;

  color: var(--muted);
  font-weight:600;
  font-size:15px;

  border:1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  transition: all .2s ease;
}
.rtx-tab:hover{
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.rtx-tab.is-active{
  color:#fff;
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 8px 20px var(--redGlow);
}

/* Small icon on tabs (like filter icon feel) */
.rtx-ico{
  display:none;
}
.rtx-tab.is-active .rtx-ico{
  background: rgba(0,0,0,0.18);
  border-color: rgba(255,255,255,0.22);
}

/* Main */
.rtx-main{ margin-top:16px; }
.rtx-meta{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.rtx-count{ color: var(--muted); font-size:13px; }
.rtx-hint{ color: var(--muted2); font-size:12px; }

.rtx-products{
  display:grid;
  grid-template-columns: repeat(var(--rtx-cols, 4), minmax(0, 1fr));
  gap:20px;
}

.rtx-card{
  background: #161618;
  border:1px solid rgba(255,255,255,0.06);
  border-radius:16px;
  overflow:hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.rtx-card:hover{
  transform: translateY(-8px);
  border-color: var(--red);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.rtx-media{ position:relative; height: var(--abp-card-img-h, 190px); background: rgba(0,0,0,0.25); border-bottom: 1px solid rgba(255,255,255,0.05); overflow:hidden; }
.rtx-media img{ width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.rtx-badge{
  position:absolute;
  top:12px;
  inset-inline-start:12px;
  background: var(--red);
  color: #fff;
  padding:5px 12px;
  border-radius:6px;
  font-size:11px;
  font-weight: 800;
  backdrop-filter: blur(8px);
  max-width: calc(100% - 24px);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.rtx-body{ padding:20px; display:flex; flex-direction:column; gap:12px; flex-grow: 1; align-items: center; text-align: center; }
.rtx-pname{ margin:0; font-weight:800; font-size:18px; color:#fff; line-height: 1.4; }
.rtx-pdesc{ 
  margin:0; 
  color: var(--muted); 
  font-size:14px; 
  line-height:1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rtx-foot{ 
  display:flex; 
  flex-direction: column;
  align-items:center; 
  gap:15px; 
  margin-top:auto;
  padding-top: 15px;
  width: 100%;
}
.rtx-price{ font-weight:800; color: #fff; font-size: 20px; letter-spacing: -0.5px; }
.rtx-cta{
  background: var(--red);
  color: #fff;
  padding:12px 24px;
  border-radius: 12px;
  cursor:pointer;
  font-weight:800;
  font-size:14px;
  transition: all 0.3s ease;
  text-decoration: none;
  width: 100%;
  display: inline-block;
  box-shadow: 0 5px 15px var(--redGlow);
}
.rtx-cta:hover{ transform: translateY(-3px); filter: brightness(1.1); box-shadow: 0 8px 25px var(--redGlow); color: #fff; text-decoration: none; }

.rtx-empty{
  grid-column: 1 / -1;
  padding:18px;
  border:1px dashed rgba(255,255,255,0.14);
  border-radius:18px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  text-align:center;
}

/* Responsive */
@media (max-width: 1200px){
  .rtx-products{ grid-template-columns: repeat(min(3, var(--rtx-cols, 4)), minmax(0,1fr)); }
}
@media (max-width: 980px){
  .rtx-products{ grid-template-columns: repeat(min(2, var(--rtx-cols, 4)), minmax(0,1fr)); }
  .rtx-actions{ width:100%; }
  .rtx-search{ min-width: 100%; }
}
@media (max-width: 560px){
  .rtx-products{ grid-template-columns: 1fr; }
  .rtx-actions{ flex-direction:column; align-items:stretch; }
  .rtx-clear{ width:100%; }
}

/* ===== RW Product Details Styles ===== */
.rw-pdp, .rw-pdp *{ font-family: inherit !important; }
.rw-pdp{ background: var(--rw-bg) !important; color: var(--rw-text) !important; padding: 26px 0 44px; }
.rw-pdp *{ box-sizing:border-box; }

.rw-pdp__container{ width:100% !important; max-width:none !important; margin:0 !important; padding-inline:16px !important; }

.rw-bc{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; color: var(--rw-muted) !important; font-size: 13px; margin-bottom: 14px; }
.rw-bc__link{ color:var(--rw-muted) !important; text-decoration:none; }
.rw-bc__link:hover{ color:var(--rw-text) !important; }
.rw-bc__sep{ opacity:.45; }
.rw-bc__current{ color:var(--rw-text) !important; opacity:.9; }

.rw-pdp__grid{ display:grid; grid-template-columns: 1.05fr .95fr; gap:18px; align-items:start; }

.rw-gal, .rw-info{ background: rgba(255,255,255,.02) !important; border: 1px solid var(--rw-line) !important; border-radius: var(--rw-radius) !important; box-shadow: var(--rw-shadow) !important; overflow:hidden; }

.rw-gal{ position:sticky; top:16px; }
.rw-gal__main{ position:relative; aspect-ratio: 1/1; background: rgba(255,255,255,.015) !important; display:flex; align-items:center; justify-content:center; padding:18px; border-bottom:1px solid var(--rw-line) !important; }
.rw-gal__img{ width:100%; height:100%; object-fit: contain; border-radius: 14px; filter: drop-shadow(0 10px 26px rgba(0,0,0,.55)); }
.rw-gal__empty{ color: var(--rw-muted) !important; font-size: 14px; }
.rw-gal__badge{ position:absolute; inset-inline-start: 14px; top: 14px; padding: 8px 10px; border-radius:999px; font-size:12px; background: rgba(220,38,38,.18) !important; border: 1px solid rgba(220,38,38,.35) !important; color:#ffd2d2 !important; }

/* Gallery controls */
.rw-gal__nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(0,0,0,.28) !important;
  color: #fff !important;
  cursor:pointer;
  display:grid;
  place-items:center;
  transition: transform .12s ease, filter .18s ease, background .18s ease;
}
.rw-gal__nav:hover{ filter: brightness(1.08); transform: translateY(-50%) scale(1.02); }
.rw-gal__prev{ inset-inline-start: 12px; }
.rw-gal__next{ inset-inline-end: 12px; }
.rw-gal__nav span{ font-size: 22px; line-height: 1; }

.rw-gal__zoom{
  position:absolute;
  inset-inline-end: 14px;
  top: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(0,0,0,.28) !important;
  color: #fff !important;
  cursor:pointer;
  display:grid;
  place-items:center;
}
.rw-gal__zoom:hover{ filter: brightness(1.08); }

.rw-gal__count{
  position:absolute;
  inset-inline-end: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(0,0,0,.32) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.92) !important;
}

.rw-gal__thumbs{ display:flex; gap:10px; padding:12px; overflow:auto; scroll-snap-type:x mandatory; }
.rw-thumb{ width:74px; height:74px; flex:0 0 auto; border-radius:14px; border:1px solid rgba(255,255,255,.12) !important; background: rgba(255,255,255,.02) !important; display:flex; align-items:center; justify-content:center; cursor:pointer; scroll-snap-align:start; overflow:hidden; transition: transform .15s ease, border-color .15s ease, outline-color .15s ease; }
.rw-thumb:hover{ transform: translateY(-1px); }
.rw-thumb img{ width:100%; height:100%; object-fit:cover; }
.rw-thumb.is-active{ outline: 2px solid rgba(220,38,38,.7) !important; border-color: rgba(220,38,38,.25) !important; }

.rw-info{ padding:18px; }
.rw-info__head{ padding-bottom:14px; border-bottom:1px solid var(--rw-line) !important; }
.rw-info__title{ margin:0 0 10px; font-size: clamp(20px, 2.3vw, 30px); line-height:1.2; letter-spacing:.2px; color:#ffffff !important; }

.rw-info__meta{ display:flex; flex-wrap:wrap; gap: 12px 16px; align-items:center; justify-content: space-between; margin-bottom: 12px; }

.rw-rating{ display:flex; gap:10px; align-items:center; }
.rw-rating__stars{ display:flex; gap:4px; align-items:center; }
.rw-star{ width:16px; height:16px; display:inline-block; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); background: rgba(255,255,255,.16) !important; }
.rw-star.is-on{ background: linear-gradient(180deg, #ffd44d, #f59e0b) !important; }
.rw-rating__value{ font-weight:700; }
.rw-rating__count{ color: var(--rw-muted) !important; font-size: 13px; }

.rw-sku{ color: var(--rw-muted) !important; font-size: 13px; }
.rw-sku__k{ opacity:.8; }
.rw-sku__v{ color: var(--rw-text) !important; opacity:.9; }

.rw-info__short{ margin:0; color: var(--rw-muted) !important; line-height: 1.75; }

.rw-facts{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 12px; }
.rw-fact{ display:inline-flex; align-items:center; gap:8px; padding: 8px 10px; border-radius: 999px; font-size: 12px; color: var(--rw-text) !important; background: rgba(255,255,255,.03) !important; border: 1px solid rgba(255,255,255,.12) !important; }
.rw-fact b{ font-weight:900; }

.rw-tabs{ margin-top: 16px; border-top: 1px solid var(--rw-line) !important; padding-top: 14px; }
.rw-tabs__nav{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom: 12px; }
.rw-tab{ padding:10px 12px; border-radius:999px; background: rgba(255,255,255,.03) !important; border:1px solid rgba(255,255,255,.14) !important; color: var(--rw-text) !important; cursor:pointer; font-weight:700; font-size:13px; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.rw-tab:hover{ transform: translateY(-1px); }
.rw-tab.is-active{ background: rgba(220,38,38,.12) !important; border-color: rgba(220,38,38,.45) !important; }
.rw-pane{ display:none; }
.rw-pane.is-active{ display:block; }

.rw-prose{ color: var(--rw-muted) !important; line-height: 1.85; font-size: 14px; }
.rw-prose ul{ margin: 10px 0 0; padding-inline-start: 18px; }
.rw-prose li{ margin: 6px 0; }

.rw-specs{ display:grid; grid-template-columns: 1fr; gap: 10px; }
.rw-spec{ display:flex; justify-content:space-between; gap:14px; padding: 12px; border: 1px solid rgba(255,255,255,.12) !important; border-radius: 16px; background: rgba(255,255,255,.02) !important; }
.rw-spec__k{ color: var(--rw-muted) !important; font-size: 13px; }
.rw-spec__v{ color: var(--rw-text) !important; font-weight: 900; font-size: 13px; }

.rw-files{ display:grid; gap: 10px; }
.rw-file{ display:flex; justify-content:space-between; align-items:center; gap:12px; padding: 12px; border-radius: 16px; border: 1px solid rgba(255,255,255,.12) !important; background: rgba(255,255,255,.02) !important; }
.rw-file__l{ display:flex; flex-direction:column; gap:4px; }
.rw-file__t{ font-weight:900; }
.rw-file__d{ color: var(--rw-muted) !important; font-size: 12px; }
.rw-file__a{ text-decoration:none; padding: 9px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14) !important; background: rgba(255,255,255,.03) !important; color: var(--rw-text) !important; font-weight: 900; font-size: 12px; white-space:nowrap; }

.rw-sim{ margin-top: 18px; }
.rw-sim__head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin: 0 0 10px; }
.rw-sim__title{ margin:0; font-size: 18px; color: var(--rw-text) !important; }

.rw-btnmore{ display:inline-flex !important; align-items:center !important; justify-content:center !important; height: 40px !important; padding: 0 14px !important; border-radius: 999px !important; background: rgba(220,38,38,.14) !important; border: 1px solid rgba(220,38,38,.40) !important; color: #fff !important; font-weight: 900 !important; text-decoration:none !important; transition: transform .15s ease, filter .15s ease !important; white-space: nowrap !important; }
.rw-btnmore:hover{ transform: translateY(-1px) !important; filter: brightness(1.06) !important; }

.rw-cards{ display:grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap:12px !important; align-items: stretch !important; }
.rw-card{ border: 1px solid rgba(255,255,255,.12) !important; border-radius: 18px; background: rgba(255,255,255,.02) !important; overflow:hidden; display:flex !important; flex-direction:column !important; height:100% !important; min-height: 280px !important; }
.rw-card__img{ height: 170px !important; background: rgba(255,255,255,.03) !important; }
.rw-card__img img{ width:100% !important; height:100% !important; object-fit: cover !important; object-position: center !important; display:block !important; }
.rw-card__body{ padding: 12px; display:flex !important; flex-direction:column !important; gap:8px; height:100% !important; text-align:center !important; align-items:center !important; }
.rw-card__t{ margin:0; font-size: 14px; line-height: 1.35; font-weight: 900; color: var(--rw-text) !important; text-align:center !important; }
.rw-card__p{ margin:0; color: var(--rw-muted) !important; font-size: 12px; line-height: 1.6; text-align:center !important; display:-webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow:hidden; }
.rw-mini{ margin-top:auto !important; width: 100% !important; height: 36px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14) !important; background: rgba(255,255,255,.03) !important; color: var(--rw-text) !important; cursor:pointer; font-weight: 900; font-size: 12px; text-align:center !important; text-decoration:none !important; display:inline-flex !important; align-items:center !important; justify-content:center !important; }
.rw-mini:hover{ filter: brightness(1.06); }

/* Simple lightbox */
.rw-lightbox{ position:fixed; inset:0; z-index: 99999; display:none; }
.rw-lightbox.is-open{ display:block; }
.rw-lightbox__backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.78); }
.rw-lightbox__panel{
  position:absolute;
  inset: 18px;
  display:grid;
  place-items:center;
}
.rw-lightbox__img{
  max-width: min(1100px, 92vw);
  max-height: min(88vh, 900px);
  width:auto;
  height:auto;
  border-radius: 18px;
  background: rgba(255,255,255,.02);
  box-shadow: 0 20px 70px rgba(0,0,0,.6);
}
.rw-lightbox__close{
  position:absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color:#fff;
  cursor:pointer;
}

/* Products pager (non-AJAX) */
.rtx-pager{display:flex; align-items:center; justify-content:center; gap:12px; padding-top:14px}
.rtx-pageBtn{height:40px; padding:0 14px; border-radius:999px; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.03); color:#fff; font-weight:900; text-decoration:none; display:inline-flex; align-items:center; justify-content:center}
.rtx-pageBtn:hover{filter:brightness(1.06)}
.rtx-pageBtn.is-disabled{opacity:.5; pointer-events:none}
.rtx-pageInfo{color:rgba(255,255,255,.72); font-weight:800; font-size:13px}

@media (max-width: 980px){
  .rw-pdp__grid{ grid-template-columns: 1fr; }
  .rw-gal{ position:relative; top:auto; }
  .rw-cards{ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 560px){
  .rw-pdp__container{ padding-inline: 12px !important; }
  .rw-cards{ grid-template-columns: 1fr !important; }
  .rw-gal__thumbs{ padding: 10px; }
  .rw-thumb{ width: 64px; height: 64px; }
}


/* === RW PDP (SHOWCASE PRO | Full Width | Flat BG | No Buy) === */
  :root{
    --rwpdp-bg:#0b0d12;
    --rwpdp-surface:rgba(255,255,255,.03);
    --rwpdp-line:rgba(255,255,255,.10);
    --rwpdp-text:#eef2ff;
    --rwpdp-muted:#a6b0c3;
    --rwpdp-brand:#dc2626;
    --rwpdp-radius:20px;
    --rwpdp-shadow: 0 18px 60px rgba(0,0,0,.50);
  }

  .rwpdp, .rwpdp *{ font-family: inherit !important; box-sizing: border-box; }
  .rwpdp{
    background: var(--rwpdp-bg) !important;
    color: var(--rwpdp-text) !important;
    padding: 22px 0 44px;
  }
  .rwpdp__wrap{
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-inline: 16px !important;
  }

  .rwpdp__top{
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    margin-bottom: 12px;
  }
  .rwpdp__bc{
    display:flex; flex-wrap:wrap; align-items:center; gap:10px;
    color: var(--rwpdp-muted) !important;
    font-size: 13px;
  }
  .rwpdp__bcLink{ color: var(--rwpdp-muted) !important; text-decoration:none; }
  .rwpdp__bcLink:hover{ color: var(--rwpdp-text) !important; }
  .rwpdp__sep{ opacity:.45; }
  .rwpdp__bcCur{ color: var(--rwpdp-text) !important; opacity:.9; }

  .rwpdp__btn{
    display:inline-flex; align-items:center; justify-content:center;
    height: 44px; padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10) !important;
    background: rgba(255,255,255,.03) !important;
    color: var(--rwpdp-text) !important;
    text-decoration:none;
    font-weight: 900;
    font-size: 13px;
    white-space: nowrap;
    cursor:pointer;
    transition: transform .15s ease, filter .15s ease;
  }
  .rwpdp__btn:hover{ transform: translateY(-1px); filter: brightness(1.06); }
  .rwpdp__btn--primary{
    background: var(--rwpdp-brand) !important;
    border-color: rgba(255,255,255,.10) !important;
    color: #fff !important;
    box-shadow: 0 14px 34px rgba(220,38,38,.22) !important;
  }

  .rwpdp__hero{
    display:grid;
    grid-template-columns: 1.2fr 440px;
    gap: 16px;
    align-items:stretch;
    margin-bottom: 16px;
  }

  .rwpdp__heroText{
    background: var(--rwpdp-surface) !important;
    border: 1px solid var(--rwpdp-line) !important;
    border-radius: var(--rwpdp-radius) !important;
    box-shadow: var(--rwpdp-shadow) !important;
    padding: 18px;
    min-height: 260px;
    display:flex; flex-direction:column; justify-content:space-between;
  }

  .rwpdp__kicker{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom: 10px; }
  .rwpdp__badge{
    background: var(--rwpdp-brand) !important;
    color: #fff !important;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(220,38,38,.28) !important;
  }
  .rwpdp__muted{ color: var(--rwpdp-muted) !important; font-size: 13px; }
  .rwpdp__dot{ opacity:.5; }

  .rwpdp__title{
    margin: 0 0 10px;
    color:#fff !important;
    font-size: clamp(22px, 2.6vw, 34px);
    line-height: 1.15;
    letter-spacing: .2px;
  }
  .rwpdp__lead{
    margin: 0 0 12px;
    color: var(--rwpdp-muted) !important;
    line-height: 1.85;
    font-size: 14px;
    max-width: 72ch;
  }

  .rwpdp__metaRow{
    display:flex; flex-wrap:wrap; gap: 12px 14px;
    align-items:center; justify-content:space-between;
    padding-top: 10px;
    border-top: 1px solid var(--rwpdp-line) !important;
  }
  .rwpdp__rating{ display:flex; align-items:center; gap:10px; }
  .rwpdp__stars{ display:flex; gap:4px; align-items:center; }
  .rwpdp__star{
    width: 16px; height: 16px; display:inline-block;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    background: rgba(255,255,255,.16) !important;
  }
  .rwpdp__star.is-on{ background: linear-gradient(180deg, #ffd44d, #f59e0b) !important; }
  .rwpdp__rateVal{ font-weight: 900; }
  .rwpdp__rateCnt{ color: var(--rwpdp-muted) !important; font-size: 13px; }

  .rwpdp__chips{ display:flex; flex-wrap:wrap; gap:10px; }
  .rwpdp__chip{
    display:inline-flex; align-items:center; gap:8px;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--rwpdp-text) !important;
    background: rgba(255,255,255,.02) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    white-space: nowrap;
  }
  .rwpdp__chip b{ font-weight: 900; }

  .rwpdp__heroMedia{
    background: var(--rwpdp-surface) !important;
    border: 1px solid var(--rwpdp-line) !important;
    border-radius: var(--rwpdp-radius) !important;
    box-shadow: var(--rwpdp-shadow) !important;
    padding: 12px;
    display:flex; flex-direction:column; gap:10px;
  }
  .rwpdp__mediaMain{
    aspect-ratio: 4 / 3;
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10) !important;
    background: rgba(0,0,0,.18) !important;
    overflow:hidden;
    display:flex; align-items:center; justify-content:center;
  }
  .rwpdp__mediaMain img{
    width:100%; height:100%;
    object-fit: cover;
    object-position: center;
    display:block;
  }

  .rwpdp__mediaThumbs{
    display:flex; gap:10px; overflow:auto;
    padding: 4px 2px;
    scroll-snap-type: x mandatory;
    direction: ltr;
  }
  .rwpdp__thumb{
    width: 86px; height: 64px;
    flex:0 0 auto;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12) !important;
    background: rgba(255,255,255,.02) !important;
    overflow:hidden;
    cursor:pointer;
    scroll-snap-align: start;
    position: relative;
    transition: transform .15s ease, outline-color .15s ease, border-color .15s ease;
    padding: 0;
  }
  .rwpdp__thumb:hover{ transform: translateY(-1px); }
  .rwpdp__thumb img{ width:100%; height:100%; object-fit: cover; object-position: center; display:block; }
  .rwpdp__thumb::after{
    content:"";
    position:absolute; inset:0;
    background: rgba(0,0,0,.18);
    opacity: .55;
    transition: opacity .15s ease;
    pointer-events:none;
  }
  .rwpdp__thumb.is-active{
    border-color: rgba(220,38,38,.55) !important;
    outline: 2px solid rgba(220,38,38,.85) !important;
    transform: translateY(-1px);
  }
  .rwpdp__thumb.is-active::after{ opacity: 0; }

  .rwpdp__card{
    background: var(--rwpdp-surface) !important;
    border: 1px solid var(--rwpdp-line) !important;
    border-radius: var(--rwpdp-radius) !important;
    box-shadow: var(--rwpdp-shadow) !important;
    padding: 16px;
    margin-bottom: 16px;
  }
  .rwpdp__cardHead{ margin-bottom: 10px; }
  .rwpdp__h{ margin: 0 0 6px; color: #fff !important; font-size: 18px; letter-spacing: .2px; }
  .rwpdp__sub{ margin: 0; color: var(--rwpdp-muted) !important; font-size: 13px; line-height: 1.6; }

  .rwpdp__prose{ color: var(--rwpdp-muted) !important; line-height: 1.9; font-size: 14px; }
  .rwpdp__prose ul{ margin: 10px 0 0; padding-inline-start: 18px; }
  .rwpdp__prose li{ margin: 6px 0; }

  .rwpdp__specGrid{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .rwpdp__spec{
    border: 1px solid rgba(255,255,255,.12) !important;
    background: rgba(255,255,255,.02) !important;
    border-radius: 16px;
    padding: 12px;
    display:flex; justify-content:space-between; gap:12px;
  }
  .rwpdp__specK{ color: var(--rwpdp-muted) !important; font-size: 13px; }
  .rwpdp__specV{ color: var(--rwpdp-text) !important; font-weight: 900; font-size: 13px; }

  .rwpdp__files{ display:grid; gap:10px; }
  .rwpdp__file{
    border: 1px solid rgba(255,255,255,.12) !important;
    background: rgba(255,255,255,.02) !important;
    border-radius: 16px;
    padding: 12px;
    display:flex; align-items:center; justify-content:space-between; gap:12px;
  }
  .rwpdp__fileL{ display:flex; flex-direction:column; gap:4px; }
  .rwpdp__fileT{ font-weight: 900; }
  .rwpdp__fileD{ color: var(--rwpdp-muted) !important; font-size: 12px; }

  .rwpdp__sim{ margin-top: 10px; }
  .rwpdp__simHead{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom: 10px; }
  .rwpdp__simTitle{ margin:0; font-size: 18px; color:#fff !important; }

  .rwpdp__simGrid{ display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
  .rwpdp__cardSm{
    background: var(--rwpdp-surface) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 18px;
    overflow:hidden;
    box-shadow: var(--rwpdp-shadow) !important;
    display:flex; flex-direction:column;
    height: 100%;
    min-height: 280px;
    text-decoration: none;
    color: inherit;
  }
  .rwpdp__imgSm{ height: 170px; background: rgba(255,255,255,.03) !important; }
  .rwpdp__imgSm img{ width:100%; height:100%; object-fit: cover; object-position:center; display:block; }
  .rwpdp__bodySm{
    padding: 12px;
    display:flex; flex-direction:column; gap:8px;
    height: 100%;
    text-align:center;
    align-items:center;
  }
  .rwpdp__tSm{ margin:0; font-weight: 900; color:#fff !important; font-size: 14px; line-height: 1.35; }
  .rwpdp__pSm{
    margin:0; color: var(--rwpdp-muted) !important; font-size: 12px; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow:hidden;
  }
  .rwpdp__btnSm{
    margin-top: auto;
    width: 100%;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10) !important;
    background: var(--rwpdp-brand) !important;
    color: #fff !important;
    font-weight: 900;
    font-size: 12px;
    text-align:center;
    box-shadow: 0 14px 34px rgba(220,38,38,.18) !important;
    transition: transform .15s ease, filter .15s ease;
  }
  .rwpdp__cardSm:hover .rwpdp__btnSm{ transform: translateY(-1px); filter: brightness(1.06); }

  @media (max-width: 1100px){
    .rwpdp__hero{ grid-template-columns: 1fr; }
    .rwpdp__heroMedia{ order: -1; }
    .rwpdp__specGrid{ grid-template-columns: 1fr; }
  }
  @media (max-width: 980px){
    .rwpdp__simGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 560px){
    .rwpdp__wrap{ padding-inline: 12px !important; }
    .rwpdp__simGrid{ grid-template-columns: 1fr; }
    .rwpdp__thumb{ width: 74px; height: 56px; }
  }


/* =========================
   Fixed card image heights (listing + PDP similar)
   ========================= */
.rtx-media{ height: var(--abp-card-img-h, 190px) !important; aspect-ratio: auto !important; }
@media (max-width: 560px){
  .rtx-media{ height: var(--abp-card-img-h-sm, 170px) !important; }
}

.rwpdp__imgSm{ height: 170px !important; }
.rwpdp__imgSm img{ width:100% !important; height:100% !important; object-fit:cover !important; object-position:center !important; display:block !important; }
