/* Zi Vital release polish — final Home + cart + checkout corrections */

/* ---------- HOME: editorial image + 4 equal product cards ---------- */
.zv6-home-store__panel{
  grid-template-columns:minmax(340px,.9fr) minmax(0,1.35fr)!important;
  gap:18px!important;
}
.zv6-home-store__visual{
  min-height:520px!important;
}
.zv6-home-store__product-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  min-height:420px!important;
}
.zv6-home-product,
.zv6-home-product.is-featured,
.zv-release-home-product{
  grid-row:auto!important;
  grid-column:auto!important;
  min-height:0!important;
}
.zv6-home-product__media,
.zv6-home-product.is-featured .zv6-home-product__media{
  height:145px!important;
  min-height:145px!important;
  padding:9px!important;
  background:#fff!important;
}
.zv6-home-product__media img,
.zv6-home-product.is-featured .zv6-home-product__media img{
  width:94%!important;
  height:94%!important;
  max-width:94%!important;
  max-height:94%!important;
  object-fit:contain!important;
  object-position:center!important;
}
.zv6-home-product__body{
  gap:5px!important;
  padding:11px 13px 13px!important;
}
.zv6-home-product__body h3,
.zv6-home-product.is-featured .zv6-home-product__body h3{
  margin:0!important;
  font-size:16px!important;
  line-height:1.08!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
}
.zv6-home-product__price{
  font-size:11px!important;
}
.zv6-home-product__quick{
  margin-top:1px!important;
}

/* ---------- CART: recommendations never float behind totals ---------- */
body.woocommerce-cart .act-wc__main::after,
body.woocommerce-cart .woocommerce::after{
  content:""!important;
  display:block!important;
  clear:both!important;
}
body.woocommerce-cart .zv-commerce-recos{
  clear:both!important;
  width:100%!important;
  max-width:100%!important;
  float:none!important;
  position:relative!important;
  z-index:1!important;
  padding-top:34px!important;
  margin-top:36px!important;
}
body.woocommerce-cart .cart-collaterals{
  z-index:3!important;
}

/* ---------- CHECKOUT: identity above, delivery below ---------- */
.woocommerce-checkout .zv-release-hidden-field,
.woocommerce-checkout .zv-release-billing-source,
.woocommerce-checkout .zv-release-shipping-source{
  display:none!important;
}
.woocommerce-checkout .woocommerce-shipping-fields>h3{
  display:none!important;
}
.woocommerce-checkout .shipping_address{
  display:block!important;
}
.woocommerce-checkout .shipping_address::before{
  content:"Datos de envío";
  display:block;
  margin:0 0 18px;
  color:#332c27;
  font:500 29px/1 "Cormorant Garamond",serif;
  letter-spacing:-.025em;
}
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px 16px!important;
  align-items:start!important;
}
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .form-row{
  width:100%!important;
  float:none!important;
  clear:none!important;
  margin:0!important;
}
.woocommerce-checkout #shipping_department_field{
  grid-column:1!important;
}
.woocommerce-checkout #shipping_state_field{
  grid-column:2!important;
}
.woocommerce-checkout #shipping_address_1_field,
.woocommerce-checkout #shipping_address_2_field{
  grid-column:1 / -1!important;
}
.woocommerce-checkout #shipping_department,
.woocommerce-checkout #shipping_state,
.woocommerce-checkout #shipping_address_1,
.woocommerce-checkout #shipping_address_2{
  width:100%!important;
  min-height:52px!important;
  border:1px solid rgba(184,141,51,.17)!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 8px 22px rgba(54,43,33,.035)!important;
  color:#4f4741!important;
}
.woocommerce-checkout .zv-release-shipping-note{
  margin-top:16px!important;
  padding:14px 15px!important;
  border:1px solid rgba(184,141,51,.17)!important;
  border-radius:16px!important;
  background:#fffaf3!important;
}
.woocommerce-checkout .zv-release-shipping-note strong,
.woocommerce-checkout .zv-release-shipping-note span{
  display:block!important;
}
.woocommerce-checkout .zv-release-shipping-note strong{
  margin-bottom:5px!important;
  color:#8d6724!important;
  font:700 9px/1.2 "Manrope",sans-serif!important;
  text-transform:uppercase!important;
  letter-spacing:.08em!important;
}
.woocommerce-checkout .zv-release-shipping-note span{
  color:#7a6f65!important;
  font:500 9px/1.55 "Manrope",sans-serif!important;
}
.woocommerce-checkout .zv-release-coverage-status{
  grid-column:1 / -1!important;
  margin:0!important;
  padding:10px 12px!important;
  border-radius:13px!important;
  background:#f9f5ed!important;
  color:#806b49!important;
  font:600 8px/1.45 "Manrope",sans-serif!important;
}
.woocommerce-checkout .zv-release-coverage-status.is-warning{
  background:#fff5f1!important;
  color:#9a604c!important;
}

@media(max-width:920px){
  .zv6-home-store__panel{grid-template-columns:1fr!important}
  .zv6-home-store__visual{min-height:430px!important}
  .zv6-home-store__product-grid{min-height:0!important}
}

@media(max-width:720px){
  .zv6-home-store__product-grid{
    grid-template-columns:1fr 1fr!important;
    grid-template-rows:auto!important;
  }
  .zv6-home-product__media,
  .zv6-home-product.is-featured .zv6-home-product__media{
    height:130px!important;
    min-height:130px!important;
  }
  .zv6-home-product__body h3,
  .zv6-home-product.is-featured .zv6-home-product__body h3{
    font-size:14px!important;
  }
  .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper{
    grid-template-columns:1fr!important;
  }
  .woocommerce-checkout #shipping_department_field,
  .woocommerce-checkout #shipping_state_field,
  .woocommerce-checkout #shipping_address_1_field,
  .woocommerce-checkout #shipping_address_2_field{
    grid-column:1!important;
  }
}
