/* =========================================================
   PGP v232 — Liket/Saved page white stable + remove black hero box
   المطلوب:
   - صفحة Liket تبقى بيضاء من أول فتح، بدون فلاش أسود.
   - إزالة الإطار/المستطيل الأسود الكبير حول العداد/الكلام.
   - إبقاء الكلام والعداد نفسه ظاهر بدون كارت أسود.
   - عدم تغيير باقي صفحات الموقع.
   ========================================================= */

/* Only the saved/liked page */
html body.pgp-page-liked,
html body.pgp-page-saved,
html body:has(.saved-wrap),
html body:has(.saved-hero),
html body:has(#savedContent){
  background:#ffffff!important;
  background-color:#ffffff!important;
  background-image:none!important;
}

/* Main wrappers stay free/white */
html body :is(.saved-wrap,.saved-shell,.wishlist-panel){
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
}

/* Remove the black rectangular hero/card area only */
html body :is(.saved-hero,.saved-card.empty-card){
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  border-radius:0!important;
}

html body :is(.saved-hero,.saved-card.empty-card)::before,
html body :is(.saved-hero,.saved-card.empty-card)::after{
  content:none!important;
  display:none!important;
  opacity:0!important;
  visibility:hidden!important;
  background:none!important;
  box-shadow:none!important;
  border:0!important;
}

/* Keep the text/number visible after removing the black box */
html body .saved-hero h1,
html body .saved-hero p,
html body .saved-count,
html body .saved-count strong,
html body #savedCount,
html body #savedNumber,
html body #savedCountMobile,
html body #savedNumberMobile,
html body .saved-card.empty-card{
  color:#141414!important;
  text-shadow:none!important;
}

/* The yellow number may stay accent, but not hidden in black box */
html body .saved-count strong,
html body #savedNumber,
html body #savedNumberMobile{
  color:#c4a800!important;
}

/* Wishlist area readable on white */
html body .wishlist-panel{
  color:#141414!important;
}
html body .wishlist-panel h1,
html body .wishlist-panel h2,
html body .wishlist-panel h3,
html body .wishlist-panel p{
  color:#141414!important;
}

/* Do NOT flatten product cards; keep their original card styling. Only first-paint row stability. */
html body .saved-wrap .saved-grid:not(.pgp-view-grid){
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  justify-content:flex-start!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x mandatory!important;
  -webkit-overflow-scrolling:touch!important;
}

/* Keep slider arrows visible on saved products if products exist */
html body .saved-wrap .pgp-view-shell > .pgp-view-arrow{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}

/* Bottom nav frame remains black 60% */
html body .tc-bottom-bar,
html body .pgp-bottom-nav{
  border-color:rgba(0,0,0,.60)!important;
  border:1px solid rgba(0,0,0,.60)!important;
}
