/* GAINVO Storefront v0.10.7 — Step 4 Shops & Shop Page native refinement.
   Additive layer: readable typography, native touch geometry, reflow and shop-page consistency. */

body:has(.screen[data-screen="shops"].active),
body:has(.screen[data-screen="shop"].active){background:var(--gv-canvas,#f7f9fb)}

.shops-screen-v985{width:min(100%,1120px)!important;max-width:1120px!important;margin-inline:auto!important}
.shops-screen-v985 .shops-directory-head{padding:12px 2px 10px!important}
.shops-screen-v985 .shops-directory-head .micro{font-size:.75rem!important;letter-spacing:.14em!important}
.shops-screen-v985 .shops-directory-head h1{margin:5px 0 5px!important;font-size:clamp(1.65rem,6vw,2.2rem)!important;line-height:1.08!important;letter-spacing:-.035em!important}
.shops-screen-v985 .shops-directory-head p{max-width:620px!important;font-size:.875rem!important;line-height:1.5!important}

/* 16px search field avoids iOS focus zoom. */
.shops-screen-v985 .shops-search-box{grid-template-columns:24px minmax(0,1fr) 44px!important;gap:9px!important;min-height:56px!important;margin:0 0 20px!important;padding:0 6px 0 14px!important;border-radius:18px!important}
.shops-screen-v985 .shops-search-box>svg{width:21px!important;height:21px!important}
.shops-screen-v985 .shops-search-box input{height:52px!important;font-size:1rem!important;line-height:1.3!important;font-weight:600!important}
.shops-screen-v985 .shops-search-box button{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;border-radius:13px!important;font-size:1.4rem!important}

.shops-screen-v985 .shops-section-head{gap:12px!important;margin-bottom:10px!important}
.shops-screen-v985 .shops-section-head h2{font-size:clamp(1.15rem,4vw,1.45rem)!important;line-height:1.15!important;letter-spacing:-.02em!important}
.shops-screen-v985 .shops-section-head p{font-size:.8125rem!important;line-height:1.4!important}
.shops-screen-v985 .shops-section-head .micro{font-size:.72rem!important;letter-spacing:.13em!important}
.shops-screen-v985 .shops-section-head .text-button{min-height:44px!important;padding:0 8px!important;font-size:.875rem!important}

/* Category discovery: scroll instead of compressing labels. */
.shops-screen-v985 .shops-category-rail{gap:9px!important;padding:0 1px 8px!important;scroll-snap-type:x proximity!important;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.shops-screen-v985 .shop-category-tile{flex:0 0 86px!important;width:86px!important;min-height:92px!important;padding:9px 7px!important;gap:6px!important;border-radius:16px!important;scroll-snap-align:start!important}
.shops-screen-v985 .shop-category-tile>span:first-child{width:40px!important;height:40px!important;border-radius:12px!important;font-size:1.25rem!important}
.shops-screen-v985 .shop-category-tile strong{font-size:.75rem!important;line-height:1.15!important;white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:1.7rem!important}
.shops-screen-v985 .shop-category-tile small{top:6px!important;right:6px!important;min-width:21px!important;height:21px!important;padding:0 5px!important;font-size:.6875rem!important}

/* Directory filters: 44px native-feeling pill targets. */
.shops-screen-v985 .shops-directory-filters{gap:8px!important;padding:0 1px 18px!important;scroll-snap-type:x proximity!important;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.shops-screen-v985 .shop-dir-filter{min-height:44px!important;padding:0 15px!important;border-radius:14px!important;font-size:.8125rem!important;line-height:1.2!important;font-weight:780!important;scroll-snap-align:start}

/* Open-now discovery rail. */
.shops-screen-v985 .shops-featured-section{margin-bottom:24px!important}
.shops-screen-v985 .shops-featured-rail{gap:12px!important;padding:0 1px 7px!important;scroll-snap-type:x proximity!important;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.shops-screen-v985 .shop-discovery-card{flex:0 0 min(78vw,285px)!important;width:min(78vw,285px)!important;border-radius:18px!important;scroll-snap-align:start!important;overflow:hidden!important}
.shops-screen-v985 .shop-discovery-media{height:128px!important}
.shops-screen-v985 .shop-directory-status{min-height:28px!important;padding:0 9px!important;font-size:.72rem!important;border-radius:999px!important}
.shops-screen-v985 .shop-discovery-copy{padding:10px 11px 12px!important;gap:3px!important}
.shops-screen-v985 .shop-discovery-copy strong{font-size:.9375rem!important;line-height:1.2!important}
.shops-screen-v985 .shop-discovery-copy small{font-size:.75rem!important;line-height:1.3!important}
.shops-screen-v985 .shop-discovery-copy>span{font-size:.72rem!important;line-height:1.3!important}

/* Main directory cards: readable list density, no micro-text. */
.shops-screen-v985 .shop-list-v91{gap:12px!important}
.shops-screen-v985 .shop-list-card-v91{grid-template-columns:118px minmax(0,1fr)!important;min-height:164px!important;border-radius:18px!important;box-shadow:0 4px 16px rgba(15,49,88,.035)!important}
.shops-screen-v985 .shop-list-card-v986 .shop-directory-media{width:auto!important;min-height:164px!important}
.shops-screen-v985 .shop-list-body-v91{padding:12px 12px 11px!important}
.shops-screen-v985 .shop-directory-name-line{gap:6px!important}
.shops-screen-v985 .shop-directory-name-line h2{font-size:1rem!important;line-height:1.2!important;letter-spacing:-.015em!important}
.shops-screen-v985 .verified-copy{width:auto!important;height:24px!important;min-width:24px!important;padding:0 7px!important;border-radius:999px!important;font-size:.6875rem!important;overflow:visible!important}
.shops-screen-v985 .verified-copy::after{content:none!important}
.shops-screen-v985 .shop-category-copy{margin-top:4px!important;font-size:.75rem!important;line-height:1.3!important}
.shops-screen-v985 .shop-directory-offer{margin-top:9px!important;font-size:.8125rem!important;line-height:1.35!important}
.shops-screen-v985 .shop-directory-meta-line{gap:8px!important;margin-top:8px!important;align-items:flex-end!important}
.shops-screen-v985 .shop-directory-chips{gap:5px!important;margin:0!important}
.shops-screen-v985 .shop-directory-chips span{min-height:28px!important;padding:0 9px!important;border-radius:9px!important;font-size:.6875rem!important}
.shops-screen-v985 .shop-live-copy{font-size:.72rem!important;line-height:1.25!important;white-space:normal!important;text-align:right!important}
.shops-screen-v985 .shop-row-arrow{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;border-radius:13px!important;font-size:1.45rem!important}
.shops-screen-v985 .shops-directory-summary{gap:9px!important;padding:4px 0!important}
.shops-screen-v985 .shops-directory-summary strong{font-size:.875rem!important}.shops-screen-v985 .shops-directory-summary small{font-size:.75rem!important}

/* Merchant page */
body[data-active-screen="shop"] .shop-screen{width:min(100%,1180px)!important;margin-inline:auto!important;padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))!important}
body[data-active-screen="shop"] .shop-screen>.back-button{min-height:44px!important;padding:0 10px!important;font-size:.875rem!important}
body[data-active-screen="shop"] .merchant-hero{border-radius:22px!important}
body[data-active-screen="shop"] .merchant-cover{height:210px!important;min-height:210px!important}
body[data-active-screen="shop"] .merchant-back-float,
body[data-active-screen="shop"] .merchant-glass-button{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;border-radius:14px!important}
body[data-active-screen="shop"] .merchant-summary-v8{margin:-25px 12px 0!important;padding:0 14px 16px!important;border-radius:22px!important}
body[data-active-screen="shop"] .merchant-identity{grid-template-columns:64px minmax(0,1fr)!important;gap:12px!important;margin-top:-30px!important}
body[data-active-screen="shop"] .merchant-avatar{width:64px!important;height:64px!important;border-radius:18px!important}
body[data-active-screen="shop"] .merchant-title-copy{padding-top:37px!important}
body[data-active-screen="shop"] .merchant-eyebrow{font-size:.72rem!important;line-height:1.2!important;letter-spacing:.1em!important}
body[data-active-screen="shop"] .merchant-name-row h1{font-size:clamp(1.45rem,6vw,2rem)!important;line-height:1.08!important}
body[data-active-screen="shop"] .merchant-verified{min-height:28px!important;padding:0 9px!important;font-size:.72rem!important}
body[data-active-screen="shop"] .merchant-title-copy>p{font-size:.875rem!important;line-height:1.5!important;-webkit-line-clamp:3!important}
body[data-active-screen="shop"] .merchant-status-row-v8{gap:7px!important;margin-top:13px!important;padding-bottom:3px!important;scroll-snap-type:x proximity}
body[data-active-screen="shop"] .merchant-status-row-v8>span,
body[data-active-screen="shop"] .merchant-status-row-v8>button{min-height:36px!important;padding:0 11px!important;font-size:.75rem!important;border-radius:999px!important;scroll-snap-align:start}
body[data-active-screen="shop"] .merchant-commerce-summary{gap:16px!important;margin-top:12px!important;padding-top:11px!important;overflow-x:auto!important;scrollbar-width:none!important}
body[data-active-screen="shop"] .merchant-commerce-summary::-webkit-scrollbar{display:none!important}
body[data-active-screen="shop"] .merchant-commerce-summary strong{font-size:.9375rem!important}
body[data-active-screen="shop"] .merchant-commerce-summary small{font-size:.75rem!important}

/* Restore useful trust information as a swipeable native rail, rather than hidden micro-cards. */
body[data-active-screen="shop"] .merchant-trust-strip{display:flex!important;gap:9px!important;margin-top:13px!important;overflow-x:auto!important;padding:1px 1px 6px!important;scroll-snap-type:x proximity;overscroll-behavior-inline:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}
body[data-active-screen="shop"] .merchant-trust-strip::-webkit-scrollbar{display:none!important}
body[data-active-screen="shop"] .merchant-trust-strip>div{flex:0 0 min(76vw,230px)!important;min-height:64px!important;padding:10px!important;display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;gap:9px!important;align-items:center!important;border:1px solid #e4eaef!important;border-radius:15px!important;background:#fbfcfd!important;scroll-snap-align:start}
body[data-active-screen="shop"] .merchant-trust-strip>div>span{width:38px!important;height:38px!important;border-radius:12px!important;font-size:1rem!important}
body[data-active-screen="shop"] .merchant-trust-strip strong{font-size:.8125rem!important;line-height:1.2!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
body[data-active-screen="shop"] .merchant-trust-strip small{display:block!important;margin-top:2px!important;font-size:.72rem!important;line-height:1.3!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}

body[data-active-screen="shop"] .merchant-catalogue-shell{padding:15px 12px 20px!important;border-radius:20px!important;scroll-margin-top:84px}
body[data-active-screen="shop"] .merchant-shop-tools-v17{gap:9px!important;margin-top:0!important}
body[data-active-screen="shop"] .merchant-shop-search{min-height:56px!important;grid-template-columns:24px minmax(0,1fr)!important;gap:9px!important;padding:0 14px!important;border-radius:17px!important}
body[data-active-screen="shop"] .merchant-shop-search svg{width:21px!important;height:21px!important}
body[data-active-screen="shop"] .merchant-shop-search input{min-height:52px!important;font-size:1rem!important;line-height:1.3!important;font-weight:600!important}
body[data-active-screen="shop"] .merchant-result-meta{min-height:36px!important;font-size:.75rem!important}
body[data-active-screen="shop"] .shop-filter-row{display:flex!important;gap:8px!important;overflow-x:auto!important;scrollbar-width:none!important;scroll-snap-type:x proximity;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
body[data-active-screen="shop"] .shop-filter-row::-webkit-scrollbar{display:none!important}
body[data-active-screen="shop"] .merchant-shop-tools-v17 .filter-pill{flex:0 0 auto!important;min-width:max-content!important;min-height:44px!important;padding:0 14px!important;border-radius:14px!important;font-size:.8125rem!important;scroll-snap-align:start}
body[data-active-screen="shop"] .merchant-category-tags{gap:8px!important;margin-top:10px!important;scroll-snap-type:x proximity;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
body[data-active-screen="shop"] .merchant-category-tags button{min-height:44px!important;padding:0 13px!important;border-radius:14px!important;font-size:.8125rem!important;scroll-snap-align:start}
body[data-active-screen="shop"] .shop-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin-top:10px!important}
body[data-active-screen="shop"] .shop-empty-state h2{font-size:1.15rem!important}body[data-active-screen="shop"] .shop-empty-state p{font-size:.875rem!important;line-height:1.5!important}

/* Dark surfaces for restored trust rail. */
html[data-theme="dark"] body[data-active-screen="shop"] .merchant-trust-strip>div{background:#111c24!important;border-color:#2a3944!important}
html[data-theme="dark"] body[data-active-screen="shop"] .merchant-trust-strip strong{color:#eef5f7!important}
html[data-theme="dark"] body[data-active-screen="shop"] .merchant-trust-strip small{color:#9fb0bc!important}

@media(max-width:349px){
  .shops-screen-v985 .shop-list-card-v91{grid-template-columns:104px minmax(0,1fr)!important}
  .shops-screen-v985 .shop-list-card-v986 .shop-directory-media{min-height:172px!important}
  .shops-screen-v985 .shop-live-copy{display:none!important}
  body[data-active-screen="shop"] .shop-product-grid{grid-template-columns:1fr!important}
}

@media(min-width:600px){
  .shops-screen-v985 .shop-category-tile{flex-basis:96px!important;width:96px!important;min-height:98px!important}
  .shops-screen-v985 .shop-discovery-card{flex-basis:250px!important;width:250px!important}
  .shops-screen-v985 .shop-list-v91{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px!important}
  .shops-screen-v985 .shop-list-card-v91{grid-template-columns:120px minmax(0,1fr)!important}
  body[data-active-screen="shop"] .merchant-trust-strip>div{flex-basis:230px!important}
  body[data-active-screen="shop"] .shop-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

@media(min-width:900px){
  body[data-active-screen="shop"] .merchant-hero{display:grid!important;grid-template-columns:minmax(340px,.92fr) minmax(0,1.08fr)!important}
  body[data-active-screen="shop"] .merchant-cover{height:100%!important;min-height:390px!important}
  body[data-active-screen="shop"] .merchant-summary-v8{margin:0!important;padding:30px!important;border:0!important;border-radius:0!important;box-shadow:none!important}
  body[data-active-screen="shop"] .merchant-identity{margin:0!important;grid-template-columns:76px minmax(0,1fr)!important;align-items:center!important}
  body[data-active-screen="shop"] .merchant-avatar{width:76px!important;height:76px!important}
  body[data-active-screen="shop"] .merchant-title-copy{padding-top:0!important}
  body[data-active-screen="shop"] .merchant-title-copy>p{font-size:.9375rem!important;max-width:650px!important}
  body[data-active-screen="shop"] .merchant-trust-strip{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:visible!important}
  body[data-active-screen="shop"] .merchant-trust-strip>div{min-width:0!important;max-width:none!important;flex-basis:auto!important}
  body[data-active-screen="shop"] .merchant-shop-tools-v17{grid-template-columns:minmax(300px,1fr) auto auto!important;align-items:center!important}
  body[data-active-screen="shop"] .shop-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}
}

@media(prefers-reduced-motion:reduce){
  .shops-screen-v985 .shops-category-rail,.shops-screen-v985 .shops-featured-rail,
  body[data-active-screen="shop"] .merchant-status-row-v8,body[data-active-screen="shop"] .merchant-trust-strip{scroll-behavior:auto!important}
}
