/* MAKIN CONTROL â€” 01-mobile-cart.css
 * Mobile cart and bottom-sheet behavior
 * Extracted from original style.css lines 314-543; load order must remain unchanged.
 */
/* =========================================================
   MAKIN CONTROL â€” MOBILE CART BOTTOM SHEET v26
   ========================================================= */
.mc-mobile-cart-backdrop,
.mc-mobile-cart-sheet{display:none}

@media(max-width:1100px){
  .mc-mobile-cart-backdrop{
    display:block;
    position:fixed;
    inset:0;
    z-index:10020;
    background:rgba(9,34,22,.48);
    opacity:0;
    visibility:hidden;
    transition:opacity .22s ease,visibility .22s ease;
  }

  .mc-mobile-cart-sheet{
    display:flex;
    position:fixed;
    z-index:10030;
    right:0;
    bottom:0;
    left:0;
    width:min(620px,100%);
    max-height:min(78vh,720px);
    margin-inline:auto;
    flex-direction:column;
    background:#fff;
    border-radius:24px 24px 0 0;
    box-shadow:0 -18px 55px rgba(10,48,29,.20);
    transform:translateY(105%);
    visibility:hidden;
    transition:transform .26s ease,visibility .26s ease;
    overflow:hidden;
  }

  body.mc-mobile-cart-open{overflow:hidden}

  body.mc-mobile-cart-open .mc-mobile-cart-backdrop{
    opacity:1;
    visibility:visible;
  }

  body.mc-mobile-cart-open .mc-mobile-cart-sheet{
    transform:translateY(0);
    visibility:visible;
  }

  .mc-mobile-cart-handle{
    width:44px;
    height:5px;
    margin:9px auto 3px;
    border-radius:99px;
    background:#d9e5dd;
  }

  .mc-mobile-cart-head{
    min-height:66px;
    padding:10px 18px 12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    border-bottom:1px solid #edf2ee;
  }

  .mc-mobile-cart-head strong{
    display:block;
    color:#123c28;
    font-family:'IRANSans','Yekan',Tahoma,sans-serif;
    font-size:16px;
    font-weight:700;
  }

  .mc-mobile-cart-head span{
    display:block;
    margin-top:3px;
    color:#718078;
    font-size:11px;
  }

  .mc-mobile-cart-close{
    width:38px;
    height:38px;
    flex:0 0 38px;
    padding:0;
    display:grid;
    place-items:center;
    border:1px solid #e1ebe5;
    border-radius:50%;
    background:#f7faf8;
    color:#244b36;
    font-size:25px;
    line-height:1;
    cursor:pointer;
  }

  .mc-mobile-cart-body{
    min-height:120px;
    padding:8px 16px;
    overflow:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }

  .mc-mobile-cart-sheet .woocommerce-mini-cart{
    max-height:none!important;
    overflow:visible!important;
    margin:0!important;
    padding:0!important;
    list-style:none!important;
  }

  .mc-mobile-cart-sheet .woocommerce-mini-cart-item{
    position:relative;
    min-height:86px;
    margin:0!important;
    padding:12px 30px 12px 8px!important;
    border-bottom:1px solid #edf2ee;
  }

  .mc-mobile-cart-sheet .woocommerce-mini-cart-item a:not(.remove){
    color:#173c2a;
    font-weight:700;
    text-decoration:none;
  }

  .mc-mobile-cart-sheet .woocommerce-mini-cart-item img{
    width:64px!important;
    height:64px!important;
    margin-left:10px!important;
    border-radius:12px;
    object-fit:contain;
    background:#f7faf8;
  }

  .mc-mobile-cart-sheet .woocommerce-mini-cart-item .remove{
    position:absolute!important;
    top:50%!important;
    right:0!important;
    transform:translateY(-50%);
    width:24px!important;
    height:24px!important;
    display:grid!important;
    place-items:center;
    border-radius:50%!important;
    background:#fff1f1!important;
    color:#b83c3c!important;
    text-decoration:none!important;
  }

  .mc-mobile-cart-sheet .quantity{
    display:block;
    margin-top:5px;
    color:#68766e;
    font-size:12px;
  }

  .mc-mobile-cart-sheet .woocommerce-mini-cart__total{
    margin:10px 0 0!important;
    padding:14px 2px 6px!important;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border-top:0!important;
    color:#173c2a;
    font-weight:700;
  }

  /* Hide Woo's duplicate buttons; use our fixed, clearer footer buttons. */
  .mc-mobile-cart-sheet .woocommerce-mini-cart__buttons{
    display:none!important;
  }

  .mc-mobile-cart-sheet .woocommerce-mini-cart__empty-message{
    margin:0;
    padding:34px 12px;
    text-align:center;
    color:#69786f;
  }

  .mc-mobile-cart-footer{
    padding:12px 16px calc(12px + env(safe-area-inset-bottom));
    display:grid;
    grid-template-columns:1fr 1.15fr;
    gap:10px;
    border-top:1px solid #e8efea;
    background:#fff;
  }

  .mc-mobile-cart-footer a{
    min-height:48px;
    padding:9px 10px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:13px;
    font-family:'Yekan',Tahoma,sans-serif;
    font-size:12px;
    font-weight:700;
    text-align:center;
    text-decoration:none!important;
  }

  .mc-mobile-cart-edit{
    border:1px solid #cfe0d5;
    background:#f6faf7;
    color:#17643e!important;
  }

  .mc-mobile-cart-checkout{
    border:1px solid #16834b;
    background:#16834b;
    color:#fff!important;
    box-shadow:0 7px 18px rgba(22,131,75,.18);
  }

  /* Keep bottom navigation visible, but sheet stays above it. */
  .mc-mobile-bottom-nav{z-index:10010!important}
}

@media(max-width:420px){
  .mc-mobile-cart-sheet{max-height:82vh}
  .mc-mobile-cart-footer{grid-template-columns:1fr}
}


