/* Homepage layout — aligned images & titles */

/* ---- CTA strip ---- */
.cta-content {
    direction: rtl;
    justify-content: flex-start;
    min-height: 80px;
}

.cta-info {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
}

.cta-info h5 {
    margin: 0 0 4px;
    line-height: 1.35 !important;
    text-align: right;
}

.cta-info h6 {
    margin: 0;
    line-height: 1.4;
}

.cta-image {
    flex: 0 0 90px;
    width: 90px;
    height: 70px;
    justify-content: center;
    overflow: hidden;
}

.cta-image img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ---- Week sale cards ---- */
.week-sale .row {
    align-items: stretch;
}

.week-sale .week-sale-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 130px;
    height: 100%;
    direction: rtl;
    text-align: right;
    padding: 24px 22px;
    margin-bottom: 20px;
}

.week-sale .week-sale-container h5 {
    max-width: none;
    width: auto;
    flex: 1 1 auto;
    margin: 0 !important;
    font-size: 18px;
    line-height: 1.45;
    text-align: right;
}

.week-sale .week-image {
    position: static;
    flex: 0 0 110px;
    width: 110px;
    height: 85px;
    margin: 0;
}

.week-sale .week-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* ---- Featured product cards ---- */
.featured-one .product-block-one {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 10px;
    display: flex;
    flex-direction: column;
    border: 1px solid #E9ECEF;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    padding: 8px 8px 0;
}

.featured-one .product-block-one-image {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    border: none;
    border-radius: 0;
    padding: 8px 8px 0;
}

.featured-one .product-block-one .image {
    height: 200px;
    min-height: 200px;
    margin-bottom: 0;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-one .product-block-one .image img {
    max-width: 100%;
    max-height: 176px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.featured-one .product-block-one-cintent {
    min-height: 78px;
    padding: 12px 10px 16px;
    text-align: center;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-one .product-block-one-cintent h4,
.featured-one .product-block-one-cintent h4.fs_15 {
    margin: 0;
    width: 100%;
    font-size: 15px;
    line-height: 1.45;
}

.featured-one .product-block-one-cintent h4 a {
    display: block;
    color: #141417;
    font-size: 15px;
    line-height: 1.45;
}

.featured-one .product-block-one-cintent .product-code {
    display: block;
    margin-top: 6px;
    padding: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: #8B929A;
    background: none;
    border: 0;
    white-space: normal;
}

/* Keep same card rhythm in other home carousels */
.shop-page-section .product-block-one,
.item .product-block-one,
.new-product .product-block-one {
    width: 100%;
    max-width: 100%;
    border: 1px solid #E9ECEF;
    border-radius: 10px;
    overflow: hidden;
    padding: 8px 8px 0;
}

.shop-page-section .product-block-one-image,
.item .product-block-one-image {
    border: none;
    padding: 8px 8px 0;
}

.shop-page-section .product-block-one .image,
.item .product-block-one .image,
.brand .product-block-one .image {
    height: 200px;
    min-height: 200px;
    padding: 8px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-page-section .product-block-one .image img,
.item .product-block-one .image img {
    max-width: 100%;
    max-height: 176px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.shop-page-section .product-block-one-cintent,
.item .product-block-one-cintent {
    min-height: 78px;
    padding: 14px 10px 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-block-one-cintent .product-code {
    display: block;
    margin-top: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #8B929A;
    white-space: normal;
}

/* ---- Engine/pump spotlight cards ---- */
.item-carousol-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.item-left-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.item-left-image img {
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.item-content {
    width: 100%;
    text-align: right;
    direction: rtl;
}

.item-content h5 {
    margin-bottom: 10px;
    line-height: 1.4;
}

.item-content h6 {
    margin: 0 0 4px;
    line-height: 1.5;
}

/* ---- Brand logos ---- */
.brand .image img,
.brand a img {
    max-height: 70px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

@media only screen and (max-width: 991px) {
    .week-sale .week-sale-container {
        min-height: 110px;
        padding: 20px 16px;
    }

    .week-sale .week-image {
        flex-basis: 90px;
        width: 90px;
        height: 70px;
    }

    .featured-one .product-block-one .image {
        height: 180px;
        min-height: 180px;
    }
}

@media only screen and (max-width: 575px) {
    .cta-image {
        flex-basis: 70px;
        width: 70px;
    }

    .week-sale .week-sale-container h5 {
        font-size: 16px;
    }
}
