/* Repuestos Soto — mobile-first storefront layer */
.m-market-head,.m-simple-head,.m-home-intro,.m-product-page,.m-bottom-nav{display:none}
.m-card-actions{display:block}.m-quick-add{display:none}

@media(max-width:760px){
  :root{--m-yellow:#ffd92f;--m-ink:#1f2022;--m-soft:#f6f6f6;--m-line:#e4e4e4;--m-green:#23814a}
  html{scroll-behavior:smooth}
  body{padding-bottom:86px;background:#fff;color:var(--m-ink)}
  body.store-mode-product,body.store-mode-checkout{padding-bottom:0}
  .desktop-store-hero,.desktop-product-page,.global-footer{display:none!important}

  .m-market-head,.m-simple-head{display:flex;position:sticky;top:0;z-index:80;padding:max(12px,env(safe-area-inset-top)) 16px 12px;align-items:center;gap:10px;background:var(--m-yellow);box-shadow:0 1px 0 #00000010}
  .m-market-search{flex:1;display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #d8d8d8;border-radius:999px;padding:0 15px;min-height:48px;box-shadow:0 2px 9px #0000000c}
  .m-market-search span{font-size:28px;line-height:1;color:#73777b;transform:rotate(-18deg)}
  .m-market-search input{width:100%;border:0;outline:0;font-size:16px;background:transparent;min-width:0}
  .m-head-cart{position:relative;display:flex;align-items:center;justify-content:center;min-width:54px;height:48px;border-radius:999px;background:#2c2d2f;color:#fff;text-decoration:none;font-size:20px}
  .m-head-cart b{font-size:12px;margin-left:4px}
  .m-simple-head{justify-content:space-between;background:#fff;padding-bottom:8px;box-shadow:none}
  .m-back{font-size:44px;line-height:1;text-decoration:none;color:#2b2d30;width:48px;height:48px;display:grid;place-items:center;font-weight:300}

  .m-home-intro{display:block;padding:14px 16px 0}
  .m-promo-card{display:grid;grid-template-columns:1.3fr .7fr;gap:8px;align-items:center;min-height:176px;border-radius:24px;padding:20px;background:linear-gradient(135deg,#fff6a1,#fffbd8);overflow:hidden;border:1px solid #eee5a5}
  .m-promo-card small{font-size:11px;font-weight:900;letter-spacing:.08em;color:#7c6b00}
  .m-promo-card h1{font-size:24px;line-height:1.03;margin:8px 0 9px;letter-spacing:-.03em}
  .m-promo-card p{font-size:13px;line-height:1.4;margin:0;color:#57533c}
  .m-promo-card img{width:100%;height:145px;object-fit:contain;align-self:end}
  .m-chip-row{display:flex;gap:8px;overflow:auto;padding:14px 1px 6px;scrollbar-width:none}
  .m-chip-row::-webkit-scrollbar{display:none}
  .m-chip-row a{white-space:nowrap;text-decoration:none;border:1px solid #e0e0e0;background:#fff;border-radius:999px;padding:9px 13px;font-size:13px;font-weight:700}
  .m-section-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:18px 0 11px}
  .m-section-head small{font-size:10px;letter-spacing:.09em;font-weight:900;color:#777}
  .m-section-head h2{font-size:24px;margin:3px 0 0;letter-spacing:-.03em}
  .m-section-head>a{font-weight:800;color:#222;text-underline-offset:5px}

  .catalog{display:block;padding:0 12px 34px}
  .catalog aside{position:static;margin:0 4px 14px;border-radius:18px;padding:14px;display:none}
  .results>.result-head{display:none}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .product.app-product-card{border-radius:20px;overflow:hidden;border:1px solid #e1e1e1;box-shadow:none}
  .product:hover{transform:none;box-shadow:none}
  .photo{height:155px;background:#f6f6f6}
  .photo img{object-fit:contain;background:#fff}
  .photo em{font-size:9px;padding:5px 7px;top:8px;left:8px}
  .product-body{padding:12px}
  .product-body>small{font-size:10px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .product-body h3{font-size:14px;line-height:1.26;margin:6px 0 5px;min-height:36px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .m-application{font-size:10px;color:#7a7a7a;margin:0 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .price-row{flex-direction:row;align-items:end;gap:5px}
  .price-row strong{font-size:20px;color:#111}
  .price-row span{font-size:10px;color:#7b7b7b}
  .m-card-actions{display:flex;gap:7px;align-items:center;margin-top:10px}
  .m-card-actions .buy{flex:1;margin:0;padding:9px 8px;border-radius:10px;background:#2e2f31;color:#fff;font-size:11px}
  .m-quick-add{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:0;background:var(--m-yellow);font-size:24px;font-weight:700;cursor:pointer}
  .pages{margin:20px 0 6px}
  .pages a{width:34px;height:34px}
  .pages .active{background:#222;border-color:#222}
  .seo-links{display:none}

  .m-bottom-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:95;background:#fff;border-top:1px solid #e8e8e8;padding:8px 8px max(8px,env(safe-area-inset-bottom));box-shadow:0 -8px 30px #0000000a}
  .m-bottom-nav a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-decoration:none;color:#8b8e92;font-size:22px;min-height:58px}
  .m-bottom-nav small{font-size:10px;font-weight:700}
  .m-bottom-nav a.active{color:#2f3134}
  .m-bottom-nav .m-nav-main{width:62px;height:62px;border:2px solid var(--m-yellow);border-radius:50%;margin:-22px auto 0;background:#fff;color:#222}
  .m-bottom-nav i{position:absolute;top:2px;right:20%;background:#d73a2f;color:#fff;border-radius:999px;font-size:9px;min-width:17px;height:17px;display:grid;place-items:center;font-style:normal}

  /* Product */
  .m-product-page{display:block}
  .m-product-meta-top{padding:8px 18px 14px}
  .m-product-meta-top>a{color:#222;font-weight:800;text-underline-offset:5px}
  .m-product-meta-top h1{font-size:24px;line-height:1.06;letter-spacing:-.03em;margin:9px 0 7px}
  .m-product-meta-top p{font-size:12px;color:#777;margin:0}
  .m-product-gallery{height:430px;background:#f6f6f6;position:relative;display:grid;place-items:center;overflow:hidden}
  .m-product-gallery img{width:100%;height:100%;object-fit:contain;background:#fff}
  .m-gallery-count{position:absolute;right:16px;bottom:14px;background:#222d;color:#fff;border-radius:999px;padding:6px 10px;font-size:11px}
  .m-product-panel{padding:18px}
  .m-price-line{display:flex;align-items:end;justify-content:space-between;gap:12px}
  .m-price-line small{display:block;color:#777;font-size:11px;margin-bottom:2px}
  .m-price-line strong{font-size:36px;letter-spacing:-.04em}
  .m-share{width:44px;height:44px;border-radius:50%;border:1px solid #ddd;background:#fff;font-size:24px}
  .m-stock-line{margin:18px 0 14px;border-radius:14px;padding:14px 15px;display:flex;flex-direction:column;gap:3px}
  .m-stock-line.ok{background:#eef8f1;color:#1f6a3b}.m-stock-line.none{background:#f3f3f3;color:#666}
  .m-stock-line b{font-size:14px}.m-stock-line span{font-size:12px}
  .m-fit-box{border:1px solid #e2e2e2;border-radius:14px;padding:14px 15px;margin-bottom:14px}
  .m-fit-box small{display:block;color:#777;font-size:11px;margin-bottom:5px}.m-fit-box b{font-size:14px;line-height:1.35}
  .m-qty-row{display:flex;justify-content:space-between;align-items:center;border:1px solid #e2e2e2;border-radius:16px;padding:14px 15px;margin:14px 0 16px}
  .m-qty-row span{display:block;font-weight:800}.m-qty-row small{display:block;color:#8a8a8a;font-size:11px;margin-top:2px}
  .m-qty-control{display:flex;align-items:center;gap:6px}
  .m-qty-control button{width:36px;height:36px;border:1px solid #ddd;background:#fff;border-radius:10px;font-size:20px}
  .m-qty-control input{width:48px;height:36px;text-align:center;border:0;font-size:16px;font-weight:800}
  .m-buy-now,.m-add-cart{width:100%;display:block;text-align:center;text-decoration:none;border-radius:999px;padding:16px;border:0;font-size:16px;font-weight:900;cursor:pointer}
  .m-buy-now{background:#2d2e30;color:#fff}.m-add-cart{margin-top:10px;background:#fff;color:#2d2e30;border:1px solid #d9d9d9}
  .m-shipping-box{margin-top:24px;padding:0 0 8px}.m-shipping-box h3{font-size:22px;color:#23814a;margin:0 0 8px}.m-shipping-box p{font-size:15px;line-height:1.5;margin:0 0 12px}.m-shipping-box a{font-weight:900;color:#222;text-underline-offset:5px}
  .m-product-section{border-top:8px solid #f6f6f6;padding:26px 18px}
  .m-product-section h2{font-size:25px;margin:0 0 20px;letter-spacing:-.03em}
  .m-spec-list{margin:0;display:grid;gap:0}.m-spec-list>div{display:grid;grid-template-columns:120px 1fr;gap:14px;padding:11px 0;border-bottom:1px solid #eee}.m-spec-list dt{font-weight:900}.m-spec-list dd{margin:0;color:#666;line-height:1.35}
  .m-description{margin-top:18px;font-size:15px;line-height:1.6}
  .m-qa details{border-bottom:1px solid #e7e7e7;padding:14px 0}.m-qa summary{font-weight:800;cursor:pointer}.m-qa details p{font-size:14px;line-height:1.5;color:#666}.m-question{display:block;margin-top:18px;background:#2d2e30;color:#fff;text-align:center;text-decoration:none;border-radius:999px;padding:15px;font-weight:900}
  .m-related-section{border-top:8px solid #f6f6f6;padding:18px 0 28px}.m-related-section .m-section-head{padding:0 18px}.m-related-section .m-section-head h2{font-size:22px;margin:0}
  .m-related-scroll{display:flex;gap:12px;overflow:auto;padding:0 18px 5px;scrollbar-width:none}.m-related-scroll::-webkit-scrollbar{display:none}
  .m-related-card{min-width:165px;width:165px;text-decoration:none;border:1px solid #e2e2e2;border-radius:18px;overflow:hidden;background:#fff;padding-bottom:12px}.m-related-card img,.m-related-card>.placeholder{width:100%;height:145px;object-fit:contain;background:#fff}.m-related-card strong,.m-related-card b,.m-related-card small{display:block;padding:0 11px}.m-related-card strong{font-size:13px;line-height:1.3;margin-top:9px;min-height:34px}.m-related-card b{font-size:18px;margin-top:6px}.m-related-card small{font-size:10px;color:#23814a;margin-top:4px}

  /* Cart */
  .m-cart-page,.m-checkout-page{padding:8px 16px 28px;max-width:720px;margin:auto}
  .m-cart-page h1,.m-checkout-page h1{font-size:28px;letter-spacing:-.03em;margin:8px 0 18px}
  .m-cart-items{display:grid;gap:12px}.m-cart-item{display:grid;grid-template-columns:92px 1fr;gap:12px;border:1px solid #e2e2e2;border-radius:18px;padding:10px}.m-cart-item img{width:92px;height:92px;object-fit:contain;border-radius:12px;background:#fafafa}.m-cart-item h3{font-size:14px;line-height:1.25;margin:0 0 5px}.m-cart-item small{color:#777}.m-cart-item strong{display:block;margin-top:8px;font-size:18px}.m-cart-item-actions{display:flex;justify-content:space-between;align-items:center;margin-top:7px}.m-cart-item-actions button{border:0;background:#f1f1f1;border-radius:8px;padding:7px 10px}.m-cart-summary{margin-top:20px;border-top:1px solid #ddd;padding-top:15px}.m-cart-summary>div{display:flex;justify-content:space-between;font-size:18px;font-weight:900}.m-cart-continue{display:block;margin-top:16px;background:#2e2f31;color:#fff;text-align:center;text-decoration:none;border-radius:999px;padding:16px;font-weight:900}.m-empty-cart{text-align:center;padding:60px 20px;color:#777}.m-empty-cart b{display:block;font-size:22px;color:#222;margin-bottom:8px}

  /* Checkout */
  .m-checkout-progress{height:6px;border-radius:999px;background:#ddd;overflow:hidden;margin:4px 0 28px}.m-checkout-progress span{display:block;width:55%;height:100%;background:#2c2d2f}
  .m-checkout-page label{display:block;font-size:13px;font-weight:800;margin:14px 0 6px}.m-checkout-page input,.m-checkout-page textarea,.m-checkout-page select{width:100%;border:1px solid #d6d6d6;border-radius:14px;padding:14px;font-size:16px;background:#fff}.m-checkout-page textarea{min-height:110px;resize:vertical}.m-delivery-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.m-delivery-option{border:1px solid #ddd;border-radius:14px;padding:12px}.m-delivery-option input{width:auto}.m-order-review{margin-top:22px;padding:16px;border-radius:16px;background:#f6f6f6}.m-order-review h2{font-size:18px;margin:0 0 10px}.m-order-review ul{margin:0;padding-left:18px;font-size:13px;line-height:1.5}.m-checkout-send{width:100%;border:0;border-radius:999px;padding:16px;background:#25a449;color:#fff;font-weight:900;font-size:16px;margin-top:18px}

  .m-toast{position:fixed;left:50%;bottom:102px;transform:translateX(-50%) translateY(16px);background:#252628;color:#fff;padding:11px 15px;border-radius:999px;font-size:12px;font-weight:800;opacity:0;pointer-events:none;transition:.2s;z-index:120;white-space:nowrap;max-width:90vw;overflow:hidden;text-overflow:ellipsis}.m-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
}

@media(max-width:390px){
  .m-promo-card{grid-template-columns:1fr .55fr;padding:17px}.m-promo-card h1{font-size:21px}.m-promo-card img{height:120px}
  .product-grid{gap:8px}.photo{height:140px}.product-body{padding:10px}.product-body h3{font-size:13px}.price-row strong{font-size:18px}
  .m-product-gallery{height:380px}
}

/* Mobile catalog pagination v2 */
.m-load-more-wrap{display:none}
.page-gap{display:inline-grid;place-items:center;min-width:28px;color:#777}
@media(max-width:760px){
  .desktop-pages{display:none!important}
  .m-load-more-wrap{display:flex;flex-direction:column;align-items:center;gap:9px;margin:22px 0 8px}
  .m-load-more-wrap button{width:min(100%,420px);border:1px solid #d9d9d9;background:#fff;border-radius:999px;padding:14px 18px;font-size:14px;font-weight:900;color:#252628;box-shadow:0 2px 8px #00000008}
  .m-load-more-wrap button:disabled{opacity:.6}
  .m-load-more-wrap small{font-size:11px;color:#888}
  .m-empty-cart{padding:50px 16px;display:flex;flex-direction:column;align-items:center;gap:8px}
  .m-empty-cart-icon{width:72px;height:72px;border-radius:50%;background:#f5f5f5;display:grid;place-items:center;font-size:30px;margin-bottom:6px}
  .m-empty-cart span{font-size:13px;line-height:1.45;max-width:280px}
  .m-empty-cart-cta{display:inline-block;margin-top:12px;background:#2e2f31;color:#fff!important;text-decoration:none;border-radius:999px;padding:13px 22px;font-weight:900;font-size:13px}
}

/* Mobile filters v3 — tractor first, product brand second */
@media(max-width:760px){
  .m-active-filters{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 2px;padding:9px 11px;border-radius:12px;background:#fff7cf;border:1px solid #f1df73;font-size:12px}
  .m-active-filters span{font-weight:800;color:#5e5424}
  .m-active-filters a{font-weight:900;color:#252628;text-decoration:underline;text-underline-offset:3px}
  .m-filter-group{margin-top:15px}
  .m-filter-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 1px 5px}
  .m-filter-label strong{font-size:13px;letter-spacing:-.01em;color:#252628}
  .m-filter-label a{font-size:11px;font-weight:850;color:#696969;text-decoration:underline;text-underline-offset:3px}
  .m-filter-group .m-chip-row{padding:5px 1px 3px;overscroll-behavior-x:contain;scroll-snap-type:x proximity}
  .m-filter-group .m-chip-row a,.m-filter-search-chip{scroll-snap-align:start;min-height:38px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border:1px solid #dedede;background:#fff;border-radius:999px;padding:9px 13px;font-size:12px;font-weight:800;color:#2b2c2e;text-decoration:none}
  .m-filter-group .m-chip-row a.active{background:#2d2e30;color:#fff;border-color:#2d2e30}
  .m-filter-search-chip{font-family:inherit;cursor:pointer;flex:0 0 auto}
  .m-filter-search-chip span{font-size:17px;line-height:1}
}
