.builder-section-title {
    gap: 16px;
}

.builder-section-title-content {
    min-width: 0;
}

.builder-section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.builder-section-title-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 auto;
}

.builder-section-subtitle {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.9;
}

.builder-section-title-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.builder-section-pagination {
    min-width: 80px;
}

@media (max-width: 767.98px) {
    .builder-section-title {
        align-items: flex-start;
        gap: 10px;
    }

    .builder-section-heading {
        font-size: 16px;
    }

    .builder-section-title-icon {
        width: 24px;
        height: 24px;
    }

    .builder-section-title-actions {
        margin-right: 0;
        width: 100%;
        justify-content: space-between;
    }
}

/* =========================================
   Homepage Builder - General Section Header
   ========================================= */

.builder-section-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.builder-section-header-content {
    min-width: 0;
}

.builder-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #0b2037;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.8;
}

/* Accent عمودی به‌جای خط آبی زیر عنوان */
.builder-section-heading::before {
    content: "";
    width: 4px;
    height: 25px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        #0d8fe8 0%,
        #0d47a1 100%
    );
    box-shadow: 0 6px 16px rgba(13, 71, 161, .18);
}

.builder-section-title-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    object-fit: contain;
}

.builder-section-subtitle {
    margin: 4px 14px 0 0;
    color: #718096;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.9;
}

.builder-section-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex: 0 0 auto;
}

.builder-section-pagination {
    display: flex;
    align-items: center;
    min-width: 76px;
}

/* دکمه مشاهده همه عمومی */
.builder-section-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 7px 15px;
    border: 1px solid rgba(13, 71, 161, .10);
    border-radius: 999px;
    background: rgba(13, 143, 232, .07);
    color: #0d47a1;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color .25s ease,
        border-color .25s ease,
        color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.builder-section-view-all i {
    font-size: 11px;
    transition: transform .25s ease;
}

.builder-section-view-all:hover {
    border-color: rgba(13, 71, 161, .18);
    background: #0d47a1;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(13, 71, 161, .18);
}

.builder-section-view-all:hover i {
    transform: translateX(-3px);
}


/* Responsive */
@media only screen and (max-width: 767px) {

    .builder-section-header {
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 18px;
    }

    .builder-section-heading {
        font-size: 16px;
        gap: 8px;
    }

    .builder-section-heading::before {
        width: 3px;
        height: 22px;
    }

    .builder-section-title-icon {
        width: 24px;
        height: 24px;
    }

    .builder-section-subtitle {
        margin-right: 11px;
        font-size: 12px;
    }

    .builder-section-header-actions {
        gap: 10px;
    }

    .builder-section-view-all {
        min-height: 34px;
        padding: 6px 11px;
        font-size: 11px;
    }
     .builder-categories-section .builder-section-pagination {
        display: none;
    }

    .builder-categories-section
    .builder-section-header-actions:not(:has(.builder-section-view-all)) {
        display: none;
    }

}


@media only screen and (max-width: 479px) {

    .builder-section-header {
        flex-wrap: wrap;
    }

    .builder-section-header-content {
        width: 100%;
    }

    .builder-section-header-actions {
        width: 100%;
        justify-content: space-between;
    }
    .product-item-title a{
        font-size: 12px;
    }

}

.swiper-pagination-style {
  line-height: 1;
}
.swiper-pagination-style .swiper-pagination-bullet {
  background-color: #ccc;
  height: 8px;
  margin: 0 4px !important;
  opacity: 1;
  outline: 2px solid transparent;
  outline-offset: 3px;
  transition: all 0.3s ease 0s;
  width: 8px;
}
@media only screen and (max-width: 479px) {
  .swiper-pagination-style .swiper-pagination-bullet {
    margin: 0 2px !important;
  }
}
.swiper-pagination-style .swiper-pagination-bullet:hover {
  background-color: #0D47A1;
}
.swiper-pagination-style .swiper-pagination-bullet-active {
  background-color: #0D47A1;
  outline-color: #0D47A1;
}

.builder-section-pagination .swiper-pagination-style {
    position: static;
    width: auto;
    display: flex;
    align-items: center;
}



/* ------ home Category Section -----*/
.builder-categories-section-wrapper {
    padding: 24px 22px;
    border-radius: 18px;
}

