/* =========================================
   SPACE ANÚNCIO — HOME
   DOBRA 4 — EM DESTAQUE
   Ajuste visual conforme ao protótipo
   ========================================= */

.space-home-featured {
    width: 100%;
    padding: 8px 24px 18px;
    background: #ffffff;
    box-sizing: border-box;
}

.space-home-featured > .e-con-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* CABEÇALHO */
.space-featured-header {
    width: 100%;
    min-height: 34px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    margin-bottom: 9px;
}

/* ÍCONE */
.space-featured-header > .elementor-widget-icon {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
}

.space-featured-header > .elementor-widget-icon .elementor-icon {
    color: #f4b400;
    font-size: 15px;
}

/* TÍTULO */
.space-featured-title {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
}

.space-featured-title .elementor-heading-title {
    margin: 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.1px;
}

/* SUBTÍTULO */
.space-featured-subtitle {
    flex: 1 1 auto;
    width: auto;
    margin: 0;
}

.space-featured-subtitle .elementor-widget-container {
    margin: 0;
    padding: 0;
    color: #7b8491;
    font-size: 9px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

/* VER TODOS */
.space-featured-viewall {
    flex: 0 0 auto;
    width: auto;
    margin: 0 0 0 auto;
}

.space-featured-viewall .elementor-button {
    min-height: 0;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    color: #1769e0 !important;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
}

.space-featured-viewall .elementor-button:hover {
    background: transparent !important;
    color: #1259c2 !important;
    text-decoration: underline;
    box-shadow: none;
}

/* PRODUTOS */
.space-featured-products {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

/* CARD */
.space-featured-product {
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
    transition: transform .2s ease;
}

.space-featured-product:hover {
    transform: translateY(-2px);
}

/* IMAGEM */
.space-featured-product img {
    width: 100%;
    height: 142px;
    display: block;
    object-fit: contain;
    background: #ffffff;
}

/* NOME */
.space-featured-product .elementor-heading-title {
    margin: 7px 5px 3px;
    color: #26364d;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* PREÇO */
.space-featured-product .elementor-widget-text-editor,
.space-featured-product .elementor-widget-heading:last-child .elementor-heading-title {
    margin: 0 5px 5px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
}

/* =========================================
   TABLET
   ========================================= */
@media (max-width: 1024px) {
    .space-home-featured {
        padding: 8px 18px 16px;
    }

    .space-featured-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .space-featured-product img {
        height: 150px;
    }

    .space-featured-subtitle .elementor-widget-container {
        font-size: 8px;
    }
}

/* =========================================
   MOBILE
   ========================================= */
@media (max-width: 767px) {
    .space-home-featured {
        padding: 8px 12px 14px;
    }

    .space-featured-header {
        gap: 5px;
        margin-bottom: 8px;
    }

    .space-featured-header > .elementor-widget-icon .elementor-icon {
        font-size: 13px;
    }

    .space-featured-title .elementor-heading-title {
        font-size: 14px;
    }

    .space-featured-subtitle {
        display: none;
    }

    .space-featured-viewall .elementor-button {
        font-size: 9px;
    }

    .space-featured-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .space-featured-product img {
        height: 145px;
    }
}

/* Featured fold desktop reference: six compact marketplace product tiles. */
@media (min-width: 768px) {
    .space-home-featured {
        padding: 0 36px 18px;
        background: #fff;
    }

    .space-home-featured > .e-con-inner {
        max-width: 1280px;
    }

    .space-featured-header {
        min-height: 0;
        margin: 0 0 14px;
        padding: 0;
        background: transparent;
    }

    .space-home-featured .space-featured-header .elementor-widget-container {
        width: 100%;
    }

    .space-home-featured .paa-featured-header {
        display: flex;
        width: 100%;
        min-height: 32px;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        margin: 0;
        padding: 0 9px;
        border-radius: 2px;
        background: #f3f7fa;
        box-sizing: border-box;
    }

    .space-home-featured .paa-featured-heading {
        flex: 1 1 auto;
        gap: 8px;
    }

    .space-home-featured .paa-featured-heading .paa-shelf__icon {
        color: #f5ae00;
        font-size: 16px;
    }

    .space-home-featured .paa-featured-heading h2 {
        color: #102c50;
        font-size: 15px;
        line-height: 1;
    }

    .space-home-featured .paa-featured-heading p {
        margin-left: 8px;
        color: #29405d;
        font-size: 9px;
        line-height: 1.2;
    }

    .space-home-featured .paa-view-all {
        display: inline-flex;
        min-height: 22px;
        align-items: center;
        margin-left: auto;
        padding: 3px 7px;
        border: 1px solid #d9e7f5;
        border-radius: 4px;
        background: #edf6ff;
        color: #1769d2;
        font-size: 9px;
        line-height: 1.2;
        text-decoration: none;
    }

    .space-home-featured .paa-view-all:hover {
        background: #e2f0ff;
        color: #1259c2;
        text-decoration: none;
    }

    .space-home-featured .paa-view-all.paa-link-disabled {
        cursor: default;
    }

    .space-featured-header > .elementor-widget-icon .elementor-icon {
        color: #f5ae00;
        font-size: 16px;
    }

    .space-featured-title .elementor-heading-title {
        color: #102c50;
        font-size: 15px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0;
    }

    .space-featured-subtitle .elementor-widget-container {
        color: #29405d;
        font-size: 9px;
        line-height: 1.2;
    }

    .space-featured-viewall .elementor-button {
        min-height: 22px;
        padding: 3px 7px;
        border: 1px solid #d9e7f5;
        border-radius: 4px;
        background: #edf6ff !important;
        color: #1769d2 !important;
        font-size: 9px;
        line-height: 1.2;
    }

    .space-featured-viewall .elementor-button:hover {
        background: #e2f0ff !important;
        color: #1259c2 !important;
        text-decoration: none;
    }

    .space-featured-products {
        width: calc(100% - 20px);
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }

    .space-featured-product {
        overflow: visible;
        background: #fff;
        transition: none;
    }

    .space-featured-product:hover {
        transform: none;
    }

    .space-featured-product .elementor-widget-image,
    .space-featured-product .elementor-widget-image .elementor-widget-container {
        width: 100%;
        margin: 0;
    }

    /* Each card keeps its own Elementor structure. This also supports already
       saved cards while the nested price/sales container is imported. */
    .space-featured-product > .e-con-inner {
        display: grid !important;
        grid-template-columns: max-content minmax(0, 1fr);
        column-gap: 4px;
        row-gap: 0;
        width: 100%;
        min-width: 0;
        align-content: start;
    }

    .space-featured-product > .e-con-inner > .elementor-element {
        min-width: 0;
        margin: 0 !important;
    }

    .space-featured-product > .e-con-inner > .space-featured-product__meta {
        grid-column: 1 / -1;
        grid-row: 4;
        width: 100% !important;
        min-width: 0;
        margin: 0 !important;
    }

    .space-featured-product__meta > .e-con-inner {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: baseline;
        justify-content: flex-start;
        gap: 2px;
        width: 100%;
        min-width: 0;
    }

    .space-featured-product > .e-con-inner > .elementor-element[data-id$="image"] { grid-column: 1 / -1; grid-row: 1; }
    .space-featured-product > .e-con-inner > .elementor-element[data-id$="name"] { grid-column: 1 / -1; grid-row: 2; }
    .space-featured-product > .e-con-inner > .space-featured-product__name { grid-column: 1 / -1; grid-row: 2; }
    .space-featured-product > .e-con-inner > .space-featured-product__discount { grid-column: 1 / -1; grid-row: 3; }
    .space-featured-product > .e-con-inner > .elementor-element[data-id$="price"] {
        grid-column: 1;
        grid-row: 4;
        width: max-content !important;
        max-width: 100%;
    }
    .space-featured-product > .e-con-inner > .space-featured-product__price {
        grid-column: 1;
        grid-row: 4;
        width: max-content !important;
        max-width: 100%;
    }
    .space-featured-product > .e-con-inner > .elementor-element[data-id$="sales"] {
        grid-column: 2;
        grid-row: 4;
        justify-self: start;
        width: auto !important;
        max-width: none;
        white-space: nowrap;
    }
    .space-featured-product > .e-con-inner > .space-featured-product__sales {
        grid-column: 2;
        grid-row: 4;
        justify-self: start;
        width: auto !important;
        max-width: none;
        white-space: nowrap;
    }
    .space-featured-product > .e-con-inner > .space-featured-product__shipping { grid-column: 1 / -1; grid-row: 5; }

    .space-featured-product__price {
        flex: 0 0 auto !important;
        width: max-content !important;
        max-width: none;
        min-width: 0;
        margin: 0 !important;
    }

    .space-featured-product__sales {
        flex: 0 0 auto !important;
        width: max-content !important;
        max-width: none;
        min-width: 0;
        margin: 0 !important;
        white-space: nowrap;
    }

    .space-featured-product img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        background: #f6f6f6;
    }

    .space-featured-product .elementor-heading-title {
        margin: 14px 0 8px;
        color: #26364d;
        font-size: 10px;
        font-weight: 500;
        line-height: 1.35;
        -webkit-line-clamp: 2;
    }

    .space-featured-product__discount,
    .space-featured-product__sales,
    .space-featured-product__shipping {
        width: 100%;
        margin: 0;
        font-size: 9px;
        line-height: 1.3;
    }

    .space-featured-product__discount p,
    .space-featured-product__sales p,
    .space-featured-product__shipping p {
        margin: 0;
    }

    .space-featured-product__discount {
        margin: 0 0 2px;
        color: #169d5b;
        white-space: nowrap;
    }

    .space-featured-product__discount strong {
        display: inline-block;
        padding: 1px 3px;
        border-radius: 2px;
        background: #18a765;
        color: #fff;
        font-size: 8px;
        font-weight: 700;
    }

    .space-featured-product__discount del {
        color: #969da6;
        font-size: 8px;
    }

    .space-featured-product .elementor-heading-title:is(h4) {
        margin: 0 0 2px;
        color: #202833;
        font-size: 17px;
        font-weight: 500;
        line-height: 1.15;
        white-space: nowrap;
    }

    .space-featured-product__price .elementor-heading-title sup,
    .space-featured-product > .e-con-inner > .elementor-element[data-id$="price"] .elementor-heading-title sup {
        font-size: .55em;
        line-height: 0;
        vertical-align: super;
    }

    .space-featured-product__sales {
        color: #848d98;
        font-size: 8px;
    }

    .space-featured-product__shipping {
        margin-top: 7px;
        color: #18a765;
        font-size: 9px;
        font-weight: 700;
    }
}
/* The approved photos are rendered as real <img> elements by the theme in
   each Elementor image widget. Keep those widgets visible in editor preview. */
.space-home-featured .space-featured-product .elementor-widget-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    opacity: 1;
    background: #f6f6f6;
}

