/* SARAIL MARKET v5.7 - isolated card layout repair.
   services.html category/service cards are intentionally untouched. */
:root{--sarail-card-gold:#d6ad58;--sarail-card-gold-light:#f4d98d;--sarail-card-shadow:rgba(13,32,58,.18)}
#productGrid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch!important;gap:18px!important}
#shopGrid{display:block!important}
#shopGrid .shop-category-group .product-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch!important;gap:18px!important}
#productGrid>.product-card,#shopGrid .shop-category-group .product-grid>.product-card{
 display:flex!important;flex-direction:column!important;width:var(--sarail-card-width,100%)!important;max-width:100%!important;min-width:0!important;
 min-height:var(--sarail-card-height,443px)!important;height:var(--sarail-card-height,443px)!important;box-sizing:border-box!important;overflow:hidden!important;
 border:1px solid rgba(214,173,88,.92)!important;border-radius:19px!important;
 box-shadow:0 5px 0 rgba(119,82,25,.28),0 13px 25px var(--sarail-card-shadow),inset 0 1px 0 rgba(255,255,255,.35)!important;
 transform:perspective(1100px) translateZ(0);transition:transform .22s ease,box-shadow .22s ease!important
}
#productGrid>.product-card:hover,#shopGrid .shop-category-group .product-grid>.product-card:hover{transform:perspective(1100px) translateY(-5px) rotateX(.6deg)!important;box-shadow:0 8px 0 rgba(119,82,25,.25),0 22px 32px rgba(13,32,58,.23),inset 0 1px 0 rgba(255,255,255,.42)!important}
#productGrid>.product-card .product-image,#shopGrid .shop-category-group .product-grid>.product-card .product-image{flex:0 0 170px!important;width:100%!important;height:170px!important;min-height:170px!important;max-height:170px!important;aspect-ratio:auto!important;overflow:hidden!important}
#productGrid>.product-card .product-image img,#shopGrid .shop-category-group .product-grid>.product-card .product-image img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
#productGrid>.product-card .product-info,#shopGrid .shop-category-group .product-grid>.product-card .product-info{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-height:0!important;gap:7px!important;padding:12px 13px 13px!important;box-sizing:border-box!important}
#productGrid>.product-card .product-info h3,#shopGrid .shop-category-group .product-grid>.product-card .product-info h3{margin:0!important;font-size:15px!important;line-height:1.55!important;max-height:3.1em!important;overflow:hidden!important}
#productGrid>.product-card .product-info p,#shopGrid .shop-category-group .product-grid>.product-card .product-info p{margin:0!important;font-size:11px!important;line-height:1.75!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;overflow:hidden!important}
#productGrid>.product-card .product-meta,#shopGrid .shop-category-group .product-grid>.product-card .product-meta{margin-top:auto!important;padding-top:6px!important}
#productGrid>.product-card .product-price,#productGrid>.product-card .product-meta strong,#shopGrid .shop-category-group .product-grid>.product-card .product-price,#shopGrid .shop-category-group .product-grid>.product-card .product-meta strong{color:#fff!important}
#shopGrid .shop-category-group .product-grid>.product-card .product-detail-link{min-height:36px!important;display:flex!important;align-items:center!important;justify-content:center!important;margin-top:5px!important;border-radius:10px!important;background:linear-gradient(135deg,#f4d98d,#c18a27)!important;border:1px solid #ffe8a8!important;color:#34240b!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 3px 0 rgba(111,75,17,.28)!important;font-weight:800!important}
#productGrid>.product-card .add-cart,#shopGrid .shop-category-group .product-grid>.product-card .add-cart{min-height:36px!important;margin-top:5px!important;border-radius:10px!important}
#homeSpecializedServices{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch!important;gap:16px!important}
#homeSpecializedServices>.service-catalog-card{display:flex!important;flex-direction:column!important;min-width:0!important;min-height:245px!important;height:245px!important;box-sizing:border-box!important;border:1px solid rgba(214,173,88,.88)!important;border-radius:19px!important;overflow:hidden!important;box-shadow:0 5px 0 rgba(119,82,25,.25),0 13px 25px rgba(13,32,58,.14),inset 0 1px 0 rgba(255,255,255,.5)!important;transition:transform .22s ease,box-shadow .22s ease!important}
#homeSpecializedServices>.service-catalog-card:hover{transform:translateY(-5px)!important;box-shadow:0 8px 0 rgba(119,82,25,.23),0 21px 32px rgba(13,32,58,.22)!important}
#homeSpecializedServices .service-catalog-body{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-height:0!important;gap:6px!important;padding:12px!important}
#homeSpecializedServices .service-catalog-body h3{font-size:14px!important;line-height:1.5!important;margin:0!important}
#homeSpecializedServices .service-catalog-body p{font-size:11px!important;line-height:1.65!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;overflow:hidden!important;margin:0!important}
#homeSpecializedServices .service-catalog-actions{margin-top:auto!important}
@media(max-width:1050px){#productGrid,#shopGrid .shop-category-group .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}#homeSpecializedServices{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:640px){#productGrid,#shopGrid,#homeSpecializedServices{grid-template-columns:1fr!important;gap:14px!important}#productGrid>.product-card,#shopGrid .shop-category-group .product-grid>.product-card{height:var(--sarail-card-height,443px)!important;min-height:var(--sarail-card-height,443px)!important}#homeSpecializedServices>.service-catalog-card{height:245px!important;min-height:245px!important}}
@media(prefers-reduced-motion:reduce){#productGrid>.product-card,#shopGrid>.product-card,#homeSpecializedServices>.service-catalog-card{transition:none!important}}
