/* مسیر: modules/elementor-campaign-widget/assets/style.css */

.fk-campaign-root {
    position: relative;
    width: 100%;
    /* ارتفاع مینیمم برای کل ویجت */
    min-height: 380px;
    /* پدینگ پایین برای فضای بیرون‌زدگی محصولات */
    padding-bottom: 40px;
}

/* لایه پس‌زمینه مستقل */
.fk-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* ارتفاع پیش‌فرض (توسط المنتور کنترل می‌شود) */
    height: 80%;
    z-index: 0;

    background-color: transparent;
    border-radius: 12px;
}

/* کانتینر محتوا (روی پس‌زمینه) */
.fk-content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    gap: 15px;
    padding: 15px;
    direction: rtl;
}

/* --- سایدبار --- */
.fk-camp-sidebar {
    width: 210px;
    min-width: 210px;
    flex-shrink: 0;
    color: #fff;

    display: flex;
    flex-direction: column;

    /* ارتفاع سایدبار دقیقاً برابر با لایه پس‌زمینه می‌شود */
    height: 80%;

    /* justify-content توسط المنتور کنترل می‌شود */
}

.fk-camp-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
}

/* عکس */
.fk-camp-img {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    flex-shrink: 0;
}

.fk-camp-img img {
    max-width: 140px;
    width: auto;
    height: auto;
    max-height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.15));
    display: block !important;
}

/* عنوان */
.fk-camp-title {
    font-size: 20px;
    font-weight: 900;
    margin: 0;
    line-height: 1.3;
}

/* دکمه */
.fk-camp-btn {
    border: 1px solid currentColor;
    border-radius: 50px;
    padding: 8px 25px;
    font-size: 13px;
    text-decoration: none;
    transition: 0.3s;
    margin: 0;
    display: inline-block;
}

/* --- تایمر --- */
.global-timer {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.timer-block {
    background: #fff;
    color: #333;
    border-radius: 6px;
    width: 34px;
    height: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.timer-block .val {
    font-weight: 800;
    font-size: 15px;
    margin: 0;
    line-height: 1;
}

.timer-block .lbl {
    font-size: 9px;
    color: inherit;
    opacity: 0.7;
    margin-top: 3px;
    line-height: 1;
}

.sep {
    font-weight: bold;
    font-size: 18px;
    margin: 0;
    line-height: 1;
    position: relative;
    top: -1px;
}


/* --- ناحیه اسلایدر --- */
.fk-camp-slider-area {
    flex-grow: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.fk-camp-slider-area .wd-products-element {
    width: 100%;
    margin-bottom: 0 !important;
}

.fk-camp-slider-area .product-grid-item {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 0 !important;
    transition: transform 0.3s ease;
    border: none !important;
    height: 100%;
    /* سایه برای اینکه روی زمینه سفید سایت دیده شوند */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.fk-camp-slider-area .product-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.fk-camp-slider-area .owl-nav>div {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff !important;
    color: #333 !important;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}

.fk-camp-slider-area:hover .owl-nav>div {
    opacity: 1;
}

.fk-camp-slider-area .owl-nav .owl-prev {
    left: -10px;
}

.fk-camp-slider-area .owl-nav .owl-next {
    right: -10px;
}


/* --- موبایل --- */
@media (max-width: 992px) {
    .fk-campaign-root {
        padding-bottom: 20px;
    }

    .fk-bg-layer {
        height: 100% !important;
        /* در موبایل معمولاً تمام قد بهتر است */
    }

    .fk-content-wrapper {
        flex-direction: column;
    }

    .fk-camp-sidebar {
        width: 100%;
        min-width: 0;
        flex-direction: row;
        justify-content: space-between !important;
        align-items: center;
        padding-bottom: 10px;
        height: auto !important;
    }

    .fk-camp-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: right;
        padding: 0;
        width: 100%;
    }

    .fk-camp-img,
    .fk-camp-btn {
        display: none !important;
    }

    .fk-camp-title {
        margin: 0;
        font-size: 16px;
    }

    .global-timer {
        margin: 0;
        transform: scale(0.85);
    }

    .fk-camp-slider-area {
        width: 100%;
    }

    .fk-camp-slider-area .owl-nav>div {
        opacity: 1 !important;
    }
}