.preferred_deals_section {

    .next-btn {
        background: #ffff;
        width: 47px;
        height: 47px;
        border-radius: 40px;
        line-height: 42px;
        border: 1px solid #00000015;
        box-shadow: rgba(149, 157, 165, 0.103) 0px 8px 24px;
        padding-left: 19px;
        transition: .35s ease all;
    }

    .next-btn:hover {
        background: #1D1D1F;
        border-color: #1D1D1F;
    }

    .next-btn:hover svg path {
        stroke: #ffffff;
    }

    .prev-btn {
        background: #fff;
        width: 47px;
        height: 47px;
        border-radius: 40px;
        line-height: 42px;
        border: 1px solid #00000015;
        box-shadow: rgba(149, 157, 165, 0.15) 0px 8px 24px;
        padding-left: 17px;
        transition: .35s ease all;
    }

    .prev-btn:hover {
        background: #1D1D1F;
        border-color: #1D1D1F;
    }

    .prev-btn:hover svg line {
        stroke: #ffffff;
    }

    /* Loading Animation */
    .loading-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .loading-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .spinner {
        width: 50px;
        height: 50px;
        border: 3px solid #f3f3f3;
        border-top: 3px solid #3498db;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    .preferred_deals_section {
        margin: 0 auto;
        background: #fff;
        padding: 50px 40px;
    }




    .section_header {
        display: flex;
        align-items: center;
        margin-bottom: 40px;
        justify-content: end;
    }

    .section_title_group h1 {
        font-size: 36px;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 8px;
    }

    .section_subtitle {
        color: #666;
        font-size: 14px;
    }

    .section_controls {
        display: flex;
        align-items: end;
        gap: 50px;
    }

    .product_category_filter {
        display: flex;
        gap: 25px;
    }

    .filter_btn {
        background: none;
        border: none;
        color: #666;
        font-size: 15px;
        cursor: pointer;
        padding: 0px 0;
        position: relative;
        transition: .35s ease all;

    }

    .filter_btn.active {
        text-decoration-line: underline;
        text-underline-offset: 3px;
        text-decoration-thickness: 1px !important;
    }

    .filter_btn:hover {
        text-decoration-line: underline;
        text-underline-offset: 3px;
        text-decoration-thickness: 1px !important;
    }

    .slider_navigation {
        display: flex;
        gap: 10px;
    }

    .wc-btn-primary {
        transition: .35s ease all;
    }

    .nav_btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid #ddd;
        background: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
    }

    .nav_btn:hover {
        background: #1a1a1a;
        border-color: #1a1a1a;
    }

    .nav_btn.next::before {
        border-color: #fff;
    }

    .products_slider_container {
        position: relative;
    }

    .product_card {
        background: #EFEFEF;
        border-radius: 12px;
        padding: 20px;
        position: relative;
        transition: transform 0.3s, box-shadow 0.3s;
    }

    .product_badge {
        position: absolute;
        top: 15px;
        left: 15px;
        background: #3b5cff;
        color: #fff;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        z-index: 2;
    }

    .product_image_wrapper {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .product_image {
        min-width: 100%;
        max-height: 275px;
        object-fit: cover;
    }

    .product_image_wrapper .swiper-slide img {
        max-height: 250px !important;
        object-fit: contain;
    }

    .product_image_wrapper .swiper-slide {
        text-align: center;
    }

    .product_action_btn {
        background: #1a1a1a;
        color: #fff;
        border: none;
        padding: 10px 20px;
        border-radius: 6px;
        font-size: 14px;
        cursor: pointer;
        transition: opacity 0.3s;
    }

    /* .product-actions-wrapper {
    transform: translateY(-15px);
    overflow: hidden;
} */

    .product_card:hover .product_action_btn.wc-forward {
        transform: translateY(0px) !important;
        opacity: 1;
        visibility: visible;
    }

    .product_card:hover .product_action_btn {
        transform: translateY(0px);
        opacity: 1;
        visibility: visible;
    }

    .product-actions-wrapper {
        overflow: hidden;
    }

    .product_action_btn {
        transform: translateY(40px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s;
    }

    .product_action_btn.wc-forward {
        transform: translateY(40px) !important;
        transition: all 0.4s;
        opacity: 0;
        visibility: hidden;
    }

    .product-actions-wrapper .ajax_add_to_cart {
        transform: translateY(40px);
        transition: all 0.4s;
    }

    .product_action_btn.wc-forward {
        background: #1D1D1F;
        color: #fff;
        padding: 10px 18px;
        border-radius: 6px;
        text-align: center;
        display: inline-block;
    }

    .product_action_btn.wc-forward:hover {
        background: #343434;
        color: #fff;
    }

    .product_pricing ins {
        padding: 0;
    }

    .product_dots {
        display: flex;
        gap: 6px;
        justify-content: center;
        margin-bottom: 15px;
    }

    .product_dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ddd;
    }

    .product_dot.active {
        background: #1a1a1a;
    }

    .product_info {
        text-align: left;
        position: relative;
        padding-top: 2px;
    }

    .product_category {
        font-size: 11px;
        color: #999;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 6px;
    }

    .product_name {
        font-size: 16px;
        color: #1a1a1a;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .product_pricing {
        display: flex;
        align-items: start;
        gap: 8px;
        flex-direction: row-reverse;
        justify-content: flex-end;
    }

    .product_pricing.variable-price .product_price {
        flex-direction: row;
    }

    .product_price {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-direction: row-reverse;
        justify-content: flex-end;
    }

    .product_pricing ins {
        background: transparent;
    }

    .product_price_original {
        font-size: 14px;
        color: #999;
        text-decoration: line-through;
    }

    .added_to_cart {
        display: none !important;
    }

    .product_action_btn {
        transition: .35s ease all;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        white-space: nowrap;
        display: block;
        text-align: center;
    }

    .product_action_btn.wc-forward {
        display: block;
    }

    .preferred_deals_section .added_to_cart.sv-force-show,
    .preferred_deals_section .ft-view-cart-btn.sv-force-show,
    .preferred_deals_section .product_action_btn.wc-forward {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .preferred_deals_section .added_to_cart:not(.sv-force-show),
    .preferred_deals_section .ft-view-cart-btn:not(.sv-force-show):not(.wc-forward) {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    .product_card {
        display: flex;
        justify-content: space-between;
        min-height: 100%;
        gap: 8px;
    }

    .products_slider_container .swiper .swiper-wrapper .swiper-slider {
        height: auto !important;
    }

    .productsSwiper .swiper-slide {
        display: flex;
        height: auto;
    }

    .productsSwiper .product_card {
        height: 100%;
    }

    /* Action buttons wrapper */

    /* Button container */
    .product_card .action-btns {
        position: absolute;
        top: 15px;
        right: 15px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        opacity: 0;
        visibility: hidden;
        transform: translateX(15px);
        transition: all 0.35s ease;
        z-index: 10;
    }

    /* Show on hover */
    .product_card:hover .action-btns {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    /* Individual button */
    .product_card .product-action-btn a {
        width: 40px;
        height: 40px;
        background: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, .15);
        transition: all 0.3s ease;
    }

    /* Hover effect on button */
    .product_card .product-action-btn a:hover {
        background: #000;
        color: #fff;
    }

    /* Icon color fix (WPC icons use pseudo elements) */
    .product_card .product-action-btn a::before {
        transition: color 0.3s ease;
    }

    .product_image_wrapper .swiper-pagination-gallery {
        text-align: center;
        transform: translateY(7px);
    }

    .product_image_wrapper .swiper-pagination-gallery .swiper-pagination-bullet {
        background: #1D349A;
    }

}

/*End parent class*/

.product_action_btn {
    position: relative;
}

.product_action_btn .btn-loader {
    width: 18px !important;
    height: 18px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-top-color: #fff !important;
    border-radius: 50% !important;
    animation: spin 0.7s linear infinite !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    margin: 0 !important;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 10 !important;
}

.product_action_btn.loading {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.product_action_btn.loading .btn-text {
    visibility: hidden;
    opacity: 0;
}

.product_action_btn.loading .btn-loader {
    display: block !important;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


.preferred_deals_section_two .slide-right-box {
    width: 100%;
}

.preferred_deals_section_two .products_slider_container {
    display: flex;
}

.preferred_deals_section_two .slide-left-box .product_category_filter {
    display: grid;
    flex-direction: column;
    gap: 4px;
    grid-auto-columns: max-content;
    position: absolute;
}

.preferred_deals_section_two .slider_navigation_two {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    position: absolute;
    z-index: 99;
    left: 0;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
}

.preferred_deals_section_two .slide-left-box {
    margin: auto;
}

.preferred_deals_section_two .swiper {
    padding-left: 19px;
    padding-right: 19px;
}

/* .preferred_deals_section_two .next-btn, .prev-btn {
    box-shadow: rgb(149 157 165 / 1%) 0px 8px 24px !important;
} */

.preferred_deals_section_two .product-gallery-swiper.swiper {
    padding-left: 0;
    padding-right: 0;
}

.preferred_deals_section_two .product_category_filter .filter_btn {
    text-align: left;
    padding: 0;
}

.preferred_deals_section_two .product_category_filter .filter_btn {
    text-align: left;
    padding: 0;
}

@media (max-width: 767px) {
    .preferred_deals_section_two .slide-left-box {
        display: none;
    }
}

/* Product Rating Styles with Custom Icons */
.preferred_deals_section .woocommerce-product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.preferred_deals_section .star-rating {
    position: relative;
    height: 1.2em;
    line-height: 1;
    font-size: 16px;
    width: 6em;
    font-family: "tp-icons";
    color: #ddd;
    display: inline-block;
}

.preferred_deals_section .star-rating::before {
    content: "\e82b\e82b\e82b\e82b\e82b";
    position: absolute;
    top: 0;
    left: 0;
    color: #ddd;
    float: left;
}

.preferred_deals_section .star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    height: 100%;
}

.preferred_deals_section .star-rating span::before {
    content: "\e821\e821\e821\e821\e821";
    position: absolute;
    top: 0;
    left: 0;
    color: #ffc107;
}

.preferred_deals_section .sv-review-count {
    font-size: 12px;
    color: #666;
    margin-left: 8px;
}

.preferred_deals_section_two .product_category_filter .filter_btn {
    position: relative;
    transition: .35s ease all;
}

.preferred_deals_section_two .product_category_filter .filter_btn.active {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px !important;
    transition: .35s ease all;
    transform: translateX(12px);
}

.preferred_deals_section_two .product_category_filter .filter_btn:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px !important;
    transition: .35s ease all;
    transform: translateX(12px);
}

.preferred_deals_section_two .product_category_filter .filter_btn.active::before {
    opacity: 1;
}

.preferred_deals_section_two .product_category_filter .filter_btn:hover::before {
    opacity: 1;
}

.preferred_deals_section_two .product_category_filter .filter_btn::before {
    position: absolute;
    content: '';
    left: -13px;
    top: 9px;
    width: 5px;
    height: 5px;
    background-color: #1D349A;
    border-radius: 50%;
    opacity: 0;
    transition: .35s ease all;
}

.preferred_deals_section_two .product_card {
    gap: 20px;
}


@media (max-width: 767px) {
    .product-slider-one {
        max-width: 520px;
        margin: auto;
    }

    .preferred_deals_section .section_controls {
        gap: 20px;
        flex-direction: column-reverse;
    }

    .preferred_deals_section .product_category_filter {
        flex-wrap: wrap;
        row-gap: 10px;
        justify-content: start;
        padding-left: 10px;
    }

}

/* Responsive Styles */
@media (max-width: 1200px) {
    .preferred_deals_section_two .section_header {
        justify-content: start;
    }
}

@media (max-width: 767px) {
    .preferred_deals_section_two .product_category_filter {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .preferred_deals_section_two .product_image {
        object-fit: contain;
    }
}

@media (max-width: 1200px) {
    .preferred_deals_section_two .slide-left-box {
        display: none;
    }
}

@media (min-width: 1201px) {
    .preferred_deals_section_two .section_header {
        display: none;
    }
}