/* GAINVO Storefront v0.10.21 — Favourites native refinement
   Compact app-style page header and balanced saved-product cards. */

.favourites-screen-native{
  padding-top:0!important;
  padding-bottom:calc(var(--bottom-nav-space,94px) + env(safe-area-inset-bottom) + 18px)!important;
}

.favourites-native-head{
  min-height:72px!important;
  margin:0 0 14px!important;
  padding:10px 2px 12px!important;
  align-items:end!important;
  border-bottom:1px solid var(--border,#dfe7ec)!important;
}
.favourites-native-head .micro{
  display:block!important;
  margin:0 0 3px!important;
  font-size:.72rem!important;
  line-height:1.2!important;
  letter-spacing:.13em!important;
}
.favourites-native-head h1{
  margin:0!important;
  font-size:clamp(1.4rem,5vw,1.75rem)!important;
  line-height:1.08!important;
  letter-spacing:-.02em!important;
}
.favourites-head-count{
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:34px!important;
  padding:0 11px!important;
  border:1px solid var(--border,#dfe7ec)!important;
  border-radius:999px!important;
  background:var(--surface,#fff)!important;
  color:var(--muted,#71808c)!important;
  font-size:.78rem!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.favourites-page-body{min-width:0!important;}

/* Saved products use the same compact card rhythm as Home, but stay in an
   organised two-column grid because this page is a complete collection. */
.favourites-product-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:stretch!important;
  width:100%!important;
}
.favourites-product-grid>.product-card,
.favourites-product-grid>.product-card-v7{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:100%!important;
  margin:0!important;
  overflow:hidden!important;
  border-radius:17px!important;
}
.favourites-product-grid .product-media-wrap,
.favourites-product-grid .product-image{
  width:100%!important;
  min-width:0!important;
}
.favourites-product-grid .product-image{
  aspect-ratio:1.08 / 1!important;
}
.favourites-product-grid .product-body{
  min-height:130px!important;
  padding:10px!important;
}
.favourites-product-grid .product-title{
  min-height:34px!important;
  max-height:36px!important;
  margin:0 0 5px!important;
  font-size:clamp(.8125rem,.78rem + .13vw,.9rem)!important;
  line-height:1.28!important;
}
.favourites-product-grid .product-shop-row{
  min-height:16px!important;
  margin:0 0 6px!important;
  font-size:clamp(.72rem,.69rem + .1vw,.78rem)!important;
  overflow:hidden!important;
}
.favourites-product-grid .product-shop-row>span{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.favourites-product-grid .product-meta-line{
  min-height:15px!important;
  margin:0 0 7px!important;
  font-size:clamp(.7rem,.68rem + .08vw,.75rem)!important;
}
.favourites-product-grid .product-price-row{
  margin-top:auto!important;
  gap:6px!important;
  align-items:center!important;
}
.favourites-product-grid .product-price{
  min-width:0!important;
  font-size:clamp(.94rem,.9rem + .16vw,1.04rem)!important;
  line-height:1.05!important;
  white-space:nowrap!important;
}
.favourites-product-grid .product-price small,
.favourites-product-grid .product-price-sale del{font-size:.7rem!important;}
.favourites-product-grid .mini-add{
  flex:0 0 44px!important;
  width:44px!important;
  min-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  border-radius:13px!important;
}
.favourites-product-grid .product-save-card{
  width:40px!important;
  min-width:40px!important;
  height:40px!important;
  min-height:40px!important;
  border-radius:13px!important;
}

.favourites-empty{
  min-height:min(52vh,430px)!important;
  padding:36px 18px calc(30px + env(safe-area-inset-bottom))!important;
}

html[data-theme="dark"] .favourites-native-head{border-bottom-color:#233946!important;}
html[data-theme="dark"] .favourites-head-count{background:#0d1b24!important;border-color:#29404d!important;color:#a9bbc8!important;}

@media (max-width:350px){
  .favourites-product-grid{gap:8px!important;}
  .favourites-product-grid .product-body{padding:9px!important;min-height:126px!important;}
  .favourites-product-grid .product-title{font-size:.8125rem!important;}
  .favourites-product-grid .product-price{font-size:.9375rem!important;}
  .favourites-native-head{padding-inline:0!important;}
}

@media (min-width:700px){
  .favourites-native-head{min-height:78px!important;margin-bottom:18px!important;}
  .favourites-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;}
}
@media (min-width:1024px){
  .favourites-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;}
}

@media (prefers-reduced-motion:reduce){
  .favourites-product-grid .product-card-v7{transition:none!important;}
}
