/* Zimi Distribution Ltd. - card and button layout fixes (7 Nov 2026).
   Loaded on every front-end page after the other plugin styles.
   Covers both card designs: shop / category / brand / related products (Woostify loop: ul.products li.product)
   and the Elementor loop-grid cards on the home and brand pages (.zdl-product-card). */

/* ---------- 1. Wishlist heart: same corner, same size, same look on every card ---------- */
.zdl-product-card .zdl-wish,
ul.products li.product .loop-wrapper-wishlist{position:absolute!important;top:8px!important;right:8px!important;bottom:auto!important;left:auto!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;z-index:3}
.zdl-product-card .zdl-wish .tinv-wraper,
ul.products li.product .loop-wrapper-wishlist .tinv-wraper{margin:0!important;padding:0!important;width:auto!important}
.zdl-product-card .zdl-wish .tinvwl_add_to_wishlist_button,
ul.products li.product .loop-wrapper-wishlist .tinvwl_add_to_wishlist_button{display:flex!important;align-items:center;justify-content:center;width:34px!important;height:34px!important;min-width:0;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:#fff!important;box-shadow:0 4px 12px rgba(31,58,120,.16)!important;font-size:0!important;line-height:0!important}
.zdl-product-card .zdl-wish .tinvwl_add_to_wishlist_button .tinvwl_add_to_wishlist-text,
ul.products li.product .loop-wrapper-wishlist .tinvwl_add_to_wishlist_button .tinvwl_add_to_wishlist-text{display:none!important}
.zdl-product-card .zdl-wish .tinvwl_add_to_wishlist_button:before,
ul.products li.product .loop-wrapper-wishlist .tinvwl_add_to_wishlist_button:before{margin:0!important;font-size:17px!important;line-height:1!important;color:#3C66BE!important}
.zdl-product-card .zdl-wish .tinvwl-tooltip,ul.products li.product .loop-wrapper-wishlist .tinvwl-tooltip{display:none!important}

/* ---------- 2. Shop / category / brand / related cards (Woostify loop) ---------- */
/* the theme adds a second "Add to Wishlist" text row under the button; the heart on the picture is the one to keep */
ul.products li.product .product-loop-meta .tinv-wraper{display:none!important}
/* price and size chips line up with the title (left), not centred */
ul.products li.product .product-loop-meta,
ul.products li.product .product-loop-meta .animated-meta{text-align:left!important}
ul.products li.product .product-loop-meta .animated-meta{align-items:stretch!important}
ul.products li.product .product-loop-meta .price{justify-content:flex-start!important;text-align:left!important;margin:0!important}
ul.products li.product .zdl-chips{justify-content:flex-start!important;margin:0!important}
/* the button label must stay on one line inside the button (the theme's 28px line-height made it wrap and spill out) */
ul.products li.product .loop-add-to-cart-btn{white-space:nowrap!important;line-height:1.2!important;height:auto!important;min-height:42px!important;padding:0 12px!important;gap:6px!important;border-radius:999px!important;text-align:center!important;overflow:hidden}
ul.products li.product .loop-add-to-cart-btn .woostify-svg-icon{display:inline-flex!important;flex:0 0 auto;align-items:center;margin:0!important}

/* ---------- 3. Home / brand loop-grid cards (Elementor loop item) ---------- */
.zdl-product-card .zdl-product-card__cta a.elementor-button{display:flex!important;align-items:center;justify-content:center;white-space:nowrap!important;line-height:1.2!important;min-height:40px;padding:0 12px!important;border-radius:999px!important;font-size:13px;font-weight:600;text-align:center;width:100%}
.zdl-product-card .zdl-product-card__cta a.elementor-button .elementor-button-content-wrapper{display:inline-flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:6px}
.zdl-product-card .zdl-product-card__cta a.elementor-button .elementor-button-icon{display:inline-flex;margin:0!important}
.zdl-product-card .zdl-product-card__cta a.elementor-button .elementor-button-text{white-space:nowrap;line-height:1.2}
/* same button logic as the shop cards: Add to cart = solid, Choose size = outline */
.zdl-product-card .zdl-product-card__cta a.add_to_cart_button{background:#3C66BE!important;border:1.5px solid #3C66BE!important;color:#fff!important}
.zdl-product-card .zdl-product-card__cta a.add_to_cart_button:hover{background:#2F55A8!important;border-color:#2F55A8!important;color:#fff!important}
.zdl-product-card .zdl-product-card__cta a.add_to_cart_button svg,.zdl-product-card .zdl-product-card__cta a.add_to_cart_button svg path{fill:#fff!important}
.zdl-product-card .zdl-product-card__cta a.elementor-button:not(.add_to_cart_button){background:#fff!important;border:1.5px solid #3C66BE!important;color:#3C66BE!important}
.zdl-product-card .zdl-product-card__cta a.elementor-button:not(.add_to_cart_button):hover{background:#3C66BE!important;color:#fff!important}
.zdl-product-card .zdl-product-card__cta a.elementor-button:not(.add_to_cart_button) svg,.zdl-product-card .zdl-product-card__cta a.elementor-button:not(.add_to_cart_button) svg path{fill:currentColor!important}

/* ---------- 4. Small phones ---------- */
@media(max-width:480px){
 .zdl-product-card .zdl-wish,ul.products li.product .loop-wrapper-wishlist{top:6px!important;right:6px!important}
 .zdl-product-card .zdl-wish .tinvwl_add_to_wishlist_button,ul.products li.product .loop-wrapper-wishlist .tinvwl_add_to_wishlist_button{width:30px!important;height:30px!important}
 .zdl-product-card .zdl-wish .tinvwl_add_to_wishlist_button:before,ul.products li.product .loop-wrapper-wishlist .tinvwl_add_to_wishlist_button:before{font-size:15px!important}
 ul.products li.product .loop-add-to-cart-btn{min-height:40px!important;padding:0 8px!important;font-size:12.5px!important}
 .zdl-product-card .zdl-product-card__cta a.elementor-button{padding:0 8px!important;font-size:12.5px}
}
@media(max-width:380px){
 ul.products li.product .loop-add-to-cart-btn .woostify-svg-icon,
 .zdl-product-card .zdl-product-card__cta a.elementor-button .elementor-button-icon{display:none!important}
}