/* Reusable UI + home product sliders (multi-tab & list widgets) */

.ui-gradient-divider {
    display: block;
    width: 100%;
    height: 2px;
    margin: 0;
    padding: 0;
    border: 0;
    background: linear-gradient(
        90deg,
        rgba(127, 86, 217, 0.05) 0%,
        rgba(214, 57, 127, 0.75) 18%,
        rgba(127, 86, 217, 0.85) 50%,
        rgba(233, 67, 147, 0.7) 82%,
        rgba(127, 86, 217, 0.05) 100%
    );
}

.ui-gradient-divider--tabs {
    margin-top: 0;
}

.ui-gradient-divider--card {
    flex: 0 0 auto;
    width: calc(100% - 8px);
    height: 1px;
    margin: 10px auto 10px;
    opacity: 0.9;
}

.home-products-section {
    width: 100%;
    padding: 68px 0px 68px 0px;
    box-sizing: border-box;
    background-color: #F2F4F7;
}

.home-products-section__container {
    max-width: 1560px;
}

.home-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    direction: rtl;
}

.home-section-head__text {
    flex: 1 1 auto;
    min-width: 0;
}

.home-section-head__title {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.45;
    font-weight: 800;
    color: #1d2939;
}

.home-section-head__subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #667085;
}

.home-section-head__action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid #eaecf0;
    background: #ffffff;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.home-section-head__action:hover {
    border-color: #d0d5dd;
    background: #fcfcfd;
    color: #344054;
    text-decoration: none;
}

.home-section-head__action .fa {
    font-size: 13px;
    opacity: 0.85;
}

/* Multi-tab nav */
.home-multi-tab-products__tabs-head {
    margin-bottom: 24px;
}

.home-multi-tab-products__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 8px;
    margin: 0;
    padding: 0 0 14px;
    list-style: none;
    direction: rtl;
    width: 100%;
}

.home-multi-tab-products__nav-item {
    margin: 0;
}

.home-multi-tab-products__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    color: #667085;
    text-decoration: none;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.home-multi-tab-products__tab:hover {
    color: #6941c9;
    text-decoration: none;
}

.home-multi-tab-products__nav-item.active .home-multi-tab-products__tab {
    background: #f4ebff;
    color: #6941c9;
    font-weight: 700;
}

.home-multi-tab-products__panes {
    margin-top: 0;
}

.home-list-products .ui-gradient-divider--tabs,
.home-list-products > .container > .ui-gradient-divider {
    margin-bottom: 24px;
}

/* Slider layout: carousel + featured spotlight (RTL: spotlight on the right) */
.home-products-slider-layout {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    gap: 12px;
    direction: rtl;
}

.home-products-slider-layout__main {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    padding-bottom: 8px;
}

.home-products-slider-layout__spotlight {
    flex: 0 0 292px;
    max-width: 292px;
    min-width: 0;
}

.home-products-slider-layout--no-spotlight .home-products-slider-layout__main {
    width: 100%;
}

.home-products-carousel.owl-carousel {
    display: block;
}

.home-products-carousel.owl-carousel:not(.owl-loaded) > .home-products-carousel__item:not(:first-child) {
    display: none;
}

.home-products-carousel.owl-carousel .owl-stage-outer {
    overflow: hidden;
    width: 100%;
}

.home-products-carousel.owl-carousel .owl-item {
    box-sizing: border-box;
}

.home-products-carousel.owl-carousel .owl-nav {
    position: absolute;
    top: 42%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    margin: 0;
    pointer-events: none;
}

.home-products-carousel.owl-carousel .owl-nav button.owl-prev,
.home-products-carousel.owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    margin: 0;
    border-radius: 50%;
    border: 1px solid #eaecf0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.1);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475467;
    font-size: 22px;
    line-height: 1;
}

.home-products-carousel.owl-carousel .owl-nav button.owl-prev {
    right: auto;
    left: -4px;
}

