/* GAINVO Storefront v0.10.35 — Phase 4 Individual Shop mobile refinement */
@media (max-width:759px){
  body[data-active-screen="shop"] .main{padding-left:0!important;padding-right:0!important}
  body[data-active-screen="shop"] #shopDetail{padding-bottom:8px}
  body[data-active-screen="shop"] .merchant-storefront-v8{gap:12px;padding-bottom:14px}

  /* Compact visual header: useful identity without taking over the screen. */
  body[data-active-screen="shop"] .merchant-hero-v8{
    margin:0 12px;
    border-radius:20px!important;
    overflow:hidden!important;
    box-shadow:0 5px 18px rgba(15,49,88,.05)!important;
  }
  body[data-active-screen="shop"] .merchant-hero-v8 .merchant-cover{
    height:148px!important;
    min-height:148px!important;
  }
  body[data-active-screen="shop"] .merchant-cover-scrim{background:linear-gradient(180deg,rgba(7,26,44,.01),rgba(7,26,44,.22))!important}
  body[data-active-screen="shop"] .merchant-back-float{
    left:10px!important;top:10px!important;width:44px!important;height:44px!important;
    border-radius:13px!important;font-size:18px!important;
  }
  body[data-active-screen="shop"] .merchant-cover-actions{right:10px!important;top:10px!important;gap:7px!important}
  body[data-active-screen="shop"] .merchant-glass-button{
    width:44px!important;height:44px!important;border-radius:13px!important;
  }
  body[data-active-screen="shop"] .merchant-glass-button svg{width:20px!important;height:20px!important}

  /* Identity card: shorter, calmer, easier to scan. */
  body[data-active-screen="shop"] .merchant-summary-v8{
    margin:-16px 0 0!important;
    padding:0 14px 14px!important;
    border-radius:18px 18px 0 0!important;
    box-shadow:none!important;
  }
  body[data-active-screen="shop"] .merchant-identity{
    grid-template-columns:54px minmax(0,1fr)!important;
    gap:10px!important;
    align-items:end!important;
    margin-top:-24px!important;
  }
  body[data-active-screen="shop"] .merchant-avatar{
    width:54px!important;height:54px!important;
    border-width:3px!important;border-radius:15px!important;
    box-shadow:0 4px 12px rgba(15,49,88,.10)!important;
  }
  body[data-active-screen="shop"] .merchant-title-copy{padding-top:29px!important}
  body[data-active-screen="shop"] .merchant-eyebrow{
    font-size:11px!important;letter-spacing:.07em!important;line-height:1.2!important;
  }
  body[data-active-screen="shop"] .merchant-name-row{gap:6px!important;align-items:center!important}
  body[data-active-screen="shop"] .merchant-name-row h1{
    font-size:21px!important;line-height:1.12!important;margin:3px 0 1px!important;
    max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  body[data-active-screen="shop"] .merchant-verified{
    min-height:26px!important;padding:0 8px!important;font-size:11px!important;
  }
  body[data-active-screen="shop"] .merchant-title-copy>p{
    margin-top:5px!important;font-size:13px!important;line-height:1.42!important;
    display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
    overflow:hidden!important;
  }

  /* Fulfilment/state chips: single swipe row, not oversized stacked pills. */
  body[data-active-screen="shop"] .merchant-status-row-v8{
    margin-top:11px!important;gap:7px!important;flex-wrap:nowrap!important;
    overflow-x:auto!important;padding-bottom:2px!important;scrollbar-width:none!important;
  }
  body[data-active-screen="shop"] .merchant-status-row-v8::-webkit-scrollbar{display:none!important}
  body[data-active-screen="shop"] .merchant-status-row-v8>span,
  body[data-active-screen="shop"] .merchant-status-row-v8>button{
    flex:0 0 auto!important;min-height:34px!important;
    padding:0 10px!important;border-radius:999px!important;
    font-size:12px!important;line-height:1!important;
  }
  body[data-active-screen="shop"] .merchant-open-status i{width:6px!important;height:6px!important}
  body[data-active-screen="shop"] .merchant-directions-chip{
    border:1px solid #d2e7e2!important;background:#f2fbf8!important;color:#08786c!important;
    font-weight:800!important;
  }

  /* Secondary shop facts are intentionally quiet. */
  body[data-active-screen="shop"] .merchant-commerce-summary{
    margin-top:10px!important;padding-top:10px!important;gap:18px!important;
  }
  body[data-active-screen="shop"] .merchant-commerce-summary span{gap:2px!important}
  body[data-active-screen="shop"] .merchant-commerce-summary strong{font-size:14px!important}
  body[data-active-screen="shop"] .merchant-commerce-summary small{font-size:11px!important}

  body[data-active-screen="shop"] .merchant-trust-strip{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;margin-top:11px!important;
  }
  body[data-active-screen="shop"] .merchant-trust-strip>div{
    min-height:58px!important;padding:8px!important;border-radius:12px!important;gap:7px!important;
  }
  body[data-active-screen="shop"] .merchant-trust-strip>div>span{
    width:26px!important;height:26px!important;min-width:26px!important;border-radius:8px!important;
  }
  body[data-active-screen="shop"] .merchant-trust-strip strong{font-size:11px!important;line-height:1.2!important}
  body[data-active-screen="shop"] .merchant-trust-strip small{font-size:10px!important;line-height:1.2!important}

  /* Catalogue comes into view much sooner. */
  body[data-active-screen="shop"] .merchant-catalogue-shell{
    margin:0 12px!important;padding:13px 0 16px!important;
    border-radius:18px!important;border-color:#e2e8ee!important;
  }
  body[data-active-screen="shop"] .merchant-shop-tools-v17{
    padding:0 12px!important;gap:8px!important;margin-top:0!important;
  }
  body[data-active-screen="shop"] .merchant-shop-search-v17{
    min-height:44px!important;border-radius:13px!important;padding:0 11px!important;
  }
  body[data-active-screen="shop"] .merchant-shop-search-v17 input{font-size:14px!important}
  body[data-active-screen="shop"] .merchant-result-meta{font-size:11px!important}
  body[data-active-screen="shop"] .shop-filter-row{gap:7px!important}
  body[data-active-screen="shop"] .shop-filter-row .filter-pill{
    min-height:36px!important;padding:0 11px!important;font-size:12px!important;border-radius:999px!important;
  }
  body[data-active-screen="shop"] .merchant-category-tags-v8{
    margin-top:8px!important;padding:0 12px 3px!important;gap:7px!important;
  }
  body[data-active-screen="shop"] .merchant-category-tags-v8 button{
    min-height:34px!important;padding:0 10px!important;font-size:11px!important;
  }
  body[data-active-screen="shop"] .shop-product-section{margin-top:9px!important;padding:0 12px!important}
  body[data-active-screen="shop"] .shop-product-grid{gap:10px!important}

  /* Product cards inside a shop use the same normal mobile scale as Home. */
  body[data-active-screen="shop"] .shop-product-grid .product-card-v7{border-radius:16px!important}
  body[data-active-screen="shop"] .shop-product-grid .product-body{padding:9px!important;min-height:132px!important}
  body[data-active-screen="shop"] .shop-product-grid .product-title{
    font-size:14px!important;line-height:1.22!important;min-height:34px!important;margin-bottom:5px!important;
  }
  body[data-active-screen="shop"] .shop-product-grid .product-shop-row{font-size:11px!important;margin-bottom:5px!important}
  body[data-active-screen="shop"] .shop-product-grid .product-meta-line{font-size:10px!important;margin-bottom:7px!important}
  body[data-active-screen="shop"] .shop-product-grid .product-price{font-size:16px!important}
  body[data-active-screen="shop"] .shop-product-grid .product-badge{font-size:10px!important;padding:4px 7px!important}
  body[data-active-screen="shop"] .shop-product-grid .product-save-card,
  body[data-active-screen="shop"] .shop-product-grid .mini-add{
    width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;
  }
}

@media (max-width:359px){
  body[data-active-screen="shop"] .merchant-hero-v8{margin:0 10px}
  body[data-active-screen="shop"] .merchant-hero-v8 .merchant-cover{height:132px!important;min-height:132px!important}
  body[data-active-screen="shop"] .merchant-name-row h1{font-size:19px!important}
  body[data-active-screen="shop"] .merchant-title-copy>p{font-size:12.5px!important}
  body[data-active-screen="shop"] .merchant-trust-strip{grid-template-columns:1fr!important}
  body[data-active-screen="shop"] .merchant-catalogue-shell{margin:0 10px!important}
  body[data-active-screen="shop"] .shop-product-section{padding:0 10px!important}
}

@media (min-width:430px) and (max-width:759px){
  body[data-active-screen="shop"] .merchant-hero-v8 .merchant-cover{height:165px!important;min-height:165px!important}
  body[data-active-screen="shop"] .merchant-avatar{width:58px!important;height:58px!important}
  body[data-active-screen="shop"] .merchant-identity{grid-template-columns:58px minmax(0,1fr)!important}
  body[data-active-screen="shop"] .merchant-name-row h1{font-size:23px!important}
}
