/* Tamiyouz Alrowad Store | V7 premium product-card light ivory swipe and copy reveal
   CSS-only: no new JS, fonts, imagery, or network dependencies. */
body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card {
  --v7-ivory:#faf3e6;
  --v7-ink:#1a314b;
  --v7-muted:#52657b;
  --v7-separator:rgba(42,64,86,.2);
}
body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:after{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  border-radius:inherit;
  background:linear-gradient(138deg,#fffaf0 0%,#f5e9d6 53%,#e9d8bc 100%)!important;
  opacity:1!important;
  transform:translate3d(104%,0,0);
  transition:transform .62s cubic-bezier(.18,.74,.24,1)!important;
}
body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card .product-body{
  position:relative;z-index:1;
}
/* Discount chip: warm terracotta works on both navy and ivory backgrounds. */
body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-badge.sale{
  display:inline-flex!important;align-items:center;justify-content:center;
  min-height:33px;padding:7px 15px!important;
  background:linear-gradient(115deg,#bc5731,#8e341d)!important;
  color:#fff8ef!important;
  border:1px solid rgba(255,208,159,.76)!important;
  border-radius:10px!important;
  font:900 12px/1.35 "Tajawal",Cairo,system-ui,sans-serif!important;
  box-shadow:0 5px 14px rgba(140,49,24,.22),inset 0 1px 0 rgba(255,241,221,.21);
  letter-spacing:0!important;
  transition:transform .28s ease,box-shadow .28s ease!important;
}
body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid :is(.product-name,.product-promo,.price-now,.price-old,.price-currency,.installment-tag,.installment-tag i){
  transition:color .38s ease!important;
}
body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-footer{
  transition:border-color .38s ease!important;
}
body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-cta{
  transition:transform .27s ease,box-shadow .27s ease,background .38s ease,color .38s ease!important;
}
/* Raised-from-below text settles once on first in-view reveal (existing V4 observer).
   No layout motion; transforms and opacity only, GPU-friendly and short stagger. */
body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card.tyz-v4-in .product-name{
  animation:tyzV7Settle .67s .04s cubic-bezier(.18,.83,.23,1) both;
}
body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card.tyz-v4-in .product-promo{
  animation:tyzV7Settle .67s .15s cubic-bezier(.18,.83,.23,1) both;
}
body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card.tyz-v4-in .price-wrap{
  animation:tyzV7Settle .58s .23s cubic-bezier(.18,.83,.23,1) both;
}
body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card.tyz-v4-in .product-footer{
  animation:tyzV7Settle .6s .29s cubic-bezier(.18,.83,.23,1) both;
}
@keyframes tyzV7Settle{
  0%{opacity:0;transform:translate3d(0,16px,0)}
  100%{opacity:1;transform:translate3d(0,0,0)}
}
@media(hover:hover) and (pointer:fine){
  body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:hover:after{
    transform:translate3d(0,0,0)!important;
  }
  body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:hover .product-badge.sale{
    transform:translateY(-1px);
    box-shadow:0 8px 20px rgba(135,43,24,.23),0 0 0 3px rgba(185,80,44,.09)!important;
  }
}
/* Keyboard users experience the same clear contrast shift. */
body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:focus-within:after{
  transform:translate3d(0,0,0)!important;
}
@media(hover:hover) and (pointer:fine){
  body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:hover :is(.product-name,.price-currency,.installment-tag,.installment-tag i){
    color:#192f49!important;
  }
  body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:hover .product-promo{
    color:#455a71!important;
  }
  body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:hover .price-now{
    color:#996115!important;
  }
  body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:hover .price-old{
    color:#667487!important;
  }
  body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:hover .product-footer{
    border-top-color:rgba(44,63,84,.26)!important;
  }
  body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:hover .product-cta{
    background:linear-gradient(115deg,#173c5e,#10263d)!important;
    color:#fff2d2!important;
    border-color:rgba(26,63,96,.55)!important;
    box-shadow:0 7px 16px rgba(14,39,62,.17)!important;
  }
}
body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:focus-within :is(.product-name,.price-currency,.installment-tag,.installment-tag i){
  color:#192f49!important;
}
body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:focus-within .product-promo{color:#455a71!important}
body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:focus-within .price-now{color:#996115!important}
body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:focus-within .price-old{color:#667487!important}
body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:focus-within .product-footer{border-top-color:rgba(44,63,84,.26)!important}
body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:focus-within .product-cta{
  background:linear-gradient(115deg,#173c5e,#10263d)!important;
  color:#fff2d2!important;
  border-color:rgba(26,63,96,.55)!important;
}
@media(prefers-reduced-motion:reduce){
  body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:after{
    transition:none!important;transform:translate3d(104%,0,0)!important;
  }
  body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card.tyz-v4-in :is(.product-name,.product-promo,.price-wrap,.product-footer){
    animation:none!important;opacity:1!important;transform:none!important;
  }
  body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card :is(.product-name,.product-promo,.price-now,.price-old,.price-currency,.installment-tag,.product-cta,.product-badge.sale){
    transition:none!important;
  }
}
/* Touch devices keep the high-contrast navy base, without hover transitions. */
@media(hover:none){
  body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:after{
    transform:translate3d(104%,0,0)!important;
  }
  body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:focus-within:after{
    transform:translate3d(104%,0,0)!important;
  }
  body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:focus-within :is(.product-name,.price-currency,.installment-tag,.installment-tag i){color:#fff!important}
  body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:focus-within .product-promo{color:#c6d6e7!important}
  body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:focus-within .price-now{color:#f1c77d!important}
  body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:focus-within .price-old{color:#aabace!important}
  body.tyz-store-redesign #main-content section[aria-labelledby="products-title"] .products-grid .product-card:focus-within .product-cta{
    background:linear-gradient(112deg,#fae1aa,#e8b963 62%,#dca64b)!important;
    color:#11233c!important;
  }
}
