/*
 * GAINVO Storefront v0.10.33 — Phase 2 Home mobile refinement
 * Home-only compact responsive rhythm built on the v0.10.32 scale foundation.
 */
@media (max-width:759px){
  body:has(.home-v0911.active){
    --gv-home-gutter:14px;
    --gv-home-section-gap:22px;
  }

  body:has(.home-v0911.active) .main{
    padding-left:max(var(--gv-home-gutter),var(--gv-safe-left))!important;
    padding-right:max(var(--gv-home-gutter),var(--gv-safe-right))!important;
  }

  /* Header: keep branding/location clear without dominating the first screen. */
  body:has(.home-v0911.active) .topbar{
    min-height:62px!important;
    padding-top:7px!important;
    padding-bottom:7px!important;
  }
  body:has(.home-v0911.active) .brand-mark,
  body:has(.home-v0911.active) .topbar-logo,
  body:has(.home-v0911.active) .home-brand-logo{
    width:42px!important;
    height:42px!important;
    max-width:42px!important;
    max-height:42px!important;
  }
  body:has(.home-v0911.active) .home-brand-location{
    gap:6px!important;
    min-width:0!important;
  }
  body:has(.home-v0911.active) .home-brand-location strong{
    max-width:min(46vw,180px)!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:15px!important;
    line-height:1.15!important;
    letter-spacing:-.01em!important;
  }
  body:has(.home-v0911.active) .top-actions{gap:6px!important}
  body:has(.home-v0911.active) .top-actions .icon-button{
    width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;
    border-radius:13px!important;
  }
  body:has(.home-v0911.active) .top-actions .icon-button svg{width:21px!important;height:21px!important}

  /* Promotional spotlight remains visual but does not consume the first viewport. */
  .home-v0911 .spotlight-home-approved{margin:2px 0 10px!important}
  .home-v0911 .spotlight-home-approved .spotlight-card-approved{
    aspect-ratio:2.15/1!important;
    border-radius:16px!important;
  }
  .home-v0911 .spotlight-home-approved .spotlight-copy{padding:13px!important}
  .home-v0911 .spotlight-home-approved .spotlight-copy h3{
    margin:7px 0 4px!important;
    font-size:clamp(1.18rem,5vw,1.45rem)!important;
    line-height:1.05!important;
  }
  .home-v0911 .spotlight-home-approved .spotlight-copy p{
    font-size:.78rem!important;
    line-height:1.3!important;
  }

  /* Marketplace summary becomes a small utility strip. */
  .home-v0911 .home-market-summary{
    min-height:48px!important;
    margin:0 0 12px!important;
    padding:0 12px!important;
    border-radius:14px!important;
  }
  .home-v0911 .home-market-summary #homeMarketplaceMini{gap:8px!important}
  .home-v0911 .home-market-summary .summary-unit{
    gap:5px!important;
    font-size:13px!important;
    line-height:1.2!important;
  }
  .home-v0911 .home-market-summary .summary-unit b{font-size:14px!important}
  .home-v0911 .home-market-summary .summary-unit svg{width:17px!important;height:17px!important}
  .home-v0911 .home-market-summary .summary-divider{height:20px!important}
  .home-v0911 .home-summary-more{
    min-height:40px!important;
    padding-inline:5px!important;
    font-size:13px!important;
  }

  /* Category discovery: compact cards, readable labels, clear partial next item. */
  .home-v0911 .home-category-approved{margin:0 0 20px!important}
  .home-v0911 .home-category-rail-approved{
    grid-auto-columns:80px!important;
    gap:8px!important;
    margin-inline:calc(var(--gv-home-gutter) * -1)!important;
    padding:2px var(--gv-home-gutter) 7px!important;
    scroll-padding-inline:var(--gv-home-gutter)!important;
  }
  .home-v0911 .home-category-rail-approved .category-tile{
    min-height:86px!important;
    height:86px!important;
    padding:7px 5px!important;
    gap:5px!important;
    border-radius:15px!important;
  }
  .home-v0911 .home-category-rail-approved .category-icon{
    width:42px!important;height:42px!important;
    font-size:20px!important;
    border-radius:14px!important;
  }
  .home-v0911 .home-category-rail-approved .category-tile strong{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    max-width:70px!important;
    min-height:0!important;
    overflow:hidden!important;
    font-size:12px!important;
    line-height:1.12!important;
    font-weight:760!important;
  }

  /* Section hierarchy: concise and calm. */
  .home-v0911 .home-merch-section,
  .home-v0911 .home-shop-section{margin-top:var(--gv-home-section-gap)!important}
  .home-v0911 .home-primary-approved{margin-top:0!important}
  .home-v0911 .section-head{
    align-items:flex-end!important;
    gap:8px!important;
    margin-bottom:9px!important;
  }
  .home-v0911 .section-head .micro{
    margin-bottom:3px!important;
    font-size:11px!important;
    line-height:1.1!important;
    letter-spacing:.12em!important;
  }
  .home-v0911 .section-head h2{
    font-size:20px!important;
    line-height:1.12!important;
    letter-spacing:-.025em!important;
  }
  .home-v0911 .home-section-actions{gap:4px!important}
  .home-v0911 .home-section-actions .rail-controls{display:none!important}
  .home-v0911 .text-button,.home-v0911 .home-see-all{
    min-height:36px!important;
    padding:0 2px!important;
    font-size:13px!important;
    white-space:nowrap!important;
  }

  /* Product rails: two useful cards without oversized copy or buttons. */
  .home-v0911 .home-product-grid{
    grid-auto-columns:clamp(142px,43vw,176px)!important;
    gap:9px!important;
    margin-inline:calc(var(--gv-home-gutter) * -1)!important;
    padding:1px var(--gv-home-gutter) 8px!important;
    scroll-padding-inline:var(--gv-home-gutter)!important;
  }
  .home-v0911 .home-product-grid .product-card-v7{
    border-radius:15px!important;
    box-shadow:0 3px 12px rgba(15,49,88,.045)!important;
  }
  .home-v0911 .home-product-grid .product-image{
    aspect-ratio:1.08/1!important;
  }
  .home-v0911 .home-product-grid .product-badge{
    top:7px!important;left:7px!important;
    min-height:24px!important;
    padding:0 7px!important;
    font-size:11px!important;
    border-radius:999px!important;
  }
  .home-v0911 .home-product-grid .product-save-card{
    top:6px!important;right:6px!important;
    width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;
    border-radius:12px!important;
  }
  .home-v0911 .home-product-grid .product-body{
    min-height:124px!important;
    padding:9px!important;
  }
  .home-v0911 .home-product-grid .product-title{
    min-height:34px!important;
    margin:0 0 5px!important;
    font-size:14px!important;
    line-height:1.22!important;
    font-weight:780!important;
  }
  .home-v0911 .home-product-grid .product-shop-row{
    min-height:16px!important;
    margin-bottom:5px!important;
    font-size:12px!important;
  }
  .home-v0911 .home-product-grid .product-meta-line{
    min-height:15px!important;
    margin-bottom:6px!important;
    font-size:11px!important;
  }
  .home-v0911 .home-product-grid .product-price{
    font-size:15px!important;
    line-height:1.05!important;
  }
  .home-v0911 .home-product-grid .product-price small,
  .home-v0911 .home-product-grid .product-price-sale del{font-size:11px!important}
  .home-v0911 .home-product-grid .mini-add{
    flex:0 0 40px!important;
    width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;
    border-radius:12px!important;
  }
  .home-v0911 .home-product-grid .mini-add .mini-cart-svg,
  .home-v0911 .home-product-grid .mini-cart-svg{width:19px!important;height:19px!important}

  /* Local shops remain easy to browse but don't resemble large dashboard cards. */
  .home-v0911 .shop-rail{
    gap:10px!important;
    margin-inline:calc(var(--gv-home-gutter) * -1)!important;
    padding-inline:var(--gv-home-gutter)!important;
  }
  .home-v0911 .shop-rail>.shop-card{border-radius:16px!important}
  .home-v0911 .shop-card-v2 .shop-meta h3{font-size:14px!important;line-height:1.2!important}
  .home-v0911 .shop-card-v2 .shop-card-foot{font-size:12px!important}

  /* Trust strip is useful but secondary. */
  .home-v0911 .home-trust-line{
    margin-top:24px!important;
    gap:7px!important;
    font-size:11px!important;
    line-height:1.3!important;
  }

  /* Home navigation should frame content, not cover it. */
  body:has(.home-v0911.active) .bottom-nav{
    min-height:68px!important;
    padding:5px 7px calc(5px + var(--gv-safe-bottom))!important;
    border-radius:18px 18px 0 0!important;
  }
  body:has(.home-v0911.active) .nav-item{
    min-height:54px!important;
    gap:2px!important;
    padding:4px 2px!important;
    border-radius:13px!important;
  }
  body:has(.home-v0911.active) .nav-item .nav-icon,
  body:has(.home-v0911.active) .nav-item .nav-icon svg{width:22px!important;height:22px!important}
  body:has(.home-v0911.active) .nav-item small{font-size:11px!important;line-height:1!important}
}

