/* =========================================
   PRODUCT CARD
========================================= */

body .e-loop-item.product .custom-img-hover-box {
    position: relative !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 13px !important;

    height: 100% !important;
    min-width: 0;
    padding: 12px !important;

    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid var(--garnet-border) !important;
    border-radius: 20px !important;

    box-shadow:
        0 10px 28px rgba(24, 39, 45, 0.06),
        0 2px 7px rgba(24, 39, 45, 0.03);

    overflow: hidden !important;

    transition:
        transform 0.32s ease,
        border-color 0.32s ease,
        box-shadow 0.32s ease !important;
}

/* خط رنگی بالای کارت */
body .e-loop-item.product .custom-img-hover-box::before {
    content: "";
    position: absolute;
    top: 0;
    right: 20px;
    left: 20px;
    z-index: 3;

    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--garnet-accent),
        var(--garnet-primary),
        transparent
    );

    opacity: 0;
    transition: opacity 0.3s ease;
}

body .e-loop-item.product .custom-img-hover-box:hover {
    border-color: rgba(77, 118, 132, 0.55) !important;

    transform: translateY(-6px);

    box-shadow:
        0 20px 42px rgba(33, 78, 96, 0.14),
        0 5px 14px rgba(24, 39, 45, 0.05);
}

body .e-loop-item.product .custom-img-hover-box:hover::before {
    opacity: 1;
}


/* =========================================
   PRODUCT IMAGE
========================================= */

body .e-loop-item.product .loopfimg {
    order: 1;

    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;

    background: linear-gradient(
        145deg,
        #ffffff,
        var(--garnet-bg)
    );

    border: 1px solid rgba(211, 220, 223, 0.7);
    border-radius: 16px !important;

    overflow: hidden !important;
}

body .e-loop-item.product .loopfimg a {
    display: block !important;
    width: 100% !important;
    overflow: hidden;
    border-radius: 13px;
}

body .e-loop-item.product .loopfimg img {
    display: block !important;

    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: contain !important;

    border-radius: 13px !important;

    transform: scale(1) !important;
    transition: transform 0.45s cubic-bezier(.2, .7, .2, 1) !important;
}

/* جلوگیری از ترنزیشن Grow پیش‌فرض المنتور */
body .e-loop-item.product
.loopfimg img.elementor-animation-grow:hover {
    transform: scale(1.035) !important;
}

body .e-loop-item.product .custom-img-hover-box:hover
.loopfimg img {
    transform: scale(1.035) !important;
}


/* =========================================
   QUICK VIEW EYE
========================================= */

body .e-loop-item.product .imghov1 {
    position: absolute !important;
    top: 25px;
    left: 25px;
    z-index: 6;

    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;

    opacity: 0 !important;
    visibility: hidden !important;

    transform: translateY(8px) scale(0.92);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease !important;
}

body .e-loop-item.product .imghov1 .elementor-icon-wrapper {
    display: block;
    width: 42px;
    height: 42px;
}

body .e-loop-item.product .imghov1 .elementor-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;

    color: #ffffff !important;
    background: var(--garnet-primary) !important;

    border: 1px solid rgba(255, 255, 255, 0.65) !important;
    border-radius: 12px !important;

    box-shadow: 0 9px 22px rgba(33, 78, 96, 0.25);
}

body .e-loop-item.product .imghov1 .elementor-icon svg {
    width: 17px !important;
    height: 17px !important;
    fill: currentColor !important;
}

body .e-loop-item.product .custom-img-hover-box:hover
.imghov1 {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1);
}


/* =========================================
   PRODUCT TITLE
========================================= */

body .e-loop-item.product
.elementor-widget-woocommerce-product-title {
    order: 2;

    min-height: 58px;
    margin: 0 !important;
    padding: 4px 7px 0 !important;
}

body .e-loop-item.product .product_title {
    margin: 0 !important;

    color: var(--garnet-text) !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    line-height: 1.75 !important;
    text-align: center !important;
}

body .e-loop-item.product .product_title a {
    color: inherit !important;
    transition: color 0.25s ease;
}

body .e-loop-item.product .custom-img-hover-box:hover
.product_title a {
    color: var(--garnet-primary) !important;
}


/* =========================================
   EMPTY PRICE
========================================= */

body .e-loop-item.product
.elementor-widget-woocommerce-product-price:has(.price:empty) {
    display: none !important;
}

body .e-loop-item.product
.elementor-widget-woocommerce-product-price {
    order: 3;
}


/* =========================================
   MORE INFORMATION BUTTON
========================================= */

