/*
 * Mana Telugu Foods — Product Card Master CSS
 *
 * Single source of truth for product-card presentation.
 * Home Customer Favorites is the master visual design.
 * Desktop + mobile card rules live in this file only.
 */

/* ---------- Shared card shell ---------- */
.mtf-product-card{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:20px!important;
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  background:#fff!important;
  border:0!important;
  border-radius:20px!important;
  box-shadow:0 8px 26px rgba(34,30,25,.10)!important;
  overflow:visible!important;
}
.mtf-product-card .shape{position:absolute!important;top:10px!important;left:10px!important;right:10px!important;text-align:center!important;z-index:0!important;}
.mtf-product-card .shape svg{display:block!important;width:100%!important;height:auto!important;}
.mtf-product-card .icon{display:none!important;}

/* ---------- Image area + actions ---------- */
.mtf-product-card .thumb{
  position:relative!important;
  z-index:1!important;
  min-height:250px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  text-align:center!important;
}
.mtf-product-card .thumb>a{
  width:100%!important;
  min-height:220px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.mtf-product-card .thumb img{
  display:inline-block!important;
  width:100%!important;
  max-width:100%!important;
  height:220px!important;
  object-fit:contain!important;
}
.mtf-product-card .mtf-product-card-actions{
  position:absolute!important;
  top:4px!important;
  right:0!important;
  z-index:10!important;
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
}
.mtf-product-card .mtf-product-action{
  width:46px!important;
  height:46px!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  background:#fff!important;
  color:#222!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-shadow:0 5px 16px rgba(0,0,0,.13)!important;
  cursor:pointer!important;
  transition:transform .18s ease,color .18s ease,background .18s ease!important;
}
.mtf-product-card .mtf-product-action:hover{background:#fff!important;color:#00833e!important;transform:translateY(-1px)!important;}

/* ---------- Rating badge ---------- */
.mtf-product-card .thumb{position:relative!important;}
.mtf-product-card .mtf-product-rating-under-image{
  position:absolute!important;
  left:10px!important;
  bottom:10px!important;
  z-index:30!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  min-height:26px!important;
  margin:0!important;
  padding:5px!important;
  border-radius:999px!important;
  background:#008f4c!important;
  color:#fff!important;
  box-shadow:0 4px 12px rgba(0,0,0,.14)!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.mtf-product-card .mtf-product-rating-under-image.is-no-reviews,
.mtf-product-card .mtf-product-rating-under-image[data-rating-empty="1"]{background:#777!important;}
.mtf-product-card .mtf-product-rating-under-image .mtf-stars{display:inline-flex!important;align-items:center!important;gap:0!important;line-height:1!important;}
.mtf-product-card .mtf-product-rating-under-image .mtf-stars span{display:none!important;}
.mtf-product-card .mtf-product-rating-under-image .mtf-stars:before{content:"★"!important;display:block!important;color:#fff!important;font-family:Arial,sans-serif!important;font-size:16px!important;font-weight:400!important;line-height:1!important;}
.mtf-product-card .mtf-product-rating-under-image .mtf-rating-value{display:inline-flex!important;align-items:center!important;gap:2px!important;margin:0!important;color:#fff!important;font-size:13px!important;font-weight:400!important;line-height:1!important;}
.mtf-product-card .mtf-product-rating-under-image .mtf-rating-value small{margin:0!important;color:rgba(255,255,255,.96)!important;font-size:12px!important;font-weight:400!important;line-height:1!important;}

/* ---------- Text/content ---------- */
.mtf-product-card .content{position:relative!important;z-index:2!important;display:flex!important;flex-direction:column!important;flex:1!important;text-align:left!important;margin-top:4px!important;min-width:0!important;}
.mtf-product-card .content .title,
.mtf-product-card .content h2.title{
  font-size:20px!important;
  line-height:1.25!important;
  font-weight:700!important;
  margin:0 0 5px!important;
  display:block!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.mtf-product-card .content .title a{color:#151515!important;}
.mtf-product-card .mtf-product-excerpt{
  font-size:15px!important;
  line-height:1.45!important;
  color:#777!important;
  margin:0 0 8px!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
  height:43px!important;
  min-height:43px!important;
}
.mtf-product-card .mtf-product-buybox{width:100%!important;margin-top:auto!important;padding-top:4px!important;}

/* ---------- Weight / quantity / cart controls ---------- */
.mtf-product-card .mtf-weight-options{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:0 0 14px!important;padding-top:0!important;}
.mtf-product-card .mtf-weight-option{
  position:relative!important;
  min-height:72px!important;
  padding:16px 7px 8px!important;
  border:2px solid #dedede!important;
  border-radius:18px!important;
  background:#fff!important;
  color:#222!important;
}
.mtf-product-card .mtf-weight-option:hover{border-color:#FFC222!important;}
.mtf-product-card .mtf-weight-option.is-selected{border-color:#FFC222!important;background:#fffdf3!important;}
.mtf-product-card .mtf-weight-option strong{font-size:13px!important;}
.mtf-product-card .mtf-option-price{font-size:13px!important;margin-top:3px!important;}
.mtf-product-card .mtf-option-badge{font-size:9px!important;}
.mtf-product-card .mtf-option-check{font-size:10px!important;}
.mtf-product-card .mtf-quantity-control{min-height:52px!important;height:52px!important;border:2px solid #555!important;border-radius:12px!important;overflow:hidden!important;display:flex!important;align-items:center!important;}
.mtf-product-card .mtf-quantity-control button{height:52px!important;width:38px!important;padding:0!important;border:0!important;background:transparent!important;font-size:24px!important;line-height:1!important;}
.mtf-product-card .mtf-quantity-control .mtf-qty{height:48px!important;width:40px!important;padding:0!important;border:0!important;background:transparent!important;font-size:18px!important;text-align:center!important;}
.mtf-product-card .mtf-purchase-row{display:grid!important;grid-template-columns:1fr 1.25fr!important;gap:8px!important;align-items:stretch!important;}
.mtf-product-card .mtf-add-product{
  min-height:52px!important;
  height:52px!important;
  padding:0 12px!important;
  border:2px solid #FFC222!important;
  border-radius:12px!important;
  background:#FFC222!important;
  color:#111!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  font-family:inherit!important;
  font-size:15px!important;
  font-weight:400!important;
  line-height:1!important;
  text-transform:uppercase!important;
  letter-spacing:.2px!important;
  white-space:nowrap!important;
  box-shadow:none!important;
}
.mtf-product-card .mtf-add-product .mtf-cart-line-icon{width:18px!important;height:18px!important;flex:0 0 18px!important;display:block!important;stroke:currentColor!important;stroke-width:1.8!important;fill:none!important;}
.mtf-product-card .mtf-add-product span{font-weight:400!important;}
.mtf-product-card .mtf-add-product:hover:not(:disabled),
.mtf-product-card .mtf-add-product:focus-visible:not(:disabled){background:#FFC222!important;border-color:#FFC222!important;color:#111!important;transform:translateY(-1px)!important;}
.mtf-product-card .mtf-add-product:disabled{opacity:.55!important;cursor:not-allowed!important;}

/* ---------- Home Customer Favorites layout ---------- */
.mtf-home-best-seller-slider{position:relative!important;width:100%!important;overflow:hidden!important;padding:8px 8px 18px!important;margin:0 -8px!important;}
.mtf-home-best-seller-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:24px!important;align-items:stretch!important;width:100%!important;margin:0!important;padding:0!important;transform:none!important;transition:none!important;will-change:auto!important;}
.mtf-home-best-seller-grid .mtf-shop-product-col{width:auto!important;max-width:none!important;min-width:0!important;padding:0!important;margin:0!important;display:flex!important;}
.mtf-home-best-seller-grid .mtf-product-card{height:100%!important;}
.mtf-favorites-prev,.mtf-favorites-next{display:flex!important;position:absolute!important;top:-58px!important;width:38px!important;height:38px!important;padding:0!important;border:0!important;border-radius:50%!important;background:#FFC222!important;color:#222!important;align-items:center!important;justify-content:center!important;z-index:100!important;box-shadow:0 5px 14px rgba(0,0,0,.14)!important;cursor:pointer!important;}
.mtf-favorites-prev{left:auto!important;right:48px!important;transform:none!important;}
.mtf-favorites-next{left:auto!important;right:0!important;transform:none!important;}
.mtf-favorites-prev:disabled,.mtf-favorites-next:disabled{opacity:.4!important;cursor:default!important;}

/* Shop/category/wishlist grids keep their existing grid layout; only card visuals are centralized here. */
.mtf-shop-page .mtf-shop-product-col>.mtf-product-card,
.mtf-category-page .mtf-shop-product-col>.mtf-product-card,
.mtf-wishlist-page .mtf-shop-product-col>.mtf-product-card,
.mtf-related-product-slider .mtf-shop-product-col>.mtf-product-card{height:100%!important;}

/* ---------- Responsive card design — same file ---------- */
@media (max-width:1199px) and (min-width:992px){
  .mtf-home-best-seller-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media (max-width:991px) and (min-width:768px){
  .mtf-home-best-seller-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;}
  .mtf-product-card{padding:16px!important;}
}
@media (max-width:767px){
  .mtf-product-card{height:auto!important;min-height:0!important;padding:14px!important;border-radius:20px!important;box-shadow:0 7px 24px rgba(34,30,25,.11)!important;}
  .mtf-product-card .thumb{min-height:235px!important;}
  .mtf-product-card .thumb>a{min-height:205px!important;}
  .mtf-product-card .thumb img{height:205px!important;max-height:205px!important;}
  .mtf-product-card .mtf-product-action{width:42px!important;height:42px!important;}
  .mtf-product-card .content .title,.mtf-product-card .content h2.title{font-size:19px!important;line-height:1.25!important;}
  .mtf-product-card .mtf-product-excerpt{font-size:14px!important;line-height:1.45!important;height:21px!important;min-height:21px!important;-webkit-line-clamp:1!important;}
  .mtf-product-card .mtf-weight-option{min-height:62px!important;border-radius:16px!important;}
  .mtf-product-card .mtf-option-heading{display:none!important;}
  .mtf-product-card .mtf-weight-options{margin-top:0!important;padding-top:0!important;}
  .mtf-product-card .mtf-purchase-row{grid-template-columns:1fr 1.25fr!important;gap:7px!important;}
  .mtf-product-card .mtf-quantity-control{min-height:48px!important;height:48px!important;}
  .mtf-product-card .mtf-quantity-control button{height:48px!important;width:32px!important;}
  .mtf-product-card .mtf-add-product{min-height:48px!important;height:48px!important;padding:0 10px!important;font-size:13px!important;}
  .mtf-product-card .mtf-add-product .mtf-cart-line-icon{width:17px!important;height:17px!important;flex-basis:17px!important;}

  /* Home: one prominent card + a small portion of the next card, touch/swipe. */
  .mtf-home-best-seller-slider{display:block!important;padding:8px 0 18px!important;margin:0!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-x:contain!important;scroll-snap-type:x mandatory!important;scrollbar-width:none!important;touch-action:auto!important;}
  .mtf-home-best-seller-slider::-webkit-scrollbar{display:none!important;}
  .mtf-home-best-seller-grid{display:flex!important;flex-wrap:nowrap!important;gap:14px!important;width:max-content!important;min-width:100%!important;transform:none!important;transition:none!important;}
  .mtf-home-best-seller-grid .mtf-shop-product-col{flex:0 0 calc(100vw - 58px)!important;width:calc(100vw - 58px)!important;max-width:calc(100vw - 58px)!important;scroll-snap-align:start!important;scroll-snap-stop:always!important;}
  .mtf-home-best-seller-grid .mtf-product-card{height:auto!important;}
  .mtf-favorites-prev,.mtf-favorites-next{display:none!important;}
}


/* =========================================================
   LISTING PAGE — MOBILE CARD (attachment/reference layout)
   Scoped only to AJAX/listing grids so Home card is untouched.
   ========================================================= */
@media (min-width:768px){
  .mtf-shop-page .mtf-shop-container,
  .mtf-category-page > .container{
    width:100%!important;
    max-width:1320px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}

@media (max-width:767px){
  .mtf-shop-page .mtf-shop-container,
  .mtf-category-page > .container{
    width:100%!important;
    max-width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-left:14px!important;
    padding-right:14px!important;
  }

  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
    width:100%!important;
  }

  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-shop-product-col{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    flex:none!important;
    padding:0!important;
    margin:0!important;
    display:block!important;
  }

  /* Exact listing mobile structure: image left, details right. */
  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card{
    display:grid!important;
    grid-template-columns:35% minmax(0,65%)!important;
    grid-template-rows:1fr!important;
    width:100%!important;
    min-height:160px!important;
    height:160px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #d9d9d9!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:0 3px 12px rgba(0,0,0,.08)!important;
    overflow:hidden!important;
    position:relative!important;
  }

  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .shape,
  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .icon{
    display:none!important;
  }

  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .thumb{
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    height:160px!important;
    min-height:160px!important;
    margin:0!important;
    padding:0!important;
    background:#f7f4ed!important;
    display:block!important;
    position:relative!important;
    overflow:hidden!important;
    z-index:1!important;
  }

  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .thumb>a{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:136px!important;
    min-height:136px!important;
    padding:5px!important;
    margin:0!important;
  }

  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .thumb img{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:132px!important;
    max-height:132px!important;
    object-fit:contain!important;
    margin:0!important;
  }

  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-product-card-actions{
    position:absolute!important;
    top:8px!important;
    right:8px!important;
    z-index:20!important;
    display:flex!important;
    flex-direction:column!important;
    gap:8px!important;
    pointer-events:auto!important;
  }

  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-product-action{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    background:#fff!important;
    box-shadow:0 2px 8px rgba(0,0,0,.18)!important;
  }

  /* Rating badge: same visual treatment as desktop on mobile. */
  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-product-rating-under-image{
    left:8px!important;
    right:auto!important;
    bottom:8px!important;
    width:auto!important;
    min-height:26px!important;
    height:26px!important;
    padding:5px!important;
    margin:0!important;
    border-radius:999px!important;
    background:#008f4c!important;
    color:#fff!important;
    box-shadow:0 4px 12px rgba(0,0,0,.14)!important;
    justify-content:center!important;
    gap:4px!important;
    z-index:25!important;
  }
  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-product-rating-under-image .mtf-stars{
    display:inline-flex!important;align-items:center!important;gap:0!important;line-height:1!important;
  }
  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-product-rating-under-image .mtf-stars:before{
    display:block!important;content:"★"!important;color:#fff!important;font-family:Arial,sans-serif!important;font-size:15px!important;font-weight:400!important;line-height:1!important;
  }
  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-product-rating-under-image .mtf-stars span{display:none!important;}
  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-product-rating-under-image .mtf-rating-value{color:#fff!important;font-size:12px!important;font-weight:400!important;line-height:1!important;}
  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-product-rating-under-image .mtf-rating-value small{color:rgba(255,255,255,.96)!important;font-size:11px!important;}
  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-product-rating-under-image.is-no-reviews{background:#777!important;}

  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .content{
    grid-column:2!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
    height:160px!important;
    min-height:160px!important;
    margin:0!important;
    padding:10px 10px 8px!important;
    display:flex!important;
    flex-direction:column!important;
    text-align:left!important;
    overflow:hidden!important;
    z-index:5!important;
    background:#fff!important;
  }

  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .content .title,
  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .content h2.title{
    font-size:16px!important;
    line-height:1.2!important;
    font-weight:700!important;
    height:23px!important;
    min-height:23px!important;
    margin:0 0 2px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-product-excerpt{
    font-size:12px!important;
    line-height:1.25!important;
    height:17px!important;
    min-height:17px!important;
    margin:0 0 0px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    display:block!important;
    -webkit-line-clamp:unset!important;
  }

  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-product-buybox{
    width:100%!important;
    margin:0!important;
    padding:0!important;
    min-width:0!important;
    flex:1 1 auto!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-end!important;
  }

  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-weight-options{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:5px!important;
    width:100%!important;
    margin:0 0 6px!important;
    padding:0!important;
  }

  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-weight-option{
    position:relative!important;
    width:100%!important;
    min-width:0!important;
    min-height:42px!important;
    height:42px!important;
    padding:8px 2px 2px!important;
    border:1px solid #ddd!important;
    border-radius:8px!important;
    background:#fff!important;
    color:#111!important;
    cursor:pointer!important;
    pointer-events:auto!important;
    z-index:10!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    -webkit-tap-highlight-color:transparent!important;
  }
  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-weight-option:hover{
    border-color:#FFC222!important;
  }
  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-weight-option.is-selected{
    border:2px solid #FFC222!important;
    background:#fffdf2!important;
  }
  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-weight-option strong{
    font-size:12px!important;
    line-height:14px!important;
    font-weight:500!important;
    margin:0!important;
  }
  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-option-price{
    font-size:11px!important;
    line-height:13px!important;
    margin:1px 0 0!important;
    white-space:nowrap!important;
  }
  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-option-badge{
    position:absolute!important;
    top:-7px!important;
    left:50%!important;
    transform:translateX(-50%)!important;
    z-index:3!important;
    font-size:6px!important;
    line-height:9px!important;
    padding:1px 4px!important;
    border-radius:5px!important;
    background:#111!important;
    color:#fff!important;
    white-space:nowrap!important;
  }
  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-option-check{
    position:absolute!important;
    top:2px!important;
    right:2px!important;
    width:12px!important;
    height:12px!important;
    display:none!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:50%!important;
    background:#FFC222!important;
    color:#111!important;
    font-size:7px!important;
    line-height:1!important;
  }
  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-weight-option.is-selected .mtf-option-check{
    display:flex!important;
  }

  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-purchase-row{
    display:grid!important;
    grid-template-columns:85px minmax(0,1fr)!important;
    gap:5px!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
  }
  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-quantity-control{
    width:100%!important;
    min-width:0!important;
    min-height:38px!important;
    height:38px!important;
    border:1px solid #555!important;
    border-radius:8px!important;
    overflow:hidden!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
  }
  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-quantity-control button{
    width:24px!important;
    height:36px!important;
    min-width:24px!important;
    padding:0!important;
    font-size:18px!important;
  }
  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-quantity-control .mtf-qty{
    width:30px!important;
    height:34px!important;
    padding:0!important;
    font-size:15px!important;
  }
  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-add-product{
    width:100%!important;
    min-width:0!important;
    min-height:38px!important;
    height:38px!important;
    padding:0 5px!important;
    border:0!important;
    border-radius:8px!important;
    background:#FFC222!important;
    color:#111!important;
    font-size:13px!important;
    font-weight:600!important;
    gap:5px!important;
    cursor:pointer!important;
    z-index:15!important;
    position:relative!important;
  }
  :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-add-product .mtf-cart-line-icon{
    width:16px!important;
    height:16px!important;
    flex:0 0 16px!important;
  }

  /* Narrow phones: preserve the same reference proportions. */
  @media(max-width:390px){
    :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card{
      grid-template-columns:34% minmax(0,66%)!important;
      min-height:160px!important;
      height:160px!important;
    }
    :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .thumb,
    :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .content{
      height:160px!important;
      min-height:160px!important;
    }
    :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .thumb>a{height:136px!important;min-height:136px!important;}
    :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .thumb img{height:132px!important;max-height:132px!important;}
    :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .content{padding:9px 8px 7px!important;}
    :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .content .title{font-size:17px!important;}
    :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-weight-option{height:42px!important;min-height:42px!important;}
    :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-purchase-row{grid-template-columns:76px minmax(0,1fr)!important;}
    :is(.mtf-shop-page,.mtf-category-page) .mtf-ajax-product-grid .mtf-product-card .mtf-add-product{font-size:11px!important;}
  }
}

/* ========================================================================
   FINAL CONTROL NORMALIZATION V3
   The product-card stylesheet is loaded last. These rules intentionally
   override legacy shop/detail control rules without changing the Home card.
   ======================================================================== */

/* ---------- Listing / category / wishlist / related: desktop ---------- */
@media (min-width:768px){
  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-product-buybox,
  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-product-purchase{
    width:100%!important;
  }

  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-weight-options{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
    margin:0 0 12px!important;
  }

  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-weight-option{
    min-height:60px!important;
    height:60px!important;
    padding:14px 6px 6px!important;
    border:2px solid #dedede!important;
    border-radius:14px!important;
    background:#fff!important;
    color:#222!important;
    cursor:pointer!important;
  }

  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-weight-option.is-selected{
    border-color:#FFC222!important;
    background:#fffdf3!important;
  }

  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-weight-option strong{
    font-size:14px!important;
    line-height:1.1!important;
    font-weight:600!important;
  }

  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-option-price{
    font-size:12px!important;
    line-height:1.1!important;
    margin-top:3px!important;
  }

  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-purchase-row{
    display:grid!important;
    grid-template-columns:85px minmax(0,1fr)!important;
    gap:7px!important;
    width:100%!important;
    margin:0!important;
  }

  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-quantity-control{
    width:100%!important;
    height:44px!important;
    min-height:44px!important;
    border:1px solid #555!important;
    border-radius:9px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    overflow:hidden!important;
    background:#fff!important;
  }

  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-quantity-control button{
    width:25px!important;
    height:42px!important;
    min-width:25px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    color:#111!important;
    font-size:19px!important;
    line-height:1!important;
  }

  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-quantity-control .mtf-qty{
    width:31px!important;
    height:40px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    color:#111!important;
    font-size:15px!important;
    text-align:center!important;
  }

  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-add-product{
    width:100%!important;
    height:44px!important;
    min-height:44px!important;
    padding:0 10px!important;
    border:0!important;
    border-radius:9px!important;
    background:#FFC222!important;
    color:#111!important;
    font-size:14px!important;
    font-weight:600!important;
    line-height:1!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    white-space:nowrap!important;
  }

  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-add-product .mtf-cart-line-icon{
    width:17px!important;
    height:17px!important;
    flex:0 0 17px!important;
    stroke:currentColor!important;
    fill:none!important;
  }
}

/* ---------- Listing / category / wishlist / related: mobile ---------- */
@media (max-width:767px){
  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-weight-options{
    gap:4px!important;
    margin:0 0 6px!important;
  }

  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-weight-option{
    min-height:42px!important;
    height:42px!important;
    padding:7px 2px 2px!important;
    border:1px solid #ddd!important;
    border-radius:8px!important;
  }

  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-weight-option.is-selected{
    border:2px solid #FFC222!important;
    background:#fffdf2!important;
  }

  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-weight-option strong{
    font-size:11px!important;
    line-height:1!important;
    font-weight:600!important;
  }

  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-option-price{
    font-size:9px!important;
    line-height:1!important;
    margin-top:2px!important;
  }

  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-purchase-row{
    grid-template-columns:68px minmax(0,1fr)!important;
    gap:4px!important;
  }

  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-quantity-control{
    height:38px!important;
    min-height:38px!important;
    border:1px solid #555!important;
    border-radius:7px!important;
  }

  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-quantity-control button{
    width:20px!important;
    min-width:20px!important;
    height:36px!important;
    font-size:16px!important;
  }

  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-quantity-control .mtf-qty{
    width:25px!important;
    height:34px!important;
    font-size:13px!important;
  }

  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-add-product{
    height:38px!important;
    min-height:38px!important;
    padding:0 5px!important;
    border:0!important;
    border-radius:7px!important;
    background:#FFC222!important;
    color:#111!important;
    font-size:12px!important;
    font-weight:600!important;
    gap:5px!important;
  }

  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider) .mtf-product-card .mtf-add-product .mtf-cart-line-icon{
    width:15px!important;
    height:15px!important;
    flex:0 0 15px!important;
  }
}

/* ---------- Product details page: restore a clean, consistent purchase row ---------- */
.mtf-single-product .mtf-purchase-single .mtf-product-purchase{
  width:100%!important;
  margin-top:0!important;
}
.mtf-single-product .mtf-purchase-single .mtf-weight-options{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px!important;
  margin:0 0 14px!important;
}
.mtf-single-product .mtf-purchase-single .mtf-weight-option{
  min-height:60px!important;
  height:60px!important;
  padding:14px 7px 7px!important;
  border:2px solid #dedede!important;
  border-radius:14px!important;
  background:#fff!important;
  color:#222!important;
}
.mtf-single-product .mtf-purchase-single .mtf-weight-option.is-selected{
  border-color:#FFC222!important;
  background:#fffdf3!important;
}
.mtf-single-product .mtf-purchase-single .mtf-weight-option strong{
  font-size:15px!important;
  font-weight:600!important;
}
.mtf-single-product .mtf-purchase-single .mtf-option-price{font-size:12px!important;margin-top:3px!important}
.mtf-single-product .mtf-purchase-single .mtf-purchase-row{
  display:grid!important;
  grid-template-columns:90px minmax(0,1fr)!important;
  gap:8px!important;
  width:100%!important;
  align-items:stretch!important;
}
.mtf-single-product .mtf-purchase-single .mtf-quantity-control{
  width:100%!important;
  height:48px!important;
  min-height:48px!important;
  border:1px solid #555!important;
  border-radius:9px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  overflow:hidden!important;
  background:#fff!important;
}
.mtf-single-product .mtf-purchase-single .mtf-quantity-control button{
  width:25px!important;
  height:46px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#111!important;
  font-size:19px!important;
}
.mtf-single-product .mtf-purchase-single .mtf-quantity-control .mtf-qty{
  width:35px!important;
  height:44px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#111!important;
  font-size:15px!important;
  text-align:center!important;
}
.mtf-single-product .mtf-purchase-single .mtf-add-product{
  width:100%!important;
  height:48px!important;
  min-height:48px!important;
  padding:0 12px!important;
  border:0!important;
  border-radius:9px!important;
  background:#FFC222!important;
  color:#111!important;
  font-size:15px!important;
  font-weight:600!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
}
.mtf-single-product .mtf-purchase-single .mtf-add-product .mtf-cart-line-icon{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  stroke:currentColor!important;
  fill:none!important;
}

@media(max-width:767px){
  .mtf-single-product .mtf-purchase-single .mtf-weight-options{gap:5px!important;margin-bottom:10px!important}
  .mtf-single-product .mtf-purchase-single .mtf-weight-option{min-height:52px!important;height:52px!important;padding:11px 4px 5px!important;border-radius:11px!important}
  .mtf-single-product .mtf-purchase-single .mtf-weight-option strong{font-size:13px!important}
  .mtf-single-product .mtf-purchase-single .mtf-option-price{font-size:11px!important}
  .mtf-single-product .mtf-purchase-single .mtf-purchase-row{grid-template-columns:76px minmax(0,1fr)!important;gap:6px!important}
  .mtf-single-product .mtf-purchase-single .mtf-quantity-control{height:42px!important;min-height:42px!important;border-radius:8px!important}
  .mtf-single-product .mtf-purchase-single .mtf-quantity-control button{height:40px!important;width:21px!important;font-size:17px!important}
  .mtf-single-product .mtf-purchase-single .mtf-quantity-control .mtf-qty{height:38px!important;width:29px!important;font-size:14px!important}
  .mtf-single-product .mtf-purchase-single .mtf-add-product{height:42px!important;min-height:42px!important;border-radius:8px!important;font-size:13px!important;padding:0 8px!important;font-weight:600!important}
  .mtf-single-product .mtf-purchase-single .mtf-add-product .mtf-cart-line-icon{width:16px!important;height:16px!important;flex-basis:16px!important}
}


/* ========================================================================
   MTF FINAL CONTROL + SINGLE PRODUCT NORMALIZATION V4
   - Add-to-cart text is bold on every product card.
   - Wishlist AJAX cards use the same purchase controls as listing cards.
   - Single-product purchase section targets the actual .mtf-add-to-cart
     wrapper used by single-product.php (not the old .mtf-purchase-single).
   ======================================================================== */

/* All product cards: bold Add to Cart label, desktop + mobile. */
:is(.mtf-product-card,.mtf-home-best-seller-grid) .mtf-add-product,
:is(.mtf-product-card,.mtf-home-best-seller-grid) .mtf-add-product span{
  font-weight:700!important;
}

/* Wishlist AJAX cards: keep the same compact purchase geometry. */
@media (min-width:768px){
  .mtf-wishlist-page .mtf-ajax-product-grid .mtf-product-card .mtf-purchase-row{
    display:grid!important;
    grid-template-columns:88px minmax(0,1fr)!important;
    gap:7px!important;
    width:100%!important;
    margin:0!important;
  }
  .mtf-wishlist-page .mtf-ajax-product-grid .mtf-product-card .mtf-quantity-control{
    height:44px!important;min-height:44px!important;border:1px solid #555!important;
    border-radius:9px!important;display:flex!important;align-items:center!important;
    justify-content:space-between!important;overflow:hidden!important;background:#fff!important;
  }
  .mtf-wishlist-page .mtf-ajax-product-grid .mtf-product-card .mtf-quantity-control button{
    width:25px!important;min-width:25px!important;height:42px!important;border:0!important;
    padding:0!important;background:transparent!important;color:#111!important;font-size:19px!important;
  }
  .mtf-wishlist-page .mtf-ajax-product-grid .mtf-product-card .mtf-quantity-control .mtf-qty{
    width:34px!important;height:40px!important;border:0!important;padding:0!important;
    background:transparent!important;color:#111!important;font-size:15px!important;text-align:center!important;
  }
  .mtf-wishlist-page .mtf-ajax-product-grid .mtf-product-card .mtf-add-product{
    height:44px!important;min-height:44px!important;border:0!important;border-radius:9px!important;
    background:#FFC222!important;color:#111!important;font-size:14px!important;font-weight:700!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  }
}

@media (max-width:767px){
  /* Listing/wishlist mobile quantity: give the control enough width for − 1 +. */
  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider)
  .mtf-product-card .mtf-purchase-row{
    grid-template-columns:74px minmax(0,1fr)!important;
    gap:5px!important;
    width:100%!important;
  }
  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider)
  .mtf-product-card .mtf-quantity-control{
    width:74px!important;height:38px!important;min-height:38px!important;
    border:1px solid #555!important;border-radius:7px!important;
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    overflow:hidden!important;background:#fff!important;
  }
  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider)
  .mtf-product-card .mtf-quantity-control button{
    width:20px!important;min-width:20px!important;height:36px!important;padding:0!important;
    border:0!important;background:transparent!important;color:#111!important;font-size:16px!important;
  }
  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider)
  .mtf-product-card .mtf-quantity-control .mtf-qty{
    width:32px!important;min-width:32px!important;height:34px!important;padding:0!important;
    border:0!important;background:transparent!important;color:#111!important;font-size:13px!important;
    text-align:center!important;
  }
  :is(.mtf-shop-page,.mtf-category-page,.mtf-wishlist-page,.mtf-related-products,.mtf-related-product-slider)
  .mtf-product-card .mtf-add-product{
    height:38px!important;min-height:38px!important;padding:0 6px!important;border:0!important;
    border-radius:7px!important;background:#FFC222!important;color:#111!important;font-size:12px!important;
    font-weight:700!important;line-height:1!important;display:inline-flex!important;
    align-items:center!important;justify-content:center!important;gap:5px!important;white-space:nowrap!important;
  }
}

/* ========================================================================
   Single product purchase area — card-like sizing matching the product cards
   ======================================================================== */
.mtf-single-product .mtf-add-to-cart .mtf-product-purchase{
  width:100%!important;
  margin:0!important;
}

.mtf-single-product .mtf-add-to-cart .mtf-weight-options{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  margin:0 0 12px!important;
}

.mtf-single-product .mtf-add-to-cart .mtf-weight-option{
  min-width:0!important;
  min-height:62px!important;
  height:62px!important;
  padding:14px 7px 7px!important;
  border:2px solid #dedede!important;
  border-radius:14px!important;
  background:#fff!important;
  color:#222!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
}

.mtf-single-product .mtf-add-to-cart .mtf-weight-option.is-selected{
  border-color:#FFC222!important;
  background:#fffdf3!important;
}

.mtf-single-product .mtf-add-to-cart .mtf-weight-option strong{
  font-size:15px!important;
  line-height:1.1!important;
  font-weight:600!important;
}
.mtf-single-product .mtf-add-to-cart .mtf-option-price{
  font-size:12px!important;
  line-height:1.1!important;
  margin-top:3px!important;
}

.mtf-single-product .mtf-add-to-cart .mtf-purchase-row{
  display:grid!important;
  grid-template-columns:96px minmax(0,1fr)!important;
  gap:8px!important;
  width:100%!important;
  margin:0!important;
  align-items:stretch!important;
}

.mtf-single-product .mtf-add-to-cart .mtf-quantity-control{
  width:100%!important;
  height:48px!important;
  min-height:48px!important;
  border:1px solid #555!important;
  border-radius:9px!important;
  background:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  overflow:hidden!important;
}
.mtf-single-product .mtf-add-to-cart .mtf-quantity-control button{
  width:27px!important;min-width:27px!important;height:46px!important;padding:0!important;
  border:0!important;background:transparent!important;color:#111!important;font-size:19px!important;
}
.mtf-single-product .mtf-add-to-cart .mtf-quantity-control .mtf-qty{
  width:38px!important;height:44px!important;padding:0!important;border:0!important;
  background:transparent!important;color:#111!important;font-size:15px!important;text-align:center!important;
}

.mtf-single-product .mtf-add-to-cart .mtf-add-product{
  width:100%!important;height:48px!important;min-height:48px!important;padding:0 12px!important;
  border:0!important;border-radius:9px!important;background:#FFC222!important;color:#111!important;
  font-size:15px!important;font-weight:700!important;display:inline-flex!important;
  align-items:center!important;justify-content:center!important;gap:7px!important;line-height:1!important;
}
.mtf-single-product .mtf-add-to-cart .mtf-add-product .mtf-cart-line-icon{
  width:18px!important;height:18px!important;flex:0 0 18px!important;
  stroke:currentColor!important;stroke-width:1.8!important;fill:none!important;
}

.mtf-single-product .mtf-add-to-cart .mtf-buy-now{
  width:100%!important;height:50px!important;min-height:50px!important;margin-top:10px!important;
  border:0!important;border-radius:12px!important;background:#168b4b!important;color:#fff!important;
  font-size:18px!important;font-weight:700!important;display:inline-flex!important;
  align-items:center!important;justify-content:center!important;
}

/* Make the detail short-description read like the card content panel. */
.mtf-single-product .mtf-single-short-description{
  margin:0 0 14px!important;
  padding:16px 20px!important;
  background:#fffaf0!important;
  border-left:4px solid #FFC222!important;
  border-radius:12px!important;
  color:#555!important;
  font-size:16px!important;
  line-height:1.55!important;
}
.mtf-single-product .mtf-single-short-description p{margin:0!important;}

@media (max-width:767px){
  .mtf-single-product .mtf-product-detail-content .title{
    font-size:34px!important;line-height:1.12!important;margin-bottom:8px!important;
  }
  .mtf-single-product .mtf-single-main-price{
    font-size:30px!important;line-height:1.15!important;margin-bottom:10px!important;
  }
  .mtf-single-product .mtf-single-short-description{
    padding:14px 20px!important;margin-bottom:12px!important;font-size:15px!important;line-height:1.55!important;
  }
  .mtf-single-product .mtf-add-to-cart .mtf-weight-options{
    gap:6px!important;margin-bottom:10px!important;
  }
  .mtf-single-product .mtf-add-to-cart .mtf-weight-option{
    height:54px!important;min-height:54px!important;padding:12px 5px 6px!important;border-radius:12px!important;
  }
  .mtf-single-product .mtf-add-to-cart .mtf-weight-option strong{font-size:14px!important;}
  .mtf-single-product .mtf-add-to-cart .mtf-option-price{font-size:11px!important;margin-top:2px!important;}
  .mtf-single-product .mtf-add-to-cart .mtf-purchase-row{
    grid-template-columns:88px minmax(0,1fr)!important;gap:7px!important;
  }
  .mtf-single-product .mtf-add-to-cart .mtf-quantity-control{
    height:44px!important;min-height:44px!important;border-radius:8px!important;
  }
  .mtf-single-product .mtf-add-to-cart .mtf-quantity-control button{
    width:23px!important;min-width:23px!important;height:42px!important;font-size:18px!important;
  }
  .mtf-single-product .mtf-add-to-cart .mtf-quantity-control .mtf-qty{
    width:36px!important;height:40px!important;font-size:14px!important;
  }
  .mtf-single-product .mtf-add-to-cart .mtf-add-product{
    height:44px!important;min-height:44px!important;border-radius:8px!important;
    padding:0 8px!important;font-size:14px!important;font-weight:700!important;gap:6px!important;
  }
  .mtf-single-product .mtf-add-to-cart .mtf-add-product .mtf-cart-line-icon{
    width:16px!important;height:16px!important;flex-basis:16px!important;
  }
  .mtf-single-product .mtf-add-to-cart .mtf-buy-now{
    height:48px!important;min-height:48px!important;margin-top:9px!important;border-radius:10px!important;font-size:17px!important;
  }
}
/* MTF final: plain short description + admin-driven product description. */
.mtf-single-product .mtf-single-short-description{background:transparent!important;border:0!important;border-left:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;color:inherit!important;}
.mtf-single-product .mtf-single-short-description p{margin:0 0 10px!important;}
.mtf-product-tabs .mtf-description-panel.mtf-admin-description{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;color:inherit!important;font-size:inherit!important;line-height:inherit!important;font-family:inherit!important;font-weight:inherit!important;}


/* =========================================================
   FINAL REQUEST OVERRIDES
   ========================================================= */
/* Related-products mobile: navigation arrows are intentionally hidden. */
@media (max-width:767px){
  .mtf-related-product-slider .mtf-related-prev,
  .mtf-related-product-slider .mtf-related-next,
  .mtf-related-product-slider .mtf-favorites-prev,
  .mtf-related-product-slider .mtf-favorites-next{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
}

/* Product-card rating badge: text/icons on the green badge must remain white. */
.mtf-product-card .mtf-product-rating-under-image{
  background:#008f4c!important;
  color:#fff!important;
}
.mtf-product-card .mtf-product-rating-under-image .mtf-stars,
.mtf-product-card .mtf-product-rating-under-image .mtf-stars span,
.mtf-product-card .mtf-product-rating-under-image .mtf-stars span.is-filled,
.mtf-product-card .mtf-product-rating-under-image .mtf-stars:before,
.mtf-product-card .mtf-product-rating-under-image .mtf-rating-value,
.mtf-product-card .mtf-product-rating-under-image .mtf-rating-value small{
  color:#fff!important;
}

/* Header search panels: hidden by default, explicitly opened by the search trigger. */
.mtf-inner-header .mtf-desktop-search-panel{
  display:none!important;
}
.mtf-inner-header .mtf-desktop-search-panel.is-open{
  display:block!important;
}
.mtf-inner-header .header-middle-sec{
  position:relative!important;
}
.mtf-inner-header .mtf-desktop-search-panel-main{
  position:absolute!important;
  top:calc(100% + 10px)!important;
  right:16px!important;
  width:min(420px,calc(100vw - 32px))!important;
  z-index:2147483000!important;
  padding:0!important;
}
.mtf-inner-header .mtf-desktop-search-panel-main .mtf-live-search-wrap{
  background:#fff!important;
  padding:10px!important;
  border:1px solid #e4ddd4!important;
  border-radius:12px!important;
  box-shadow:0 14px 35px rgba(0,0,0,.16)!important;
}
.mtf-inner-header .mtf-desktop-search-panel-main .mtf-live-search-form{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}
.mtf-inner-header .mtf-desktop-search-panel-main .mtf-live-search-form input[type="search"]{
  flex:1 1 auto!important;
  min-width:0!important;
  height:46px!important;
  margin:0!important;
  border:1px solid #ddd6cd!important;
  border-radius:8px!important;
  padding:0 14px!important;
  background:#fff!important;
  color:#222!important;
}
.mtf-inner-header .mtf-desktop-search-panel-main .mtf-live-search-form button{
  width:46px!important;
  height:46px!important;
  flex:0 0 46px!important;
  border:0!important;
  border-radius:8px!important;
  background:#FFC222!important;
  color:#171717!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:pointer!important;
}
.mtf-product-card .mtf-product-rating-under-image.is-no-reviews,
.mtf-product-card .mtf-product-rating-under-image[data-rating-empty="1"]{
  background:#777!important;
}
