/* Commerce Hub product UI — canonical responsive layer
   Loaded after the legacy cascade. Owns only /store/products listing and detail. */

/* --------------------------------------------------------------------------
   Product catalogue cards
   -------------------------------------------------------------------------- */
body.store-page--products.store-view--listing .catalog-grid--products{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:clamp(24px,2.4vw,36px) clamp(12px,1.35vw,20px)!important;
}
body.store-page--products.store-view--listing .market-card--app-catalog{
  display:flex!important;
  min-width:0!important;
  height:100%!important;
  flex-direction:column!important;
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  contain:layout paint!important;
}
body.store-page--products.store-view--listing .market-card--app-catalog .market-card__visual-wrap{
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  overflow:visible!important;
}
body.store-page--products.store-view--listing .market-card--app-catalog .market-card__media{
  display:grid!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:1/1!important;
  place-items:center!important;
  overflow:hidden!important;
  border:1px solid var(--store-line)!important;
  border-radius:clamp(16px,1.6vw,22px)!important;
  background:var(--store-surface)!important;
  box-shadow:0 8px 24px rgba(15,23,42,.045)!important;
}
body.store-page--products.store-view--listing .market-card--app-catalog .market-card__media img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  padding:clamp(8px,1.1vw,16px)!important;
  object-fit:contain!important;
  object-position:center!important;
  background:transparent!important;
  transform:none!important;
}
@media (hover:hover) and (pointer:fine){
  body.store-page--products.store-view--listing .market-card--app-catalog:hover .market-card__media img{
    transform:scale(1.018)!important;
  }
}
body.store-page--products.store-view--listing .market-card--app-catalog .market-card__favorite{
  top:10px!important;
  right:10px!important;
  width:42px!important;
  min-width:42px!important;
  height:42px!important;
  min-height:42px!important;
  border:1px solid color-mix(in srgb,var(--store-line-strong) 72%,transparent)!important;
  background:color-mix(in srgb,var(--store-surface) 94%,transparent)!important;
  color:var(--store-ink)!important;
  box-shadow:0 7px 20px rgba(15,23,42,.09)!important;
  backdrop-filter:blur(14px)!important;
  -webkit-backdrop-filter:blur(14px)!important;
}
body.store-page--products.store-view--listing .market-card--app-catalog .market-card__body{
  display:flex!important;
  min-width:0!important;
  min-height:112px!important;
  flex:1!important;
  flex-direction:column!important;
  gap:9px!important;
  padding:12px 2px 0!important;
}
body.store-page--products.store-view--listing .market-card--app-catalog .market-card__identity{
  display:grid!important;
  min-width:0!important;
  gap:5px!important;
}
body.store-page--products.store-view--listing .market-card--app-catalog .market-card__identity h3{
  display:-webkit-box!important;
  min-height:2.55em!important;
  margin:0!important;
  overflow:hidden!important;
  color:var(--store-ink)!important;
  font-size:clamp(13px,.78rem + .14vw,15px)!important;
  font-weight:760!important;
  line-height:1.28!important;
  letter-spacing:-.018em!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:auto!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
}
body.store-page--products.store-view--listing .market-card--app-catalog .market-card__app-signals{
  min-height:16px!important;
  gap:6px!important;
  font-size:10px!important;
}
body.store-page--products.store-view--listing .market-card--app-catalog .market-card__purchase{
  display:flex!important;
  min-width:0!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:8px!important;
  margin-top:auto!important;
}
body.store-page--products.store-view--listing .market-card--app-catalog .market-card__price{
  display:grid!important;
  min-width:0!important;
  align-content:end!important;
  justify-items:start!important;
  gap:3px!important;
}
body.store-page--products.store-view--listing .market-card--app-catalog .market-card__price del{
  order:-1!important;
  display:block!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--store-danger,#dc2626)!important;
  font-size:11px!important;
  font-weight:760!important;
  line-height:1.05!important;
  text-decoration-color:currentColor!important;
  text-decoration-thickness:1.5px!important;
  white-space:nowrap!important;
}
body.store-page--products.store-view--listing .market-card--app-catalog .market-card__price strong{
  display:block!important;
  color:var(--store-ink)!important;
  font-size:clamp(17px,1.25vw,20px)!important;
  font-weight:850!important;
  font-variant-numeric:tabular-nums!important;
  line-height:1!important;
  letter-spacing:-.038em!important;
  white-space:nowrap!important;
}
body.store-page--products.store-view--listing .market-card--app-catalog .market-card__quick-add{
  display:grid!important;
  width:44px!important;
  min-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  flex:0 0 44px!important;
  place-items:center!important;
  padding:0!important;
  border:1px solid var(--store-accent)!important;
  border-radius:14px!important;
  background:var(--store-accent)!important;
  color:#fff!important;
  box-shadow:none!important;
}
body.store-page--products.store-view--listing .market-card--app-catalog .market-card__quick-add-icon,
body.store-page--products.store-view--listing .market-card--app-catalog .market-card__quick-add-icon svg{
  display:block!important;
  width:20px!important;
  height:20px!important;
  color:#fff!important;
  fill:none!important;
  stroke:currentColor!important;
}

