/* ArterShop Desktop v5 — final glass and product-card corrections. 02.12.2026 */
body.as-d5-page .as-d5-header,
body.as-d5-page #as-glass-app-root .as-basket-shell,
body.as-d5-page #as-glass-basket .as-basket-shell{
  background:var(--as-d5-header-bg,rgba(248,252,249,.63))!important;
  background-color:var(--as-d5-header-bg,rgba(248,252,249,.63))!important;
  background-image:none!important;
  -webkit-backdrop-filter:blur(28px) saturate(165%)!important;
  backdrop-filter:blur(28px) saturate(165%)!important;
}
body.as-d5-page .as-d5-header{border-color:var(--as-d5-line-strong)!important}
body.as-d5-page #as-glass-app-root .as-basket-shell,
body.as-d5-page #as-glass-basket .as-basket-shell{
  border:1px solid var(--as-d5-line-strong)!important;
  box-shadow:var(--as-d5-shadow),inset 0 1px 0 rgba(255,255,255,.14)!important;
}
body.as-d5-page #as-glass-app-root .as-basket-shell #shop-basket,
body.as-d5-page #as-glass-basket .as-basket-shell #shop-basket{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
}
/* Green purchase actions use the same glass language instead of a flat fill. */
body.as-d5-page .as-d5-action--cart{
  border:1px solid color-mix(in srgb,var(--as-d5-accent) 48%,var(--as-d5-line-strong))!important;
  background:color-mix(in srgb,var(--as-d5-accent-strong) 24%,var(--as-d5-header-bg))!important;
  color:var(--as-d5-text)!important;
  -webkit-backdrop-filter:blur(18px) saturate(155%)!important;
  backdrop-filter:blur(18px) saturate(155%)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 7px 22px rgba(0,0,0,.07)!important;
}
body.as-d5-page #as-glass-app-root .as-basket-shell #shop-basket .as-wg-checkout{
  border:1px solid color-mix(in srgb,var(--as-d5-accent) 52%,var(--as-d5-line-strong))!important;
  background:color-mix(in srgb,var(--as-d5-accent-strong) 30%,var(--as-d5-header-bg))!important;
  background-image:none!important;
  color:var(--as-d5-text)!important;
  -webkit-text-fill-color:var(--as-d5-text)!important;
  -webkit-backdrop-filter:blur(18px) saturate(155%)!important;
  backdrop-filter:blur(18px) saturate(155%)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 7px 22px rgba(0,0,0,.08)!important;
}
body.as-d5-page #as-glass-app-root .as-basket-shell #shop-basket .as-wg-checkout:hover,
body.as-d5-page .as-d5-action--cart:hover{
  background:color-mix(in srgb,var(--as-d5-accent-strong) 38%,var(--as-d5-header-bg))!important;
  border-color:var(--as-d5-accent)!important;
}
/* Product photos: round the actual image, not only its card wrapper. */
body.as-d5-page .as-d5-home-stage img,
body.as-d5-page :is(.goods-list,.goods-list-item,.shop-item,.product-item,.as-d5-product-card,.as-product-card,.product-image,.goods-item) img,
body.as-d5-page #shop-basket .as-wg-cart-media img{
  border-radius:15px!important;
  overflow:hidden!important;
}
/* Fallback for common last_add containers; the JS below handles the exact rendered list. */
body.as-d5-page .as-d5-home-stage :is(#last-add,#last_add,.last-add,.last_add){
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))!important;
  align-items:stretch!important;
  gap:16px!important;
  width:100%!important;
}
body.as-d5-page .as-d5-home-new-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))!important;
  align-items:stretch!important;
  gap:16px!important;
  width:100%!important;
}
body.as-d5-page .as-d5-home-new-grid > .as-d5-home-new-card,
body.as-d5-page .as-d5-home-stage :is(#last-add,#last_add,.last-add,.last_add) > *{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  text-align:center!important;
}
body.as-d5-page .as-d5-home-new-card :is(.thumb,.photo,.image,.img,figure){
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  max-width:none!important;
  margin-inline:auto!important;
}
body.as-d5-page .as-d5-home-new-card img,
body.as-d5-page .as-d5-home-stage :is(#last-add,#last_add,.last-add,.last_add) img{
  display:block!important;
  width:min(100%,220px)!important;
  max-width:220px!important;
  height:220px!important;
  max-height:220px!important;
  margin:0 auto 10px!important;
  object-fit:contain!important;
  border-radius:16px!important;
}
body.as-d5-page .as-d5-home-new-card :is(.product-name,.title,.name),
body.as-d5-page .as-d5-home-stage :is(#last-add,#last_add,.last-add,.last_add) :is(.product-name,.title,.name){
  text-align:center!important;
  margin-inline:auto!important;
}
body.as-d5-page .as-d5-home-new-card :is(.price,.price-block,.cost),
body.as-d5-page .as-d5-home-stage :is(#last-add,#last_add,.last-add,.last_add) :is(.price,.price-block,.cost){
  align-self:center!important;
  text-align:center!important;
}
@media(max-width:980px){
  body.as-d5-page .as-d5-home-new-grid,
  body.as-d5-page .as-d5-home-stage :is(#last-add,#last_add,.last-add,.last_add){
    grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr))!important;
    gap:12px!important;
  }
  body.as-d5-page .as-d5-home-new-card img,
  body.as-d5-page .as-d5-home-stage :is(#last-add,#last_add,.last-add,.last_add) img{
    width:min(100%,190px)!important;
    max-width:190px!important;
    height:190px!important;
    max-height:190px!important;
  }
}
@media(max-width:560px){
  body.as-d5-page .as-d5-home-new-grid,
  body.as-d5-page .as-d5-home-stage :is(#last-add,#last_add,.last-add,.last_add){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.as-d5-page .as-d5-home-new-card img,
  body.as-d5-page .as-d5-home-stage :is(#last-add,#last_add,.last-add,.last_add) img{
    height:160px!important;
    max-height:160px!important;
  }
}
