.home-product-showcase {
    overflow: visible;
    padding: 0 18px 22px;
    border-radius: 24px;
    background: #fff;
}

.home-product-showcase__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 4px 16px;
    border-bottom: 1px solid #eef0f3;
}

.home-product-showcase__heading {
    min-width: 0;
}

.home-product-showcase__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #8a8f98;
    font-size: 12px;
    line-height: 1.7;
}

.home-product-showcase__title {
    margin: 0;
    color: #252a31;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.6;
}

.home-product-showcase__more {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    color: #555d68;
    font-size: 13px;
    font-weight: 700;
    transition: color .2s ease, transform .2s ease;
}

.home-product-showcase__more:hover {
    color: #222;
    transform: translateX(-2px);
}

.home-product-showcase__more i {
    font-size: 11px;
}

.home-product-carousel {
    margin-top: 18px;
}

.home-product-carousel .owl-stage {
    display: flex;
}

.home-product-carousel .owl-item {
    display: flex;
    padding: 2px 1px 10px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.home-product-card {
    position: relative;
    display: flex !important;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid #edf0f2;
    border-radius: 18px;
    background: #fff;
    text-align: right !important;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.home-product-card:hover {
    border-color: #dfe3e7;
    box-shadow: 0 10px 28px rgba(25, 35, 45, .08);
    transform: translateY(-3px);
}

.home-product-card__image-link {
    position: relative;
    display: block;
    padding: 14px 14px 0;
}

.home-product-card__image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    background: #fafbfc;
}

.home-product-carousel .owl-item .home-product-card__image {
    width: 100% !important;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 0;
    transition: transform .25s ease;
}

.home-product-card:hover .home-product-card__image {
    transform: scale(1.025);
}

.home-product-card__badge {
    position: absolute;
    z-index: 2;
    top: 24px;
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
}

.home-product-card__badge--discount {
    right: 24px;
    background: #ef394e;
    color: #fff;
}

.home-product-card__badge--stock {
    left: 24px;
    background: rgba(50, 56, 64, .88);
    color: #fff;
}

.home-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 13px 14px 14px;
}

.home-product-card__title {
    min-height: 45px;
    margin: 0 0 14px;
    overflow: hidden;
    color: #30343b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-product-card__title a {
    color: inherit;
}

.home-product-card__title a:hover {
    color: #111;
}

.home-product-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.home-product-card__price {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    direction: ltr;
    text-align: left;
}

.home-product-card__price del {
    min-height: 19px;
    color: #a1a6ad;
    font-size: 11px;
    line-height: 1.7;
}

.home-product-card__price del span {
    font-size: 10px;
}

.home-product-card__price ins {
    display: block !important;
    height: auto !important;
    color: inherit;
    font-size: 15px !important;
    font-weight: 800;
    line-height: 1.8;
    text-decoration: none;
    white-space: nowrap;
}

.home-product-card__price ins > span > span {
    margin-right: 3px;
    font-size: 10px;
    font-weight: 600;
}