@media (max-width: 767.98px) {
    .builder-categories-section-wrapper {
        padding: 18px 14px;
        border-radius: 14px;
    }
}

@media (min-width: 992px) {
    .builder-col-lg-8 {
        flex: 0 0 auto;
        width: 12.5%;
    }

    .builder-col-lg-10 {
        flex: 0 0 auto;
        width: 10%;
    }
}

/* ===== Homepage Builder Category Items ===== */

.builder-categories-section .product-category-item {
    align-items: center;
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-top: 10px;
    transition: transform .3s ease;
}

.builder-categories-section .product-category-thumb {
    border: 1px solid rgba(11, 32, 55, .06);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition:
        border-color .3s ease,
        box-shadow .3s ease,
        transform .3s ease;
}

.builder-categories-section .product-category-thumb img {
    width: 100%;
    transition: transform .35s ease;
}

.builder-categories-section .product-category-title {
    color: #26384a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.8;
    margin-top: 10px;
    transition: color .25s ease;
}


@media (hover: hover) {

    .builder-categories-section .product-category-item:hover {
        transform: translateY(-4px);
    }

    .builder-categories-section .product-category-item:hover .product-category-thumb {
        border-color: rgba(13, 71, 161, .20);
        box-shadow:
            0 12px 28px rgba(11, 32, 55, .09),
            0 0 0 3px rgba(13, 143, 232, .06);
    }

    .builder-categories-section .product-category-item:hover .product-category-thumb img {
        transform: scale(1.045);
    }

    .builder-categories-section .product-category-item:hover .product-category-title {
        color: #0D47A1;
    }

}

/* ==================================================
   Homepage Builder - Special Offer Section
   ================================================== */

.builder-special-offer-section {
    position: relative;
}


/* باکس اصلی پیشنهاد ویژه */
.builder-special-offer-section .special_offer-area {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    padding: 22px;
    border-radius: 24px;

    /* اگر ادمین رنگی انتخاب نکند */
    background: #102b4e;

    box-shadow:
        0 18px 45px rgba(11, 32, 55, .12),
        inset 0 1px 0 rgba(255, 255, 255, .05);
}


/* دکورهای بسیار ملایم؛ بدون گرادیانت */
.builder-special-offer-section .special_offer-area::before,
.builder-special-offer-section .special_offer-area::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .07);
    pointer-events: none;
}

.builder-special-offer-section .special_offer-area::before {
    width: 260px;
    height: 260px;
    top: -155px;
    right: -85px;
}

.builder-special-offer-section .special_offer-area::after {
    width: 180px;
    height: 180px;
    bottom: -120px;
    left: -55px;
}


/* ==================================================
   Campaign Panel
   ================================================== */

.builder-special-offer-panel-column {
    display: flex;
    min-width: 0;
    padding: 8px 8px 8px 24px;
    border-left: 1px solid rgba(255, 255, 255, .10);
}

.builder-special-offer-panel {
    position: relative;
    z-index: 2;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    min-height: 430px;
    padding: 22px 16px;
}
/* تصویر تزئینی پنل پیشنهاد ویژه */
.builder-special-offer-watermark {
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 74px;
    width: 172px;
    max-width: none;
    height: auto;
    opacity: .075;
    pointer-events: none;
    user-select: none;
    transform: rotate(-0deg);
    transform-origin: center;
}


/* محتوای پنل همیشه بالاتر از تصویر باشد */
.builder-special-offer-panel-content,
.builder-special-offer-panel-actions {
    position: relative;
    z-index: 2;
}

/* محتوای متنی پنل */
.builder-special-offer-panel-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


/* آیکون کمپین */
.builder-special-offer-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;
    background: #ff8a00;
    color: #fff;

    font-size: 25px;
    box-shadow: 0 12px 28px rgba(255, 138, 0, .28);
}

.builder-special-offer-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.builder-special-offer-icon i {
    color: #fff;
}


/* متن کوچک بالای عنوان */
.builder-special-offer-eyebrow {
    display: inline-flex;
    align-items: center;

    margin-bottom: 10px;
    padding: 5px 11px;

    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;

    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .76);

    font-size: 11px;
    font-weight: 800;
    line-height: 1.7;
}


