/* Template 8 ONLY — Nest product cards (loads last to beat commonall + inline scale) */
body.al_body_template_eight .nest-product-card.product-card-box,
body.al_body_template_eight .nest-product-card.product-cart-wrap,
body.al_body_template_eight .al_box_third_template.nest-product-card.product-card-box,
body.al_body_template_eight .render_full_featured_products .nest-product-card.product-card-box.position-relative.al_box_third_template,
body.al_body_template_eight .render_full_featured_products .nest-product-card.product-card-box.position-relative.al_box_third_template.al,
body.al_body_template_eight .product-m .nest-product-card.product-card-box {
    position: relative !important;
    transform: translateY(0) !important;
    -webkit-transform: translateY(0) !important;
    background: #fff !important;
    background-color: #fff !important;
    border: 1px solid #e6ece9 !important;
    border-radius: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow:
        0 2px 4px rgba(37, 61, 78, 0.03),
        0 10px 28px rgba(37, 61, 78, 0.07) !important;
    /* keep visible so card shadow is not clipped */
    overflow: visible !important;
    min-height: 430px !important;
    max-height: none !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
    transition: transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease !important;
}

/* Same hover for every nest card */
body.al_body_template_eight .nest-product-card.product-card-box:hover,
body.al_body_template_eight .nest-product-card.product-cart-wrap:hover,
body.al_body_template_eight .al_box_third_template.nest-product-card:hover,
body.al_body_template_eight .product-m .nest-product-card.product-card-box:hover,
body.al_body_template_eight .render_full_featured_products .nest-product-card.product-card-box:hover {
    transform: translateY(-8px) !important;
    -webkit-transform: translateY(-8px) !important;
    box-shadow:
        0 8px 16px rgba(59, 183, 126, 0.08),
        0 20px 40px rgba(37, 61, 78, 0.12) !important;
    border: 1px solid #b6e4c8 !important;
}

body.al_body_template_eight .nest-product-card .product-img-action-wrap {
    position: relative !important;
    background:
        radial-gradient(ellipse at 50% 20%, rgba(222, 249, 236, 0.55) 0%, transparent 62%),
        linear-gradient(180deg, #f4faf7 0%, #ffffff 78%) !important;
    padding: 24px 20px 8px !important;
    max-height: 340px !important;
    flex: 0 0 auto !important;
    overflow: hidden !important;
    border-radius: 20px 20px 0 0 !important;
}

body.al_body_template_eight .nest-product-card .product-img {
    position: relative !important;
    height: 210px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(37, 61, 78, 0.04) !important;
}

body.al_body_template_eight .nest-product-card .product-img a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
}

body.al_body_template_eight .nest-product-card .product-img a::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, transparent 55%, rgba(37, 61, 78, 0.04) 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    pointer-events: none !important;
}

body.al_body_template_eight .nest-product-card:hover .product-img a::after {
    opacity: 1 !important;
}

body.al_body_template_eight .nest-product-card .product-img a img,
body.al_body_template_eight .nest-product-card .product-img img.default-img {
    width: 100% !important;
    height: 100% !important;
    max-height: 210px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 10px !important;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease !important;
}

body.al_body_template_eight .nest-product-card:hover .product-img-zoom a img,
body.al_body_template_eight .nest-product-card:hover .product-img a img {
    transform: scale3d(1.09, 1.09, 1.09) translateZ(0) !important;
    filter: saturate(1.05) !important;
}

body.al_body_template_eight .nest-product-card .product-action-1 {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -42%) scale(0.92) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 9 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid #bce3c9 !important;
    border-radius: 999px !important;
    display: flex !important;
    box-shadow: 0 12px 30px rgba(37, 61, 78, 0.14) !important;
    transition: all 0.28s ease 0s !important;
    padding: 4px !important;
    backdrop-filter: blur(6px) !important;
}

