/* SARAIL MARKET product cards v5: unified visual system for catalog and homepage */
.product-kind{position:absolute;z-index:5;top:12px;right:12px;display:inline-flex;align-items:center;justify-content:center;min-height:25px;padding:4px 10px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(7,19,43,.72);color:#e9fbff;font-size:9px;font-weight:900;letter-spacing:.35px;backdrop-filter:blur(10px);box-shadow:0 5px 14px rgba(0,0,0,.16)}
#shopCatalog #shopGrid .product-card,#productGrid .product-card{position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid rgba(171,190,255,.22)!important;border-radius:22px!important;background:linear-gradient(155deg,#17264b 0%,#111a38 58%,#0c1731 100%)!important;box-shadow:0 14px 32px rgba(3,10,28,.22),inset 0 1px 0 rgba(255,255,255,.09)!important;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease!important}
#shopCatalog #shopGrid .product-card:hover,#productGrid .product-card:hover{transform:translateY(-6px)!important;border-color:rgba(88,224,232,.5)!important;box-shadow:0 22px 42px rgba(3,10,28,.3),0 0 22px rgba(56,202,215,.12)!important}
#shopCatalog #shopGrid .product-image,#productGrid .product-image{position:relative;display:block;flex:none;width:100%;height:190px;min-height:190px;max-height:190px;margin:0!important;padding:0!important;overflow:hidden;border:0;border-bottom:1px solid rgba(255,255,255,.1);border-radius:0!important;background:linear-gradient(135deg,#172b52,#14213f)!important}
#shopCatalog #shopGrid .product-image:before,#shopCatalog #shopGrid .product-image:after,#productGrid .product-image:before,#productGrid .product-image:after{display:none!important;content:none!important}
#shopCatalog #shopGrid .product-image img,#productGrid .product-image img{display:block;position:relative;z-index:1;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;border-radius:0!important;filter:none!important;mix-blend-mode:normal!important;opacity:1!important;transition:transform .45s ease!important}
#shopCatalog #shopGrid .product-card:hover .product-image img,#productGrid .product-card:hover .product-image img{transform:scale(1.045)!important}
#shopCatalog #shopGrid .product-info,#productGrid .product-info{display:flex;flex:1;flex-direction:column;gap:9px;min-width:0;padding:17px 18px 18px!important;background:transparent!important;color:#f5f7ff!important}
#shopCatalog #shopGrid .product-category,#productGrid .product-category{align-self:flex-start;max-width:100%;padding:5px 10px;border:1px solid rgba(104,206,220,.24);border-radius:999px;background:rgba(61,164,184,.12);color:#9ce8ef;font-size:10px;font-weight:800}
#shopCatalog #shopGrid .product-info h3,#productGrid .product-info h3{margin:1px 0;color:#fff;font-size:16px;font-weight:900;line-height:1.8;min-height:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#shopCatalog #shopGrid .product-info>p,#productGrid .product-info>p{margin:0;color:#bdc9df;font-size:12px;line-height:1.9;min-height:44px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#shopCatalog #shopGrid .product-meta,#productGrid .product-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:11px;border-top:1px solid rgba(255,255,255,.1);color:#aebbd3}
#shopCatalog #shopGrid .product-meta strong,#productGrid .product-meta strong{color:#78f0e5;font-size:15px;font-weight:900;white-space:nowrap}
#shopCatalog #shopGrid .product-meta small,#productGrid .product-meta small{color:#c6d2e5;font-size:10px}
#shopCatalog #shopGrid .product-detail-link,#productGrid .product-detail-link{display:flex;align-items:center;justify-content:center;min-height:39px;margin-top:4px;border:1px solid rgba(172,193,229,.28)!important;border-radius:12px!important;background:rgba(255,255,255,.055)!important;color:#edf6ff!important;font-size:11px;font-weight:800}
#shopCatalog #shopGrid .add-cart,#productGrid .add-cart{display:flex;align-items:center;justify-content:center;min-height:42px;border:0!important;border-radius:12px!important;background:linear-gradient(100deg,#18b8ad,#2476d4)!important;color:#fff!important;font-size:12px;font-weight:900;box-shadow:0 8px 18px rgba(17,142,174,.2)!important}
#shopCatalog #shopGrid .add-cart:disabled,#productGrid .add-cart:disabled{opacity:.5;cursor:not-allowed}
#shopCatalog>#shopGrid>.shop-category-group{margin:26px 0 38px!important}
#shopCatalog>#shopGrid .shop-category-heading{margin-bottom:14px}
@media(max-width:1050px){#shopCatalog #shopGrid .product-grid,#productGrid.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}}
@media(max-width:650px){#shopCatalog #shopGrid .product-grid,#productGrid.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important}#shopCatalog #shopGrid .product-image,#productGrid .product-image{height:132px!important;min-height:132px!important;max-height:132px!important}#shopCatalog #shopGrid .product-info,#productGrid .product-info{padding:12px!important;gap:7px!important}#shopCatalog #shopGrid .product-info h3,#productGrid .product-info h3{font-size:13px!important}#shopCatalog #shopGrid .product-info>p,#productGrid .product-info>p{font-size:10px!important;min-height:38px!important}#shopCatalog #shopGrid .product-meta strong,#productGrid .product-meta strong{font-size:12px!important}#shopCatalog #shopGrid .product-detail-link,#productGrid .product-detail-link{min-height:34px;font-size:10px}#shopCatalog #shopGrid .add-cart,#productGrid .add-cart{min-height:36px;font-size:10px}.product-kind{top:8px;right:8px;min-height:22px;font-size:8px;padding:3px 7px}}
@media(max-width:370px){#shopCatalog #shopGrid .product-grid,#productGrid.product-grid{grid-template-columns:1fr!important}#shopCatalog #shopGrid .product-image,#productGrid .product-image{height:175px!important;min-height:175px!important;max-height:175px!important}}
@media(prefers-reduced-motion:reduce){#shopCatalog #shopGrid .product-card,#shopCatalog #shopGrid .product-image img,#productGrid .product-card,#productGrid .product-image img{transition:none!important}}
#productGrid .product-badge{left:12px!important;right:auto!important;top:12px!important}


/* v5.2: more compact cards, seven colorways, full perimeter gold frame */
@media(min-width:1200px){
  #shopCatalog #shopGrid .product-grid,
  #productGrid.product-grid,
  .product-grid{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:18px!important;
  }
}
@media(min-width:900px) and (max-width:1199px){
  #shopCatalog #shopGrid .product-grid,
  #productGrid.product-grid,
  .product-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important}
}
#shopCatalog #shopGrid .product-card,
#productGrid .product-card,
.product-grid > .product-card{
  border:2px solid #d2aa55!important;
  border-top-width:5px!important;
  border-radius:19px!important;
  box-shadow:0 12px 25px rgba(3,10,28,.24),inset 0 0 0 1px rgba(255,232,171,.36),inset 0 0 0 3px rgba(180,132,47,.18)!important;
}
#shopCatalog #shopGrid .product-card::before,
#productGrid .product-card::before,
.product-grid > .product-card::before{
  top:0!important;left:0!important;right:0!important;bottom:0!important;
  height:auto!important;border:1px solid rgba(255,232,171,.72)!important;
  border-radius:inherit!important;
  background:linear-gradient(135deg,rgba(255,255,255,.18),transparent 22%,transparent 75%,rgba(255,255,255,.08))!important;
  box-shadow:inset 0 0 0 1px rgba(128,89,24,.32)!important;
  opacity:1!important;pointer-events:none!important;
}
#shopCatalog #shopGrid .product-card:nth-child(7n+1),
#productGrid .product-card:nth-child(7n+1),
.product-grid > .product-card:nth-child(7n+1){background:linear-gradient(155deg,#203b68,#14294d 58%,#0d1d39)!important}
#shopCatalog #shopGrid .product-card:nth-child(7n+2),
#productGrid .product-card:nth-child(7n+2),
.product-grid > .product-card:nth-child(7n+2){background:linear-gradient(155deg,#155765,#10424f 58%,#0a303b)!important}
#shopCatalog #shopGrid .product-card:nth-child(7n+3),
#productGrid .product-card:nth-child(7n+3),
.product-grid > .product-card:nth-child(7n+3){background:linear-gradient(155deg,#443b78,#2c285d 58%,#1b1b43)!important}
#shopCatalog #shopGrid .product-card:nth-child(7n+4),
#productGrid .product-card:nth-child(7n+4),
.product-grid > .product-card:nth-child(7n+4){background:linear-gradient(155deg,#a65318,#78370f 58%,#4a230e)!important}
#shopCatalog #shopGrid .product-card:nth-child(7n+5),
#productGrid .product-card:nth-child(7n+5),
.product-grid > .product-card:nth-child(7n+5){background:linear-gradient(155deg,#8c294d,#641b38 58%,#3e1025)!important}
#shopCatalog #shopGrid .product-card:nth-child(7n+6),
#productGrid .product-card:nth-child(7n+6),
.product-grid > .product-card:nth-child(7n+6){background:linear-gradient(155deg,#8a6a25,#624716 58%,#3d2b0c)!important}
#shopCatalog #shopGrid .product-card:nth-child(7n+7),
#productGrid .product-card:nth-child(7n+7),
.product-grid > .product-card:nth-child(7n+7){background:linear-gradient(155deg,#17634f,#104638 58%,#0b3029)!important}
#shopCatalog #shopGrid .product-card .product-info,
#productGrid .product-card .product-info,
.product-grid > .product-card .product-info{background:transparent!important}
#shopCatalog #shopGrid .product-card .product-meta strong,
#productGrid .product-card .product-meta strong,
.product-grid > .product-card .product-meta strong{color:#f4d98e!important}
#shopCatalog #shopGrid .product-card .product-category,
#productGrid .product-card .product-category,
.product-grid > .product-card .product-category{color:#f4d98e!important;border-color:rgba(231,201,133,.45)!important;background:rgba(255,255,255,.1)!important}

/* v5.3: compact cards, white typography, gold details button */
@media(min-width:1400px){
  #shopCatalog #shopGrid .product-grid,
  #productGrid.product-grid,
  .product-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:14px!important}
}
@media(min-width:1200px) and (max-width:1399px){
  #shopCatalog #shopGrid .product-grid,
  #productGrid.product-grid,
  .product-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:14px!important}
}
#shopCatalog #shopGrid .product-image,
#productGrid .product-image{height:155px!important;min-height:155px!important;max-height:155px!important}
#shopCatalog #shopGrid .product-info,
#productGrid .product-info,
.product-grid>.product-card .product-info{padding:12px 13px 13px!important;gap:7px!important;color:#fff!important}
#shopCatalog #shopGrid .product-info h3,
#productGrid .product-info h3,
.product-grid>.product-card .product-info h3,
#shopCatalog #shopGrid .product-info p,
#productGrid .product-info p,
.product-grid>.product-card .product-info p,
#shopCatalog #shopGrid .product-meta,
#productGrid .product-meta,
.product-grid>.product-card .product-meta,
#shopCatalog #shopGrid .product-meta small,
#productGrid .product-meta small,
.product-grid>.product-card .product-meta small,
#shopCatalog #shopGrid .product-category,
#productGrid .product-category,
.product-grid>.product-card .product-category{color:#fff!important}
#shopCatalog #shopGrid .product-meta strong,
#productGrid .product-meta strong,
.product-grid>.product-card .product-meta strong{color:#fff!important}
#shopCatalog #shopGrid .product-detail-link,
#productGrid .product-detail-link,
.product-grid>.product-card .product-detail-link{
  min-height:35px!important;padding:7px 10px!important;
  border:1px solid #f1d58b!important;border-radius:10px!important;
  background:linear-gradient(135deg,#f5d98e 0%,#d5a83e 52%,#b98222 100%)!important;
  color:#211707!important;font-size:11px!important;font-weight:900!important;
  box-shadow:0 5px 13px rgba(194,145,48,.24),inset 0 1px 0 rgba(255,255,255,.55)!important;
}
#shopCatalog #shopGrid .product-detail-link:hover,
#productGrid .product-detail-link:hover,
.product-grid>.product-card .product-detail-link:hover{background:linear-gradient(135deg,#ffe9aa,#e2b84e 55%,#c58b27)!important;transform:translateY(-1px)}
@media(max-width:650px){
 #shopCatalog #shopGrid .product-image,#productGrid .product-image{height:118px!important;min-height:118px!important;max-height:118px!important}
 #shopCatalog #shopGrid .product-info,#productGrid .product-info{padding:9px!important;gap:6px!important}
 #shopCatalog #shopGrid .product-info h3,#productGrid .product-info h3{font-size:12px!important}
 #shopCatalog #shopGrid .product-info>p,#productGrid .product-info>p{font-size:10px!important;min-height:34px!important;color:#fff!important}
}


/* v5.5: compact actual catalog grid + detail price correction */
@media(min-width:1100px){#shopGrid.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}}
@media(min-width:700px) and (max-width:1099px){#shopGrid.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:11px!important}}
@media(max-width:699px){#shopGrid.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}}
#shopGrid.product-grid>.product-card{min-width:0!important;border-radius:14px!important}
#shopGrid.product-grid>.product-card .product-image{height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:1/1!important;overflow:hidden!important}
#shopGrid.product-grid>.product-card .product-image img{width:100%!important;height:100%!important;object-fit:cover!important}
#shopGrid.product-grid>.product-card .product-info{padding:9px 10px 10px!important;gap:5px!important}
#shopGrid.product-grid>.product-card .product-info h3{font-size:12px!important;line-height:1.5!important}
#shopGrid.product-grid>.product-card .product-info p{font-size:10px!important;line-height:1.55!important;min-height:30px!important}
#shopGrid.product-grid>.product-card .product-meta{padding-top:6px!important}
#shopGrid.product-grid>.product-card .product-meta strong,#shopGrid.product-grid>.product-card .product-meta strong small{color:#fff!important}
#shopGrid.product-grid>.product-card .product-detail-link{min-height:31px!important;padding:5px 8px!important;font-size:10px!important}
#shopGrid.product-grid>.product-card .add-cart{min-height:33px!important;font-size:10px!important}
#productDetail #detailPrice,#detailPrice{color:#fff!important}
@media(max-width:699px){#shopGrid.product-grid>.product-card .product-info{padding:7px!important}#shopGrid.product-grid>.product-card .product-info h3{font-size:11px!important}}

/* v5.9: per-product color override from admin */
#shopCatalog #shopGrid .product-card[style*="--sarail-card-custom-bg"],
#productGrid .product-card[style*="--sarail-card-custom-bg"]{background:linear-gradient(155deg,color-mix(in srgb,var(--sarail-card-custom-bg) 94%,white 6%),color-mix(in srgb,var(--sarail-card-custom-bg) 72%,black 28%))!important}

/* SARAIL MARKET | Mobile selected-product image cleanup */
@media (max-width: 760px) {
  #productGrid .product-image::before,
  #productGrid .product-image::after {
    content:none !important;
    display:none !important;
  }
  #productGrid .product-image > :not(img) {
    display:none !important;
    visibility:hidden !important;
  }
  #productGrid .product-image .product-badge,
  #productGrid .product-image .product-image-overlay,
  #productGrid .product-image .product-image-label,
  #productGrid .product-image .product-image-caption {
    display:none !important;
  }
}