/* عنوان اصلی */
.builder-special-offer-heading {
    margin: 0;

    color: #fff;
    font-size: 26px;
    font-weight: 950;
    line-height: 1.65;
    letter-spacing: -.3px;
}


/* زیرعنوان */
.builder-special-offer-subtitle {
    margin: 10px 0 0;

    color: rgba(255, 255, 255, .66);
    font-size: 13px;
    font-weight: 500;
    line-height: 2;
}


/* ==================================================
   Campaign Actions
   ================================================== */

.builder-special-offer-panel-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}


/* دکمه مشاهده همه */
.builder-special-offer-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 42px;
    padding: 8px 16px;

    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 13px;

    background: rgba(255, 255, 255, .10);
    color: #fff;

    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;

    transition:
        background-color .25s ease,
        border-color .25s ease,
        color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.builder-special-offer-view-all i {
    font-size: 11px;
    transition: transform .25s ease;
}

.builder-special-offer-view-all:hover {
    border-color: #ff8a00;
    background: #ff8a00;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 11px 24px rgba(255, 138, 0, .25);
}

.builder-special-offer-view-all:hover i {
    transform: translateX(-3px);
}


/* فلش‌های اسلایدر */
.builder-special-offer-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: rtl;
}

.builder-special-offer-nav {
    width: 40px;
    height: 40px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;

    background: rgba(255, 255, 255, .08);
    color: #fff;

    cursor: pointer;
    transition:
        background-color .22s ease,
        border-color .22s ease,
        color .22s ease,
        transform .22s ease;
}

.builder-special-offer-nav i {
    font-size: 13px;
}

.builder-special-offer-nav:hover {
    border-color: rgba(255, 138, 0, .75);
    background: #ff8a00;
    color: #fff;
    transform: translateY(-2px);
}

.builder-special-offer-nav.swiper-button-disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}


/* ==================================================
   Products Area
   ================================================== */

.builder-special-offer-products-column {
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 8px 10px;
}

.builder-special-offer-slider {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 4px 0;
}

.builder-special-offer-slider .swiper-wrapper {
    align-items: stretch;
}

.builder-special-offer-slider .swiper-slide {
    height: auto;
}

.builder-special-offer-slider .product-item {
    height: 100%;
    padding-bottom: 2px;
}

/* در صورت استفاده از گرید پنج‌ستونه */
@media only screen and (min-width: 992px) {
    .builder-col-lg-5 {
        flex: 0 0 auto;
        width: 20%;
    }
}


/* ==================================================
   Tablet
   ================================================== */

@media only screen and (max-width: 1199px) {

    .builder-special-offer-section .special_offer-area {
        padding: 18px;
    }

    .builder-special-offer-panel-column {
        padding-left: 18px;
    }

    .builder-special-offer-panel {
        min-height: 400px;
        padding: 18px 10px;
    }

    .builder-special-offer-heading {
        font-size: 22px;
    }

    .builder-special-offer-icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        font-size: 22px;
    }

    .builder-special-offer-watermark {
        right: -34px;
        bottom: 72px;

        width: 145px;
        opacity: .065;
    }

}


/* ==================================================
   Mobile & Tablet Stacked Layout
   ================================================== */

@media only screen and (max-width: 991px) {

    .builder-special-offer-section .special_offer-area {
        padding: 18px;
        border-radius: 20px;
    }

    .builder-special-offer-panel-column {
        padding: 0 0 18px;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, .10);
    }

    .builder-special-offer-panel {
        min-height: 0;
        padding: 4px 2px;

        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .builder-special-offer-panel-content {
        flex: 1;
        min-width: 0;
    }

    .builder-special-offer-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 12px;
        border-radius: 14px;
        font-size: 19px;
    }

    .builder-special-offer-heading {
        font-size: 20px;
    }

    .builder-special-offer-subtitle {
        margin-top: 5px;
    }

    .builder-special-offer-panel-actions {
        flex: 0 0 auto;
        align-items: flex-end;
    }

    .builder-special-offer-products-column {
        padding: 18px 0 0;
    }

    .builder-special-offer-watermark {
        display: none;
    }

}


