.entry-content.single-content > .kb-row-layout-wrap:has(+ .product-recomandation) {
    margin-bottom: 0 !important;
    margin-block-end: 0 !important;
}

.entry-content.single-content > .kb-row-layout-wrap + .product-recomandation {
    margin-top: var(--aga-home-section-spacing, clamp(0.75rem, 1.6vw, 1.1rem)) !important;
    margin-block-start: var(--aga-home-section-spacing, clamp(0.75rem, 1.6vw, 1.1rem)) !important;
}

.product-recomandation {
    --aga-product-title-lines: 2;
    position: relative;
    margin-top: var(--aga-home-section-spacing, 0.75rem) !important;
}

body.home .entry-content.single-content > .product-recomandation {
    margin: 0 !important;
}

.product-recomandation .wc-block-product-template {
    align-items: stretch;
    padding-top: 0 !important;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    column-gap: 0.85rem;
    gap: 0.85rem;
    scroll-behavior: smooth;
}

.product-recomandation .wc-block-product-template::-webkit-scrollbar {
    display: none;
}

.product-recomandation__nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    position: absolute !important;
    top: -0.45rem;
    right: 0;
    z-index: 2;
    margin: 0 !important;
}

.product-recomandation__nav[hidden] {
    display: none;
}

.product-recomandation__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--global-palette7);
    border-radius: 999px;
    background: var(--global-palette9);
    color: var(--global-palette3);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.product-recomandation__button:hover,
.product-recomandation__button:focus-visible {
    border-color: var(--global-palette1);
    background: var(--global-palette1);
    color: var(--global-palette9);
    outline: none;
}

.product-recomandation__button[disabled] {
    border-color: var(--global-palette7);
    background: var(--global-palette9);
    color: var(--global-palette6);
    cursor: default;
    opacity: 0.55;
}

.product-recomandation__button svg {
    width: 0.95rem;
    height: 0.95rem;
}

.product-recomandation .wc-block-product {
    display: flex;
    flex-direction: column;
    background: var(--global-palette9);
    margin: 0;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    clip-path: inset(0 round 10px);
}

.product-recomandation .wc-block-product > * {
    border-radius: 0;
}

.product-recomandation .wc-block-components-product-image,
.product-recomandation .wc-block-components-product-image a,
.product-recomandation .wc-block-components-product-image img {
    border-radius: 0;
}

.product-recomandation .wc-block-components-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 0.9rem 0.9rem 0.35rem;
    background: var(--global-palette9);
    margin-bottom: 0;
    overflow: hidden;
}

.product-recomandation .wc-block-components-product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-recomandation .wc-block-components-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none;
}

.product-recomandation .wc-block-components-product-image__inner-container {
    display: none;
}

.product-recomandation .wp-block-woocommerce-product-price,
.product-recomandation .wp-block-woocommerce-product-button {
    display: none;
}

.product-recomandation .wp-block-post-title {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
    padding: 0 0.9rem 0.9rem;
    margin-top: 0;
}

.product-recomandation .wp-block-post-title a {
    display: -webkit-box;
    width: 100%;
    min-height: calc(var(--aga-product-title-lines) * 1.4em);
    overflow: hidden;
    line-height: 1.4;
    word-break: normal;
    overflow-wrap: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--aga-product-title-lines);
    line-clamp: var(--aga-product-title-lines);
    text-overflow: ellipsis;
}

@media (max-width: 767px) {
    .product-recomandation__nav {
        justify-content: flex-end;
    }

    .product-recomandation__button {
        width: 2.5rem;
        height: 2.5rem;
    }
}
