:root {
    /*Promosyon Template Color*/
    --promo_content_backColor: radial-gradient(45.04% 829.69% at 50% 50%, #FF9B58 0%, #F6611D 100%);
    --promo_content_radius: 4px;
    --promo_content_main_textColor: #FFFFFF;
    --promo_content_strikeouthColor: #FABEA0;
    --promo_content_card_backColor: #FFFFFF;
}

/* Yaprak gibi kıvrılan sayfa efekti */
@keyframes leafFlip {
    0% {
        transform: rotateX(0deg);
    }
    40% {
        transform: rotateX(-70deg);
    }
    70% {
        transform: rotateX(25deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}



.new_product_detail_promotions_zone {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.2fr .4fr;
    background: var(--promo_content_backColor);
    border-radius: var(--promo_content_radius);
    margin-bottom: 20px;
    padding: 1rem 2rem;
    width: 100%;
    gap: 1.5rem;

    .promotion_start_desc {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 1.5rem;

        .startup_desc {
            display: grid;
            grid-template-columns: 1fr;
            align-items: center;
            gap: .5rem;

            * {
                letter-spacing: 0;
                line-height: 100%;
                color: var(--promo_content_main_textColor);
                margin: 0;
            }

            .desc_main {
                font-weight: 500;
                font-size: 21px;
            }

            .desc_sub {
                font-weight: 400;
                font-size: 16px;
            }
        }
    }

    .promotion_products_zone {
        position: relative;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 2rem;

        /*Çoklu ürün varsa içindeki swipper elemnti için yazılmıştır*/

        .swiper {
            width: 100%;
        }

        .swiper-wrapper {
            display: flex;
            align-items: stretch;
        }

        .swiper-slide {
            width: 100% !important;
            box-sizing: border-box;
            display: flex;
            justify-content: center;
        }

        .new_promo_swiper_button_next {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: .9rem;
            border-radius: 50%;
            background: #FFFFFF4D;

            svg {
                height: 12px;
                width: 12px;
                transform-origin: center;
                transform: rotateZ(180deg);
            }

        }

        .new_promo_swiper_button_prev {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: .9rem;
            border-radius: 50%;
            background: #FFFFFF4D;

            svg {
                height: 12px;
                width: 12px;
            }

        }

        .new_promo_swiper_button_prev.swiper-button-disabled, .new_promo_swiper_button_next.swiper-button-disabled {
            background: #FFC0C04D;
            cursor: not-allowed;

            svg path {
                fill: #E6CABB;
            }
        }

        /*Son*/


        .promo_product_item {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            overflow: visible;
            width: 100%;
            padding: .29rem 0;
            gap: .5rem;
            z-index: 4;

            .promo_product_info {
                display: flex;
                align-items: center;
                justify-content: flex-start;
                gap: 1rem;

                .promo_item_img {
                    max-height: 90px;
                    max-width: 90px;
                    width: 80px;
                    height: 80px;
                    overflow: hidden;
                    border-radius: var(--promo_content_radius);
                    flex-shrink: 0; /*Küçülemesi engelleniyor*/

                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        border-radius: inherit;
                    }
                }

                .promo_item_seo {
                    min-width: 0;

                    .promo_item_seo--name {
                        font-weight: 500;
                        font-size: 21px;
                        line-height: 23px;
                        white-space: normal;
                        word-break: break-word;
                        color: var(--promo_content_main_textColor);

                    }
                }
            }

            .promo_product_price_info {
                display: flex;
                flex-direction: column;
                align-items: flex-end;
                justify-content: center;
                gap: .4rem;

                .strikeouth {
                    position: relative;
                    display: inline-block;
                    font-weight: 400;
                    font-size: 18px;
                    line-height: 22px;
                    letter-spacing: 0;
                    color: var(--promo_content_strikeouthColor);

                    &::after {
                        content: '';
                        position: absolute;
                        left: 0;
                        right: 0;
                        top: 50%;
                        height: 1.5px;
                        background: currentColor;
                    }

                }

                .promo_item_price {
                    font-weight: 500;
                    font-size: 22px;
                    line-height: 22px;
                    margin: 0;
                    letter-spacing: 0;
                    color: var(--promo_content_main_textColor);
                }
            }

            &::before {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;

                border: 2px solid var(--promo_content_card_backColor);
                border-radius: var(--promo_content_radius);
                opacity: 0;
                transform: scale(1);

                transition: transform 0.3s ease,
                opacity 0.3s ease;
            }

            &:hover::before {
                opacity: 1;
                transform: scale(1.03);
                z-index: -1;
                background-color: rgba(255, 255, 255, .1);
            }

        }

    }

    .promotion_time_zone {
        display: grid;
        grid-template-columns: 1fr;
        align-items: center;

        .timer_desc {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;

            .timer_img {
                margin-bottom: .2rem;
            }

            .timer_span {
                font-weight: 500;
                font-size: 20px;
                line-height: 28px;
                letter-spacing: 0;
                color: var(--promo_content_main_textColor);
            }
        }

        .timer_content_zone {
            display: flex;
            align-items: center;
            justify-content: center;

            .timer_info {
                display: flex;
                align-items: center;
                justify-content: center;
                background-color: var(--promo_content_card_backColor);
                border-radius: var(--promo_content_radius);
                min-width: fit-content;
                min-height: 40px;
                gap: .2rem;

                & > * {
                    position: relative;
                    font-size: 20px;
                    font-weight: 700;
                    min-width: 55px;
                    text-align: center;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 1rem;
                    perspective: 300px;

                    &:not(:last-of-type)::after {
                        content: ":";
                        position: absolute;
                        top: -1px;
                        right: 0;
                        height: 100%;
                        width: 2px;
                        color: currentColor;
                    }
                }


            }
        }


        .timer_flip {
            animation: leafFlip 0.35s ease forwards;
            transform-origin: center top;
        }

    }

}



@media (min-width: 768px) and (max-width: 1024px) {
    .new_product_detail_promotions_zone {
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        grid-template-rows: auto auto;
        gap: 1rem;
    }

    .new_product_detail_promotions_zone .promotion_products_zone {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }

    .promotion_time_zone {
        .timer_desc {
            display: flex;
            align-items: center;
            justify-content: flex-end !important;
            gap: 1rem;
        }

        .timer_content_zone {
            display: flex;
            align-items: center;
            justify-content: flex-end !important;
        }
    }
}

@media (min-width: 320px) and (max-width: 765px) {
    .new_product_detail_promotions_zone {
        margin: 0 1rem 1rem 0;
        padding: .5rem .8rem;
        width: inherit;
        grid-template-columns: 1fr;

        .new_mobile_promo_wrapper {
            position: relative;
            display: grid;
            grid-template-columns: 1fr;
            align-items: center;
            gap: .5rem;

            .new_mobile_promo_top {
                display: flex;
                align-items: center;
                justify-content: center;
                border-bottom: 2px solid #FFA073;
                padding: .3rem 0;
                gap: .8rem;

                .top_info_title h4 {
                    font-weight: 500;
                    font-size: 15px;
                    line-height: 100%;
                    margin: 0;
                    letter-spacing: 0;
                    color: var(--promo_content_main_textColor);
                }
            }

            .new_mobile_promo_bottom {
                position: relative;
                width: 100%;
                display: flex;
                align-items: center;
                gap: .5rem;

                .not_background {
                    background: unset !important;
                    padding: 0 !important;
                }

                /*swiper mobile css*/

                .swiper {
                    width: inherit;
                }

                .swiper-wrapper {
                    display: flex;
                    align-items: stretch;
                    justify-content: flex-start;
                }

                .swiper-slide {
                    width: 100% !important;
                    box-sizing: border-box;
                    display: flex;
                    justify-content: center;
                }

                .new_promo_swiper_button_next {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    padding: .9rem;
                    border-radius: 50%;
                    background: #FFFFFF4D;

                    svg {
                        height: 15px;
                        width: 15px;
                        transform-origin: center;
                        transform: rotateZ(180deg);
                    }

                }

                .new_promo_swiper_button_prev {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    padding: .9rem;
                    border-radius: 50%;
                    background: #FFFFFF4D;

                    svg {
                        height: 15px;
                        width: 15px;
                    }

                }

                .new_promo_swiper_button_prev.swiper-button-disabled, .new_promo_swiper_button_next.swiper-button-disabled {
                    background: #FFC0C04D;
                    cursor: not-allowed;

                    svg path {
                        fill: #E6CABB;
                    }
                }

                /*Son*/

                .promo_product_item {
                    display: grid;
                    grid-template-columns: 1fr .4fr;
                    align-items: center;
                    width: 100%;

                    .mobile_promo_item_info {
                        display: flex;
                        align-items: center;
                        justify-content: flex-start;
                        gap: .8rem;

                        .mobile_info_image {
                            max-height: 90px;
                            max-width: 90px;
                            width: 50px;
                            height: 50px;
                            overflow: hidden;
                            border-radius: var(--promo_content_radius);
                            flex-shrink: 0;

                            img {
                                width: 100%;
                                height: 100%;
                                object-fit: cover;
                                border-radius: inherit;
                            }
                        }

                        .mobile_info_name {
                            font-weight: 500;
                            font-size: 14px;
                            line-height: 18px;
                            letter-spacing: 0;
                            color: var(--promo_content_main_textColor);
                            max-width: fit-content;
                            display: inline-block;
                            white-space: normal;
                            word-break: break-word;
                        }

                    }

                    .mobile_promo_price_zone {
                        display: flex;
                        flex-direction: column;
                        align-items: flex-end;
                        justify-content: center;
                        width: 100%;

                        .strikeouth {
                            position: relative;
                            display: inline-block;
                            font-weight: 400;
                            font-size: 14px;
                            line-height: 22px;
                            letter-spacing: 0;
                            color: var(--promo_content_strikeouthColor);
                            text-align: end;

                            &::after {
                                content: '';
                                position: absolute;
                                left: 0;
                                right: 0;
                                top: 50%;
                                height: 1.5px;
                                background: currentColor;
                            }

                        }

                        .promo_item_price {
                            font-weight: 500;
                            font-size: 17px;
                            text-align: end;
                            line-height: 22px;
                            margin: 0;
                            letter-spacing: 0;
                            color: var(--promo_content_main_textColor);
                        }
                    }
                }

            }
        }
    }
}