/* ==================================================
   Small Mobile
   ================================================== */

@media only screen and (max-width: 575px) {

    .builder-special-offer-section .special_offer-area {
        padding: 14px;
        border-radius: 18px;
    }

    .builder-special-offer-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .builder-special-offer-panel-content {
        width: 100%;
    }

    .builder-special-offer-panel-actions {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .builder-special-offer-heading {
        font-size: 18px;
    }

    .builder-special-offer-subtitle {
        font-size: 12px;
    }

    .builder-special-offer-eyebrow {
        font-size: 10px;
    }

    .builder-special-offer-view-all {
        min-height: 38px;
        padding: 7px 12px;
        font-size: 11px;
    }

    .builder-special-offer-nav {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .builder-special-offer-products-column {
        padding-top: 15px;
    }

}

/* ----- Home brand section ------*/

.builder-brand-section-wrapper {
    padding: 24px 22px;
    border-radius: 18px;
}

@media (max-width: 767.98px) {
    .builder-brand-section-wrapper {
        padding: 18px 14px;
        border-radius: 14px;
    }
}


/* =========================================
   Homepage Builder - Product Section
   ========================================= */

.builder-product-section-wrapper {
    position: relative;
    /*padding: 24px 22px;*/
    /*border-radius: 18px;*/
}

.builder-product-slider-container {
    position: relative;
    width: 100%;
    min-width: 0;
}

.builder-product-slider {
    width: 100%;
    min-width: 0;
}

.builder-product-slider .swiper-wrapper {
    align-items: stretch;
}

.builder-product-slider .swiper-slide {
    height: auto;
}

.builder-product-slider .product-item {
    height: 100%;
}


/* گرید پنج‌تایی فقط از 1200px به بالا */
@media only screen and (min-width: 1200px) {

    .builder-col-xl-5 {
        flex: 0 0 auto;
        width: 20%;
    }

}


@media only screen and (max-width: 767.98px) {

    .builder-product-section-wrapper {
        padding: 18px 14px;
        border-radius: 14px;
    }

}

/* ==================================================
   Homepage Builder - Compact Product Grid
   ================================================== */


/* --------------------------------------------------
   Grid Container
   -------------------------------------------------- */

.builder-compact-product-grid {
    display: grid;
    grid-template-columns: repeat(
        var(--builder-product-grid-columns, 4),
        minmax(0, 1fr)
    );
    gap: 1px;
    width: 100%;
    min-width: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 32, 55, .04);
}


/* --------------------------------------------------
   Grid Item
   -------------------------------------------------- */

.builder-compact-product-grid-item {
    display: flex;
    min-width: 0;
    background-color: #fff;
}


/* --------------------------------------------------
   Product Card
   -------------------------------------------------- */

.builder-compact-product-card {
    position: relative;

    width: 100%;
    height: 100%;
    min-width: 0;

    background-color: #fff;

    transition:
        background-color .25s ease,
        box-shadow .25s ease;
}

.builder-compact-product-link {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 14px;

    width: 100%;
    height: 100%;
    min-height: 150px;
    padding: 16px;

    color: inherit;
    text-decoration: none;
    direction: rtl;
}

.builder-compact-product-link:hover {
    color: inherit;
    text-decoration: none;
}


/* --------------------------------------------------
   Product Media
   -------------------------------------------------- */

.builder-compact-product-media {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 88px;
    height: 104px;
    min-width: 0;

    padding: 4px;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.builder-compact-product-media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    transition: transform .35s ease;
}


/* --------------------------------------------------
   Product Content
   -------------------------------------------------- */

.builder-compact-product-content {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;
    min-width: 0;
}


/* --------------------------------------------------
   Product Title
   -------------------------------------------------- */

.builder-compact-product-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    min-width: 0;
    min-height: 3.8em;
    max-height: 3.8em;
    margin: 0 0 12px;

    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;

    color: #263238;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.9;
    text-align: right;

    transition: color .25s ease;
}


/* --------------------------------------------------
   Product Footer
   -------------------------------------------------- */

.builder-compact-product-footer {
    display: flex;
    align-items: flex-end;

    width: 100%;
    min-width: 0;
    min-height: 52px;
    margin-top: auto;
}


