/* Mana Telugu Foods V18: inner mobile header + sticky offers + cart drawer item layout. */

/* Compact mobile inner header. */
@media (max-width: 767px){
  body:not(.home) .mtf-inner-header #header-sticky .header-main{
    min-height:70px!important;
    height:70px!important;
    padding:4px 10px!important;
  }
  body:not(.home) .mtf-inner-header #header-sticky .logo-1 img{
    width:118px!important;
    max-width:118px!important;
    height:auto!important;
  }
  body:not(.home) .mtf-inner-header #header-sticky .header-right{gap:8px!important;}
  body:not(.home) .mtf-inner-header #header-sticky .mtf-mobile-header-actions{gap:7px!important;}
  body:not(.home) .mtf-inner-header #header-sticky .mtf-mobile-header-icon{
    width:38px!important;height:38px!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
  }
  body:not(.home) .mtf-inner-header #header-sticky .header__hamburger .sidebar__toggle{
    width:40px!important;height:40px!important;
    padding:9px!important;
  }
}

/* Offer card is after the complete header and becomes truly viewport-sticky with JS. */
.mtf-inner-promo-sticky{
  position:relative!important;
  top:auto!important;
  z-index:2147480000!important;
  width:100%!important;
  margin:15px 0 12px!important;
  padding:0 10px!important;
  background:transparent!important;
  box-sizing:border-box!important;
}
.mtf-inner-promo-sticky.is-stuck{
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  margin:0!important;
  padding:0 10px 8px!important;
  background:#fff!important;
  box-shadow:0 5px 18px rgba(0,0,0,.10)!important;
}
.mtf-inner-promo-sticky .mtf-inner-promo-slider{
  width:100%!important;
  margin:0!important;
  border:2px dotted #0b6b35!important;
  border-radius:6px!important;
  background:#eef9f0!important;
  box-shadow:0 4px 14px rgba(0,75,35,.12)!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.mtf-inner-promo-sticky .mtf-inner-promo-track{min-height:42px!important;}
.mtf-inner-promo-sticky .mtf-inner-promo-slide{min-height:38px!important;}
.mtf-inner-promo-sticky .mtf-inner-promo-dots{display:none!important;}
@media(max-width:767px){
  .mtf-inner-promo-sticky{margin-top:15px!important;padding:0 8px!important;}
  .mtf-inner-promo-sticky.is-stuck{padding:0 8px 6px!important;}
  .mtf-inner-promo-sticky .mtf-inner-promo-slide{min-height:36px!important;padding:7px 10px!important;font-size:13px!important;}
}

/* Cart drawer: title left, total price top-right, weight + quantity below, item price below controls. */
.mtf-cart-drawer-item{
  position:relative!important;
  display:block!important;
  padding:14px 14px 16px 118px!important;
  min-height:122px!important;
}
.mtf-cart-drawer-thumb{
  position:absolute!important;
  left:14px!important;
  top:14px!important;
  width:96px!important;
  height:96px!important;
}
.mtf-cart-drawer-info{
  min-width:0!important;
  display:block!important;
  padding:0 88px 0 0!important;
}
.mtf-cart-drawer-name{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  font-size:18px!important;
  line-height:1.25!important;
  font-weight:700!important;
  color:#272727!important;
  overflow:visible!important;
  white-space:normal!important;
}
.mtf-cart-drawer-line-total{
  position:absolute!important;
  top:15px!important;
  right:14px!important;
  margin:0!important;
  padding:0!important;
  font-size:16px!important;
  line-height:1.25!important;
  font-weight:700!important;
  color:#252525!important;
  white-space:nowrap!important;
  z-index:3!important;
}
.mtf-cart-drawer-variation{display:none!important;}
.mtf-cart-drawer-controls-row{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  margin:12px 0 0!important;
  flex-wrap:nowrap!important;
}
.mtf-cart-drawer-controls-row .mtf-cart-weight-select{
  width:104px!important;
  min-width:104px!important;
  height:38px!important;
  margin:0!important;
}
.mtf-cart-drawer-controls-row .mtf-cart-drawer-qty{
  display:inline-flex!important;
  height:38px!important;
  margin:0!important;
}
.mtf-cart-drawer .mtf-cart-drawer-price{
  display:block!important;
  margin:7px 0 0!important;
  font-size:15px!important;
  line-height:1.2!important;
  color:#666!important;
}
@media(max-width:767px){
  .mtf-cart-drawer-item{padding:14px 12px 16px 118px!important;min-height:122px!important;}
  .mtf-cart-drawer-thumb{left:12px!important;top:14px!important;width:96px!important;height:96px!important;}
  .mtf-cart-drawer-info{padding-right:90px!important;}
  .mtf-cart-drawer-name{font-size:17px!important;}
  .mtf-cart-drawer-line-total{right:12px!important;font-size:15px!important;}
}

/* ===== V22 offer card: yellow, below header, lower stacking level ===== */
.mtf-inner-promo-sticky{
  z-index:900!important;
  margin-top:15px!important;
  position:relative!important;
}
.mtf-inner-promo-sticky.is-stuck{
  position:fixed!important;
  z-index:900!important;
  top:var(--mtf-promo-top,70px)!important;
  left:0!important;
  right:0!important;
  margin:0!important;
  padding:0 10px 5px!important;
  background:#fff!important;
  box-shadow:0 4px 14px rgba(0,0,0,.10)!important;
}
.mtf-inner-promo-sticky .mtf-inner-promo-slider{
  background:#FFC222!important;
  border:2px dotted #FFC222!important;
  border-radius:6px!important;
  box-shadow:0 3px 12px rgba(0,0,0,.10)!important;
}
.mtf-inner-promo-sticky .mtf-inner-promo-slide,
.mtf-inner-promo-sticky .mtf-inner-promo-slide strong,
.mtf-inner-promo-sticky .mtf-inner-promo-slide span,
.mtf-inner-promo-sticky .mtf-inner-promo-slide b{color:#111!important;font-size:15px!important}
@media(max-width:767px){
 .mtf-inner-promo-sticky{margin-top:15px!important;z-index:900!important}
 .mtf-inner-promo-sticky.is-stuck{top:0!important;padding:5px 8px 5px!important}
}


/* ==========================================================
   MTF CURRENT HEADER - preserve current user edits + desktop polish
   Desktop only; mobile header is intentionally untouched.
   ========================================================== */
@media (min-width:1200px){
  .mtf-inner-header .header-top-sec{display:none!important;}
  .mtf-inner-header .header-middle-sec{
    display:block!important;
    background:#fff!important;
    color:#1e1d23!important;
    padding:0px 24px!important;
    overflow:visible!important;
    border-bottom:1px solid rgba(30,29,35,.08)!important;
    box-shadow:0 4px 18px rgba(0,0,0,.06)!important;
  }
  .mtf-inner-header .header-middle-sec .head-line{display:none!important;}
  .mtf-inner-header .header-middle-wrap{
    width:100%!important;
    max-width:1440px!important;
    margin:0 auto!important;
    display:flex!important;
    align-items:center!important;
    gap:30px!important;
    min-height:76px!important;
  }
  .mtf-inner-header .header-middle-wrap .main-logo{
    flex:0 0 185px!important;
    width:185px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    border-radius:0!important;
    background:transparent!important;
  }
  .mtf-inner-header .header-middle-wrap .main-logo img{
    display:block!important;
    width:175px!important;
    max-width:175px!important;
    height:auto!important;
    border-radius:0!important;
  }
  .mtf-inner-header .header-middle-items{
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    padding:0!important;
  }
  .mtf-inner-header .header-middle-items .head-form-items{
    width:100%!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:24px!important;
  }
  .mtf-inner-header .header-middle-items .head-form-items > ul,
  .mtf-inner-header .header-middle-items .head-form-items > .menu,
  .mtf-inner-header .header-middle-items .head-form-items > .main-menu{
    margin:0!important;
  }
  .mtf-inner-header .header-middle-items .head-form-items > ul,
  .mtf-inner-header .header-middle-items .head-form-items > .menu{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:28px!important;
    list-style:none!important;
    padding:0!important;
    width:auto!important;
  }
  .mtf-inner-header .header-middle-items .head-form-items > ul > li,
  .mtf-inner-header .header-middle-items .head-form-items > .menu > li{
    list-style:none!important;
    margin:0!important;
    padding:0!important;
  }
  .mtf-inner-header .header-middle-items .head-form-items > ul > li > a,
  .mtf-inner-header .header-middle-items .head-form-items > .menu > li > a{
    color:#24221f!important;
    font-family:"Nunito",sans-serif!important;
    font-size:15px!important;
    font-weight:700!important;
    line-height:1!important;
    text-decoration:none!important;
    white-space:nowrap!important;
    padding:29px 0!important;
    display:block!important;
    transition:color .2s ease!important;
  }
  .mtf-inner-header .header-middle-items .head-form-items > ul > li > a:hover,
  .mtf-inner-header .header-middle-items .head-form-items > .menu > li > a:hover,
  .mtf-inner-header .header-middle-items .head-form-items > ul > li.current-menu-item > a,
  .mtf-inner-header .header-middle-items .head-form-items > .menu > li.current-menu-item > a{
    color:#c9151e!important;
  }
  .mtf-inner-header .header-middle-items .head-form-items .shop-icon-right{
    flex:0 0 auto!important;
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    margin:0!important;
  }
  .mtf-inner-header .header-middle-items .head-form-items .shop-icon-right .shop-icon{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    position:relative!important;
    border:1px solid rgba(74,36,20,.16)!important;
    border-radius:50%!important;
    background:#fff!important;
    color:#4a2414!important;
    line-height:1!important;
    box-shadow:0 2px 8px rgba(0,0,0,.05)!important;
    padding:0!important;
    cursor:pointer!important;
    transition:all .2s ease!important;
  }
  .mtf-inner-header .header-middle-items .head-form-items .shop-icon-right .shop-icon:hover{
    background:#c9151e!important;
    border-color:#c9151e!important;
    color:#fff!important;
    transform:translateY(-1px)!important;
  }
  .mtf-inner-header .header-middle-items .head-form-items .shop-icon-right .shop-icon i{
    font-size:18px!important;
  }
  .mtf-inner-header .header-middle-items .head-form-items .shop-icon-right .shop-icon .mtf-wishlist-count,
  .mtf-inner-header .header-middle-items .head-form-items .shop-icon-right .shop-icon .mtf-cart-count{
    position:absolute!important;
    top:-6px!important;
    right:-5px!important;
    min-width:19px!important;
    height:19px!important;
    padding:0 5px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:999px!important;
    background:#ffc222!important;
    color:#2b2018!important;
    border:2px solid #fff!important;
    font:800 10px/1 "Nunito",sans-serif!important;
    z-index:5!important;
  }
  .mtf-inner-header .mtf-desktop-search-panel{
    position:absolute!important;
    top:100%!important;
    right:24px!important;
    width:380px!important;
    z-index:100000!important;
    padding-top:10px!important;
  }
  .mtf-inner-header .mtf-desktop-search-panel .mtf-live-search-wrap{
    background:#fff!important;
    padding:10px!important;
    border-radius:12px!important;
    box-shadow:0 12px 35px rgba(0,0,0,.15)!important;
  }
}
