
/* MUY TOP V6 — forced stylesheet for Unimart */

.single-product .muytop-multi-buy-panel{
  margin:22px 0 16px!important;
  padding:18px!important;
  border:1px solid #ececec!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 6px 24px rgba(0,0,0,.04)!important;
}

.single-product .muytop-multi-buy-head{margin-bottom:14px!important}
.single-product .muytop-multi-buy-head h4{
  margin:0 0 6px!important;
  font-size:20px!important;
  line-height:1.2!important;
  font-weight:700!important;
  color:#111!important;
}
.single-product .muytop-multi-buy-head p{
  margin:0!important;
  font-size:12px!important;
  line-height:1.45!important;
  color:#777!important;
}

.single-product button.muytop-add-current-combo{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:46px!important;
  margin:0 0 12px!important;
  padding:0 20px!important;
  border:1px solid #ff4f1f!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#ff4f1f!important;
  font:700 13px/1 inherit!important;
  box-shadow:none!important;
  cursor:pointer!important;
}
.single-product button.muytop-add-current-combo:hover:not(:disabled){
  background:#ff4f1f!important;
  color:#fff!important;
}
.single-product button.muytop-add-current-combo:disabled{
  opacity:.45!important;
  cursor:not-allowed!important;
}

.single-product .muytop-multi-buy-empty{
  margin:4px 0!important;
  padding:13px 14px!important;
  border-radius:8px!important;
  background:#f8f8f8!important;
  color:#777!important;
  font-size:12px!important;
  line-height:1.4!important;
  text-align:center!important;
}

.single-product .muytop-multi-buy-list{
  width:100%!important;
  margin:0!important;
  padding:0!important;
}

.single-product .muytop-multi-item{
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr) 116px 30px!important;
  gap:12px!important;
  align-items:center!important;
  width:100%!important;
  padding:12px 0!important;
  border-bottom:1px solid #efefef!important;
  background:transparent!important;
}
.single-product .muytop-multi-item:last-child{border-bottom:0!important}

.single-product .muytop-multi-thumb{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:58px!important;
  height:58px!important;
  border:1px solid #ececec!important;
  border-radius:8px!important;
  overflow:hidden!important;
  background:#fff!important;
}
.single-product .muytop-multi-thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
}

.single-product .muytop-multi-info{min-width:0!important}
.single-product .muytop-multi-attrs{
  margin:0!important;
  color:#333!important;
  font-size:12px!important;
  line-height:1.45!important;
}
.single-product .muytop-multi-attrs strong{
  color:#111!important;
  font-weight:700!important;
}
.single-product .muytop-multi-price{
  margin-top:4px!important;
  color:#111!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:700!important;
}
.single-product .muytop-multi-price .amount{
  color:inherit!important;
  font-size:inherit!important;
  font-weight:inherit!important;
}

.single-product .muytop-multi-qty{
  display:grid!important;
  grid-template-columns:34px 46px 34px!important;
  align-items:center!important;
  width:116px!important;
  height:38px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #ddd!important;
  border-radius:999px!important;
  background:#fff!important;
  overflow:hidden!important;
}
.single-product .muytop-multi-qty button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:34px!important;
  height:36px!important;
  min-width:34px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#111!important;
  font-size:18px!important;
  line-height:1!important;
  box-shadow:none!important;
}
.single-product .muytop-multi-qty button:hover{color:#ff4f1f!important}

.single-product .muytop-multi-qty input{
  display:block!important;
  width:46px!important;
  min-width:46px!important;
  max-width:46px!important;
  height:36px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:#111!important;
  font-size:13px!important;
  line-height:36px!important;
  font-weight:600!important;
  text-align:center!important;
  box-shadow:none!important;
  -moz-appearance:textfield!important;
}
.single-product .muytop-multi-qty input::-webkit-inner-spin-button,
.single-product .muytop-multi-qty input::-webkit-outer-spin-button{
  -webkit-appearance:none!important;
  margin:0!important;
}

.single-product button.muytop-remove-combo{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:30px!important;
  min-width:30px!important;
  height:30px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  background:#f5f5f5!important;
  color:#777!important;
  font-size:18px!important;
  line-height:1!important;
  box-shadow:none!important;
}
.single-product button.muytop-remove-combo:hover{
  background:#111!important;
  color:#fff!important;
}

.single-product button.muytop-bulk-add-to-cart{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:48px!important;
  margin:14px 0 0!important;
  padding:0 20px!important;
  border:0!important;
  border-radius:999px!important;
  background:#ff4f1f!important;
  color:#fff!important;
  font:700 14px/1 inherit!important;
  box-shadow:none!important;
}
.single-product button.muytop-bulk-add-to-cart:hover:not(:disabled){
  background:#e94314!important;
}
.single-product button.muytop-bulk-add-to-cart:disabled{
  opacity:.45!important;
  cursor:not-allowed!important;
}

.single-product .muytop-multi-status{
  margin-top:9px!important;
  color:#666!important;
  font-size:11px!important;
  line-height:1.35!important;
  text-align:center!important;
}

/* native color buttons transformed into images */
.single-product .rbt-has-product-single-custom-options-labels.muytop-native-color-image-buttons{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  align-items:flex-start!important;
}
.single-product .rbt-has-product-single-custom-options-labels button.muytop-native-image-swatch{
  display:inline-flex!important;
  flex-direction:column!important;
  align-items:center!important;
  width:72px!important;
  min-width:72px!important;
  height:auto!important;
  min-height:88px!important;
  padding:4px 4px 6px!important;
  border:1px solid #e7e7e7!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#111!important;
  box-shadow:none!important;
}
.single-product .rbt-has-product-single-custom-options-labels button.muytop-native-image-swatch.active{
  border:2px solid #ff4f1f!important;
}
.single-product .muytop-native-image-box{
  display:block!important;
  width:58px!important;
  height:58px!important;
  overflow:hidden!important;
  border-radius:5px!important;
  background:#fff!important;
}
.single-product .muytop-native-image-box img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
}
.single-product .muytop-native-image-label{
  display:block!important;
  width:100%!important;
  margin-top:5px!important;
  font-size:10px!important;
  line-height:1.15!important;
  font-weight:600!important;
  text-align:center!important;
  color:#111!important;
}