/* --------------------------------------------------
   Price + Discount Row
   -------------------------------------------------- */

.builder-compact-product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    width: 100%;
    min-width: 0;

    /*
     * اولین عنصر یعنی تخفیف سمت راست قرار می‌گیرد
     * و قیمت در سمت چپ کارت نمایش داده می‌شود.
     */
    direction: rtl;
}


/* --------------------------------------------------
   Discount Area
   -------------------------------------------------- */

.builder-compact-product-discount-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    min-height: 42px;
    padding-left: 12px;
    border-left: 1px dashed rgba(84, 110, 122, .30);
}

.builder-compact-product-discount {
    position: static;
    inset: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 40px;
    min-height: 30px;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        #ffad00 0%,
        #ff8a00 100%
    );
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;

    white-space: nowrap;

    box-shadow: 0 8px 18px rgba(255, 138, 0, .20);
}

.builder-compact-product-discount i {
    font-size: 12px;
}


/* --------------------------------------------------
   Product Prices
   -------------------------------------------------- */

.builder-compact-product-prices {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-end;

    width: 100%;
    min-width: 0;

    text-align: left;
    direction: rtl;
}


/* قیمت قبلی */
.builder-compact-product-old-price {
    display: inline-block;
    margin: 0 0 5px;
    color: #aeb8c5;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    text-decoration-line: line-through;
    text-decoration-thickness: 1.5px;
    text-decoration-color: rgba(144, 164, 174, .75);
}

/* قیمت نهایی */
.builder-compact-product-current-price {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 4px;
    max-width: 100%;
    color: #202631;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.35;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.25px;
}