body.al_body_template_eight .nest-product-card:hover .product-action-1 {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

body.al_body_template_eight .nest-product-card .product-action-1 .wishlist_btn,
body.al_body_template_eight .nest-product-card .product-action-1 .action-btn {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #253D4E !important;
    border-radius: 50% !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

body.al_body_template_eight .nest-product-card .product-action-1 .wishlist_btn:hover,
body.al_body_template_eight .nest-product-card .product-action-1 .action-btn:hover {
    background: #def9ec !important;
    transform: scale(1.06) !important;
}

body.al_body_template_eight .nest-product-card .product-badges.product-badges-position {
    position: absolute !important;
    left: 14px !important;
    top: 14px !important;
    z-index: 9 !important;
    display: flex !important;
}

body.al_body_template_eight .nest-product-card .product-badges span {
    display: inline-block !important;
    font-size: 12px !important;
    line-height: 1 !important;
    border-radius: 999px !important;
    color: #fff !important;
    padding: 9px 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em !important;
    box-shadow:
        0 4px 12px rgba(59, 168, 224, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

body.al_body_template_eight .nest-product-card .product-badges span.sale {
    background: linear-gradient(135deg, #79cff5 0%, #3aa8e0 55%, #2f97cf 100%) !important;
}
body.al_body_template_eight .nest-product-card .product-badges span.new {
    background: linear-gradient(135deg, #4bcf93 0%, #3BB77E 55%, #2f9e6b 100%) !important;
    box-shadow:
        0 4px 12px rgba(59, 183, 126, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}
body.al_body_template_eight .nest-product-card .product-badges span.hot {
    background: linear-gradient(135deg, #ff6b9a 0%, #f74b81 55%, #e2366c 100%) !important;
    box-shadow:
        0 4px 12px rgba(247, 75, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

body.al_body_template_eight .nest-product-card .product-content-wrap {
    padding: 14px 18px 18px !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
    text-align: left !important;
    position: relative !important;
    z-index: 2 !important;
    border-radius: 0 0 20px 20px !important;
    overflow: hidden !important;
}

body.al_body_template_eight .nest-product-card .product-category {
    margin-bottom: 8px !important;
}

body.al_body_template_eight .nest-product-card .product-category span {
    display: inline-block !important;
    color: #6f8f7f !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    background: #eef8f2 !important;
    border: 1px solid #d7efe2 !important;
    border-radius: 999px !important;
    padding: 4px 10px !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.al_body_template_eight .nest-product-card .nest-product-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    margin: 0 0 12px !important;
    line-height: 1.35 !important;
    min-height: 44px !important;
    color: #1f3344 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
    text-align: left !important;
    letter-spacing: -0.01em !important;
}

body.al_body_template_eight .nest-product-card .nest-product-title a {
    color: #1f3344 !important;
    text-decoration: none !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    transition: color 0.2s ease !important;
}

body.al_body_template_eight .nest-product-card .nest-product-title a:hover {
    color: var(--theme-deafult) !important;
}

body.al_body_template_eight .nest-product-card .product-rate-cover {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    gap: 2px !important;
    min-height: 20px !important;
}

body.al_body_template_eight .nest-product-card .product-rate {
    background: #eceef1 !important;
    height: 8px !important;
    width: 78px !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

body.al_body_template_eight .nest-product-card .product-rating {
    height: 8px !important;
    background: linear-gradient(90deg, #ffc56d 0%, #ff9f1a 100%) !important;
    border-radius: 999px !important;
    box-shadow: 0 0 8px rgba(255, 159, 26, 0.35) !important;
}

body.al_body_template_eight .nest-product-card .font-small.ml-5.text-muted {
    font-size: 12px !important;
    margin-left: 8px !important;
    color: #8b95a1 !important;
    font-weight: 600 !important;
}

body.al_body_template_eight .nest-product-card .product-card-bottom {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: auto !important;
    padding: 14px 0 0 !important;
    border-top: 1px solid #eaf1ed !important;
}

body.al_body_template_eight .nest-product-card .product-price {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 2px 0 !important;
    min-width: 0 !important;
}

body.al_body_template_eight .nest-product-card .product-price span {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--theme-deafult) !important;
    letter-spacing: -0.02em !important;
    line-height: 1.1 !important;
}

body.al_body_template_eight .nest-product-card .product-price span.old-price,
body.al_body_template_eight .nest-product-card .product-price .old-price {
    font-size: 12px !important;
    color: #a0a8b0 !important;
    font-weight: 500 !important;
    text-decoration: line-through !important;
    margin-left: 7px !important;
    letter-spacing: 0 !important;
}

body.al_body_template_eight .nest-product-card .add-cart {
    flex-shrink: 0 !important;
}

body.al_body_template_eight .nest-product-card .add-cart .add,
body.al_body_template_eight .nest-product-card .add-cart .addCart_btn,
body.al_body_template_eight .nest-product-card .add-cart button.to_cart_btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 10px 16px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #e8fbf1 0%, #def9ec 100%) !important;
    color: var(--theme-deafult) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border: 1px solid #bfe9d2 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    box-shadow: 0 4px 10px rgba(59, 183, 126, 0.12) !important;
    text-transform: none !important;
    cursor: pointer !important;
    transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease !important;
}

body.al_body_template_eight .nest-product-card .add-cart .add i,
body.al_body_template_eight .nest-product-card .add-cart .addCart_btn i,
body.al_body_template_eight .nest-product-card .add-cart button.to_cart_btn i {
    font-size: 13px !important;
}

body.al_body_template_eight .nest-product-card .add-cart .add:hover,
body.al_body_template_eight .nest-product-card .add-cart .addCart_btn:hover,
body.al_body_template_eight .nest-product-card .add-cart button.to_cart_btn:hover {
    background: linear-gradient(180deg, #47c989 0%, #3BB77E 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 10px 20px rgba(59, 183, 126, 0.35) !important;
    transform: translateY(-2px) !important;
}

/* Let card shadows show around carousel slides */
body.al_body_template_eight .product-m.slick-slider,
body.al_body_template_eight .product-m.render_featured_products,
body.al_body_template_eight .render_full_featured_products .product-m,
body.al_body_template_eight section.main-product .product-m,
body.al_body_template_eight section.main-product.render_full_featured_products,
body.al_body_template_eight section.main-product {
    overflow: visible !important;
}

body.al_body_template_eight .product-m .slick-list {
    overflow: visible !important;
    padding: 16px 8px 32px !important;
    margin: -16px -8px -32px !important;
}

body.al_body_template_eight .product-m .slick-track {
    display: flex !important;
    align-items: stretch !important;
    overflow: visible !important;
}

body.al_body_template_eight .product-m .slick-slide {
    height: auto !important;
    display: flex !important;
    overflow: visible !important;
}

body.al_body_template_eight .product-m .slick-slide > div,
body.al_body_template_eight .product-m .slick-slide .col {
    display: flex !important;
    height: 100% !important;
    width: 100% !important;
    overflow: visible !important;
    padding-bottom: 4px !important;
}

@media (max-width: 767px) {
    body.al_body_template_eight .nest-product-card.product-card-box,
    body.al_body_template_eight .nest-product-card.product-cart-wrap,
    body.al_body_template_eight .render_full_featured_products .nest-product-card.product-card-box {
        min-height: 370px !important;
        max-height: none !important;
        border-radius: 16px !important;
    }

    body.al_body_template_eight .nest-product-card.product-card-box:hover,
    body.al_body_template_eight .nest-product-card.product-cart-wrap:hover,
    body.al_body_template_eight .product-m .nest-product-card.product-card-box:hover {
        transform: translateY(-8px) !important;
        -webkit-transform: translateY(-8px) !important;
        box-shadow:
            0 8px 16px rgba(59, 183, 126, 0.08),
            0 20px 40px rgba(37, 61, 78, 0.12) !important;
        border: 1px solid #b6e4c8 !important;
    }

    body.al_body_template_eight .nest-product-card .product-img {
        height: 170px !important;
    }

    body.al_body_template_eight .nest-product-card .product-img a img,
    body.al_body_template_eight .nest-product-card .product-img img.default-img {
        max-height: 170px !important;
    }

    body.al_body_template_eight .nest-product-card .nest-product-title {
        font-size: 14px !important;
        min-height: 38px !important;
    }

    body.al_body_template_eight .nest-product-card .product-price span {
        font-size: 17px !important;
    }

    body.al_body_template_eight .nest-product-card .add-cart .add,
    body.al_body_template_eight .nest-product-card .add-cart .addCart_btn,
    body.al_body_template_eight .nest-product-card .add-cart button.to_cart_btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    body.al_body_template_eight .nest-product-listing .nest-product-card,
    body.al_body_template_eight .outter-fillter-data .nest-product-listing .nest-product-card.product-card-box.position-relative.al_box_third_template.al {
        min-height: 370px !important;
    }
}

/* Listing pages (category / filter AJAX) — equal card size + even spacing */
body.al_body_template_eight .nest-product-listing .row.margin-res {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px !important;
    align-items: stretch !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.al_body_template_eight .nest-product-listing .row.margin-res > .col-xl-12 {
    grid-column: 1 / -1;
}

body.al_body_template_eight .nest-product-listing .nest-listing-card-col,
body.al_body_template_eight .outter-fillter-data .nest-product-listing .nest-listing-card-col,
body.al_body_template_eight .outter-fillter-data .product-wrapper-grid .nest-listing-card-col.col-xl-3.col-md-3.col-6.mt-3 {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.al_body_template_eight .nest-product-listing .nest-product-card,
body.al_body_template_eight .outter-fillter-data .nest-product-listing .nest-product-card.product-card-box.position-relative.al_box_third_template.al {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 430px !important;
    max-height: none !important;
}

body.al_body_template_eight .outter-fillter-data .nest-product-card .media-body,
body.al_body_template_eight .outter-fillter-data .nest-product-card .inner_spacing {
    background: transparent !important;
}

@media (max-width: 991.98px) {
    body.al_body_template_eight .nest-product-listing .row.margin-res {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px !important;
    }
}

@media (max-width: 767.98px) {
    body.al_body_template_eight .nest-product-listing .row.margin-res {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px !important;
    }

    body.al_body_template_eight .nest-product-listing .nest-product-card,
    body.al_body_template_eight .outter-fillter-data .nest-product-listing .nest-product-card.product-card-box.position-relative.al_box_third_template.al {
        min-height: 0 !important;
    }

    body.al_body_template_eight .nest-product-listing .nest-product-card .product-card-bottom {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
}

@media (max-width: 575.98px) {
    body.al_body_template_eight .nest-product-listing .row.margin-res {
        gap: 10px !important;
    }

    body.al_body_template_eight .nest-product-listing .nest-product-card .product-img {
        height: 140px !important;
    }

    body.al_body_template_eight .nest-product-listing .nest-product-card .product-img a img,
    body.al_body_template_eight .nest-product-listing .nest-product-card .product-img img.default-img {
        max-height: 140px !important;
    }

    body.al_body_template_eight .nest-product-listing .nest-product-card .nest-product-title {
        font-size: 13px !important;
        min-height: 36px !important;
        margin-bottom: 8px !important;
    }

    body.al_body_template_eight .nest-product-listing .nest-product-card .product-content-wrap {
        padding: 10px 12px 12px !important;
    }

    body.al_body_template_eight .nest-product-listing .nest-product-card .product-price span {
        font-size: 15px !important;
    }

    body.al_body_template_eight .nest-product-listing .nest-product-card .add-cart .add,
    body.al_body_template_eight .nest-product-listing .nest-product-card .add-cart .addCart_btn,
    body.al_body_template_eight .nest-product-listing .nest-product-card .add-cart button.to_cart_btn {
        padding: 7px 10px !important;
        font-size: 11px !important;
    }
}

/* Similar sidebar cards — same hover language as main cards */
body.al_body_template_eight .nest-product-buy-details .nest-similar-card.product-cart-wrap {
    border: 1px solid #e6ece9 !important;
    border-radius: 16px !important;
    overflow: visible !important;
    box-shadow: 0 8px 22px rgba(37, 61, 78, 0.07) !important;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease !important;
}

body.al_body_template_eight .nest-product-buy-details .nest-similar-card.product-cart-wrap:hover {
    transform: translateY(-8px) !important;
    border-color: #b6e4c8 !important;
    box-shadow:
        0 8px 16px rgba(59, 183, 126, 0.08),
        0 20px 40px rgba(37, 61, 78, 0.12) !important;
}

body.al_body_template_eight .nest-product-buy-details .nest-similar-card .product-img-action-wrap {
    background: linear-gradient(180deg, #f4faf7 0%, #fff 100%) !important;
}

body.al_body_template_eight .nest-product-buy-details .nest-similar-card .product-badges .sale {
    background: linear-gradient(135deg, #79cff5 0%, #3aa8e0 100%) !important;
    border-radius: 999px !important;
    padding: 5px 10px !important;
}

body.al_body_template_eight .nest-product-buy-details .nest-similar-card .product-category span {
    color: #6f8f7f !important;
    font-weight: 700 !important;
}

body.al_body_template_eight .nest-product-buy-details .nest-similar-card .nest-product-title {
    font-weight: 800 !important;
}

body.al_body_template_eight .nest-product-buy-details .nest-similar-card .product-price > span:first-child {
    font-size: 16px !important;
    font-weight: 800 !important;
}

/* All Template 8 — 1 full card on portrait phones below 480px (sliders + listing cols) */
@media (max-width: 480px) and (orientation: portrait) {
    body.al_body_template_eight .p2p_eccomerce_slider_five .slick-list,
    body.al_body_template_eight .p2p_eccomerce_slider .slick-list,
    body.al_body_template_eight .top_rated_slider .slick-list,
    body.al_body_template_eight .product-m .slick-list {
        overflow: hidden !important;
        padding: 8px 0 16px !important;
        margin: 0 !important;
    }

    body.al_body_template_eight .p2p_eccomerce_slider_five .slick-slide > div,
    body.al_body_template_eight .p2p_eccomerce_slider_five .slick-slide .col,
    body.al_body_template_eight .p2p_eccomerce_slider .slick-slide > div,
    body.al_body_template_eight .p2p_eccomerce_slider .slick-slide .col,
    body.al_body_template_eight .top_rated_slider .slick-slide > div,
    body.al_body_template_eight .top_rated_slider .slick-slide .col,
    body.al_body_template_eight .product-m .slick-slide > div,
    body.al_body_template_eight .product-m .slick-slide .col {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    body.al_body_template_eight .outter-fillter-data .product-wrapper-grid .col-xl-3.col-md-3.col-6.mt-3:not(.nest-listing-card-col),
    body.al_body_template_eight .product-wrapper-grid .col-xl-3.col-md-3.col-6.mt-3:not(.nest-listing-card-col) {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
}

/* Subcategory cards (Wooden Items / category landing) — equal height + gap */
body.al_body_template_eight .product-wrapper-grid.card-product .row.categories_img.margin-res {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-items: stretch;
}

body.al_body_template_eight .product-wrapper-grid.card-product .row.categories_img > .col-grid-box,
body.al_body_template_eight .product-wrapper-grid.card-product .row.categories_img > .col-md-3.col-6.col-grid-box {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
}

body.al_body_template_eight .product-wrapper-grid.card-product .row.categories_img .product-box.scale-effect,
body.al_body_template_eight .product-wrapper-grid.card-product .row.categories_img .product-box {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden;
}

body.al_body_template_eight .product-wrapper-grid.card-product .row.categories_img .product-box img {
    width: 100% !important;
    height: 210px !important;
    max-height: 210px !important;
    object-fit: contain !important;
    object-position: center;
    padding: 12px !important;
    display: block;
    flex: 0 0 210px;
}

body.al_body_template_eight .product-wrapper-grid.card-product .row.categories_img .media-body {
    margin-top: auto;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px 12px !important;
}

body.al_body_template_eight .product-wrapper-grid.card-product .row.categories_img > .col-xl-12 {
    grid-column: 1 / -1;
}

@media (max-width: 767px) {
    body.al_body_template_eight .product-wrapper-grid.card-product .row.categories_img.margin-res {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px !important;
    }

    body.al_body_template_eight .product-wrapper-grid.card-product .row.categories_img .product-box img {
        height: 170px !important;
        max-height: 170px !important;
        flex-basis: 170px;
    }
}

/* Template 8 — Sub Category sidebar (category landing only; HTML unchanged) */
body.al_body_template_eight .collection-filter.catery_eight {
    padding: 0 16px 0 0 !important;
}

body.al_body_template_eight .collection-filter.catery_eight .theme-card.custom-inner-card {
    background: #fff;
    border: 1px solid #e6ece9;
    border-radius: 16px;
    box-shadow:
        0 2px 4px rgba(37, 61, 78, 0.03),
        0 10px 24px rgba(37, 61, 78, 0.06);
    overflow: hidden;
    padding: 0;
}

body.al_body_template_eight .collection-filter.catery_eight .accordion .card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

body.al_body_template_eight .collection-filter.catery_eight .card-header {
    background: #fff !important;
    border: 0 !important;
    padding: 0 !important;
}

body.al_body_template_eight .collection-filter.catery_eight .card-header .btn-link {
    color: #253D4E !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

body.al_body_template_eight .collection-filter.catery_eight .card-header .btn-link:hover,
body.al_body_template_eight .collection-filter.catery_eight .card-header .btn-link:focus {
    color: #253D4E !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

body.al_body_template_eight .collection-filter.catery_eight .theme-card h5.title-border {
    border-bottom: 1px solid #eef3f0 !important;
    padding: 16px 18px !important;
    margin: 0 !important;
    font-weight: 700;
    color: #253D4E;
}

body.al_body_template_eight .collection-filter.catery_eight .card-header h5 span {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    color: #253D4E;
    text-transform: none;
}

body.al_body_template_eight .collection-filter.catery_eight .card-header h5 span i {
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 14px !important;
    color: #3BB77E;
    background: #eef8f2;
    border-radius: 50%;
    line-height: 1;
}

body.al_body_template_eight .collection-filter.catery_eight div#collapseOne {
    background-color: #fff !important;
}

body.al_body_template_eight .collection-filter.catery_eight .card-body {
    padding: 8px 10px 12px !important;
}

body.al_body_template_eight .collection-filter.catery_eight .listing-categories ul {
    margin: 0 !important;
    padding: 0;
    list-style: none;
}

body.al_body_template_eight .collection-filter.catery_eight .listing-categories ul li {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
    line-height: 1.4;
}

body.al_body_template_eight .collection-filter.catery_eight .listing-categories ul li a {
    display: block;
    padding: 11px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #253D4E;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 10px;
    border-left: 3px solid transparent;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.al_body_template_eight .collection-filter.catery_eight .listing-categories ul li a:hover {
    background: #eef8f2;
    color: #3BB77E;
    border-left-color: #3BB77E;
}

body.dark.al_body_template_eight .collection-filter.catery_eight .theme-card.custom-inner-card,
body.dark.al_body_template_eight .collection-filter.catery_eight .card-header,
body.dark.al_body_template_eight .collection-filter.catery_eight div#collapseOne {
    background: #232323 !important;
    border-color: #333;
}

body.dark.al_body_template_eight .collection-filter.catery_eight .theme-card h5.title-border {
    border-bottom-color: #333 !important;
    color: #fff;
}

body.dark.al_body_template_eight .collection-filter.catery_eight .card-header h5 span {
    color: #fff;
}

body.dark.al_body_template_eight .collection-filter.catery_eight .listing-categories ul li a {
    color: #fff;
}

body.dark.al_body_template_eight .collection-filter.catery_eight .listing-categories ul li a:hover {
    background: rgba(59, 183, 126, 0.12);
    color: #3BB77E;
}

