/* SARAIL MARKET - final readable product card + product detail overrides
   Loaded after every legacy stylesheet. Scope is limited to shop and product detail. */
#shopCatalog #shopGrid .shop-category-group .product-grid > .product-card,
#shopCatalog #shopGrid > .product-grid > .product-card {
  display:flex!important; flex-direction:column!important;
  width:100%!important; height:430px!important; min-height:430px!important; max-height:430px!important;
  min-width:0!important; box-sizing:border-box!important; overflow:hidden!important;
  background:#fff!important; color:#142d50!important;
  border:1px solid #dce7f5!important; border-radius:18px!important;
  box-shadow:0 8px 22px rgba(20,57,101,.09)!important;
}
#shopCatalog #shopGrid .shop-category-group .product-grid > .product-card::before,
#shopCatalog #shopGrid .shop-category-group .product-grid > .product-card::after,
#shopCatalog #shopGrid > .product-grid > .product-card::before,
#shopCatalog #shopGrid > .product-grid > .product-card::after {display:none!important;content:none!important}
#shopCatalog #shopGrid .shop-category-group .product-grid > .product-card .product-image,
#shopCatalog #shopGrid > .product-grid > .product-card .product-image {
  position:relative!important; display:block!important; flex:0 0 150px!important;
  width:100%!important; height:150px!important; min-height:150px!important; max-height:150px!important;
  margin:0!important; padding:0!important; overflow:hidden!important; box-sizing:border-box!important;
  background:#eef4fb!important; border:0!important; border-radius:0!important;
}
#shopCatalog #shopGrid .shop-category-group .product-grid > .product-card .product-image img,
#shopCatalog #shopGrid > .product-grid > .product-card .product-image img {
  position:absolute!important; inset:0!important; display:block!important;
  width:100%!important; height:100%!important; min-width:100%!important; min-height:100%!important;
  max-width:none!important; max-height:none!important; margin:0!important; padding:0!important;
  object-fit:cover!important; object-position:center!important; border-radius:0!important;
  opacity:1!important; visibility:visible!important; filter:none!important;
}
#shopCatalog #shopGrid .shop-category-group .product-grid > .product-card .product-info,
#shopCatalog #shopGrid > .product-grid > .product-card .product-info {
  display:flex!important; flex:1 1 auto!important; flex-direction:column!important;
  align-items:stretch!important; justify-content:flex-start!important; gap:5px!important;
  min-width:0!important; min-height:0!important; height:auto!important;
  padding:11px 13px 12px!important; box-sizing:border-box!important; overflow:hidden!important;
  background:#fff!important; color:#142d50!important;
}
#shopCatalog #shopGrid .shop-category-group .product-grid > .product-card .product-category,
#shopCatalog #shopGrid > .product-grid > .product-card .product-category {
  display:inline-flex!important; align-self:flex-start!important; flex:0 0 auto!important;
  max-width:100%!important; margin:0!important; padding:3px 8px!important;
  border:1px solid #dce9f8!important; border-radius:999px!important;
  background:#f2f7fd!important; color:#315b87!important;
  font-size:10px!important; line-height:1.5!important; font-weight:800!important;
}
#shopCatalog #shopGrid .shop-category-group .product-grid > .product-card .product-info h3,
#shopCatalog #shopGrid > .product-grid > .product-card .product-info h3 {
  display:-webkit-box!important; -webkit-box-orient:vertical!important; -webkit-line-clamp:2!important;
  flex:0 0 auto!important; max-height:3.1em!important; min-height:0!important;
  margin:0!important; overflow:hidden!important; color:#102c52!important;
  font-size:15px!important; line-height:1.55!important; font-weight:900!important;
}
#shopCatalog #shopGrid .shop-category-group .product-grid > .product-card .product-info > p,
#shopCatalog #shopGrid > .product-grid > .product-card .product-info > p {
  display:-webkit-box!important; -webkit-box-orient:vertical!important; -webkit-line-clamp:2!important;
  flex:0 0 auto!important; min-height:0!important; max-height:3.2em!important;
  margin:0!important; overflow:hidden!important; color:#647993!important;
  font-size:11px!important; line-height:1.6!important;
}
#shopCatalog #shopGrid .shop-category-group .product-grid > .product-card .product-meta,
#shopCatalog #shopGrid > .product-grid > .product-card .product-meta {
  display:flex!important; flex:0 0 auto!important; align-items:center!important;
  justify-content:space-between!important; gap:7px!important;
  margin:auto 0 0!important; padding:6px 0 5px!important;
  border-top:1px solid #e8eef6!important; background:transparent!important;
}
#shopCatalog #shopGrid .shop-category-group .product-grid > .product-card .product-meta .rating,
#shopCatalog #shopGrid > .product-grid > .product-card .product-meta .rating {color:#72859d!important;font-size:10px!important}
#shopCatalog #shopGrid .shop-category-group .product-grid > .product-card .product-meta strong,
#shopCatalog #shopGrid > .product-grid > .product-card .product-meta strong {
  color:#102c52!important; font-size:18px!important; line-height:1.4!important;
  font-weight:950!important; white-space:nowrap!important;
}
#shopCatalog #shopGrid .shop-category-group .product-grid > .product-card .product-meta strong small,
#shopCatalog #shopGrid > .product-grid > .product-card .product-meta strong small {
  color:#526b88!important; font-size:11px!important; font-weight:800!important;
}
#shopCatalog #shopGrid .shop-category-group .product-grid > .product-card .product-detail-link,
#shopCatalog #shopGrid > .product-grid > .product-card .product-detail-link {
  display:flex!important; flex:0 0 36px!important; align-items:center!important; justify-content:center!important;
  width:100%!important; min-height:36px!important; height:36px!important; margin:2px 0 0!important;
  padding:6px 10px!important; box-sizing:border-box!important;
  border:1px solid #17477f!important; border-radius:10px!important;
  background:#17477f!important; color:#fff!important; text-decoration:none!important;
  font-size:12px!important; line-height:1.3!important; font-weight:900!important;
  opacity:1!important; visibility:visible!important;
}
#shopCatalog #shopGrid .shop-category-group .product-grid > .product-card .add-cart,
#shopCatalog #shopGrid > .product-grid > .product-card .add-cart {
  display:flex!important; flex:0 0 38px!important; align-items:center!important; justify-content:center!important;
  width:100%!important; min-height:38px!important; height:38px!important; margin:2px 0 0!important;
  padding:7px 10px!important; box-sizing:border-box!important;
  border:0!important; border-radius:10px!important;
  background:#087bba!important; color:#fff!important; font-size:12px!important;
  line-height:1.3!important; font-weight:900!important; opacity:1!important; visibility:visible!important;
}
#shopCatalog #shopGrid .shop-category-group .product-grid > .product-card .product-detail-link:hover,
#shopCatalog #shopGrid > .product-grid > .product-card .product-detail-link:hover {background:#0e3765!important}
#shopCatalog #shopGrid .shop-category-group .product-grid > .product-card .add-cart:hover,
#shopCatalog #shopGrid > .product-grid > .product-card .add-cart:hover {background:#056394!important}
@media(max-width:700px) {
  #shopCatalog #shopGrid .shop-category-group .product-grid > .product-card,
  #shopCatalog #shopGrid > .product-grid > .product-card {height:420px!important;min-height:420px!important;max-height:420px!important}
  #shopCatalog #shopGrid .shop-category-group .product-grid > .product-card .product-image,
  #shopCatalog #shopGrid > .product-grid > .product-card .product-image {flex-basis:135px!important;height:135px!important;min-height:135px!important;max-height:135px!important}
  #shopCatalog #shopGrid .shop-category-group .product-grid > .product-card .product-info,
  #shopCatalog #shopGrid > .product-grid > .product-card .product-info {padding:10px!important;gap:4px!important}
  #shopCatalog #shopGrid .shop-category-group .product-grid > .product-card .product-meta strong,
  #shopCatalog #shopGrid > .product-grid > .product-card .product-meta strong {font-size:16px!important}
}
@media(max-width:370px) {
  #shopCatalog #shopGrid .shop-category-group .product-grid > .product-card,
  #shopCatalog #shopGrid > .product-grid > .product-card {height:410px!important;min-height:410px!important;max-height:410px!important}
}