.builder-compact-product-current-price small {
    color: #78909c;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}


/* --------------------------------------------------
   Out Of Stock
   -------------------------------------------------- */

.builder-compact-product-outofstock {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 32px;
    padding: 5px 14px;

    border: 1px solid rgba(84, 110, 122, .12);
    border-radius: 9px;

    background-color: #eceff1;
    color: #546e7a;

    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
}

.builder-compact-product-card.is-unavailable
.builder-compact-product-media img {
    opacity: .65;
}


/* --------------------------------------------------
   Desktop Hover
   -------------------------------------------------- */

@media (hover: hover) {

    .builder-compact-product-card:hover {
        z-index: 2;

        background-color: #f8fbff;

        box-shadow:
            0 12px 28px rgba(11, 32, 55, .08),
            inset 0 0 0 1px rgba(13, 71, 161, .06);
    }

    .builder-compact-product-card:hover
    .builder-compact-product-media img {
        transform: scale(1.06);
    }

    .builder-compact-product-card:hover
    .builder-compact-product-title {
        color: #0d47a1;
    }

}


/* ==================================================
   Small Desktop
   992px تا 1199px
   ================================================== */

@media only screen and (min-width: 992px) and (max-width: 1199.98px) {

    .builder-compact-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .builder-compact-product-link {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 12px;

        min-height: 142px;
        padding: 14px;
    }

    .builder-compact-product-media {
        width: 82px;
        height: 96px;
    }

    .builder-compact-product-title {
        font-size: 12.5px;
    }

    .builder-compact-product-discount-wrap {
        padding-left: 10px;
    }

    .builder-compact-product-discount {
        min-width: 52px;
        min-height: 36px;
        padding: 6px 10px;

        font-size: 14px;
    }

    .builder-compact-product-current-price {
        font-size: 14px;
    }

}


/* ==================================================
   Tablet
   768px تا 991px
   ================================================== */

@media only screen and (min-width: 768px) and (max-width: 991.98px) {

    .builder-compact-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .builder-compact-product-link {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 12px;

        min-height: 138px;
        padding: 14px;
    }

    .builder-compact-product-media {
        width: 82px;
        height: 94px;
    }

    .builder-compact-product-title {
        margin-bottom: 10px;
        font-size: 12.5px;
    }

    .builder-compact-product-price-row {
        gap: 10px;
    }

    .builder-compact-product-discount-wrap {
        min-height: 38px;
        padding-left: 10px;
    }

    .builder-compact-product-discount {
        min-width: 50px;
        min-height: 34px;
        padding: 6px 9px;

        border-radius: 13px;

        font-size: 13px;
    }

    .builder-compact-product-current-price {
        font-size: 13px;
    }

    .builder-compact-product-old-price {
        font-size: 10px;
    }

}


/* ==================================================
   Mobile
   کمتر از 768px
   ================================================== */

@media only screen and (max-width: 767.98px) {

    .builder-compact-product-grid {
        grid-template-columns: minmax(0, 1fr);
        border-radius: 13px;
    }

    .builder-compact-product-link {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 12px;

        min-height: 128px;
        padding: 12px;
    }

    .builder-compact-product-media {
        width: 78px;
        height: 90px;

        padding: 3px;
        border-radius: 10px;
    }

    .builder-compact-product-title {
        min-height: 3.8em;
        max-height: 3.8em;
        margin-bottom: 8px;

        font-size: 12px;
        line-height: 1.9;
    }

    .builder-compact-product-footer {
        min-height: 45px;
    }

    .builder-compact-product-price-row {
        align-items: center;
        gap: 9px;
    }

    .builder-compact-product-discount-wrap {
        min-height: 36px;
        padding-left: 9px;

        border-left-color: rgba(84, 110, 122, .25);
    }

    .builder-compact-product-discount {
        min-width: 48px;
        min-height: 32px;
        padding: 5px 8px;
        border-radius: 12px;
        font-size: 12px;
        box-shadow: 0 6px 14px rgba(255, 138, 0, .16);
    }

    .builder-compact-product-discount i {
        font-size: 9px;
    }

    .builder-compact-product-old-price {
        margin-bottom: 3px;

        font-size: 10px;
    }

    .builder-compact-product-current-price {
        gap: 3px;

        font-size: 13px;
        letter-spacing: -.15px;
    }

    .builder-compact-product-current-price small {
        font-size: 8px;
    }

    .builder-compact-product-outofstock {
        min-height: 30px;
        padding: 5px 12px;

        font-size: 10px;
    }

}


/* ==================================================
   Very Small Mobile
   کمتر از 375px
   ================================================== */

@media only screen and (max-width: 374.98px) {

    .builder-compact-product-link {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 9px;

        padding: 10px;
    }

    .builder-compact-product-media {
        width: 70px;
        height: 82px;
    }

    .builder-compact-product-title {
        font-size: 11px;
    }

    .builder-compact-product-price-row {
        gap: 7px;
    }

    .builder-compact-product-discount-wrap {
        padding-left: 7px;
    }

    .builder-compact-product-discount {
        min-width: 43px;
        min-height: 30px;
        padding: 5px 7px;

        font-size: 11px;
    }

    .builder-compact-product-current-price {
        font-size: 12px;
    }

    .builder-compact-product-current-price small {
        font-size: 7.5px;
    }

}


/* =========================================
   Homepage Builder - Story Section
   ========================================= */

.builder-story-section-wrapper {
    position: relative;
    padding: 20px 22px;
    border-radius: 18px;
}

.builder-story-section .story-list-wrapper {
    width: 100%;
    min-width: 0;
}

.builder-story-section .story-list {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.builder-story-section .story-list .swiper-slide {
    height: auto;
}


@media only screen and (max-width: 767.98px) {

    .builder-story-section-wrapper {
        padding: 16px 12px;
        border-radius: 14px;
    }

}
/* =========================================
   Homepage Builder - Blog Section Structure
   ========================================= */

.builder-blog-section-wrapper {
    position: relative;
/*    padding: 24px 22px;
    border-radius: 18px;*/
}

.builder-blog-slider-container {
    position: relative;
    width: 100%;
    min-width: 0;
}

.builder-blog-slider {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.builder-blog-slider .swiper-wrapper {
    align-items: stretch;
}

.builder-blog-slider .swiper-slide {
    display: flex;
    height: auto;
}

.builder-blog-slider .swiper-slide .post-item {
    width: 100%;
    height: 100%;
}

.builder-blog-grid > .post-border-items {
    display: flex;
}

.builder-blog-grid > .post-border-items .post-item {
    width: 100%;
    height: 100%;
}

@media only screen and (max-width: 767.98px) {
    .builder-blog-section-wrapper {
        padding: 18px 14px;
        border-radius: 14px;
    }
}