.home-product-card__cart.search_icon_cart {
    position: relative;
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

.home-product-card__cart.search_icon_cart:before {
    position: static;
    inset: auto;
}

.home-product-card__cart.search_icon_cart:hover:not(:disabled) {
    box-shadow: 0 5px 14px rgba(0, 0, 0, .12);
    transform: translateY(-1px);
}

.home-product-card__cart.search_icon_cart:disabled,
.home-product-card__cart.search_icon_cart.disabled {
    cursor: not-allowed;
    opacity: .4;
    box-shadow: none;
    transform: none;
}

.home-product-showcase__empty {
    width: 100%;
    padding: 35px 20px;
    color: #8d9299;
    text-align: center;
}

.home-product-showcase .owl-carousel .owl-nav .owl-prev,
.home-product-showcase .owl-carousel .owl-nav .owl-next {
    top: 43%;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    box-shadow: 0 5px 18px rgba(20, 28, 38, .12);
}

.home-product-showcase .owl-carousel .owl-nav .owl-prev {
    right: -12px;
}

.home-product-showcase .owl-carousel .owl-nav .owl-next {
    left: -12px;
}

.home-product-showcase .owl-carousel .owl-nav .owl-prev i,
.home-product-showcase .owl-carousel .owl-nav .owl-next i {
    line-height: 42px;
}

@media (max-width: 767.98px) {
    .home-product-showcase {
        padding: 0 10px 14px;
        border-radius: 18px;
    }

    .home-product-showcase__header {
        align-items: flex-end;
        padding: 15px 2px 12px;
    }

    .home-product-showcase__eyebrow {
        font-size: 10px;
    }

    .home-product-showcase__title {
        font-size: 16px;
    }

    .home-product-showcase__more {
        gap: 5px;
        font-size: 11px;
    }

    .home-product-carousel {
        margin-top: 12px;
    }

    .home-product-card {
        border-radius: 14px;
    }

    .home-product-card__image-link {
        padding: 9px 9px 0;
    }

    .home-product-card__image-wrap {
        border-radius: 11px;
    }

    .home-product-card__badge {
        top: 16px;
        min-height: 23px;
        padding: 2px 7px;
        font-size: 9px;
    }

    .home-product-card__badge--discount {
        right: 16px;
    }

    .home-product-card__badge--stock {
        left: 16px;
    }

    .home-product-card__body {
        padding: 10px;
    }

    .home-product-card__title {
        min-height: 42px;
        margin-bottom: 10px;
        font-size: 11px;
        line-height: 1.9;
    }

    .home-product-card__footer {
        gap: 6px;
    }

    .home-product-card__price ins {
        font-size: 12px !important;
    }

    .home-product-card__price del {
        font-size: 9px;
    }

    .home-product-card__cart.search_icon_cart {
        flex-basis: 33px;
        width: 33px;
        height: 33px;
        border-radius: 10px;
        font-size: 13px;
    }

    .home-product-showcase .owl-carousel .owl-nav .owl-prev,
    .home-product-showcase .owl-carousel .owl-nav .owl-next {
        display: none;
    }
}

/* Featured products directly below the seven circular homepage shortcuts. */
.home-featured-products {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.home-featured-products__spotlight,
.home-featured-products__latest {
    min-width: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
}

.home-featured-products__header,
.home-featured-products__latest-header {
    padding-right: 22px;
    padding-left: 22px;
}

.home-featured-carousel {
    position: relative;
    min-height: 350px;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.home-featured-carousel:active {
    cursor: grabbing;
}

.home-featured-carousel .owl-stage {
    display: flex;
}

.home-featured-carousel .owl-item {
    display: flex;
}

.home-featured-carousel__item {
    display: flex;
    width: 100%;
    min-height: 350px;
}

.home-featured-carousel__item .home-featured-slide {
    width: 100%;
}

.home-featured-slide {
    display: grid;
    grid-template-columns: minmax(260px, 43%) minmax(0, 1fr);
    align-items: stretch;
    min-height: 350px;
    padding: 22px 58px 34px;
    direction: rtl;
}

.home-featured-slide__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 8px 0;
}

.home-featured-slide__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 300px);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 22px;
    background: #fafbfc;
}

.home-featured-slide__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

.home-featured-slide__media:hover .home-featured-slide__image {
    transform: scale(1.025);
}

.home-featured-slide__badge {
    top: 18px;
    right: 8px;
}

.home-featured-slide__badge--stock {
    right: auto;
    left: 8px;
}

.home-featured-slide__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 18px 28px 18px 8px;
}

.home-featured-slide__label {
    width: max-content;
    max-width: 100%;
    margin-bottom: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f5f6f8;
    color: #777e88;
    font-size: 11px;
    font-weight: 700;
}

.home-featured-slide__title {
    margin: 0 0 17px;
    color: #252a31;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.85;
}

.home-featured-slide__title a {
    color: inherit;
}

.home-featured-slide__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.home-featured-slide__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 6px 10px;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    color: #717780;
    font-size: 11px;
    line-height: 1.7;
}

.home-featured-slide__meta i {
    flex: 0 0 auto;
    color: #a0a5ac;
    font-size: 10px;
}

.home-featured-slide__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: auto;
}

.home-featured-slide__price,
.home-latest-product__price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    direction: ltr;
    text-align: left;
}

