/* ========================================================================
   TopMarket v9.0.0 — MOBILE REBUILD
   Dedicated customer-mobile stylesheet loaded AFTER app.css.
   Goal: readable typography, fixed 3-column product grid, consistent cards,
   stable cart/checkout/orders pages and zero horizontal overflow.
   ======================================================================== */

@media (max-width:980px){
  :root{--m742-green:#07513f;--m742-gold:#d9ab3d;--m742-ink:#102b23;--m742-muted:#6c7a75;--m742-line:#e1e8e4}
  html{-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important;overflow-x:hidden!important}
  body.storefront-route{width:100%!important;max-width:100%!important;overflow-x:hidden!important;background:#fbfcfb!important;font-size:16px!important}
  body.storefront-route main{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:clip!important}
  body.storefront-route button,body.storefront-route input,body.storefront-route select,body.storefront-route textarea{font-family:inherit!important}

  /* ---------- header ---------- */
  body.storefront-route .tm740-header{position:sticky!important;top:0!important;z-index:190!important;padding:0 10px 9px!important;background:rgba(255,255,255,.985)!important;border-bottom:1px solid #e4eae7!important;box-shadow:0 6px 20px rgba(7,81,63,.055)!important;backdrop-filter:blur(16px)!important}
  body.storefront-route .tm740-header-row{height:64px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:0!important;max-width:none!important}
  body.storefront-route .tm740-brand{display:flex!important;align-items:center!important;gap:8px!important;margin:0!important;min-width:0!important;max-width:70%!important}
  body.storefront-route .tm740-brand-mark{order:0!important;width:43px!important;height:43px!important;flex:0 0 43px!important;border-radius:13px!important;font-size:24px!important}
  body.storefront-route .tm740-brand-copy{min-width:0!important}
  body.storefront-route .tm740-brand-copy b{font-size:20px!important;line-height:1.05!important;font-weight:950!important;white-space:nowrap!important}
  body.storefront-route .tm740-brand-copy small{display:block!important;font-size:9.5px!important;line-height:1.2!important;margin-top:4px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.storefront-route .tm740-search,body.storefront-route .tm740-actions{display:none!important}
  body.storefront-route .tm740-mobile-tools{display:flex!important;align-items:center!important;gap:8px!important}
  body.storefront-route .tm740-mobile-tools>a{position:relative!important;width:40px!important;height:40px!important;display:grid!important;place-items:center!important;border-radius:12px!important;background:#f1f6f3!important;color:var(--m742-green)!important;font-size:21px!important;border:1px solid #e2ebe6!important}
  body.storefront-route .tm740-mobile-tools em{position:absolute!important;top:-4px!important;inset-inline-start:-4px!important;min-width:19px!important;height:19px!important;padding:0 4px!important;border-radius:99px!important;background:#ef4444!important;color:#fff!important;font-size:9px!important;font-style:normal!important;display:grid!important;place-items:center!important;font-weight:900!important}
  body.storefront-route .tm740-mobile-search{display:flex!important;height:48px!important;width:100%!important;padding:0 13px!important;gap:8px!important;border-radius:15px!important;background:#fff!important;border:1px solid #d9e2de!important;box-shadow:none!important}
  body.storefront-route .tm740-mobile-search>span{font-size:21px!important}
  body.storefront-route .tm740-mobile-search input{font-size:14px!important;line-height:1!important;color:var(--m742-ink)!important}
  body.storefront-route .tm740-mobile-search input::placeholder{font-size:13px!important;color:#89958f!important}

  /* ---------- storefront shell ---------- */
  body.storefront-route .tm740-storefront{display:flex!important;flex-direction:column!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:8px 8px 88px!important;overflow:visible!important}
  body.storefront-route .tm740-categories{order:1!important;display:flex!important;width:100%!important;max-width:100%!important;gap:7px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:7px 0 8px!important;margin:0!important;scrollbar-width:none!important;overscroll-behavior-inline:contain!important;-webkit-overflow-scrolling:touch!important}
  body.storefront-route .tm740-categories::-webkit-scrollbar{display:none!important}
  body.storefront-route .tm740-category-chip{flex:0 0 auto!important;min-width:72px!important;height:57px!important;padding:5px 8px!important;border-radius:16px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;background:#fff!important;border:1px solid #dfe7e3!important;color:#2c433a!important;font-size:10.5px!important;line-height:1.05!important;font-weight:900!important;box-shadow:0 3px 10px rgba(17,60,44,.035)!important}
  body.storefront-route .tm740-category-chip i{width:27px!important;height:27px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:#f1f6f3!important;color:var(--m742-green)!important;font-size:14px!important}
  body.storefront-route .tm740-category-chip.active{background:#eaf4ef!important;border-color:#a9c9bb!important;color:var(--m742-green)!important}
  body.storefront-route .tm740-category-chip.active i{background:var(--m742-green)!important;color:#fff!important}

  /* ---------- hero ---------- */
  body.storefront-route .tm740-hero{order:2!important;display:block!important;position:relative!important;width:100%!important;height:112px!important;min-height:112px!important;margin:0!important;border-radius:18px!important;overflow:hidden!important;border:1px solid #dfe7df!important;background:#07513f!important;box-shadow:0 8px 20px rgba(7,81,63,.08)!important}
  body.storefront-route .tm740-hero-art{position:absolute!important;inset:0!important;width:100%!important;min-width:0!important;background-image:linear-gradient(90deg,rgba(5,71,53,.88) 0%,rgba(5,71,53,.63) 43%,rgba(5,71,53,.06) 76%),url('/static/storefront740/hero-produce.jpg')!important;background-size:cover!important;background-position:69% center!important}
  body.storefront-route .tm740-hero-copy{position:relative!important;z-index:3!important;width:64%!important;height:100%!important;padding:13px 13px!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;color:#fff!important}
  body.storefront-route .tm740-hero-copy>span{display:none!important}
  body.storefront-route .tm740-hero-copy h1{margin:0 0 4px!important;font-size:18px!important;line-height:1.18!important;color:#fff!important;letter-spacing:0!important;font-weight:950!important;text-shadow:0 1px 7px rgba(0,0,0,.12)!important}
  body.storefront-route .tm740-hero-copy p{display:block!important;margin:0 0 8px!important;max-width:100%!important;font-size:10px!important;line-height:1.35!important;color:rgba(255,255,255,.93)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.storefront-route .tm740-hero-copy a{display:inline-flex!important;align-items:center!important;gap:5px!important;padding:7px 13px!important;border-radius:999px!important;background:linear-gradient(145deg,#f4ce69,#dcae3a)!important;color:#173d31!important;font-size:10.5px!important;font-weight:950!important;box-shadow:none!important}
  body.storefront-route .tm740-hero-tag{display:none!important}

  /* ---------- section heading ---------- */
  body.storefront-route .tm740-products{order:3!important;width:100%!important;min-width:0!important;margin-top:10px!important}
  body.storefront-route .tm740-section-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin:0 0 8px!important;min-height:34px!important}
  body.storefront-route .tm740-section-head>div:first-child{display:grid!important;grid-template-columns:4px auto!important;column-gap:7px!important;align-items:center!important}
  body.storefront-route .tm740-section-head>div:first-child>span{grid-row:1/3!important;width:4px!important;height:25px!important;border-radius:8px!important;background:var(--m742-gold)!important}
  body.storefront-route .tm740-section-head h2{margin:0!important;font-size:17px!important;line-height:1.15!important;font-weight:950!important;color:var(--m742-ink)!important}
  body.storefront-route .tm740-section-head small{display:none!important}
  body.storefront-route .tm740-section-meta{font-size:10px!important;color:#718079!important;white-space:nowrap!important}
  body.storefront-route .tm740-section-meta b{font-size:12px!important;color:var(--m742-green)!important}

  /* ---------- product grid: ALWAYS 3 columns on phones ---------- */
  body.storefront-route .tm740-grid,
  body.storefront-route .tm-product-grid-v3,
  body.storefront-route .tm740-offers-page .tm740-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    gap:6px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    align-items:stretch!important;
  }
  body.storefront-route .tm740-grid>*{min-width:0!important;max-width:100%!important}

  /* ---------- product card ---------- */
  body.storefront-route .tm740-card{
    position:relative!important;
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:226px!important;
    min-height:226px!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    background:#fff!important;
    border:1.4px solid var(--m742-gold)!important;
    border-radius:14px!important;
    box-shadow:0 5px 14px rgba(25,66,51,.055)!important;
    transform:none!important;
  }
  body.storefront-route .tm740-card-media{position:relative!important;flex:0 0 82px!important;width:100%!important;height:82px!important;min-height:82px!important;max-height:82px!important;background:linear-gradient(180deg,#fff,#fcfdfc)!important;overflow:hidden!important}
  body.storefront-route .tm740-image-button{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;margin:0!important;padding:6px!important;border:0!important;background:transparent!important}
  body.storefront-route .tm740-image-button img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important}
  body.storefront-route .tm740-favorite{top:5px!important;inset-inline-start:5px!important;width:23px!important;height:23px!important;padding:0!important;border:0!important;border-radius:50%!important;background:rgba(249,251,250,.94)!important;color:#4f665d!important;font-size:16px!important;line-height:1!important;box-shadow:0 2px 7px rgba(0,0,0,.05)!important}
  body.storefront-route .tm740-sale{top:5px!important;inset-inline-end:5px!important;padding:4px 6px!important;border-radius:99px!important;font-size:8px!important;line-height:1!important;font-weight:950!important}
  body.storefront-route .tm740-zoom{display:none!important}
  body.storefront-route .tm740-card-body{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;min-width:0!important;min-height:0!important;padding:6px 7px 7px!important;gap:2px!important;text-align:start!important}
  body.storefront-route .tm740-category{display:block!important;width:100%!important;height:13px!important;margin:0!important;font-size:9px!important;line-height:1.2!important;color:#77857f!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.storefront-route .tm740-card-body h3{display:-webkit-box!important;width:100%!important;min-height:30px!important;max-height:30px!important;margin:0!important;font-size:11.5px!important;line-height:1.28!important;font-weight:950!important;color:#122820!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;word-break:normal!important}
  body.storefront-route .tm740-name-en{display:block!important;width:100%!important;height:12px!important;font-size:8.7px!important;line-height:1.25!important;color:#7d8984!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.storefront-route .tm740-price{display:flex!important;align-items:baseline!important;gap:4px!important;width:100%!important;height:22px!important;min-height:22px!important;margin:1px 0 0!important;overflow:hidden!important}
  body.storefront-route .tm740-price b{font-size:13px!important;line-height:1!important;font-weight:1000!important;color:#102b23!important;white-space:nowrap!important}
  body.storefront-route .tm740-price em{font-size:8px!important;font-style:normal!important}
  body.storefront-route .tm740-price del{font-size:8px!important;color:#969e9a!important;white-space:nowrap!important}
  body.storefront-route .tm740-cart-form{display:grid!important;width:100%!important;min-width:0!important;margin-top:auto!important;gap:3px!important}
  body.storefront-route .tm740-unit-select{width:100%!important;height:25px!important;min-height:25px!important;padding:0 4px!important;border-radius:7px!important;font-size:8px!important}
  body.storefront-route .tm740-controls{display:grid!important;grid-template-columns:30px minmax(0,1fr) 30px!important;gap:3px!important;width:100%!important;height:33px!important;min-height:33px!important;margin:0!important}
  body.storefront-route .tm740-controls .qty-btn{display:grid!important;place-items:center!important;width:100%!important;min-width:0!important;height:33px!important;padding:0!important;border:0!important;border-radius:8px!important;background:#eaf3ee!important;color:var(--m742-green)!important;font-size:18px!important;font-weight:1000!important;line-height:1!important}
  body.storefront-route .tm740-controls .qty-input{display:block!important;width:100%!important;min-width:0!important;height:33px!important;padding:0 2px!important;border:1px solid #dbe5e0!important;border-radius:8px!important;background:#fff!important;text-align:center!important;font-size:12px!important;font-weight:950!important;color:var(--m742-ink)!important;appearance:textfield!important}
  body.storefront-route .tm740-cart-quick{display:none!important}
  body.storefront-route .tm740-fraction-help{display:none!important}
  body.storefront-route .tm740-unavailable{margin-top:auto!important;padding:6px!important;border-radius:8px!important;gap:2px!important}
  body.storefront-route .tm740-unavailable b{font-size:9.5px!important}.tm740-unavailable span{font-size:8px!important}

  /* ---------- offers ---------- */
  body.storefront-route .tm740-offers-page{display:block!important;width:100%!important;max-width:none!important;padding:8px 8px 88px!important}
  body.storefront-route .tm740-offers-hero{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:86px!important;margin:0 0 8px!important;padding:13px 15px!important;border-radius:16px!important;background:linear-gradient(130deg,#07513f,#08765a)!important}
  body.storefront-route .tm740-offers-hero small{font-size:9px!important}.tm740-offers-hero h1{font-size:24px!important;margin:2px 0 3px!important}.tm740-offers-hero p{font-size:10px!important;line-height:1.4!important}.tm740-offers-hero strong{font-size:42px!important}
  body.storefront-route .tm72-offers-search{display:flex!important;width:100%!important;height:42px!important;margin:0 0 8px!important;border-radius:13px!important}
  body.storefront-route .tm72-offers-search input{min-width:0!important;font-size:13px!important}.tm72-offers-search button{font-size:11px!important;padding:0 12px!important}

  /* ---------- search/category states ---------- */
  body.storefront-route .tm72-search-note{font-size:11px!important;line-height:1.5!important;padding:8px 10px!important;margin-bottom:8px!important;border-radius:10px!important}
  body.storefront-route .tm72-empty{grid-column:1/-1!important;min-height:160px!important;padding:24px 14px!important;font-size:13px!important}
  body.storefront-route .tm72-empty b{font-size:15px!important}

  /* ---------- cart ---------- */
  body.storefront-route .container.v523-cart-page{width:100%!important;max-width:none!important;margin:0!important;padding:12px 10px 100px!important}
  body.storefront-route .v523-cart-head{display:grid!important;gap:10px!important;margin-bottom:12px!important}
  body.storefront-route .v523-cart-head span{font-size:11px!important}.v523-cart-head h1{font-size:23px!important;line-height:1.2!important;margin:3px 0!important}.v523-cart-head p{font-size:12px!important;line-height:1.6!important;margin:0!important}.v523-back-shop{justify-self:start!important;font-size:12px!important}
  body.storefront-route .v523-cart-layout{display:block!important;width:100%!important}
  body.storefront-route .v523-cart-items{display:grid!important;gap:9px!important}
  body.storefront-route .v523-cart-item{padding:11px!important;border-radius:16px!important}
  body.storefront-route .v523-cart-item-top{display:grid!important;grid-template-columns:70px minmax(0,1fr)!important;gap:10px!important;align-items:center!important}
  body.storefront-route .v523-cart-img{width:70px!important;height:70px!important;grid-row:1/3!important}
  body.storefront-route .v523-cart-copy{min-width:0!important}.v523-cart-copy small{font-size:9px!important}.v523-cart-copy h3{font-size:15px!important;line-height:1.25!important;margin:2px 0!important}.v523-cart-copy p{font-size:10.5px!important;line-height:1.4!important;margin:0!important}
  body.storefront-route .v523-cart-total{grid-column:2!important;text-align:start!important}.v523-cart-total small{font-size:9px!important}.v523-cart-total b{font-size:15px!important}
  body.storefront-route .v523-cart-form{display:grid!important;gap:7px!important;margin-top:9px!important}.v523-cart-qty{width:100%!important;min-width:0!important;grid-template-columns:42px minmax(0,1fr) auto 42px!important}.v523-cart-qty .qty-btn{height:42px!important;font-size:20px!important}.v523-cart-qty .qty-input{height:42px!important;font-size:14px!important}.v523-cart-qty .qty-unit{font-size:10px!important}.v523-fraction-help{font-size:10px!important;line-height:1.4!important}
  body.storefront-route .v523-cart-actions{display:grid!important;grid-template-columns:1fr auto!important;gap:7px!important}.v523-cart-actions button{min-height:42px!important;font-size:12px!important}
  body.storefront-route .v523-cart-summary{margin-top:12px!important}.v523-summary-card{position:static!important;padding:14px!important;border-radius:17px!important}.v523-summary-head h3{font-size:17px!important}.v523-summary-head span,.v523-summary-stats small,.v523-auth-box span,.v523-summary-note{font-size:10px!important}.v523-summary-stats b{font-size:17px!important}.v523-auth-box b{font-size:12px!important}.v523-summary-actions .btn{min-height:44px!important;font-size:12px!important}

  /* ---------- checkout ---------- */
  body.storefront-route .container.v51-checkout-page{width:100%!important;max-width:none!important;margin:0!important;padding:12px 10px 105px!important}
  body.storefront-route .v521-shop-head h1{font-size:23px!important}.v521-shop-head p{font-size:12px!important;line-height:1.55!important}.v521-checkout-layout{display:block!important}.v521-checkout-form{display:grid!important;gap:10px!important}.v521-panel{padding:13px!important;border-radius:16px!important}.v51-section-title{gap:9px!important}.v51-section-title>b{width:32px!important;height:32px!important;flex:0 0 32px!important}.v51-section-title h3{font-size:15px!important}.v51-section-title p,.v51-section-title small{font-size:10px!important;line-height:1.45!important}.v521-form-grid{grid-template-columns:1fr!important;gap:9px!important}.v521-form-grid label{font-size:11px!important}.v521-form-grid input,.v521-form-grid select,.v521-form-grid textarea{font-size:16px!important;min-height:46px!important}.v51-span-2{grid-column:auto!important}.v521-checkout-summary{margin-top:12px!important}.v521-summary-card{position:static!important;padding:14px!important}.v521-summary-card h3{font-size:16px!important}.v51-summary-product,.v51-summary-line{font-size:11px!important}.v51-grand b{font-size:18px!important}

  /* ---------- orders/profile/general customer cards ---------- */
  body.storefront-route .container.my-orders-page,body.storefront-route .container.orders-customer-v540{width:100%!important;max-width:none!important;margin:0!important;padding:12px 10px 90px!important}
  body.storefront-route .page-heading{display:grid!important;gap:10px!important;align-items:start!important}.page-heading h1{font-size:23px!important;margin:3px 0!important}.page-heading p{font-size:12px!important;line-height:1.55!important}.page-heading .btn{justify-self:start!important;font-size:12px!important}
  body.storefront-route .my-orders-grid{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}.my-order-card{padding:13px!important;border-radius:16px!important}.my-order-card-head b{font-size:14px!important}.my-order-card-head small,.my-order-store{font-size:10px!important}.my-order-foot strong{font-size:15px!important}

  /* ---------- fixed mobile nav ---------- */
  body.storefront-route .tm740-bottom-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;position:fixed!important;z-index:200!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;height:72px!important;padding:4px 5px max(4px,env(safe-area-inset-bottom))!important;background:rgba(255,255,255,.985)!important;border-top:1px solid #e1e8e4!important;box-shadow:0 -8px 26px rgba(7,81,63,.08)!important;backdrop-filter:blur(16px)!important}
  body.storefront-route .tm740-bottom-nav>a{display:flex!important;min-width:0!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;color:#496158!important;font-size:11px!important;font-weight:900!important;position:relative!important}
  body.storefront-route .tm740-bottom-nav i{font-style:normal!important;font-size:22px!important;line-height:1!important}
  body.storefront-route .tm740-bottom-nav a.active{color:var(--m742-green)!important;background:#eaf4ef!important;border-radius:16px!important}
  body.storefront-route .tm740-bottom-nav em{position:absolute!important;top:1px!important;inset-inline-end:21%!important;min-width:19px!important;height:19px!important;padding:0 4px!important;border-radius:99px!important;background:#ef4444!important;color:#fff!important;font-size:9px!important;font-style:normal!important;display:grid!important;place-items:center!important}
  body.storefront-route .tm740-footer{display:none!important}
}

/* Very narrow phones: keep 3 columns, but never make text microscopic. */
@media (max-width:370px){
  body.storefront-route .tm740-storefront,body.storefront-route .tm740-offers-page{padding-inline:5px!important}
  body.storefront-route .tm740-grid,body.storefront-route .tm-product-grid-v3,body.storefront-route .tm740-offers-page .tm740-grid{gap:4px!important}
  body.storefront-route .tm740-card{height:220px!important;min-height:220px!important;border-radius:12px!important}
  body.storefront-route .tm740-card-media{height:77px!important;min-height:77px!important;flex-basis:77px!important}
  body.storefront-route .tm740-card-body{padding:5px 6px 6px!important}
  body.storefront-route .tm740-card-body h3{font-size:10.7px!important;min-height:28px!important;max-height:28px!important}
  body.storefront-route .tm740-category{font-size:8.4px!important}.tm740-name-en{font-size:8px!important}.tm740-price b{font-size:12px!important}
  body.storefront-route .tm740-controls{grid-template-columns:28px minmax(0,1fr) 28px!important;height:32px!important;min-height:32px!important}.tm740-controls .qty-btn{height:32px!important}.tm740-controls .qty-input{height:32px!important;font-size:11.5px!important}
  body.storefront-route .tm740-category-chip{min-width:68px!important;font-size:10px!important}
}

/* Readability floor: Samsung/Android narrow screens must never shrink labels below a practical size. */
@media (max-width:370px){
  body.storefront-route .tm740-card{height:226px!important;min-height:226px!important}
  body.storefront-route .tm740-card-media{height:80px!important;min-height:80px!important;flex-basis:80px!important}
  body.storefront-route .tm740-card-body h3{font-size:11.5px!important;min-height:30px!important;max-height:30px!important}
  body.storefront-route .tm740-category{font-size:9px!important}
  body.storefront-route .tm740-name-en{font-size:8.5px!important}
  body.storefront-route .tm740-price b{font-size:13px!important}
  body.storefront-route .tm740-controls .qty-input{font-size:12px!important}
}

@media (max-width:980px){
  /* ---------- login / register / account ---------- */
  body.storefront-route .formshell{width:calc(100% - 20px)!important;max-width:560px!important;margin:14px auto 92px!important;padding:18px!important;border-radius:19px!important}
  body.storefront-route .formshell h2{font-size:22px!important;margin:0 0 7px!important}
  body.storefront-route .formshell .muted{font-size:12px!important;line-height:1.6!important}
  body.storefront-route .field{margin:11px 0!important}.field label{font-size:12px!important;margin-bottom:6px!important}.field input,.field select,.field textarea{min-height:48px!important;padding:11px 12px!important;font-size:16px!important;border-radius:11px!important}
  body.storefront-route .form-grid-2{grid-template-columns:1fr!important;gap:7px!important}.form-grid-2 .wide{grid-column:auto!important}
  body.storefront-route .container.auth-page,body.storefront-route .container.account-page{width:100%!important;max-width:none!important;padding:10px 10px 90px!important}
  body.storefront-route .account-page .page-heading h1{font-size:22px!important}.account-page .page-heading p{font-size:12px!important;line-height:1.55!important}
  body.storefront-route .profile-layout{grid-template-columns:1fr!important;gap:10px!important}.profile-card,.profile-help-card{padding:15px!important;border-radius:17px!important}.profile-identity h3{font-size:17px!important}.profile-identity span{font-size:11px!important}.profile-help-card h3{font-size:16px!important}.help-step span,.profile-help-card a{font-size:11px!important}

  /* ---------- customer order detail ---------- */
  body.storefront-route .container.customer-order-page{width:100%!important;max-width:none!important;padding:10px 10px 92px!important}
  body.storefront-route .order-track-hero{padding:14px!important;border-radius:17px!important}.track-head{display:grid!important;gap:8px!important}.track-head h1{font-size:22px!important;margin:3px 0!important}.track-head p,.back-link{font-size:10px!important}.big-status{justify-self:start!important;font-size:10px!important}
  body.storefront-route .customer-progress{display:flex!important;overflow-x:auto!important;gap:4px!important;padding-bottom:5px!important;scrollbar-width:none!important}.customer-progress::-webkit-scrollbar{display:none!important}.customer-step{flex:0 0 76px!important}.customer-step i{width:32px!important;height:32px!important;font-size:14px!important}.customer-step b{font-size:9px!important}.customer-step small{font-size:7px!important}
  body.storefront-route .live-track-note{font-size:10px!important;line-height:1.45!important}
  body.storefront-route .customer-order-grid{grid-template-columns:1fr!important;gap:10px!important}.customer-order-main,.order-info-card,.delivery-status-card-v540,.customer-history-card,.tm-customer-conversation-v31{padding:13px!important;border-radius:16px!important}.section-heading h3{font-size:15px!important}.section-heading span,.section-heading small{font-size:9px!important}
  body.storefront-route .customer-item{grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important}.customer-item b{font-size:12px!important}.customer-item small,.customer-item span{font-size:9px!important}.customer-item strong{grid-column:1/-1!important;font-size:12px!important;text-align:end!important}.summary-lines div{font-size:11px!important}.summary-lines .total b{font-size:16px!important}
  body.storefront-route .order-info-card h3,.delivery-status-card-v540 h3{font-size:15px!important}.order-info-card p,.delivery-status-card-v540 p,.info-row{font-size:10.5px!important;line-height:1.5!important}
  body.storefront-route .tm-message-v31 p,.tm-conversation-intro-v31{font-size:11px!important;line-height:1.55!important}.tm-message-compose-v31 textarea{font-size:16px!important;min-height:70px!important}.tm-message-compose-v31 button{font-size:12px!important;min-height:42px!important}
}

/* ========================================================================
   TopMarket v9.0.0 — unified mobile cards, cart 3x3, fixed-size banner
   Loaded after app.css. This block intentionally overrides legacy cart rows.
   ======================================================================== */
@media (max-width:980px){
  /* one banner size and artwork across shopping pages */
  body.storefront-route .tm743-page-banner,
  body.storefront-route .tm740-storefront>.tm743-page-banner,
  body.storefront-route .container>.tm743-page-banner{
    order:2!important;width:calc(100% - 12px)!important;max-width:none!important;
    height:112px!important;min-height:112px!important;margin:8px 6px 10px!important;
    border-radius:18px!important;overflow:hidden!important;
  }
  body.storefront-route .tm740-storefront>.tm743-page-banner{width:100%!important;margin:0 0 10px!important}
  body.storefront-route .container>.tm743-page-banner{width:100%!important;margin:0 0 12px!important}
  body.storefront-route .tm743-page-banner .tm740-hero-copy{width:67%!important;padding:13px 14px!important}
  body.storefront-route .tm743-page-banner .tm740-hero-copy h1{font-size:18px!important;line-height:1.18!important;margin:0 0 4px!important}
  body.storefront-route .tm743-page-banner .tm740-hero-copy p{font-size:10.5px!important;line-height:1.35!important;margin:0 0 8px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.storefront-route .tm743-page-banner .tm740-hero-copy a{font-size:10.5px!important;padding:7px 13px!important}

  /* readability: keep the accepted 3-column storefront, only increase type */
  body.storefront-route .tm740-card-body h3{font-size:12.4px!important;line-height:1.26!important;min-height:31px!important;max-height:31px!important}
  body.storefront-route .tm740-category{font-size:9.4px!important}
  body.storefront-route .tm740-name-en{font-size:8.8px!important}
  body.storefront-route .tm740-price b{font-size:14px!important}
  body.storefront-route .tm740-price del{font-size:9px!important}
  body.storefront-route .tm740-controls .qty-input{font-size:12.8px!important}

  /* Cart becomes the same dense 3-column visual language as offers/products. */
  body.storefront-route .container.v523-cart-page.v743-cart-page{width:100%!important;max-width:none!important;margin:0!important;padding:0 6px 152px!important}
  body.storefront-route .v743-cart-toolbar{display:flex!important;align-items:end!important;justify-content:space-between!important;gap:7px!important;margin:2px 2px 9px!important}
  body.storefront-route .v743-cart-toolbar>div{min-width:0!important}.v743-cart-toolbar span{font-size:9px!important}.v743-cart-toolbar h2{font-size:18px!important;line-height:1.15!important;margin:1px 0!important}.v743-cart-toolbar p{display:none!important}.v743-cart-toolbar .btn{min-height:34px!important;padding:6px 9px!important;border-radius:10px!important;font-size:10px!important;white-space:nowrap!important}
  body.storefront-route .v743-cart-layout{display:block!important;width:100%!important}
  body.storefront-route .v743-cart-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;width:100%!important;min-width:0!important}
  body.storefront-route .v743-cart-card{display:flex!important;flex-direction:column!important;width:100%!important;min-width:0!important;height:238px!important;min-height:238px!important;padding:0!important;border:1.4px solid var(--m742-gold)!important;border-radius:13px!important;overflow:hidden!important;background:#fff!important;box-shadow:0 4px 13px rgba(29,63,51,.045)!important}
  body.storefront-route .v743-cart-media{display:block!important;width:100%!important;height:80px!important;min-height:80px!important;flex:0 0 80px!important;background:linear-gradient(150deg,#fbfcfb,#f3f6f4)!important;overflow:hidden!important}
  body.storefront-route .v743-cart-media>button{width:100%!important;height:100%!important;padding:5px!important;border:0!important;background:transparent!important}.v743-cart-media img{width:100%!important;height:100%!important;object-fit:contain!important}
  body.storefront-route .v743-cart-badge{top:4px!important;inset-inline-end:4px!important;padding:3px 5px!important;font-size:7px!important}
  body.storefront-route .v743-cart-copy{padding:5px 6px 2px!important;min-width:0!important;flex:1!important;overflow:hidden!important}
  body.storefront-route .v743-cart-category{font-size:9.2px!important;line-height:1.15!important}
  body.storefront-route .v743-cart-copy h3{margin:1px 0!important;font-size:12.4px!important;line-height:1.26!important;min-height:31px!important;max-height:31px!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  body.storefront-route .v743-cart-name-en{font-size:8.7px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.storefront-route .v743-cart-price{margin-top:3px!important;gap:3px!important}.v743-cart-price b{font-size:14px!important;white-space:nowrap!important}.v743-cart-price em{font-size:8px!important}.v743-cart-price span{display:none!important}
  body.storefront-route .v743-cart-line{margin-top:3px!important;padding-top:3px!important}.v743-cart-line small{font-size:8px!important}.v743-cart-line b{font-size:11px!important;white-space:nowrap!important}
  body.storefront-route .v743-cart-card .v523-stock-warning{font-size:8px!important;line-height:1.15!important;margin-top:2px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.storefront-route .v743-cart-form{display:grid!important;grid-template-columns:minmax(0,1fr) 35px!important;gap:4px!important;width:100%!important;margin:0!important;padding:4px 5px 6px!important;border:0!important}
  body.storefront-route .v743-cart-qty{display:grid!important;grid-template-columns:29px minmax(0,1fr) 29px!important;width:100%!important;min-width:0!important;max-width:none!important;gap:3px!important}
  body.storefront-route .v743-cart-qty .qty-btn,body.storefront-route .v743-cart-qty .qty-input{height:33px!important;min-height:33px!important;border-radius:8px!important}
  body.storefront-route .v743-cart-qty .qty-btn{font-size:18px!important}.v743-cart-qty .qty-input{font-size:12.8px!important;padding:0!important}
  body.storefront-route .v743-remove-btn{display:grid!important;place-items:center!important;width:35px!important;min-width:35px!important;height:33px!important;padding:0!important;font-size:0!important;border-radius:8px!important}
  body.storefront-route .v743-remove-btn::before{content:'×';font-size:18px!important;line-height:1!important}
  body.storefront-route .v743-fraction-help{display:none!important}
  body.storefront-route .v743-cart-summary{display:none!important}
  body.storefront-route .v743-cart-bottom-bar{left:7px!important;right:7px!important;bottom:76px!important;padding:9px 10px!important;border-radius:17px!important;grid-template-columns:minmax(0,1fr) auto!important}.v743-cart-bottom-bar .v523-cart-bottom-copy small{font-size:9px!important}.v743-cart-bottom-bar .v523-cart-bottom-copy b{font-size:14px!important}.v743-cart-bottom-bar .btn{min-height:40px!important;padding:7px 10px!important;font-size:10.5px!important;border-radius:11px!important}
}
@media(max-width:370px){
  body.storefront-route .v743-cart-grid{gap:4px!important}
  body.storefront-route .v743-cart-card{height:232px!important;min-height:232px!important}
  body.storefront-route .v743-cart-media{height:76px!important;min-height:76px!important;flex-basis:76px!important}
  body.storefront-route .v743-cart-copy h3{font-size:11.8px!important;min-height:30px!important;max-height:30px!important}
  body.storefront-route .v743-cart-category{font-size:9px!important}.v743-cart-name-en{font-size:8.3px!important}.v743-cart-price b{font-size:13.5px!important}
  body.storefront-route .v743-cart-qty{grid-template-columns:27px minmax(0,1fr) 27px!important}
}
