﻿
/* Festival shared banner */

.festival-slide,
.festival-banner {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #211b25;
    direction: rtl;
}

.festival-slide {
    min-height: 320px;
}

.festival-banner {
    width: 100%;
    min-height: 280px;
    margin: 25px 0;
}

.festival-content {
    position: relative;
    width: 100%;
    min-height: inherit;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.festival-slide .festival-content {
    min-height: 320px;
}

.festival-banner .festival-content {
    min-height: 280px;
}

/* Background */

.festival-picture {
    position: absolute;
    inset: 0;
    z-index: -2;
}

    .festival-picture img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        inset: 0;
    }

.festival-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient( 270deg, rgba(20, 12, 23, .88) 0%, rgba(20, 12, 23, .65) 42%, rgba(20, 12, 23, .08) 100% );
}

.festival-info {
    width: 55%;
    padding: 25px 5%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

    .festival-info h2 {
        color: #fff;
        font-size: clamp(23px, 3vw, 36px);
        font-weight: 900;
        margin: 0;
    }

.festival-description {
    color: #fff;
    font-size: 14px;
    line-height: 1.9;
    margin: 0;
    max-width: 450px;
}

.festival-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    border-radius: 30px;
    background: #d7193f;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

/* Countdown */

.festival-timer {
    display: flex;
    align-items: center;
    gap: 9px;
    direction: rtl;
}

.festival-time-box {
    width: 58px;
    height: 65px;
    background: #fff;
    color: #211b25;
    border-radius: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0,0,0,.15);
}

    .festival-time-box strong {
        font-size: 23px;
        font-weight: 900;
        line-height: 1.3;
        font-variant-numeric: tabular-nums;
    }

    .festival-time-box span {
        font-size: 11px;
        font-weight: 700;
    }

/* Buttons */

.festival-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.festival-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 43px;
    padding: 9px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    transition: all .2s ease;
}

.festival-btn-product {
    background: #d7193f;
    color: #fff !important;
}

.festival-btn-service {
    background: #fff;
    color: #211b25 !important;
}

.festival-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
}

/* Mobile */

@media(max-width: 600px) {

    .festival-slide {
        min-height: 280px;
        border-radius: 12px;
    }

    .festival-banner {
        min-height: 260px;
        border-radius: 12px;
    }

        .festival-slide .festival-content,
        .festival-banner .festival-content {
            min-height: inherit;
        }

    .festival-info {
        width: 100%;
        padding: 18px;
        gap: 11px;
    }

        .festival-info h2 {
            font-size: 22px;
        }

    .festival-description {
        font-size: 12px;
    }

    .festival-time-box {
        width: 49px;
        height: 57px;
        border-radius: 9px;
    }

        .festival-time-box strong {
            font-size: 19px;
        }

        .festival-time-box span {
            font-size: 10px;
        }

    .festival-timer {
        gap: 6px;
    }

    .festival-btn {
        min-height: 39px;
        padding: 8px 14px;
        font-size: 12px;
    }

    .festival-overlay {
        background: linear-gradient( 270deg, rgba(20, 12, 23, .88), rgba(20, 12, 23, .42) );
    }
}
/* اندازه یکسان اسلایدر و جشنواره */
.secSlider .owl-carousel .owl-item img,
.secSlider .owl-carousel .festival-picture img {
    width: 100%;
    max-height: 500px;
    height: auto;
    display: block;
}

/* ساختار بنر جشنواره */
.secSlider .festival-slide {
    width: 100%;
    overflow: hidden;
}

    .secSlider .festival-slide .festival-content {
        position: relative;
        width: 100%;
        height: 500px;
        min-height: unset;
        overflow: hidden;
    }

    .secSlider .festival-slide .festival-picture {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

        .secSlider .festival-slide .festival-picture img {
            width: 100%;
            height: 100%;
            max-height: unset;
            object-fit: cover;
        }

/* موبایل */
@media(max-width:900px) {

    .secSlider .owl-carousel .owl-item img,
    .secSlider .owl-carousel .festival-slide .festival-content {
        height: 500px !important;
    }

    .secSlider .festival-slide .festival-picture img {
        height: 500px !important;
        object-fit: cover;
    }
}

/* Festival product badge */

.product-media {
    position: relative;
}

.festival-product-badge {
    position: absolute;
    top: 12px;
    right: 10px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    direction: rtl;
    max-width: calc(100% - 20px);
}

.festival-product-title {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #202020;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .festival-product-title i {
        color: #ff334f;
    }

.festival-product-discount {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 6px;
    background: #e61937;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    direction: ltr;
}

@media(max-width: 576px) {
    .festival-product-badge {
        top: 7px;
        right: 7px;
        gap: 4px;
    }

    .festival-product-title {
        font-size: 10px;
        padding: 5px 7px;
    }

    .festival-product-discount {
        font-size: 10px;
        padding: 4px 7px;
    }
}

/* Product detail festival */

.product-festival-info {
    display: flex;
    align-items: center;
    gap: 12px;
    direction: rtl;
    padding: 13px 15px;
    margin: 18px 0;
    border: 1px solid #f4c5cc;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff7f8, #fff);
}

.product-festival-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e61937;
    color: #fff;
    font-size: 19px;
}

.product-festival-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.product-festival-title {
    color: #c81430;
    font-size: 14px;
    font-weight: 800;
}

