/* RubyRose V10.33 — Category overlay + product stock badge cleanup. */
/* الهدف: إلغاء زووم التصنيفات، إظهار لاير بريميوم كامل، ونقل Out Of Stock فوق الصورة عند نفاد المنتج. */

html body .rr-home-category-card{
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
}

html body .rr-home-category-media{
  position:relative!important;
  overflow:hidden!important;
}

html body .rr-home-category-media::after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:2!important;
  background:linear-gradient(180deg,rgba(22,12,18,.08) 0%,rgba(22,12,18,.46) 62%,rgba(22,12,18,.76) 100%)!important;
  opacity:.78!important;
  transition:opacity .42s cubic-bezier(.16,1,.3,1)!important;
  pointer-events:none!important;
}

html body .rr-home-category-media img{
  transform:none!important;
  filter:saturate(1.02) contrast(1.02)!important;
  transition:filter .45s ease!important;
}

html body .rr-home-category-card:hover .rr-home-category-media img,
html body .rr-home-category-card:focus-visible .rr-home-category-media img{
  transform:none!important;
  filter:saturate(1.08) contrast(1.05) brightness(.86)!important;
}

html body .rr-home-category-card:hover .rr-home-category-media::after,
html body .rr-home-category-card:focus-visible .rr-home-category-media::after{
  opacity:.95!important;
}

html body .rr-home-category-content{
  position:absolute!important;
  inset:auto 0 0 0!important;
  z-index:4!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-end!important;
  min-height:58%!important;
  padding:clamp(15px,2.2vw,26px)!important;
  color:#fff!important;
  text-align:center!important;
  pointer-events:none!important;
  transform:translateY(0)!important;
  transition:transform .42s cubic-bezier(.16,1,.3,1),opacity .35s ease!important;
}

html body .rr-home-category-eyebrow{
  display:block!important;
  margin:0 0 7px!important;
  color:rgba(255,255,255,.78)!important;
  font-family:'Jost','Cairo',sans-serif!important;
  font-size:clamp(8px,.72vw,10px)!important;
  font-weight:800!important;
  letter-spacing:.28em!important;
  line-height:1.2!important;
  text-transform:uppercase!important;
}

html body .rr-home-category-content b{
  display:block!important;
  width:100%!important;
  margin:0!important;
  color:#fff!important;
  font-family:'Jost','Cairo',sans-serif!important;
  font-size:clamp(13px,1.25vw,18px)!important;
  font-weight:900!important;
  line-height:1.18!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  text-shadow:0 8px 22px rgba(0,0,0,.24)!important;
}

html body .rr-home-category-content em{
  display:block!important;
  width:min(100%,310px)!important;
  margin:8px auto 0!important;
  color:rgba(255,255,255,.86)!important;
  font-family:'Jost','Cairo',sans-serif!important;
  font-size:clamp(10px,.85vw,12px)!important;
  font-style:normal!important;
  font-weight:500!important;
  line-height:1.45!important;
  letter-spacing:.02em!important;
  opacity:0!important;
  max-height:0!important;
  overflow:hidden!important;
  transform:translateY(8px)!important;
  transition:opacity .38s ease,max-height .38s ease,transform .42s cubic-bezier(.16,1,.3,1)!important;
}

html body .rr-home-category-content small{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:max-content!important;
  max-width:100%!important;
  margin:12px auto 0!important;
  padding:8px 14px!important;
  border:1px solid rgba(255,255,255,.54)!important;
  border-radius:999px!important;
  color:#fff!important;
  background:rgba(255,255,255,.12)!important;
  backdrop-filter:blur(8px)!important;
  -webkit-backdrop-filter:blur(8px)!important;
  font-family:'Jost','Cairo',sans-serif!important;
  font-size:9px!important;
  font-weight:900!important;
  letter-spacing:.16em!important;
  line-height:1!important;
  text-transform:uppercase!important;
  pointer-events:none!important;
  opacity:.96!important;
  transition:transform .32s ease,background .32s ease,border-color .32s ease!important;
}

html body .rr-home-category-card:hover .rr-home-category-content,
html body .rr-home-category-card:focus-visible .rr-home-category-content{
  transform:translateY(-2px)!important;
}

html body .rr-home-category-card:hover .rr-home-category-content em,
html body .rr-home-category-card:focus-visible .rr-home-category-content em{
  opacity:1!important;
  max-height:60px!important;
  transform:translateY(0)!important;
}

html body .rr-home-category-card:hover .rr-home-category-content small,
html body .rr-home-category-card:focus-visible .rr-home-category-content small{
  background:rgba(255,255,255,.2)!important;
  border-color:rgba(255,255,255,.82)!important;
  transform:translateY(-1px)!important;
}

html body .rr-home-category-content small span{
  transform:none!important;
}

html[dir="rtl"] body .rr-home-category-content small span,
html[dir="rtl"] body .rr-home-category-card:hover .rr-home-category-content small span,
html[dir="rtl"] body .rr-home-category-card:focus-visible .rr-home-category-content small span{
  transform:scaleX(-1)!important;
}

/* Product card: move out of stock to image, and hide zero price cleanly. */
html body .shop-card-media{
  overflow:hidden!important;
}

html body .shop-stock-image-badge{
  position:absolute!important;
  top:12px!important;
  inset-inline-start:12px!important;
  z-index:8!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  max-width:calc(100% - 24px)!important;
  padding:7px 11px!important;
  border-radius:999px!important;
  color:#fff!important;
  background:rgba(31,22,29,.86)!important;
  box-shadow:0 12px 28px rgba(31,22,29,.18)!important;
  font-family:'Jost','Cairo',sans-serif!important;
  font-size:10px!important;
  font-weight:900!important;
  letter-spacing:.12em!important;
  line-height:1!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
  pointer-events:none!important;
}

html body .shop-card-topline{
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  width:100%!important;
  overflow:hidden!important;
}

html body .shop-card-topline .shop-price-inline:only-child{
  margin-inline-start:0!important;
  margin-inline-end:0!important;
  justify-content:flex-start!important;
}

@media(max-width:800px){
  html body .rr-home-category-card:hover .rr-home-category-content em,
  html body .rr-home-category-card:focus-visible .rr-home-category-content em,
  html body .rr-home-category-card .rr-home-category-content em{
    opacity:1!important;
    max-height:48px!important;
    transform:none!important;
  }

  html body .rr-home-category-content{
    padding:14px!important;
    min-height:70%!important;
  }

  html body .rr-home-category-content b{
    font-size:14px!important;
    line-height:1.16!important;
  }

  html body .rr-home-category-content em{
    margin-top:6px!important;
    font-size:10px!important;
    line-height:1.35!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
  }

  html body .rr-home-category-content small{
    margin-top:9px!important;
    padding:7px 12px!important;
    font-size:8px!important;
    letter-spacing:.12em!important;
  }

  html body .shop-stock-image-badge{
    top:9px!important;
    inset-inline-start:9px!important;
    padding:6px 9px!important;
    font-size:8.5px!important;
    letter-spacing:.08em!important;
  }

  html body .shop-card-topline{
    min-height:22px!important;
  }
}
