/**
 * Restore "جدیدترین محصولات" carousel cards to original layout.
 * Beats Elementor / cache / conflicting theme CSS.
 */

.dp2-new-products-1st {
    position: relative !important;
    overflow: hidden !important;
}

.dp2-new-product-carousel {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    margin: 36px 0 24px !important;
}

.dp2-new-product-carousel .swiper-wrapper {
    display: flex !important;
    align-items: stretch !important;
}

.dp2-new-product-carousel .swiper-slide {
    width: auto !important;
    height: auto !important;
    display: flex !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.dp2-new-product-carousel .dp2-new-products-card.dp2-card,
.dp2-new-product-carousel .dp2-new-products-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 16px !important;
    width: 247px !important;
    max-width: 247px !important;
    height: 321px !important;
    min-height: 321px !important;
    position: relative !important;
    padding: 7px !important;
    margin: 0 !important;
    border-radius: 32px !important;
    background: #ffffff !important;
    border: 1px solid #66666633 !important;
    box-sizing: border-box !important;
    float: none !important;
    overflow: hidden !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    inset: auto !important;
}

.dp2-new-product-carousel .dp2-special-offers-card-new {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    z-index: 2 !important;
    width: 51px !important;
    height: 27px !important;
    margin: 0 !important;
}

.dp2-new-product-carousel .dp2-color-box,
.dp2-new-product-carousel .dp2-size-box {
    position: absolute !important;
    z-index: 2 !important;
}

.dp2-new-product-carousel .dp2-special-offers-card-img,
.dp2-new-product-carousel a > img.dp2-special-offers-card-img {
    display: block !important;
    width: 148px !important;
    height: 148px !important;
    max-width: 148px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
}

.dp2-new-product-carousel .dp2-product-name {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    width: 92% !important;
    max-width: 92% !important;
    margin: 0 auto !important;
    position: relative !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
}

.dp2-new-product-carousel .dp2-product-name h3,
.dp2-new-product-carousel .dp2-product-name p {
    position: relative !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
}

.dp2-new-product-carousel .dp2-product-price-box {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 69px !important;
    min-height: 69px !important;
    padding: 9px !important;
    margin: 0 !important;
    border: 1px solid #66666633 !important;
    background: #ffffff !important;
    box-shadow: 0 12px 24px 0 #0000000d !important;
    border-radius: 24px !important;
    box-sizing: border-box !important;
    position: relative !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    flex-shrink: 0 !important;
}

.dp2-new-product-carousel .dp2-product-price-box-prices {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    position: relative !important;
    float: none !important;
}

.dp2-new-product-carousel .dp2-product-price-box-but {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    position: relative !important;
    width: 64px !important;
    min-width: 64px !important;
    height: 48px !important;
    margin: 0 !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    background: #0035661a !important;
    color: #003566 !important;
    border-radius: 16px !important;
}

.dp2-new-product-carousel .swiper-slide:hover .dp2-product-price-box-but {
    width: 98px !important;
    border-radius: 40px !important;
    background: #003566 !important;
    color: #ffffff !important;
}

@media (max-width: 991px) {
    .dp2-new-product-carousel {
        margin: 24px 0 4px !important;
    }
}
