/* Final home layout polish based on the supplied marketplace prototype. */
.paa-elementor-home {
    --paa-home-ink: #16314f;
    --paa-home-muted: #718096;
    --paa-home-blue: #0875e8;
    --paa-home-pale: #f2f8fc;
    --paa-home-line: #e4ebf1;
    background: #fff;
    overflow: clip;
}

@media (max-width: 600px) {
    .space-home-nearby .space-nearby-subtitle,
    .elementor-element[data-id="sanearbytitle"] .space-nearby-subtitle {
        display: none;
    }
}

.paa-elementor-home > .elementor {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.paa-elementor-home .space-home-header > .e-con-inner,
.paa-elementor-home .space-home-categories > .e-con-inner,
.paa-elementor-home .space-home-featured > .e-con-inner,
.paa-elementor-home .space-home-fashion > .e-con-inner,
.space-home-trending > .e-con-inner,
.paa-elementor-home .space-home-omo-wap > .e-con-inner,
.paa-elementor-home .space-home-nearby > .e-con-inner,
.paa-elementor-home .space-home-bosch-secondary > .e-con-inner,
.paa-elementor-home .space-home-premium > .e-con-inner,
.paa-elementor-home .space-home-promotional > .e-con-inner,
.paa-elementor-home .space-home-products-secondary > .e-con-inner,
.paa-elementor-home .space-home-advertising > .e-con-inner,
.paa-elementor-home .space-home-footer > .e-con-inner {
    max-width: 1280px;
}

.paa-elementor-home .space-home-header {
    min-height: 64px;
    padding-block: 8px;
    border-bottom: 2px solid #f2c900;
    box-shadow: 0 2px 8px rgba(20, 46, 70, .08);
}

.paa-elementor-home .space-home-categories {
    padding-block: 12px 8px;
    background: var(--paa-home-pale);
}

.paa-elementor-home .space-category-item {
    gap: 5px;
    padding: 5px 3px;
}

.paa-elementor-home .space-category-item .elementor-icon,
.paa-elementor-home .space-category-item i {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(20, 46, 70, .08);
}

.paa-elementor-home .space-home-featured,
.paa-elementor-home .space-home-nearby,
.paa-elementor-home .space-home-premium,
.space-home-trending {
    padding-block: 8px 20px;
    padding-inline: 30px;
}

.space-home-trending > .e-con-inner {
    row-gap: 0 !important;
}

.paa-elementor-home .space-featured-header,
.space-home-trending .space-trending-header,
.paa-elementor-home .space-nearby-header,
.paa-elementor-home .space-premium-header {
    min-height: 34px;
    margin-bottom: 9px;
    padding: 5px 10px;
    border-radius: 4px;
    background: #f3f9fc;
}

/* Match the compact marketplace header pattern used by the theme's shelves. */
.space-home-trending .space-trending-header,
.elementor-element[data-id="satrendingheader"] {
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px;
}

.space-home-trending .space-trending-title,
.elementor-element[data-id="satrendingtitle"] {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.space-home-trending .space-trending-title .elementor-heading-title,
.elementor-element[data-id="satrendingtitle"] .elementor-heading-title {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 0 !important;
    color: #102c50 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

.space-home-trending .space-trending-flame,
.elementor-element[data-id="satrendingtitle"] .space-trending-flame {
    color: #f04438;
    font-size: 16px;
    line-height: 1;
}

.space-home-trending .space-trending-heading-label,
.elementor-element[data-id="satrendingtitle"] .space-trending-heading-label {
    flex: 0 0 auto;
}

.space-home-trending .space-trending-subtitle,
.elementor-element[data-id="satrendingtitle"] .space-trending-subtitle {
    margin-left: 3px;
    color: #1769d2;
    font-size: 9px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.space-home-trending .space-trending-view-all,
.elementor-element[data-id="satrendingviewall"] {
    flex: 0 0 auto;
    width: auto;
    margin: 0 0 0 auto;
}

.space-home-trending .space-trending-view-all .elementor-button,
.elementor-element[data-id="satrendingviewall"] .elementor-button {
    display: inline-flex !important;
    min-width: 77px !important;
    min-height: 22px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3px 7px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: #edf6ff !important;
    color: #1769d2 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.space-home-trending .space-trending-view-all .elementor-button:hover,
.space-home-trending .space-trending-view-all .elementor-button:focus-visible,
.elementor-element[data-id="satrendingviewall"] .elementor-button:hover,
.elementor-element[data-id="satrendingviewall"] .elementor-button:focus-visible {
    background: #e2f0ff !important;
    color: #1259c2 !important;
}

.space-home-trending .space-trending-view-all .elementor-button-text,
.elementor-element[data-id="satrendingviewall"] .elementor-button-text {
    color: inherit !important;
}

/* Keep the Perto de Você heading in the same compact style as Em Alta. */
.space-home-nearby .space-nearby-header > .e-con-inner,
.elementor-element[data-id="sanearbyheader"] > .e-con-inner {
    width: 100%;
    min-height: 22px;
    margin: 0;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px;
}

.space-home-nearby .space-nearby-title,
.elementor-element[data-id="sanearbytitle"] {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin: 0;
}

.space-home-nearby .space-nearby-title .elementor-heading-title,
.elementor-element[data-id="sanearbytitle"] .elementor-heading-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 !important;
    color: #102c50 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

.space-home-nearby .space-nearby-icon,
.elementor-element[data-id="sanearbytitle"] .space-nearby-icon {
    flex: 0 0 auto;
    color: #e83e77;
    font-size: 15px;
    line-height: 1;
}

.space-home-nearby .space-nearby-subtitle,
.elementor-element[data-id="sanearbytitle"] .space-nearby-subtitle {
    margin-left: 2px;
    color: #1769d2;
    font-size: 9px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.space-home-nearby .space-nearby-view-all,
.elementor-element[data-id="sanearbyviewall"] {
    flex: 0 0 auto;
    width: auto;
    margin: 0 0 0 auto;
}

.space-home-nearby .space-nearby-view-all .elementor-button,
.elementor-element[data-id="sanearbyviewall"] .elementor-button {
    display: inline-flex !important;
    min-width: 77px !important;
    min-height: 22px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3px 7px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: #edf6ff !important;
    color: #1769d2 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.space-home-nearby .space-nearby-view-all .elementor-button:hover,
.space-home-nearby .space-nearby-view-all .elementor-button:focus-visible,
.elementor-element[data-id="sanearbyviewall"] .elementor-button:hover,
.elementor-element[data-id="sanearbyviewall"] .elementor-button:focus-visible {
    background: #e2f0ff !important;
    color: #1259c2 !important;
}

.space-home-nearby .space-nearby-view-all .elementor-button-text,
.elementor-element[data-id="sanearbyviewall"] .elementor-button-text {
    color: inherit !important;
}

.space-home-trending .space-trending-products {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: start;
    gap: 10px;
    margin-top: 10px;
}

.space-home-trending .space-trending-product {
    min-width: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    height: auto !important;
    min-height: 0;
}

.space-home-trending .space-trending-product > .e-con-inner {
    display: flex;
    flex-direction: column;
    row-gap: 4px !important;
}

.space-home-trending .space-trending-product > .e-con-inner > .elementor-element {
    margin-block: 0 !important;
    padding-block: 0 !important;
}

.space-home-trending .space-trending-product-image > .e-con-inner {
    row-gap: 0 !important;
}

.space-home-trending .space-trending-product-image .elementor-widget-image {
    margin: 0 !important;
}

.space-home-trending .space-trending-product-image .elementor-widget-container {
    line-height: 0;
}

.space-home-trending .space-trending-product-image,
.space-home-trending .space-trending-product-image .elementor-widget-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.space-home-trending .space-trending-product-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    display: block;
}

.space-home-trending .space-trending-product .elementor-heading-title,
.space-home-trending .space-trending-product .elementor-widget-text-editor {
    margin: 0 !important;
    color: var(--paa-home-ink);
    font-size: 11px;
    line-height: 1.35;
}

.space-home-trending .space-trending-product .elementor-heading-title {
    min-height: 2.7em;
    font-weight: 600;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.space-home-trending .space-trending-product .elementor-widget-text-editor {
    color: #23a35a;
    font-size: 10px;
    font-weight: 600;
}

.space-home-trending .space-trending-product .elementor-widget-text-editor p {
    margin: 0;
}

.space-home-trending .space-trending-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
}

.space-home-trending .space-trending-price {
    color: #202a36;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.1;
}

.space-home-trending .space-trending-shipping {
    color: #20a45a;
    font-size: 10px;
    line-height: 1.25;
}

.space-home-trending .space-trending-sales {
    color: #7b8794;
    font-size: 9px;
    line-height: 1.2;
}

.paa-elementor-home .space-home-omo-wap {
    padding-top: 8px;
    padding-bottom: 18px;
}

.paa-elementor-home .space-home-bosch-secondary {
    padding-top: 6px;
}

.paa-elementor-home .space-home-premium {
    border-top: 1px solid var(--paa-home-line);
    background: #fbfdfe;
}

.paa-elementor-home .space-home-footer {
    border-top: 2px solid #f2c900;
}

@media (max-width: 1024px) {
    .space-home-trending .space-trending-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .space-home-trending {
        padding-inline: 12px;
    }

    .space-home-trending .space-trending-subtitle {
        display: none;
    }

    .paa-elementor-home .space-home-header {
        padding: 10px 14px;
    }

    .paa-elementor-home .space-home-categories {
        padding-block: 8px;
    }

    .space-home-trending .space-trending-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .space-home-trending .space-trending-product-image,
    .space-home-trending .space-trending-product-image .elementor-widget-container {
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .paa-elementor-home .space-featured-header,
    .space-home-trending .space-trending-header,
    .paa-elementor-home .space-nearby-header,
    .paa-elementor-home .space-premium-header {
        flex-wrap: wrap;
    }
}

/* Official top navigation reference: align the Elementor Home header to the
   same compact desktop geometry as the native theme header. */
@media (min-width: 768px) {
    .paa-elementor-home .space-home-header {
        height: 58px !important;
        min-height: 58px !important;
        padding: 0 40px !important;
        border-bottom: 1px solid #edf0f5 !important;
        box-shadow: none !important;
        box-sizing: border-box;
    }

    .paa-elementor-home .space-home-header > .e-con-inner {
        position: relative;
        display: flex;
        height: 58px;
        min-height: 58px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        box-sizing: border-box;
    }

    .paa-elementor-home .space-header-logo {
        flex: 0 1 140px !important;
        width: 140px !important;
        max-width: 140px !important;
        min-width: 0;
    }

    .paa-elementor-home .space-header-logo img,
    .paa-elementor-home .space-header-logo .paa-brand-mark {
        max-width: 140px;
        max-height: 34px;
    }

    .paa-elementor-home .space-header-search {
        position: absolute !important;
        top: 50%;
        left: 50%;
        flex: 0 0 296px !important;
        width: 296px !important;
        max-width: 296px !important;
        min-width: 0 !important;
        margin: 0 !important;
        transform: translate(-50%, -50%);
    }

    .paa-elementor-home .space-header-search .paa-header-search {
        width: 100% !important;
        max-width: none !important;
        min-height: 32px !important;
        height: 32px !important;
        border: 2px solid #9aa2c9 !important;
        border-radius: 20px !important;
        background: #fff !important;
        box-sizing: border-box;
    }

    .paa-elementor-home .space-header-search .paa-search-submit {
        flex: 0 0 36px;
        width: 36px;
        padding: 0;
        background: transparent;
        color: #69728c;
    }

    .paa-elementor-home .space-header-search .paa-header-search input {
        min-height: 28px;
        padding-inline: 2px 12px;
        background: transparent;
        font-size: 11px;
    }

    .paa-elementor-home .space-header-actions {
        display: flex;
        flex: 0 0 auto !important;
        align-items: center;
        gap: 14px !important;
        margin-left: auto;
    }

    .paa-elementor-home .space-header-actions .paa-favorites-link,
    .paa-elementor-home .space-header-actions .paa-profile-link {
        display: inline-flex;
        width: 34px;
        height: 34px;
        align-items: center;
        justify-content: center;
    }

    .paa-elementor-home .space-header-actions .paa-favorites-link img,
    .paa-elementor-home .space-header-actions .paa-profile-link img {
        width: 24px;
        height: 24px;
    }

    .paa-elementor-home .space-header-actions .paa-publish {
        min-height: 32px !important;
        padding: 0 16px !important;
        border-radius: 7px !important;
        background: #0868ee !important;
        font-size: 10px !important;
    }
}




/* Give the Premium bar the same compact title, subtitle and action styling as Perto de Você. */
.paa-elementor-home .space-premium-header,
.elementor-element[data-id="sapremiumheader"] {
    min-height: 34px;
    margin-bottom: 9px;
    padding: 5px 10px;
    border-radius: 4px;
    background: #f3f9fc;
    box-sizing: border-box;
}

.paa-elementor-home .space-premium-header > .e-con-inner,
.elementor-element[data-id="sapremiumheader"] > .e-con-inner {
    width: 100%;
    min-height: 22px;
    margin: 0;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px;
}

.paa-elementor-home .space-premium-title,
.elementor-element[data-id="sapremiumtitle"] {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin: 0;
}

.paa-elementor-home .space-premium-title .elementor-heading-title,
.elementor-element[data-id="sapremiumtitle"] .elementor-heading-title {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 0 !important;
    color: #102c50 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

.paa-elementor-home .space-premium-icon,
.elementor-element[data-id="sapremiumtitle"] .space-premium-icon {
    flex: 0 0 auto;
    color: #1769d2;
    font-size: 15px;
    line-height: 1;
}

.paa-elementor-home .space-premium-subtitle,
.elementor-element[data-id="sapremiumtitle"] .space-premium-subtitle {
    margin-left: 2px;
    color: #1769d2;
    font-size: 9px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.paa-elementor-home .space-premium-view-all,
.elementor-element[data-id="sapremiumviewall"] {
    flex: 0 0 auto;
    width: auto;
    margin: 0 0 0 auto;
}

.paa-elementor-home .space-premium-view-all .elementor-button,
.elementor-element[data-id="sapremiumviewall"] .elementor-button {
    display: inline-flex !important;
    min-width: 77px !important;
    min-height: 22px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3px 7px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: #edf6ff !important;
    color: #1769d2 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

@media (max-width: 767px) {
    .paa-elementor-home .space-premium-header,
    .elementor-element[data-id="sapremiumheader"] {
        flex-wrap: wrap;
    }
}
@media (max-width: 600px) {
    .paa-elementor-home .space-premium-subtitle,
    .elementor-element[data-id="sapremiumtitle"] .space-premium-subtitle {
        display: none;
    }
}