@media(max-width:767px){
  .single-product .muytop-multi-buy-panel{
    margin-top:18px!important;
    padding:15px!important;
  }
  .single-product .muytop-multi-item{
    grid-template-columns:50px minmax(0,1fr) 30px!important;
    grid-template-areas:
      "thumb info remove"
      "thumb qty qty"!important;
    gap:7px 10px!important;
  }
  .single-product .muytop-multi-thumb{
    grid-area:thumb!important;
    width:50px!important;
    height:50px!important;
  }
  .single-product .muytop-multi-info{grid-area:info!important}
  .single-product .muytop-multi-qty{
    grid-area:qty!important;
    width:108px!important;
    grid-template-columns:32px 44px 32px!important;
  }
  .single-product button.muytop-remove-combo{
    grid-area:remove!important;
    align-self:start!important;
  }
}


/* MUY TOP V7 — unavailable variation combinations */
.single-product button.muytop-option-unavailable,
.single-product button.muytop-option-unavailable:hover {
  opacity: .28 !important;
  filter: grayscale(1) !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  border-color: #d8d8d8 !important;
  background: #f6f6f6 !important;
  color: #999 !important;
}

.single-product button.muytop-native-image-swatch.muytop-option-unavailable img {
  opacity: .45 !important;
  filter: grayscale(1) !important;
}


/* MUY TOP V8 — single attribute selected state */
.single-product .rbt-has-product-single-custom-options-labels button.selected,
.single-product .rbt-has-product-single-custom-options-labels button.active {
  border-color: #ff4f1f !important;
  box-shadow: 0 0 0 1px #ff4f1f inset !important;
}


/* MUY TOP V9 — price always visible after a valid variation is selected */
.single-product .muytop-live-variation-price {
  display: none;
  margin: 18px 0 14px !important;
  line-height: 1.2;
}

.single-product .muytop-live-variation-price.is-visible {
  display: block !important;
}

.single-product .muytop-live-variation-price .price,
.single-product .muytop-live-variation-price .woocommerce-Price-amount,
.single-product .muytop-live-variation-price .amount {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: #111 !important;
  margin: 0 !important;
}

.single-product .muytop-live-variation-price del {
  opacity: .55 !important;
  margin-right: 8px !important;
}

.single-product .muytop-live-variation-price ins {
  text-decoration: none !important;
}


/* MUY TOP V9.1 — avoid duplicate variation price */
/* Hide only WooCommerce's native variation-price block.
   The Muy Top controlled price remains visible. */
.single-product form.variations_form .single_variation .woocommerce-variation-price,
.single-product form.variations_form .woocommerce-variation.single_variation .woocommerce-variation-price {
  display: none !important;
}

/* Some Unimart builds print the variation price directly inside .single_variation.
   Hide its native price children, but never our custom price box. */
.single-product form.variations_form .single_variation > .price:not(.muytop-live-variation-price),
.single-product form.variations_form .single_variation > p.price:not(.muytop-live-variation-price) {
  display: none !important;
}


/* MUY TOP V9.3 — clear unavailable-state feedback */
.single-product button.muytop-option-unavailable {
  position: relative;
}
.single-product button.muytop-option-unavailable::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 1px;
  background: currentColor;
  opacity: .45;
  transform: rotate(-12deg);
}