.home-featured-slide__price del,
.home-latest-product__price del {
    color: #a1a6ad;
    font-size: 11px;
    line-height: 1.7;
}

.home-featured-slide__price ins,
.home-latest-product__price ins {
    height: auto !important;
    font-size: 18px !important;
    font-weight: 800;
    line-height: 1.8;
    text-decoration: none;
    white-space: nowrap;
}

.home-featured-slide__price ins span span,
.home-latest-product__price ins span span {
    margin-right: 3px;
    font-size: 10px;
    font-weight: 600;
}

.home-featured-slide__action {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #e7e9ed;
    border-radius: 12px;
    background: #fff;
    color: #555d68;
    font-size: 12px;
    font-weight: 800;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.home-featured-slide__action:hover {
    border-color: #d9dde2;
    box-shadow: 0 5px 16px rgba(20, 28, 38, .08);
    color: #222;
    transform: translateY(-1px);
}

.home-featured-carousel__indicators {
    right: 50%;
    bottom: 12px;
    left: auto;
    width: auto;
    margin: 0;
    transform: translateX(50%);
}

.home-featured-carousel__indicators li {
    width: 7px;
    height: 7px;
    margin: 0 3px;
    border: 0;
    border-radius: 999px;
    background: #c9cdd2;
    opacity: 1;
    transition: width .2s ease, background .2s ease;
}

.home-featured-carousel__indicators li.active {
    width: 22px;
    background: #676e78;
}

.home-featured-carousel__control {
    top: 50%;
    bottom: auto;
    width: 38px;
    height: 38px;
    border: 1px solid #eceef1;
    border-radius: 12px;
    background: rgba(255, 255, 255, .95);
    color: #555d68;
    box-shadow: 0 5px 16px rgba(20, 28, 38, .1);
    opacity: 1;
    transform: translateY(-50%);
}

.home-featured-carousel__control:hover {
    color: #222;
}

.home-featured-carousel__control--prev {
    right: 12px;
    left: auto;
}

.home-featured-carousel__control--next {
    right: auto;
    left: 12px;
}

.home-featured-products__latest {
    display: flex;
    flex-direction: column;
}

.home-featured-products__latest-header {
    flex: 0 0 auto;
}

.home-latest-carousel {
    flex: 1;
    min-height: 0;
    padding: 16px 18px 8px;
}

#bid-s.home-latest-carousel .item,
#bid-s.home-latest-carousel .home-latest-product {
    padding: 0;
}

.home-latest-product {
    display: flex;
    flex-direction: column;
    min-height: 260px;
}

.home-latest-product__media {
    position: relative;
    display: block;
}

.home-latest-product__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
    background: #fafbfc;
}

#bid-s.home-latest-carousel .home-latest-product__image {
    width: 100% !important;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.home-latest-product__badge {
    top: 10px;
    left: 10px;
}

.home-latest-product__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 13px 2px 4px;
}

.home-latest-product__title {
    min-height: 45px;
    margin: 0 0 8px;
    overflow: hidden;
    color: #30343b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.9;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-latest-product__title a {
    color: inherit;
}

.home-latest-product__price {
    margin-top: auto;
}

.home-latest-product__price ins {
    font-size: 14px !important;
}

.home-latest-progress {
    flex: 0 0 4px;
    width: calc(100% - 36px);
    height: 4px;
    margin: 5px 18px 16px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef0f3;
}