.product-festival-description {
    color: #666;
    font-size: 12px;
}

.product-festival-percent {
    flex-shrink: 0;
    padding: 7px 12px;
    border-radius: 7px;
    background: #e61937;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

@media(max-width:576px) {
    .product-festival-info {
        gap: 8px;
        padding: 10px;
    }

    .product-festival-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .product-festival-title {
        font-size: 12px;
    }

    .product-festival-description {
        font-size: 10px;
    }

    .product-festival-percent {
        padding: 6px 8px;
        font-size: 11px;
    }
}
/* Festival Product Badge */

.product-media {
    position: relative;
}

.festival-product-badge {
    position: absolute;
    top: 12px;
    right: 10px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    pointer-events: none;
}

.festival-product-title {
    background: linear-gradient(135deg, #e90022, #b90019);
    color: #fff;
    padding: 7px 12px;
    border-radius: 12px 12px 12px 3px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 3px 8px rgba(180, 0, 25, 0.25);
    white-space: nowrap;
}

    .festival-product-title i {
        margin-left: 4px;
    }

.festival-product-discount {
    background: #ed001f;
    color: #fff;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 17px;
    font-weight: 900;
    transform: rotate(-5deg);
    box-shadow: 0 3px 8px rgba(180, 0, 25, 0.2);
    direction: ltr;
}
.detail-festival-box {
    width: 100%;
    margin: 12px 0 18px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fff1f1, #fff8f5);
    border: 1px solid #ffd5d5;
    border-radius: 12px;
    direction: rtl;
}

.detail-festival-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.detail-festival-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffe0df;
    color: #e53935;
    border-radius: 50%;
    font-size: 17px;
}

.detail-festival-title {
    font-size: 14px;
    font-weight: 800;
    color: #c62828;
}

.detail-festival-discount {
    margin-right: auto;
    padding: 5px 12px;
    background: #e53935;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.detail-festival-description {
    margin-top: 9px;
    font-size: 12px;
    color: #777;
}

/* ==============================
   Festival Promotion Design
============================== */

.product-gallery {
    position: relative;
}

.festival-promo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    direction: rtl;
    z-index: 20;
}

/* عنوان جشنواره */

.festival-promo-title {
    background: linear-gradient(135deg, #ef172d, #c90025);
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 15px;
    border-radius: 30px;
    white-space: nowrap;
    box-shadow: 0 3px 9px rgba(190, 0, 35, .16);
    position: relative;
    z-index: 2;
}

/* دایره درصد تخفیف */

.festival-promo-discount {
    width: 65px;
    height: 65px;
    margin-top: -3px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff263e, #d90025);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(190, 0, 35, .20);
    transform: rotate(-7deg);
    border: 2px solid rgba(255,255,255,.9);
    margin-top: 10px;
    direction: ltr;
}

/* نشان روی اسلایدر */

.festival-promo-gallery {
    position: absolute;
    top: 15px;
    right: 15px;
    align-items: center;
}

/* نشان کنار قیمت */

.festival-promo-price {
    flex-shrink: 0;
    min-width: 112px;
    margin: 0 5px;
    align-items: center;
}

    .festival-promo-price .festival-promo-title {
        font-size: 12px;
        padding: 7px 12px;
    }

    .festival-promo-price .festival-promo-discount {
        width: 68px;
        height: 68px;
        font-size: 22px;
        margin-top: -2px;
    }

/* موبایل */

@media(max-width: 767px) {

    .festival-promo-gallery {
        top: 9px;
        right: 9px;
    }

        .festival-promo-gallery .festival-promo-title {
            font-size: 10px;
            padding: 5px 10px;
        }

        .festival-promo-gallery .festival-promo-discount {
            width: 53px;
            height: 53px;
            font-size: 18px;
        }

    .festival-promo-price {
        min-width: 90px;
    }

        .festival-promo-price .festival-promo-title {
            font-size: 10px;
            padding: 6px 9px;
        }

        .festival-promo-price .festival-promo-discount {
            width: 55px;
            height: 55px;
            font-size: 18px;
        }
}
.product-amount-price {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

    .product-amount-price .new-price {
        color: #d90025;
        font-size: 25px;
        font-weight: 900;
    }

    .product-amount-price .old-price {
        color: #999;
        font-size: 15px;
    }
/* Product price */

.product-price {
    width: 100%;
    margin-top: 12px;
}

.product-discount-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    direction: rtl;
}

    .product-discount-price .new-price {
        color: #d71935 !important;
        font-size: 19px;
        font-weight: 900;
        text-decoration: none;
        line-height: 1.7;
        white-space: nowrap;
    }

.product-discount-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

    .product-discount-meta .old-price {
        color: #999 !important;
        font-size: 14px;
        font-weight: 500;
        text-decoration: line-through;
        text-decoration-color: #aaa;
        white-space: nowrap;
    }

.product-discount-percent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d71935;
    color: #fff;
    border-radius: 20px;
    padding: 3px 9px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
    white-space: nowrap;
    direction:ltr;
}

.product-price > .price {
    color: #333;
    font-size: 17px;
    font-weight: 800;
}

@media(max-width: 576px) {
    .product-discount-price .new-price {
        font-size: 19px;
    }

    .product-discount-meta .old-price {
        font-size: 14px;
    }
}