.home-products-carousel.owl-carousel .owl-nav button.owl-next {
    left: auto;
    right: -4px;
}

.home-products-carousel.owl-carousel .owl-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
}

.home-products-carousel.owl-carousel .owl-dots button.owl-dot {
    width: 22px;
    height: 3px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #eaecf0;
    transition: width 0.2s ease, background 0.2s ease;
}

.home-products-carousel.owl-carousel .owl-dots button.owl-dot.active {
    width: 34px;
    background: linear-gradient(90deg, #7f56d9 0%, #d6397f 100%);
}

/* Product cards */
.shop-product-card {
    position: relative;
    height: 100%;
    box-sizing: border-box;
}

.shop-product-card--compact {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #E4E7EC;
    padding: 14px 14px 16px;
    min-height: 340px;
}

.shop-product-card--featured {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    width: 100%;
    min-height: 340px;
    border-radius: 22px;
    overflow: hidden;
    background: #e5484d;
    box-shadow: 0 10px 28px rgba(229, 72, 77, 0.28);
    color: #ffffff;
}

.shop-product-card__wish {
    position: absolute;
    z-index: 3;
    top: 14px;
    left: 14px;
    right: auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #98a2b3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: color 0.2s ease;
}

.shop-product-card__wish:hover,
.shop-product-card__wish.favorites {
    color: #f04438;
}

.shop-product-card__link {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.shop-product-card--compact .shop-product-card__link {
    color: #344054;
}

.shop-product-card__badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    min-width: 44px;
    height: 44px;
    padding: 0 6px;
    border-radius: 50%;
    background: #f04438;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(240, 68, 56, 0.35);
}

.shop-product-card--featured .shop-product-card__badge {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    box-shadow: none;
    backdrop-filter: blur(6px);
}

.shop-product-card__media {
    position: relative;
    flex: 0 0 auto;
    height: 188px;
    margin: 4px 0 12px;
    padding: 6px 8px;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-product-card--featured .shop-product-card__media {
    height: 150px;
    margin: 18px 14px 10px;
    padding: 0 8px;
    background: transparent;
}

.shop-product-card__img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.shop-product-card__title {
    margin: 0;
    padding: 0 6px;
    font-size: 14px;
    line-height: 1.65;
    font-weight: 600;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
}

.shop-product-card--featured .shop-product-card__title {
    padding: 0 14px;
    font-size: 15px;
    color: #ffffff;
    text-align: right;
    min-height: 0;
}

.shop-product-card__stock {
    margin: 0 0 10px;
    padding: 0 6px;
    font-size: 12px;
    line-height: 1.4;
    color: #f04438;
    font-weight: 600;
    text-align: center;
}

.shop-product-card__footer {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding: 0 4px;
}

.shop-product-card--featured .shop-product-card__footer {
    padding: 8px 14px 16px;
}

.shop-product-card__prices {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.shop-product-card__price-old {
    font-size: 12px;
    color: #98a2b3;
    text-decoration: line-through;
}

.shop-product-card--featured .shop-product-card__price-old {
    color: rgba(255, 255, 255, 0.78);
}

.shop-product-card__price {
    font-size: 15px;
    font-weight: 800;
    color: #574F99;
    white-space: nowrap;
}

.shop-product-card--featured .shop-product-card__price {
    color: #ffffff;
    font-size: 16px;
}

.shop-product-card__cart {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #42307d;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(66, 48, 125, 0.28);
}

.shop-product-card__timer-rail {
    flex: 0 0 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}

.shop-product-card__countdown.countdown {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
}

.shop-product-card__countdown .countdown-item {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 10px;
    padding: 6px 4px;
    text-align: center;
    color: #344054;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

.shop-product-card__countdown .countdown-value {
    display: block;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    color: #1d2939;
}

.shop-product-card__countdown .countdown-label {
    display: block;
    font-size: 10px;
    line-height: 1.2;
    color: #667085;
    margin-top: 2px;
}

.shop-product-card__featured-cart {
    position: absolute;
    z-index: 2;
    left: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    backdrop-filter: blur(8px);
}

.shop-product-card__featured-cart:hover {
    background: rgba(255, 255, 255, 0.32);
    color: #ffffff;
}

/* Duo promo banners — max 2 side-by-side, Figma pill ends (LTR geometry) */
.home-duo-banners-section {
    position: relative;
    width: 100%;
    padding: 68px 0px 68px 0px;
    overflow: hidden;
    box-sizing: border-box;
}

.home-duo-banners-section__bg {
    position: absolute;
    inset: 0;
    background-color: #f8f9fc;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.2;
}

.home-duo-banners-section__container {
    position: relative;
    z-index: 1;
    max-width: 1560px;
}

.home-duo-banners {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    max-width: 100%;
    direction: ltr;
}

.home-duo-banner {
    display: grid;
    grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
    align-items: stretch;
    min-height: 268px;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    overflow: hidden;
}

.home-duo-banner--warm {
    background: #ffd4b8;
    border-radius: 999px 0 0 999px;
}

.home-duo-banner--pink {
    background: linear-gradient(135deg, #ffd6e3 0%, #ffb8cf 55%, #ff9ec0 100%);
    border-radius: 0 999px 999px 0;
}

.home-duo-banner__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 268px;
    height: 100%;
    padding: 16px 12px 16px 20px;
    box-sizing: border-box;
}

.home-duo-banner__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 236px;
    object-fit: contain;
    object-position: center;
}

.home-duo-banner__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    padding: 28px 28px 28px 12px;
    direction: rtl;
    text-align: right;
}

.home-duo-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(157, 17, 98, 0.12);
    color: #9d1162;
    font-size: 12px;
    font-weight: 700;
}

.home-duo-banner__title {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.35;
    font-weight: 800;
    color: #5c2d0c;
}

.home-duo-banner--pink .home-duo-banner__title {
    color: #851651;
}

.home-duo-banner__text {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.7;
    color: #7a4518;
    max-width: 320px;
}

.home-duo-banner--pink .home-duo-banner__text {
    color: #9d174d;
}

.home-duo-banner__text--secondary {
    margin-bottom: 18px;
    opacity: 0.92;
}

.home-duo-banner__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 11px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
}