.home-latest-progress .slide-progress {
    height: 100%;
    border-radius: inherit;
    background: var(--primary-color, #ef394e);
}

@media (max-width: 991.98px) {
    .home-featured-products {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-featured-slide {
        grid-template-columns: minmax(220px, 40%) minmax(0, 1fr);
    }

    .home-latest-product {
        min-height: 0;
    }

    .home-latest-product__image-wrap {
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .home-featured-products {
        gap: 14px;
        margin-bottom: 20px;
    }

    .home-featured-products__spotlight,
    .home-featured-products__latest {
        border-radius: 18px;
    }

    .home-featured-products__header,
    .home-featured-products__latest-header {
        padding-right: 14px;
        padding-left: 14px;
    }

    .home-featured-carousel,
    .home-featured-carousel__item {
        min-height: 0;
    }

    .home-featured-slide {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        padding: 14px 16px 42px;
    }

    .home-featured-slide__media {
        padding: 0 32px;
    }

    .home-featured-slide__image-wrap {
        width: min(100%, 250px);
    }

    .home-featured-slide__content {
        padding: 12px 2px 0;
    }

    .home-featured-slide__label {
        margin-bottom: 6px;
        font-size: 10px;
    }

    .home-featured-slide__title {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .home-featured-slide__meta {
        gap: 5px;
        margin-bottom: 14px;
    }

    .home-featured-slide__meta span {
        padding: 4px 8px;
        font-size: 10px;
    }

    .home-featured-slide__bottom {
        align-items: center;
    }

    .home-featured-slide__price ins {
        font-size: 14px !important;
    }

    .home-featured-slide__action {
        padding: 8px 10px;
        font-size: 10px;
    }

    .home-featured-carousel__control {
        top: 34%;
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .home-featured-carousel__control--prev {
        right: 8px;
    }

    .home-featured-carousel__control--next {
        left: 8px;
    }
}

/* Popular-products Owl presentation. The modern id avoids the original
   theme's legacy #offercarousel Bootstrap rules entirely. */
#homeFeaturedCarousel.home-featured-carousel {
    height: auto;
    min-height: 350px;
    margin-bottom: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-featured-carousel .owl-nav {
    margin: 0;
}

.home-featured-carousel .owl-nav .owl-prev,
.home-featured-carousel .owl-nav .owl-next {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 1px solid var(--home-border, #e8ecf1) !important;
    border-radius: 50% !important;
    background: var(--home-surface-raised, #fff) !important;
    color: var(--home-text, #20242b) !important;
    opacity: .94;
    transform: translateY(-50%);
    transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

.home-featured-carousel .owl-nav .owl-prev {
    right: 12px;
}

.home-featured-carousel .owl-nav .owl-next {
    left: 12px;
}

.home-featured-carousel .owl-nav .owl-prev:hover,
.home-featured-carousel .owl-nav .owl-next:hover {
    opacity: 1;
    box-shadow: 0 8px 20px rgba(24, 32, 44, .10);
    transform: translateY(-50%) scale(1.04);
}

.home-featured-carousel .owl-dots {
    position: absolute;
    z-index: 4;
    right: 50%;
    bottom: 10px;
    display: flex;
    width: auto;
    align-items: center;
    gap: 5px;
    margin: 0;
    transform: translateX(50%);
}

.home-featured-carousel .owl-dots .owl-dot span {
    display: block;
    width: 7px;
    height: 7px;
    margin: 0;
    border-radius: 999px;
    background: var(--home-border, #e8ecf1);
    transition: width .2s ease, background .2s ease;
}

.home-featured-carousel .owl-dots .owl-dot.active span {
    width: 28px;
    background: var(--home-primary, #ef394e);
}

.home-featured-progress {
    height: 3px;
    margin: 0 22px 14px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--home-border, #e8ecf1);
}

.home-featured-progress__bar {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--home-primary, #ef394e);
    transform: scaleX(0);
    transform-origin: right center;
}

.home-featured-progress__bar.is-running {
    animation: homeFeaturedProgress var(--home-featured-progress-duration, 6500ms) linear forwards;
}

.home-featured-products__spotlight:hover .home-featured-progress__bar.is-running {
    animation-play-state: paused;
}

@keyframes homeFeaturedProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (max-width: 575.98px) {
    #homeFeaturedCarousel.home-featured-carousel,
    .home-featured-carousel__item {
        min-height: 0;
    }

    .home-featured-carousel .owl-nav .owl-prev,
    .home-featured-carousel .owl-nav .owl-next {
        top: 31%;
        width: 31px;
        height: 31px;
    }

    .home-featured-carousel .owl-nav .owl-prev {
        right: 8px;
    }

    .home-featured-carousel .owl-nav .owl-next {
        left: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-featured-progress__bar.is-running {
        animation-duration: 1ms;
    }
}