@media (max-width:359px){
  body:has(.home-v0911.active){--gv-home-gutter:12px;--gv-home-section-gap:19px}
  .home-v0911 .home-market-summary .summary-unit{font-size:12px!important}
  .home-v0911 .home-market-summary .summary-unit b{font-size:13px!important}
  .home-v0911 .home-category-rail-approved{grid-auto-columns:76px!important;gap:7px!important}
  .home-v0911 .home-category-rail-approved .category-tile{height:82px!important;min-height:82px!important}
  .home-v0911 .home-category-rail-approved .category-icon{width:40px!important;height:40px!important}
  .home-v0911 .home-category-rail-approved .category-tile strong{font-size:11px!important;max-width:66px!important}
  .home-v0911 .section-head h2{font-size:19px!important}
  .home-v0911 .home-product-grid{grid-auto-columns:clamp(136px,44vw,154px)!important;gap:8px!important}
  .home-v0911 .home-product-grid .product-title{font-size:13px!important}
  .home-v0911 .home-product-grid .product-body{padding:8px!important}
}

@media (min-width:430px) and (max-width:759px){
  body:has(.home-v0911.active){--gv-home-gutter:18px}
  .home-v0911 .home-category-rail-approved{grid-auto-columns:84px!important}
  .home-v0911 .home-product-grid{grid-auto-columns:176px!important;gap:11px!important}
  .home-v0911 .section-head h2{font-size:21px!important}
}