body .e-loop-item.product .imghov0 {
    order: 4;

    position: relative !important;
    width: 100% !important;
    margin: auto 0 0 !important;
    padding: 0 !important;

    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

body .e-loop-item.product .imghov0,
body .e-loop-item.product .imghov0 * {
    visibility: visible !important;
}

body .e-loop-item.product .imghov0 .button {
    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 100% !important;
    min-height: 43px;
    padding: 11px 15px !important;

    color: var(--garnet-primary) !important;
    background: rgba(33, 78, 96, 0.06) !important;

    border: 1px solid rgba(33, 78, 96, 0.22) !important;
    border-radius: 12px !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease !important;
}

body .e-loop-item.product .custom-img-hover-box:hover
.imghov0 .button {
    color: #ffffff !important;
    background: var(--garnet-primary) !important;
    border-color: var(--garnet-primary) !important;

    box-shadow: 0 9px 20px rgba(33, 78, 96, 0.18);
}



/* Keep every catalog card aligned with the approved homepage reference. */
body .e-loop-item.product .custom-img-hover-box::before,
body .e-loop-item.product .custom-img-hover-box::after {content:none!important;display:none!important}
body .e-loop-item.product {min-width:0}
body .elementor .e-loop-item.product {border:0!important;box-shadow:none!important;background:transparent!important;overflow:visible!important;padding:0!important;transform:none!important}
body .e-loop-item.product .custom-img-hover-box > .elementor-widget {min-width:0;max-width:100%}
body .e-loop-item.product .custom-img-hover-box .product_title,
body .e-loop-item.product .custom-img-hover-box .product_title a {display:block!important;width:100%!important;font-family:inherit!important;border:0!important;letter-spacing:normal}
body .e-loop-item.product .custom-img-hover-box .product_title {display:block!important;width:100%!important}
body .e-loop-item.product .custom-img-hover-box .product_title::before,
body .e-loop-item.product .custom-img-hover-box .product_title::after {content:none!important;display:none!important}
body .e-loop-item.product .imghov0 .cart,
body .e-loop-item.product .imghov0 .elementor-add-to-cart {margin:0!important;width:100%!important}
body .e-loop-item.product .imghov0 .button:focus-visible,
body .za-products__card .za-products__link:focus-visible,
body li.ga-native-card > .button:focus-visible {outline:2px solid var(--garnet-primary,#214e60);outline-offset:3px}
body .za-products .za-products__card,
body.woocommerce ul.products li.product.ga-native-card,
body .woocommerce ul.products li.product.ga-native-card {
  box-sizing:border-box;display:flex!important;flex-direction:column!important;gap:13px!important;
  padding:12px!important;min-width:0;background:rgba(255,255,255,.98)!important;
  border:1px solid var(--garnet-border,#d3dcdf)!important;border-radius:20px!important;
  box-shadow:0 10px 28px rgba(24,39,45,.06),0 2px 7px rgba(24,39,45,.03)!important;
  overflow:hidden;transition:transform .32s ease,border-color .32s ease,box-shadow .32s ease!important;
}
body .za-products .za-products__card .za-products__image,
body li.ga-native-card .ga-card-media {
  box-sizing:border-box;display:block!important;position:relative!important;width:100%!important;
  margin:0!important;padding:10px!important;aspect-ratio:auto!important;
  background:linear-gradient(145deg,#fff,var(--garnet-bg,#f5f7f6))!important;
  border:1px solid rgba(211,220,223,.7)!important;border-radius:16px!important;overflow:hidden;
}
body .za-products .za-products__card .za-products__image img,
body li.ga-native-card .ga-card-media img {
  display:block!important;width:100%!important;height:auto!important;aspect-ratio:1/1;
  object-fit:contain!important;margin:0!important;border-radius:13px!important;
  transform:scale(1)!important;transition:transform .45s ease!important;
}
body .za-products .za-products__card .za-products__body {
  display:flex!important;flex-direction:column!important;flex:1;gap:13px;padding:0!important;min-width:0;
}
body .za-products .za-products__card .za-products__name,
body .za-products .za-products__card .za-products__name a,
body li.ga-native-card .woocommerce-loop-product__title {
  box-sizing:border-box;position:static!important;min-height:58px;margin:0!important;padding:4px 7px 0!important;
  color:var(--garnet-text,#18272d)!important;font-family:inherit!important;
  font-size:15.5px!important;font-weight:700!important;line-height:1.75!important;
  text-align:center!important;border:0!important;letter-spacing:normal;overflow-wrap:anywhere;
}
body .za-products .za-products__card .za-products__name a {display:block;min-height:0;padding:0!important}
body .za-products .za-products__card .za-products__name::before,
body .za-products .za-products__card .za-products__name::after {content:none!important;display:none!important}
body li.ga-native-card > .woocommerce-loop-product__link {
  display:flex!important;flex-direction:column;gap:13px;min-width:0;flex:1;
}
body .za-products .za-products__card .za-products__link,
body li.ga-native-card > .button {
  box-sizing:border-box;display:flex!important;align-items:center;justify-content:center;
  width:100%!important;min-height:43px;margin:auto 0 0!important;padding:11px 15px!important;
  color:var(--garnet-primary,#214e60)!important;background:rgba(33,78,96,.06)!important;
  border:1px solid rgba(33,78,96,.22)!important;border-radius:12px!important;
  font-family:inherit!important;font-size:13px!important;font-weight:700!important;line-height:1.4!important;
  text-decoration:none!important;opacity:1!important;visibility:visible!important;
  transition:color .25s ease,background-color .25s ease,border-color .25s ease!important;
}
body .za-products .za-products__card .za-products__link > span[aria-hidden] {display:none!important}
body .za-products .za-products__viewport {padding-top:8px;padding-bottom:18px}
@media(hover:hover) and (pointer:fine) {
  body .za-products .za-products__card:hover,
  body li.ga-native-card:hover {transform:translateY(-6px)!important;border-color:rgba(77,118,132,.55)!important;
    box-shadow:0 20px 42px rgba(33,78,96,.14),0 5px 14px rgba(24,39,45,.05)!important}
  body .za-products .za-products__card:hover .za-products__image img,
  body li.ga-native-card:hover .ga-card-media img {transform:scale(1.035)!important}
  body .za-products .za-products__card:hover .za-products__link,
  body li.ga-native-card:hover > .button {color:#fff!important;background:var(--garnet-primary,#214e60)!important;border-color:var(--garnet-primary,#214e60)!important}
}
body .elementor-46 .garnet-section-head > .elementor-widget-heading a::after {content:none!important;display:none!important}
body .elementor-46 .garnet-section-head .ga-view-all-arrow {width:18px;height:18px;flex:0 0 18px;stroke:currentColor;fill:none}
@media(max-width:767px) {
  body .elementor-46 .garnet-section-head {grid-template-columns:minmax(0,1fr) 44px!important;align-items:center!important;gap:12px!important}
  body .elementor-46 .garnet-section-head > .elementor-widget-heading {width:44px!important;min-width:0}
  body .elementor-46 .garnet-section-head > .elementor-widget-heading a {
    box-sizing:border-box;width:44px!important;height:44px!important;min-height:44px!important;
    display:flex!important;justify-content:center;align-items:center;padding:0!important;gap:0!important;
    border-radius:50%!important;transform:none!important;
  }
  body .elementor-46 .garnet-section-head .ga-view-all-label {
    position:absolute!important;width:1px!important;height:1px!important;padding:0!important;
    margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
  }
  body .elementor-46 .garnet-section-head .ga-view-all-arrow {width:20px;height:20px;flex-basis:20px}
  body .e-loop-item.product .custom-img-hover-box,
  body .za-products .za-products__card,
  body.woocommerce ul.products li.product.ga-native-card,
  body .woocommerce ul.products li.product.ga-native-card {gap:9px!important;padding:8px!important;border-radius:15px!important}
  body .e-loop-item.product .loopfimg,
  body .za-products .za-products__card .za-products__image,
  body li.ga-native-card .ga-card-media {padding:5px!important;border-radius:12px!important}
  body .e-loop-item.product .loopfimg a,
  body .e-loop-item.product .loopfimg img,
  body .za-products .za-products__card .za-products__image img,
  body li.ga-native-card .ga-card-media img {border-radius:9px!important}
  body .e-loop-item.product .elementor-widget-woocommerce-product-title,
  body .za-products .za-products__card .za-products__name,
  body li.ga-native-card .woocommerce-loop-product__title {min-height:62px;padding:2px 3px 0!important}
  body .e-loop-item.product .product_title,
  body .za-products .za-products__card .za-products__name,
  body .za-products .za-products__card .za-products__name a,
  body li.ga-native-card .woocommerce-loop-product__title {font-size:12px!important;line-height:1.65!important}
  body .e-loop-item.product .imghov0 .button,
  body .za-products .za-products__card .za-products__link,
  body li.ga-native-card > .button {min-height:40px;padding:9px 6px!important;border-radius:9px!important;font-size:11px!important}
  body .za-products .za-products__card .za-products__body {gap:9px}
}
@media(hover:none),(pointer:coarse),(prefers-reduced-motion:reduce) {
  body .e-loop-item.product .custom-img-hover-box:hover,
  body .za-products .za-products__card:hover,
  body li.ga-native-card:hover {transform:none!important}
  body .e-loop-item.product .custom-img-hover-box:hover .loopfimg img,
  body .za-products .za-products__card:hover .za-products__image img,
  body li.ga-native-card:hover .ga-card-media img {transform:none!important}
}
@media(prefers-reduced-motion:reduce) {
  body .e-loop-item.product .custom-img-hover-box,
  body .za-products .za-products__card,body li.ga-native-card,
  body .e-loop-item.product .loopfimg img {transition:none!important}
}