/* --------------------------------------------------------------------------
   Product detail — desktop
   -------------------------------------------------------------------------- */
body.store-page--products.store-view--detail .native-detail--commerce{
  padding:18px 0 clamp(56px,6vw,88px)!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-shell{
  gap:18px!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-breadcrumb{
  min-height:22px!important;
  font-size:11px!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.08fr) minmax(430px,.92fr)!important;
  align-items:start!important;
  gap:clamp(30px,3.4vw,50px)!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-gallery{
  position:sticky!important;
  top:calc(var(--store-header-h) + 18px)!important;
  min-width:0!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-media{
  display:grid!important;
  width:100%!important;
  height:clamp(500px,43vw,650px)!important;
  min-height:0!important;
  max-height:650px!important;
  place-items:center!important;
  overflow:hidden!important;
  border:1px solid var(--store-line)!important;
  border-radius:22px!important;
  background:var(--store-surface)!important;
  box-shadow:0 12px 34px rgba(15,23,42,.055)!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-media>img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  padding:clamp(22px,3vw,44px)!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-summary{
  position:relative!important;
  display:flex!important;
  min-width:0!important;
  width:100%!important;
  max-width:none!important;
  flex-direction:column!important;
  padding:4px 0 0!important;
  background:transparent!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-summary__utility{
  position:absolute!important;
  z-index:4!important;
  top:0!important;
  right:0!important;
  display:flex!important;
  min-height:44px!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  margin:0!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-icon-button{
  width:44px!important;
  min-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  border:1px solid var(--store-line)!important;
  background:var(--store-surface)!important;
  box-shadow:0 6px 18px rgba(15,23,42,.06)!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-title-block{
  min-height:0!important;
  padding:5px 104px 0 0!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-title-block h1{
  max-width:17ch!important;
  margin:0!important;
  color:var(--store-ink)!important;
  font-size:clamp(32px,3vw,44px)!important;
  line-height:1.02!important;
  letter-spacing:-.048em!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  text-wrap:balance!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-subtitle{
  max-width:62ch!important;
  margin-top:10px!important;
  color:var(--store-muted)!important;
  font-size:13px!important;
  line-height:1.55!important;
  text-align:left!important;
  text-align-last:auto!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-price{
  display:block!important;
  margin-top:14px!important;
  padding:0 0 16px!important;
  border-bottom:1px solid var(--store-line)!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-price>div{
  display:grid!important;
  justify-items:start!important;
  gap:4px!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-price del{
  display:block!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:var(--store-danger,#dc2626)!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1.1!important;
  text-decoration-color:currentColor!important;
  text-decoration-thickness:1.6px!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-price strong{
  color:var(--store-ink)!important;
  font-size:clamp(35px,2.7vw,42px)!important;
  font-weight:880!important;
  font-variant-numeric:tabular-nums!important;
  line-height:.98!important;
  letter-spacing:-.046em!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-purchase{
  display:grid!important;
  gap:10px!important;
  margin-top:14px!important;
  padding:12px!important;
  border:1px solid var(--store-line)!important;
  border-radius:16px!important;
  background:color-mix(in srgb,var(--store-surface) 88%,var(--store-surface-2))!important;
  box-shadow:none!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-purchase__controls{
  display:grid!important;
  grid-template-columns:148px minmax(0,1fr)!important;
  align-items:end!important;
  gap:10px!important;
  width:100%!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-quantity-label{
  display:grid!important;
  gap:7px!important;
  align-items:end!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-quantity-label>span{
  font-size:11px!important;
  font-weight:780!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .quantity-selector{
  grid-template-columns:44px 58px 44px!important;
  width:146px!important;
  height:48px!important;
  border-radius:13px!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .quantity-selector :is(button,input){
  min-width:0!important;
  min-height:46px!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .detail-buy-row,
body.store-page--products.store-view--detail .native-detail--commerce .detail-add-button{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .detail-add-button{
  min-height:48px!important;
  border-radius:13px!important;
  font-size:13px!important;
  font-weight:850!important;
  box-shadow:0 8px 20px rgba(37,99,235,.18)!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-accordions{
  display:grid!important;
  gap:9px!important;
  margin-top:14px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-glass-card{
  overflow:hidden!important;
  border:1px solid var(--store-line)!important;
  border-radius:14px!important;
  background:var(--store-surface)!important;
  box-shadow:none!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-glass-card summary{
  display:flex!important;
  min-height:52px!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  padding:0 14px!important;
  color:var(--store-ink)!important;
  font-size:12px!important;
  font-weight:790!important;
  cursor:pointer!important;
  list-style:none!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-glass-card summary::-webkit-details-marker{
  display:none!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-glass-card summary span{
  display:grid!important;
  width:28px!important;
  min-width:28px!important;
  height:28px!important;
  min-height:28px!important;
  place-items:center!important;
  border-radius:50%!important;
  background:var(--store-surface-2)!important;
  color:var(--store-muted)!important;
  font-size:17px!important;
  line-height:1!important;
  transition:transform .18s ease,background-color .18s ease,color .18s ease!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-glass-card[open] summary span{
  background:var(--store-accent-soft)!important;
  color:var(--store-accent)!important;
  transform:rotate(45deg)!important;
}
body.store-page--products.store-view--detail .native-detail--commerce .native-detail-glass-card .native-detail-prose{
  display:block!important;
  height:auto!important;
  max-height:none!important;
  padding:0 14px 15px!important;
  overflow:visible!important;
  color:var(--store-muted)!important;
  font-size:12px!important;
  line-height:1.65!important;
  text-align:left!important;
  text-align-last:auto!important;
  hyphens:auto!important;
}

/* --------------------------------------------------------------------------
   Responsive catalogue and product detail
   -------------------------------------------------------------------------- */
@media (max-width:1279px){
  body.store-page--products.store-view--listing .catalog-grid--products{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  body.store-page--products.store-view--detail .native-detail--commerce .native-detail-grid{
    grid-template-columns:minmax(0,1fr) minmax(400px,.92fr)!important;
    gap:30px!important;
  }
}
@media (max-width:1023px){
  body.store-page--products.store-view--listing .catalog-grid--products{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media (max-width:900px){
  body.store-page--products.store-view--detail .native-detail--commerce{
    padding:0 0 24px!important;
  }
  body.store-page--products.store-view--detail .native-detail--commerce .native-detail-grid{
    grid-template-columns:1fr!important;
    gap:0!important;
  }
  body.store-page--products.store-view--detail .native-detail--commerce .native-detail-gallery{
    position:relative!important;
    top:auto!important;
  }
  body.store-page--products.store-view--detail .native-detail--commerce .native-detail-media{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:1/1!important;
    border:0!important;
    border-bottom:1px solid var(--store-line)!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  body.store-page--products.store-view--detail .native-detail--commerce .native-detail-media>img{
    padding:clamp(14px,5vw,28px)!important;
  }
  body.store-page--products.store-view--detail .native-detail--commerce .native-detail-summary{
    padding:18px var(--store-page-gutter) 0!important;
    background:var(--store-surface)!important;
  }
  body.store-page--products.store-view--detail .native-detail--commerce .native-detail-summary__utility{
    display:none!important;
  }
  body.store-page--products.store-view--detail .native-detail--commerce .native-detail-title-block{
    padding:0!important;
  }
  body.store-page--products.store-view--detail .native-detail--commerce .native-detail-title-block h1{
    max-width:22ch!important;
    font-size:clamp(22px,6vw,28px)!important;
    line-height:1.06!important;
  }
  body.store-page--products.store-view--detail .native-detail--commerce .native-detail-subtitle{
    font-size:12px!important;
    line-height:1.52!important;
  }
  body.store-page--products.store-view--detail .native-detail--commerce .native-detail-price{
    margin-top:12px!important;
    padding-bottom:14px!important;
  }
  body.store-page--products.store-view--detail .native-detail--commerce .native-detail-price strong{
    font-size:30px!important;
  }
  body.store-page--products.store-view--detail .native-detail--commerce .native-detail-purchase{
    display:none!important;
  }
  body.store-page--products.store-view--detail .native-detail--commerce .native-detail-accordions{
    margin-top:12px!important;
  }
  body.store-page--products.store-view--detail .native-detail--commerce .native-detail-glass-card{
    border-radius:13px!important;
  }
}
@media (max-width:767px){
  body.store-page--products.store-view--listing .catalog-grid--products{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:24px 10px!important;
  }
  body.store-page--products.store-view--listing .market-card--app-catalog .market-card__media{
    border-radius:16px!important;
  }
  body.store-page--products.store-view--listing .market-card--app-catalog .market-card__media img{
    padding:7px!important;
  }
  body.store-page--products.store-view--listing .market-card--app-catalog .market-card__favorite{
    top:8px!important;
    right:8px!important;
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
  }
  body.store-page--products.store-view--listing .market-card--app-catalog .market-card__body{
    min-height:108px!important;
    gap:7px!important;
    padding:10px 1px 0!important;
  }
  body.store-page--products.store-view--listing .market-card--app-catalog .market-card__identity h3{
    min-height:2.5em!important;
    font-size:13px!important;
    line-height:1.25!important;
  }
  body.store-page--products.store-view--listing .market-card--app-catalog .market-card__app-signals{
    display:none!important;
  }
  body.store-page--products.store-view--listing .market-card--app-catalog .market-card__price del{
    font-size:10px!important;
  }
  body.store-page--products.store-view--listing .market-card--app-catalog .market-card__price strong{
    font-size:17px!important;
  }
  body.store-page--products.store-view--listing .market-card--app-catalog .market-card__quick-add{
    width:42px!important;
    min-width:42px!important;
    height:42px!important;
    min-height:42px!important;
    flex-basis:42px!important;
    border-radius:13px!important;
  }
}
@media (max-width:359px){
  body.store-page--products.store-view--listing .catalog-grid--products{
    gap:22px 8px!important;
  }
  body.store-page--products.store-view--listing .market-card--app-catalog .market-card__favorite{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
  }
  body.store-page--products.store-view--listing .market-card--app-catalog .market-card__identity h3{
    font-size:12.5px!important;
  }
  body.store-page--products.store-view--listing .market-card--app-catalog .market-card__price strong{
    font-size:15px!important;
  }
  body.store-page--products.store-view--listing .market-card--app-catalog .market-card__quick-add{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    flex-basis:44px!important;
  }
}

