/* AUTOERA MOBILE 3.0 — COMMERCE v1 */
@media (max-width:768px){
  body.ae-m3-product .ae-m3-old-sticky-hidden,
  body.ae-m3-cart .ae-m3-old-sticky-hidden,
  body.ae-m3-cart .ae-m3-cart-legacy-hidden{
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
  }

  body.ae-m3-product .ae-m3-native-buy{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-height:54px!important;
    margin:14px 0 110px!important;
    border:0!important;
    border-radius:12px!important;
    background:linear-gradient(#54a4ee,#0866c7)!important;
    color:#fff!important;
    font-size:22px!important;
    font-weight:800!important;
    text-align:center!important;
    text-decoration:none!important;
    box-sizing:border-box!important;
  }

  body.ae-m3-product .ae-m3-native-order-hidden{
    display:none!important;
  }

  #ae-m3-order-sticky{
    position:fixed;
    z-index:9600;
    left:12px;
    right:12px;
    bottom:76px;
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    gap:12px;
    align-items:center;
    padding:10px 12px;
    border:1px solid #dfe3e8;
    border-radius:18px;
    background:rgba(255,255,255,.98);
    box-shadow:0 10px 28px rgba(0,0,0,.14);
    box-sizing:border-box;
  }

  #ae-m3-order-sticky .ae-price{
    color:#17191c;
    font-size:18px;
    font-weight:900;
    white-space:nowrap;
  }

  #ae-m3-order-sticky button{
    min-height:54px;
    border:0;
    border-radius:13px;
    background:linear-gradient(#71d06a,#2f9f37);
    color:#fff;
    font-size:19px;
    font-weight:800;
  }

  html.ae-m3-cart-lock,
  body.ae-m3-cart-lock{
    overflow:hidden!important;
  }

  #ae-m3-cart{
    position:fixed;
    z-index:9700;
    top:108px;
    right:0;
    bottom:72px;
    left:0;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    padding:20px 16px 34px;
    background:#f7f8fa;
    box-sizing:border-box;
  }

  #ae-m3-cart h1{
    margin:0 0 6px;
    font-size:30px;
    line-height:1.15;
    color:#17191c;
  }

  #ae-m3-cart .ae-count{
    margin-bottom:18px;
    font-size:18px;
  }

  #ae-m3-cart .ae-card{
    position:relative;
    display:grid;
    grid-template-columns:96px minmax(0,1fr);
    gap:14px;
    padding:16px;
    border:1px solid #dfe3e8;
    border-radius:18px;
    background:#fff;
    box-shadow:0 4px 14px rgba(0,0,0,.05);
  }

  #ae-m3-cart .ae-imgbox{
    display:flex;
    align-items:center;
    justify-content:center;
    width:96px;
    height:118px;
  }

  #ae-m3-cart .ae-imgbox img{
    max-width:88px;
    max-height:110px;
    object-fit:contain;
  }

  #ae-m3-cart .ae-title{
    margin-right:28px;
    color:#0b2d6b;
    font-size:17px;
    font-weight:800;
    line-height:1.28;
  }

  #ae-m3-cart .ae-code{margin-top:6px;color:#68707c;font-size:13px}
  #ae-m3-cart .ae-unit{margin-top:8px;color:#ed1c24;font-size:22px;font-weight:900}
  #ae-m3-cart .ae-stock{margin-top:7px;color:#208c29;font-size:13px;font-weight:700}

  #ae-m3-cart .ae-remove{
    position:absolute;
    top:10px;
    right:12px;
    border:0;
    background:transparent;
    color:#111;
    font-size:24px;
  }

  #ae-m3-cart .ae-controls{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:48px minmax(76px,1fr) 48px auto;
    gap:10px;
    align-items:center;
    margin-top:8px;
  }

  #ae-m3-cart .ae-controls button,
  #ae-m3-cart .ae-controls input{
    height:48px;
    border:1px solid #dfe3e8;
    border-radius:11px;
    font-size:20px;
    text-align:center;
    box-sizing:border-box;
  }

  #ae-m3-cart .ae-controls button{background:#f1f3f5}
  #ae-m3-cart .ae-controls button:disabled{opacity:.4}
  #ae-m3-cart .ae-controls input{width:100%;background:#fff}
  #ae-m3-cart .ae-line-total{font-size:17px;font-weight:800;white-space:nowrap}

  #ae-m3-cart .ae-summary{margin-top:20px;border-top:1px solid #e2e5e9}

  #ae-m3-cart .ae-row{
    display:flex;
    justify-content:space-between;
    gap:16px;
    padding:17px 0;
    border-bottom:1px solid #e2e5e9;
    font-size:17px;
  }

  #ae-m3-cart .ae-row.total{font-size:21px;font-weight:900}
  #ae-m3-cart .ae-row.total strong{font-size:27px;color:#ed1c24}

  #ae-m3-cart .ae-checkout,
  #ae-m3-cart .ae-continue{
    width:100%;
    min-height:56px;
    margin-top:14px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    font-weight:800;
    text-align:center;
    text-decoration:none;
    box-sizing:border-box;
  }

  #ae-m3-cart .ae-checkout{
    border:0;
    background:linear-gradient(#54a4ee,#0866c7);
    color:#fff;
  }

  #ae-m3-cart .ae-continue{
    border:2px solid #1b5fc4;
    background:#fff;
    color:#123d83;
  }
}