.home-duo-banner--warm .home-duo-banner__cta {
    background: linear-gradient(90deg, #ffb86a 0%, #ffd4a8 100%);
    color: #5c2d0c;
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.15);
}

.home-duo-banner--pink .home-duo-banner__cta {
    background: linear-gradient(90deg, #f63d8b 0%, #ff6eb0 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(219, 39, 119, 0.22);
}

@media (max-width: 991px) {
    .home-products-slider-layout {
        flex-direction: column;
    }

    .home-products-slider-layout__spotlight {
        flex: 0 0 auto;
        max-width: none;
        width: 100%;
    }

    .home-section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .home-section-head__action {
        align-self: flex-start;
    }

    .home-duo-banners {
        grid-template-columns: 1fr;
        gap: 14px;
        direction: rtl;
    }

    .home-duo-banner {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 28px !important;
    }

    .home-duo-banner__media {
        min-height: 200px;
        padding: 20px;
    }

    .home-duo-banner__content {
        padding: 8px 24px 24px;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .home-products-section {
        padding: 28px 0 36px;
    }

    .shop-product-card--compact {
        min-height: 320px;
    }

    .shop-product-card__media {
        height: 168px;
    }

    .home-multi-tab-products__nav {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
    }

    .home-multi-tab-products__tab {
        white-space: nowrap;
    }
}


.home-multi-tab-products .nav-active a {
    background-color: #f4ebff !important;
    color: #6941c9 !important;
}

.home-multi-tab-products .home-section-head{
    background: transparent !important;
}

.home-list-products .home-section-head{
    background: transparent !important;
}