/* Han AvMarket 1.2.6 */

/* Empty cart: both the classic template and WooCommerce Cart Block show only
   the single empty-cart message. */
.woocommerce-cart .hanav-block-empty-cart,
.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
    width:100%;
    max-width:100%;
    margin:0!important;
    padding:0!important;
}
.woocommerce-cart .wp-block-woocommerce-empty-cart-block > *:not(.hanav-cart-empty-only),
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-separator,
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-heading:not(.wc-block-cart__empty-cart__title),
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-new,
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid,
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-collection {
    display:none!important;
}
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title {
    display:block!important;
    max-width:760px;
    margin:52px auto 90px!important;
    min-height:180px;
    border:1px solid var(--hanav-border)!important;
    border-radius:8px!important;
    background:#fff!important;
    color:var(--hanav-text)!important;
    text-align:center;
    align-content:center;
    font-family:inherit!important;
    font-size:20px!important;
    line-height:1.5!important;
    font-weight:400!important;
    padding:40px 20px!important;
}
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title:before,
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title:after {
    display:none!important;
    content:none!important;
}

@media (max-width:767px) {
    /* Homepage product carousel is a true one-card horizontal slider. */
    .hanav-home-products.hanav-mobile-mode-carousel.hanav-carousel-component {
        position:relative;
        display:block!important;
        min-width:0;
        overflow:visible!important;
    }
    .hanav-home-products.hanav-mobile-mode-carousel .hanav-carousel-viewport {
        position:relative;
        width:100%;
        max-width:100%;
        overflow:hidden!important;
        touch-action:pan-y;
    }
    .hanav-home-products.hanav-mobile-mode-carousel .hanav-carousel-track {
        display:flex!important;
        grid-template-columns:none!important;
        flex-wrap:nowrap!important;
        gap:12px!important;
        width:100%!important;
        max-width:none!important;
        margin:0!important;
        padding:0!important;
        overflow:visible!important;
        will-change:transform;
    }
    .hanav-home-products.hanav-mobile-mode-carousel .hanav-carousel-track > li.product {
        display:flex!important;
        flex:0 0 100%!important;
        width:100%!important;
        max-width:100%!important;
        min-width:100%!important;
        margin:0!important;
        float:none!important;
        scroll-snap-align:none!important;
    }
    .hanav-home-products.hanav-mobile-mode-carousel .hanav-carousel-track > li.product > a.woocommerce-LoopProduct-link {
        width:100%;
    }
    .hanav-home-products.hanav-mobile-mode-carousel .hanav-carousel-track > li.product a img {
        width:100%!important;
        height:260px!important;
        max-height:260px!important;
        object-fit:contain!important;
        object-position:center!important;
    }
    .hanav-home-products.hanav-mobile-mode-carousel .hanav-carousel-controls {
        position:static;
        display:flex!important;
        min-height:34px;
        margin-top:12px!important;
        align-items:center;
        justify-content:center;
    }
    .hanav-home-products.hanav-mobile-mode-carousel .hanav-carousel-prev,
    .hanav-home-products.hanav-mobile-mode-carousel .hanav-carousel-next {
        position:absolute;
        z-index:7;
        top:calc(50% - 24px);
        width:42px!important;
        height:42px!important;
        margin:0!important;
        border:1px solid var(--hanav-border)!important;
        background:rgba(255,255,255,.96)!important;
        box-shadow:0 5px 18px rgba(0,0,0,.08);
    }
    .hanav-home-products.hanav-mobile-mode-carousel .hanav-carousel-prev { left:8px; }
    .hanav-home-products.hanav-mobile-mode-carousel .hanav-carousel-next { right:8px; }
    .hanav-home-products.hanav-mobile-mode-carousel .hanav-carousel-prev:disabled,
    .hanav-home-products.hanav-mobile-mode-carousel .hanav-carousel-next:disabled {
        opacity:.28!important;
    }
    .hanav-home-products.hanav-mobile-mode-carousel .hanav-carousel-dots {
        display:flex;
        align-items:center;
        justify-content:center;
        min-height:22px;
    }
    .woocommerce-cart .hanav-cart-empty-only,
    .woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title {
        min-height:140px!important;
        margin:28px auto 58px!important;
        font-size:17px!important;
        padding:30px 16px!important;
    }
}

/* Han Av 4.0.7 — sale badge cleanup */
.woocommerce ul.products li.product .hanav-loop-sale-badges{
  left:10px;top:10px;max-width:calc(100% - 58px);z-index:5;
}
.woocommerce ul.products li.product .hanav-loop-sale-badges .hanav-badge-sale{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:24px;padding:0 9px;border-radius:4px;
  background:var(--hanav-primary);color:#fff;
  font-size:9px;font-weight:600;line-height:1;letter-spacing:0;
  box-shadow:none;
}
/* Defensive rule: product cards never stack legacy/manual badges. */
.woocommerce ul.products li.product .hanav-product-badges:not(.hanav-loop-sale-badges),
.woocommerce ul.products li.product .hanav-gif-badge{display:none!important}

/* Single product WooCommerce sale flash: compact rectangle instead of circle. */
.single-product div.product span.onsale{
  left:14px!important;right:auto!important;top:14px!important;margin:0!important;
  min-width:0!important;min-height:0!important;height:auto!important;
  padding:8px 11px!important;border-radius:4px!important;
  background:var(--hanav-primary)!important;color:#fff!important;
  font-size:10px!important;font-weight:600!important;line-height:1!important;
  letter-spacing:0!important;text-transform:none!important;
  box-shadow:none!important;z-index:8!important;
}
@media(max-width:767px){
  .woocommerce ul.products li.product .hanav-loop-sale-badges{left:6px;top:6px}
  .woocommerce ul.products li.product .hanav-loop-sale-badges .hanav-badge-sale{min-height:21px;padding:0 7px;font-size:8px}
  .single-product div.product span.onsale{left:8px!important;top:8px!important;padding:7px 9px!important;font-size:9px!important}
}