/* Product detail page: price must be dark and readable on the white content panel. */
#productDetail .product-reference-price,
#productDetail #detailPrice {
  display:inline-block!important; width:max-content!important; max-width:100%!important;
  margin:14px 0 18px!important; padding:0!important;
  background:transparent!important; color:#102c52!important;
  font-size:30px!important; line-height:1.5!important; font-weight:950!important;
  text-shadow:none!important; border:0!important; box-shadow:none!important;
  -webkit-text-fill-color:#102c52!important;
}
#productDetail .product-reference-actions .button-primary {
  display:inline-flex!important; align-items:center!important; justify-content:center!important;
  min-height:52px!important; background:#0868cf!important; color:#fff!important;
  font-size:15px!important; font-weight:950!important; opacity:1!important; visibility:visible!important;
}
#productDetail .product-favorite-button {
  display:inline-flex!important; align-items:center!important; justify-content:center!important;
  min-height:52px!important; background:#fff!important; color:#17375f!important;
  font-size:14px!important; opacity:1!important; visibility:visible!important;
}

/* Product detail price: high-contrast gold lettering with a dark outline. */
#productDetail .product-reference-price,
#productDetail #detailPrice {
  color: #d4a017 !important;
  -webkit-text-fill-color: #d4a017 !important;
  -webkit-text-stroke: 1.15px #111827 !important;
  paint-order: stroke fill !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.28) !important;
  background: transparent !important;
  font-weight: 950 !important;
}
