/* Tamiyouz Alrowad Store — V8.0 compact rhythm, scroll storytelling, image-first service cards.
   Single lightweight CSS asset. Existing destination links, content & media preserved. */

/* Compact vertical rhythm: avoid the former 79px section padding. */
body.tyz-store-redesign #main-content .tyz-store-split~section.section{
  padding-block:46px!important;
}
body.tyz-store-redesign #main-content .tyz-store-split{
  padding-bottom:42px!important;
}
body.tyz-store-redesign #main-content .tyz-store-split~section.section:has(.tyz-trust-grid){
  padding-block:6px 30px!important;
}
body.tyz-store-redesign #main-content .tyz-store-split~section.section[aria-label="التقسيط"]{
  padding-block:30px!important;
}
body.tyz-store-redesign #main-content .tyz-store-split~section .section-heading{
  margin-bottom:24px!important;
}
body.tyz-store-redesign #main-content section[aria-labelledby="cats-title"] .section-heading{
  max-width:980px;
  margin-inline:auto;
}
body.tyz-store-redesign #main-content section[aria-labelledby="cats-title"] .tyz-cats-intro{
  max-width:870px!important;
  margin-top:12px!important;
}
/* A replayable rise when the title leaves & returns to viewport.
   No JS/no IntersectionObserver = content remains visible. */
body.tyz-store-redesign #main-content section[aria-labelledby="cats-title"] .tyz-v8-heading.tyz-v8-armed > :is(.line,h2,p){
  opacity:0;
  transform:translate3d(0,24px,0);
  transition:transform .7s cubic-bezier(.19,.77,.24,1),opacity .7s ease!important;
}
body.tyz-store-redesign #main-content section[aria-labelledby="cats-title"] .tyz-v8-heading.tyz-v8-armed.tyz-v8-in > :is(.line,h2,p){
  opacity:1;
  transform:translate3d(0,0,0);
}
body.tyz-store-redesign #main-content section[aria-labelledby="cats-title"] .tyz-v8-heading.tyz-v8-in h2{transition-delay:80ms!important}
body.tyz-store-redesign #main-content section[aria-labelledby="cats-title"] .tyz-v8-heading.tyz-v8-in p{transition-delay:160ms!important}

/* Scroll heading retains its optional, replayable animation.
   Product and service cards use their prior V7 and original category styles. */
@media(max-width:750px){
  body.tyz-store-redesign #main-content .tyz-store-split~section.section{
    padding-block:38px!important;
  }
  body.tyz-store-redesign #main-content .tyz-store-split{padding-bottom:32px!important}
  body.tyz-store-redesign #main-content .tyz-store-split~section .section-heading{
    margin-bottom:22px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body.tyz-store-redesign #main-content section[aria-labelledby="cats-title"] .tyz-v8-heading > :is(.line,h2,p){
    opacity:1!important;
    transform:none!important;
    transition:none!important;
  }
}

/* MOTION CARD CLEAN FRAMING v9: avoid secondary 125% crop of pre-cropped image.
   Only the motion graphics thumbnail is affected; no extra CSS request. */
body.tyz-store-redesign #main-content .cats-grid .cat-img img[src*="motion-studio-clean.webp"],
body.tyz-store-redesign #main-content section[aria-labelledby="cats-title"] .cats-grid .cat-img img[src*="motion-studio-clean.webp"] {
  position:absolute!important;
  top:0!important;
  right:auto!important;
  left:0!important;
  height:100%!important;
  width:100%!important;
  object-fit:cover!important;
  object-position:center center!important;
  transform:none!important;
}
body.tyz-store-redesign #main-content .cats-grid .cat-card:hover .cat-img img[src*="motion-studio-clean.webp"]{
  transform:none!important;
}


/* TYZ CATEGORY NAME GLOW V10 | subtle readable title emphasis, no layout rewrite.
   Scoped to the 14 service-category cards only. */
body.tyz-store-redesign #main-content section[aria-labelledby="cats-title"] .cats-grid .cat-body .cat-name{
  font-family:"Tajawal",Cairo,system-ui,sans-serif!important;
  font-size:18px!important;
  font-weight:900!important;
  line-height:1.62!important;
  color:#fffaf0!important;
  letter-spacing:0!important;
  min-height:0!important;
  margin:0 0 11px!important;
  text-shadow:0 0 8px rgba(244,205,136,.22),0 1px 4px rgba(0,8,23,.44)!important;
  transition:color .24s ease,text-shadow .24s ease!important;
}
body.tyz-store-redesign #main-content section[aria-labelledby="cats-title"] .cats-grid .cat-body .cat-name::after{
  content:"";
  display:block;
  width:37px;
  max-width:35%;
  height:2px;
  margin-top:9px;
  border-radius:3px;
  background:linear-gradient(90deg,#f3d39a,#c69743);
  box-shadow:0 0 9px rgba(238,185,94,.42);
  transition:width .25s ease,box-shadow .25s ease!important;
}
@media(hover:hover) and (pointer:fine){
  body.tyz-store-redesign #main-content section[aria-labelledby="cats-title"] .cats-grid .cat-card:hover .cat-name{
    color:#fff2d2!important;
    text-shadow:0 0 12px rgba(245,211,148,.32),0 2px 5px rgba(0,7,19,.5)!important;
  }
  body.tyz-store-redesign #main-content section[aria-labelledby="cats-title"] .cats-grid .cat-card:hover .cat-name::after{
    width:55px;box-shadow:0 0 12px rgba(238,185,94,.55);
  }
}
@media(max-width:1100px){
  body.tyz-store-redesign #main-content section[aria-labelledby="cats-title"] .cats-grid .cat-body .cat-name{font-size:16.5px!important}
}
@media(max-width:750px){
  body.tyz-store-redesign #main-content section[aria-labelledby="cats-title"] .cats-grid .cat-body .cat-name{font-size:15.5px!important;line-height:1.58!important}
}
@media(max-width:430px){
  body.tyz-store-redesign #main-content section[aria-labelledby="cats-title"] .cats-grid .cat-body .cat-name{font-size:14.5px!important;line-height:1.52!important}
}
@media(prefers-reduced-motion:reduce){
  body.tyz-store-redesign #main-content section[aria-labelledby="cats-title"] .cats-grid .cat-body .cat-name,
  body.tyz-store-redesign #main-content section[aria-labelledby="cats-title"] .cats-grid .cat-body .cat-name::after{transition:none!important}
}
