/* ==========================================================================
   Home Templates — temas por slug + mobile commerce (prioridade visual)
   Carregado após home-templates.css
   ========================================================================== */

body.home-store-template {
    --home-header-offset: 132px;
    --home-nav-sticky-top: var(--home-header-offset);
    --home-grid-gap: 14px;
    --home-space-sm: 8px;
    --home-space: 12px;
    --home-space-lg: 16px;
    --home-space-xl: 20px;
    --home-card-pad: 16px;
    --home-img-h: 160px;
    --home-sale: var(--home-buttons, var(--home-primary));
    --home-store-max-width: 1280px;
    --home-grid-cols-max: 5;
}

/* Offsets por tipo de cabeçalho */
body.home-cab-compacto { --home-header-offset: 88px; }
body.home-cab-destaque_busca { --home-header-offset: 136px; }
body.home-cab-minimalista { --home-header-offset: 124px; }
body.home-cab-tecnico { --home-header-offset: 132px; }
body.home-cab-editorial { --home-header-offset: 120px; }
body.home-cab-confianca { --home-header-offset: 172px; }
body.home-cab-hero_glass { --home-header-offset: 76px; }
body.home-cab-padrao { --home-header-offset: 132px; }

body.home-cab-compacto .top-bar { display: none; }

/* ---- Shell ---- */
.home-shell {
    width: 100%;
    max-width: 100%;
}

.home-zone--nav {
    position: relative;
    z-index: 999;
}

.home-main-flow,
.home-main-content,
.home-bleed-zone {
    min-width: 0;
}

/* Sticky nav abaixo do header global */
body.home-store-template .home-dept-nav,
body.home-store-template .home-menu-scroll,
body.home-store-template .home-mega-nav,
body.home-store-template .home-quick-nav {
    position: sticky;
    top: var(--home-nav-sticky-top);
    z-index: 9998;
}

/* ---- Grid de produtos (máx. 5 por linha, container centralizado) ---- */
body.home-store-template .home-store-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

body.home-store-template .home-vitrine-container,
body.home-store-template .home-mec-categories .home-vitrine-container,
body.home-store-template .home-mec-spotlight .home-vitrine-container,
body.home-store-template .home-mec-trust .home-vitrine-container {
    width: 100%;
    max-width: var(--home-store-max-width, 1280px);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

body.home-store-template .home-main-flow,
body.home-store-template .home-bleed-zone {
    width: 100%;
    max-width: 100%;
}

body.home-store-template .home-bleed-zone {
    padding: 0 0 32px;
    box-sizing: border-box;
}

body.home-store-template .home-vitrine-section--fill {
    width: 100%;
    padding: var(--home-space-xl) 0 calc(var(--home-space-xl) + 8px);
}

body.home-store-template .home-vitrine-container {
    width: 100%;
    max-width: var(--home-store-max-width, 1280px);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

body.home-store-template .home-main-content .home-vitrine-container {
    padding: 0 12px;
    max-width: 100%;
}

body.home-store-template .home-vitrine-section--fill .home-section-header--row {
    margin-bottom: var(--home-space-lg);
}

body.home-store-template .home-section-header,
body.home-store-template .home-section-header--row {
    margin-bottom: var(--home-space-lg);
}

@media (min-width: 768px) {
    body.home-store-template .home-store-grid,
    body.home-store-template .home-main-flow .home-vitrine-section--fill .home-store-grid,
    body.home-store-template .home-bleed-zone .home-vitrine-section--fill .home-store-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
}

@media (min-width: 992px) {
    body.home-store-template .home-store-grid,
    body.home-store-template .home-main-flow .home-vitrine-section--fill .home-store-grid,
    body.home-store-template .home-bleed-zone .home-vitrine-section--fill .home-store-grid,
    body.home-store-template .home-main-content .home-vitrine-section--fill .home-store-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
}

@media (min-width: 1200px) {
    body.home-store-template .home-store-grid,
    body.home-store-template .home-main-flow .home-vitrine-section--fill .home-store-grid,
    body.home-store-template .home-bleed-zone .home-vitrine-section--fill .home-store-grid,
    body.home-store-template .home-mec-offers-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    body.home-store-template .home-vitrine-section--fill .home-store-card .product-image {
        height: 150px !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    body.home-store-template .home-main-content .home-vitrine-section--fill .home-store-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* ---- CEP (templates com barra de frete) ---- */
body.home-store-template .store-cep-bar {
    width: 100%;
    box-sizing: border-box;
}

body.home-store-template .store-cep-bar__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--home-text-muted, #555);
}

body.home-store-template .store-cep-bar__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--home-secondary, #1a1a1a);
    white-space: nowrap;
}

body.home-store-template .store-cep-form {
    display: inline-flex;
    align-items: stretch;
    margin: 0;
    flex: 0 1 auto;
}

body.home-store-template .store-cep-form input {
    min-width: 108px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.2;
    box-sizing: border-box;
    border: 1px solid #d0d0d0;
    background: #fff;
}

body.home-store-template .store-cep-form__btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    background: var(--home-primary, #ff9800);
    color: #fff;
    transition: background 0.2s ease;
}

body.home-store-template .store-cep-form__btn:hover {
    background: color-mix(in srgb, var(--home-primary, #ff9800) 85%, #000);
}

body.home-cab-destaque_busca.home-store-template:has(.store-cep-bar) {
    --home-header-offset: calc(var(--home-header-offset, 136px) + 44px);
}

/* ---- Spotlight e categorias (Magazine, Mecânico, ML, etc.) ---- */
body.home-store-template .home-mec-spotlight {
    background: var(--home-bg, #f5f5f5);
    padding: 28px 0;
}

body.home-store-template .home-mec-spotlight__head,
body.home-store-template .home-mec-categories__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--home-space-lg);
    margin-bottom: var(--home-space-lg);
}

body.home-store-template .home-mec-spotlight__title,
body.home-store-template .home-mec-categories__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--home-secondary, #1a1a1a);
    margin: 0;
}

body.home-store-template .home-mec-spotlight__link,
body.home-store-template .home-mec-categories__link {
    font-size: 13px;
    font-weight: 700;
    color: var(--home-primary, #ff9800);
    text-decoration: none;
    white-space: nowrap;
}

body.home-store-template .home-mec-spotlight__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

body.home-store-template .home-mec-spotlight-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--home-radius, 8px);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
    position: relative;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

body.home-store-template .home-mec-spotlight-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--home-primary, #ff9800);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 10px;
    border-radius: 4px;
}

body.home-store-template .home-mec-spotlight-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #fafafa;
    min-height: 160px;
    text-decoration: none;
}

body.home-store-template .home-mec-spotlight-card__image img {
    max-width: 100%;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
}

body.home-store-template .home-mec-spotlight-card__body {
    padding: var(--home-space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--home-space);
    min-width: 0;
}

body.home-store-template .home-mec-spotlight-card__name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.home-store-template .home-mec-spotlight-card__name a {
    color: var(--home-secondary, #1a1a1a);
    text-decoration: none;
}

body.home-store-template .home-mec-spotlight-card__body .new-price,
body.home-store-template .home-mec-spotlight-card__body .promo-price-final {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--home-primary, #ff9800);
    line-height: 1.1;
}

body.home-store-template .home-mec-spotlight-card__body .promo-price-old {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
}

body.home-store-template .home-mec-spotlight-card__pix {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
}

body.home-store-template .home-mec-spotlight-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--home-space-sm);
    padding: var(--home-space) var(--home-space-lg);
    background: var(--home-primary, #ff9800);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 8px;
    text-decoration: none;
    width: fit-content;
    min-height: 40px;
    box-sizing: border-box;
}

body.home-store-template .home-mec-categories {
    background: #fff;
    padding: 28px 0 32px;
}

body.home-store-template .home-mec-categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 12px 10px;
}

body.home-store-template .home-mec-cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--home-space);
    padding: var(--home-space-lg) var(--home-space);
    border-radius: var(--home-radius, 8px);
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    min-height: 118px;
}

body.home-store-template .home-mec-cat-tile:hover {
    border-color: color-mix(in srgb, var(--home-primary, #ff9800) 40%, #e5e7eb);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--home-primary, #ff9800) 12%, transparent);
    transform: translateY(-2px);
}

body.home-store-template .home-mec-cat-tile__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--home-primary, #ff9800);
    font-size: 22px;
}

body.home-store-template .home-mec-cat-tile__label {
    font-size: 11px;
    font-weight: 700;
    color: var(--home-secondary, #1a1a1a);
    text-align: center;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 991px) {
    body.home-store-template .home-mec-spotlight__grid {
        grid-template-columns: 1fr;
    }

    body.home-store-template .home-mec-spotlight-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    body.home-store-template .home-mec-categories__grid {
        grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    }

    body.home-store-template .home-mec-trust__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--home-space-lg);
    }
}

/* ---- Selos / Compre com tranquilidade ---- */
body.home-store-template .home-mec-trust {
    background: #fff;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
    padding: var(--home-space-xl) 0;
}

body.home-store-template .home-mec-trust--empresa {
    padding: calc(var(--home-space-xl) + 8px) 0 calc(var(--home-space-xl) + 12px);
}

body.home-store-template .home-mec-trust__section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--home-secondary, #1a1a1a);
    text-align: center;
    margin: 0 0 var(--home-space-lg);
}

body.home-store-template .home-mec-trust__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--home-space-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

body.home-store-template .home-mec-trust__item {
    display: flex;
    align-items: center;
    gap: var(--home-space);
    min-width: 0;
    padding: var(--home-space-sm) 0;
}

body.home-store-template .home-mec-trust__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--home-primary, #ff9800) 12%, #fff);
    color: var(--home-primary, #ff9800);
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}

body.home-store-template .home-mec-trust__text {
    display: flex;
    flex-direction: column;
    gap: var(--home-space-sm);
    min-width: 0;
}

body.home-store-template .home-mec-trust__text strong {
    font-size: 13px;
    font-weight: 800;
    color: var(--home-secondary, #1a1a1a);
    line-height: 1.3;
    margin: 0;
}

body.home-store-template .home-mec-trust__text small {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.35;
    margin: 0;
}

/* ---- Newsletter (ritmo igual aos cards) ---- */
body.home-store-template .home-newsletter-section.newsletter {
    margin-top: 0;
    padding: var(--home-space-xl) 0;
}

body.home-store-template .home-newsletter-section .newsletter-content {
    gap: var(--home-space-xl);
    align-items: center;
    justify-content: flex-start;
}

body.home-store-template .home-newsletter-section .newsletter-text h3 {
    margin: 0 0 var(--home-space-sm);
    line-height: 1.25;
}

body.home-store-template .home-newsletter-section .newsletter-text p {
    margin: 0;
    line-height: 1.4;
}

body.home-store-template .home-newsletter-section .newsletter-form {
    gap: var(--home-space);
    align-items: stretch;
}

body.home-store-template .home-newsletter-section .newsletter-form input,
body.home-store-template .home-newsletter-section .newsletter-form button {
    padding: var(--home-space) var(--home-space-lg);
    min-height: 44px;
    box-sizing: border-box;
    margin: 0;
}

body.home-store-template .home-newsletter-section .newsletter-form button {
    padding-left: calc(var(--home-space-lg) + 4px);
    padding-right: calc(var(--home-space-lg) + 4px);
}

@media (max-width: 576px) {
    body.home-store-template .home-mec-trust__list {
        grid-template-columns: 1fr;
    }

    body.home-store-template .home-newsletter-section .newsletter-content {
        flex-direction: column;
        align-items: stretch;
        gap: var(--home-space-lg);
    }

    body.home-store-template .home-newsletter-section .newsletter-form {
        flex-direction: column;
    }
}

/* ---- Faixas full-width (Newsletter, confiança, promo) — desktop ---- */
body.home-store-template .home-strip-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: clamp(16px, 2vw, 32px);
    padding-right: clamp(16px, 2vw, 32px);
    box-sizing: border-box;
}

@media (min-width: 992px) {
    /* Apenas faixas promocionais e newsletter atravessam a tela inteira */
    body.home-store-template .store-promo-strip.home-full-strip,
    body.home-store-template .home-promo-strip.home-full-strip,
    body.home-store-template .home-top-bar.home-promo-strip.home-full-strip,
    body.home-store-template .home-trust-strip.home-full-strip,
    body.home-store-template section.newsletter.home-full-strip,
    body.home-store-template .home-newsletter-section.home-full-strip {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        box-sizing: border-box;
    }

    body.home-store-template .home-strip-container {
        padding-left: clamp(24px, 3.5vw, 64px);
        padding-right: clamp(24px, 3.5vw, 64px);
    }

    body.home-store-template .home-newsletter-section.home-full-strip {
        margin-top: 0;
        padding-top: calc(var(--home-space-xl) * 2);
        padding-bottom: calc(var(--home-space-xl) * 2);
        border-radius: 0;
    }

    body.home-store-template .home-shell > .home-newsletter-section.home-full-strip {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    /* Newsletter dentro da coluna principal não deve “escapar” da grid */
    body.home-store-template .home-main-content .home-newsletter-section.home-full-strip {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    body.home-store-template .home-newsletter-section .newsletter-content {
        gap: var(--home-space-xl);
        max-width: 100%;
        justify-content: flex-start;
    }

    body.home-store-template .home-newsletter-section .newsletter-form {
        max-width: 480px;
        flex: 0 1 480px;
    }

    body.home-store-template .home-newsletter-section .newsletter-text {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 280px;
    }

    body.home-store-template .home-trust-strip.home-full-strip .home-trust-pills__inner {
        justify-content: space-around;
        padding: 14px 0;
        gap: 12px 32px;
    }

    body.home-store-template .home-promo-strip.home-full-strip .home-promo-strip__inner {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    body.home-store-template .home-promo-strip--banner.home-full-strip .home-promo-strip__inner--banner {
        padding-top: 0;
        padding-bottom: 0;
    }

    body.home-store-template .store-promo-strip.home-full-strip .store-promo-strip__inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 10px 28px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

/* Faixas full-width fora do template (legado index) */
@media (min-width: 992px) {
    body:not(.home-store-template) section.newsletter.home-full-strip {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        margin-top: 0;
        padding-top: 48px;
        padding-bottom: 48px;
        border-radius: 0;
        box-sizing: border-box;
    }

    body:not(.home-store-template) section.newsletter.home-full-strip .home-strip-container {
        width: 100%;
        max-width: 100%;
        padding-left: clamp(24px, 3.5vw, 64px);
        padding-right: clamp(24px, 3.5vw, 64px);
        box-sizing: border-box;
    }

    body:not(.home-store-template) section.newsletter.home-full-strip .newsletter-content {
        gap: clamp(20px, 3vw, 56px);
    }

    body:not(.home-store-template) section.newsletter.home-full-strip .newsletter-form {
        max-width: none;
        flex: 1 1 420px;
    }
}

body.home-store-template .home-store-card {
    border-radius: var(--home-radius, 12px) !important;
    border: 1px solid var(--home-border, #e8ecf1) !important;
    padding: var(--home-card-pad) !important;
    background: var(--home-surface, #fff) !important;
    box-shadow: var(--home-shadow-sm) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: var(--home-space);
}

body.home-store-template .home-store-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--home-shadow) !important;
}

body.home-store-template .home-store-card .product-image {
    height: var(--home-img-h, 140px) !important;
    margin-bottom: 0 !important;
    border-radius: calc(var(--home-radius, 12px) - 4px);
    background: #f8fafc;
    overflow: hidden;
    flex-shrink: 0;
}

body.home-store-template .home-store-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.home-store-template .home-store-card .product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: var(--home-space);
}

body.home-store-template .home-store-card .product-title {
    font-size: 0.8125rem !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
    margin: 0 !important;
    height: auto !important;
    text-transform: none;
}

body.home-store-template .home-store-card .new-price,
body.home-store-template .home-store-card .promo-price-final {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: var(--home-sale) !important;
    margin: 0 !important;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

body.home-store-template .home-store-card .promo-price-old {
    margin: 0 !important;
    font-size: 0.75rem;
    line-height: 1.2;
}

body.home-store-template .home-store-card .installments {
    display: none;
}

body.home-store-template .home-store-card .product-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--home-space);
    margin-top: auto;
    padding-top: var(--home-space-sm);
}

body.home-store-template .home-store-card .product-actions > * {
    flex: unset !important;
    min-width: 0;
}

body.home-store-template .home-store-card .product-actions form {
    margin: 0;
    min-width: 0;
}

body.home-store-template .home-store-card .btn-buy,
body.home-store-template .home-store-card .btn-details {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    padding: var(--home-space) var(--home-space-sm) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none !important;
    min-height: 40px !important;
    max-height: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: none !important;
    transform: none !important;
    margin: 0 !important;
}

body.home-store-template .home-store-card .btn-buy {
    background: var(--home-buttons, var(--home-primary)) !important;
    border: none !important;
}

body.home-store-template .home-store-card .btn-buy::after {
    display: none;
}

body.home-store-template .home-store-card:hover .btn-buy {
    animation: none;
    transform: none !important;
}

body.home-store-template .home-store-card .btn-buy:hover {
    filter: brightness(1.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    transform: none !important;
}

body.home-store-template .home-store-card .btn-details {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

body.home-store-template .home-store-card .btn-details:hover {
    background: var(--home-secondary, #1e293b) !important;
    color: #fff !important;
    border-color: var(--home-secondary, #1e293b) !important;
    transform: none !important;
    box-shadow: none !important;
}

body.home-store-template .home-store-carousel {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

body.home-store-template .home-store-carousel .home-store-card {
    min-width: 180px;
    max-width: 220px;
    scroll-snap-align: start;
}

/* ---- Bottom nav (mobile first) ---- */
.home-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10050;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--home-border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
}

.home-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 2px;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    border-radius: 10px;
    transition: color 0.2s, background 0.2s;
}

.home-bottom-nav__item i {
    font-size: 18px;
}

.home-bottom-nav__item:hover,
.home-bottom-nav__item:focus {
    color: var(--home-primary);
    background: color-mix(in srgb, var(--home-primary) 8%, transparent);
}

.home-bottom-nav__item--accent {
    color: var(--home-primary);
}

.home-bottom-nav__badge-wrap {
    position: relative;
    display: inline-flex;
}

.home-bottom-nav__badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--home-primary);
    color: #fff;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.home-menu-bottom_nav {
    padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
}

@media (min-width: 992px) {
    body.home-menu-bottom_nav .home-bottom-nav {
        display: none;
    }

    body.home-menu-bottom_nav {
        padding-bottom: 0 !important;
    }
}

/* ---- Mega menu mobile fallback ---- */
@media (max-width: 991px) {
    .home-mega-nav {
        display: none !important;
    }

    .home-mega-mobile .home-menu-scroll {
        position: relative;
        top: auto;
    }
}

/* ==========================================================================
   TEMA 01 — Marketplace (moderno + banners múltiplos + scroll reveal)
   ========================================================================== */
body.home-tpl-marketplace {
    --home-header-offset: 148px;
}

body.home-tpl-marketplace .home-template-root {
    background:
        radial-gradient(ellipse 90% 60% at 50% -20%, color-mix(in srgb, var(--home-primary) 8%, transparent), transparent 55%),
        var(--home-bg, #f4f6f9);
}

body.home-tpl-marketplace .main-header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(15, 23, 42, 0.06);
}

body.home-tpl-marketplace .main-header .search-bar {
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

body.home-tpl-marketplace .main-header .search-bar:focus-within {
    border-color: color-mix(in srgb, var(--home-primary) 45%, #e2e8f0);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--home-primary) 15%, transparent);
}

body.home-tpl-marketplace .home-menu-scroll--marketplace {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--home-border, #e8ecf1);
    padding-top: 10px !important;
    padding-bottom: 12px !important;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

body.home-tpl-marketplace .home-menu-scroll.is-scrolled {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

body.home-tpl-marketplace .home-mp-quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--home-space, 12px);
    margin-bottom: var(--home-space, 12px);
}

body.home-tpl-marketplace .home-mp-quick__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: var(--home-radius, 12px);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
}

body.home-tpl-marketplace .home-mp-quick__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--home-primary) 12%, transparent);
    border-color: color-mix(in srgb, var(--home-primary) 30%, #e8ecf1);
}

body.home-tpl-marketplace .home-mp-quick__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--home-primary) 12%, #fff);
    color: var(--home-primary);
    font-size: 15px;
    flex-shrink: 0;
}

body.home-tpl-marketplace .home-mp-quick__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

body.home-tpl-marketplace .home-mp-quick__text strong {
    font-size: 12px;
    font-weight: 700;
    color: var(--home-secondary);
    line-height: 1.2;
}

body.home-tpl-marketplace .home-mp-quick__text small {
    font-size: 10px;
    color: #64748b;
    line-height: 1.2;
}

body.home-tpl-marketplace .home-categories-scroll {
    gap: 8px;
}

body.home-tpl-marketplace .home-category-chip {
    border: 1px solid color-mix(in srgb, var(--home-primary) 22%, var(--home-border, #e8ecf1));
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 12px;
    transition: transform 0.2s ease, background 0.2s, box-shadow 0.2s;
}

body.home-tpl-marketplace .home-category-chip:hover {
    background: color-mix(in srgb, var(--home-primary) 10%, #fff);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--home-primary) 12%, transparent);
}

/* Banner bento — hero + laterais */
body.home-tpl-marketplace .home-banner-main--marketplace-bento {
    padding-top: var(--home-space-lg, 16px);
}

body.home-tpl-marketplace .home-banner-bento {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: var(--home-space, 12px);
    min-height: 280px;
    aspect-ratio: 21 / 7;
    height: auto;
}

body.home-tpl-marketplace .home-banner-bento__hero,
body.home-tpl-marketplace .home-banner-bento__hero .carousel-inner {
    border-radius: calc(var(--home-radius, 12px) + 4px);
    overflow: hidden;
    height: 100%;
    min-height: 280px;
    box-shadow: 0 12px 40px color-mix(in srgb, var(--home-primary) 14%, transparent);
}

body.home-tpl-marketplace .home-banner-bento__side {
    display: flex;
    flex-direction: column;
    gap: var(--home-space, 12px);
    min-height: 280px;
}

body.home-tpl-marketplace .home-banner-bento__side-item {
    position: relative;
    flex: 1;
    border-radius: var(--home-radius, 12px);
    overflow: hidden;
    display: block;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.home-tpl-marketplace .home-banner-bento__side-item:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--home-primary) 18%, transparent);
}

body.home-tpl-marketplace .home-banner-bento__side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 130px;
}

body.home-tpl-marketplace .home-banner-bento__side-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.75));
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

/* Mosaic — banners intermediários */
body.home-tpl-marketplace .home-banner-middle--marketplace-mosaic {
    padding: var(--home-space-xl, 20px) 0;
}

body.home-tpl-marketplace .home-banner-mosaic {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 160px;
    gap: var(--home-space, 12px);
}

body.home-tpl-marketplace .home-banner-mosaic__tile {
    position: relative;
    border-radius: var(--home-radius, 12px);
    overflow: hidden;
    display: block;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.home-tpl-marketplace .home-banner-mosaic__tile--featured {
    grid-column: span 2;
    grid-row: span 2;
}

body.home-tpl-marketplace .home-banner-mosaic__tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--home-primary) 15%, transparent);
}

body.home-tpl-marketplace .home-banner-mosaic__tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.home-tpl-marketplace .home-banner-mosaic__label {
    position: absolute;
    left: 12px;
    bottom: 10px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--home-secondary);
}

body.home-tpl-marketplace .home-section-link {
    background: color-mix(in srgb, var(--home-primary) 12%, #fff);
    padding: 8px 14px;
    border-radius: 999px;
    transition: background 0.2s, gap 0.2s;
}

body.home-tpl-marketplace .home-store-card {
    border: none !important;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06) !important;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease !important;
}

body.home-tpl-marketplace .home-store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px color-mix(in srgb, var(--home-primary) 14%, transparent) !important;
}

body.home-tpl-marketplace .home-flash-section {
    background: linear-gradient(135deg, var(--home-secondary) 0%, color-mix(in srgb, var(--home-primary) 30%, var(--home-secondary)) 100%);
    border-radius: calc(var(--home-radius, 12px) + 4px);
    margin: 0 auto var(--home-space-lg, 16px);
    max-width: var(--home-store-max-width, 1280px);
    padding: var(--home-space-xl, 20px) !important;
}

body.home-tpl-marketplace .home-flash-section .home-section-title {
    color: #fff;
}

/* Scroll reveal — marketplace */
@media (prefers-reduced-motion: no-preference) {
    body.home-tpl-marketplace .home-scroll-reveal {
        opacity: 0;
        transition:
            opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
        transition-delay: var(--reveal-delay, 0s);
        will-change: opacity, transform;
    }

    body.home-tpl-marketplace .home-scroll-reveal--fade,
    body.home-tpl-marketplace .home-scroll-reveal--item,
    body.home-tpl-marketplace .home-scroll-reveal--chip {
        transform: translateY(28px);
    }

    body.home-tpl-marketplace .home-scroll-reveal--zoom {
        transform: scale(0.96) translateY(16px);
    }

    body.home-tpl-marketplace .home-scroll-reveal--header {
        transform: translateX(-20px);
    }

    body.home-tpl-marketplace .home-scroll-reveal.is-revealed {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 991px) {
    body.home-tpl-marketplace .home-mp-quick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.home-tpl-marketplace .home-banner-bento {
        grid-template-columns: 1fr;
        aspect-ratio: auto;
    }

    body.home-tpl-marketplace .home-banner-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 140px;
    }

    body.home-tpl-marketplace .home-banner-mosaic__tile--featured {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 576px) {
    body.home-tpl-marketplace .home-mp-quick {
        grid-template-columns: 1fr;
    }

    body.home-tpl-marketplace .home-banner-mosaic {
        grid-template-columns: 1fr;
    }

    body.home-tpl-marketplace .home-banner-mosaic__tile--featured {
        grid-column: span 1;
    }
}

/* ==========================================================================
   TEMA 02 — Mega loja (+ animações ao scroll)
   ========================================================================== */
body.home-tpl-mega {
    --home-header-offset: 136px;
}

body.home-tpl-mega .home-template-root {
    background:
        radial-gradient(ellipse 70% 45% at 100% 0%, color-mix(in srgb, var(--home-primary) 7%, transparent), transparent 50%),
        var(--home-bg, #f8fafc);
}

body.home-tpl-mega .home-mega-nav {
    background: var(--home-surface);
    border-bottom: 1px solid var(--home-border);
    padding: 8px 0;
    transition: box-shadow 0.3s ease;
}

body.home-tpl-mega .home-mega-nav.is-scrolled {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

body.home-tpl-mega .home-mega-panel {
    border-radius: var(--home-radius-lg);
    box-shadow: var(--home-shadow);
    animation: home-mega-panel-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes home-mega-panel-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.home-tpl-mega .home-banner-main .carousel-inner {
    border: 3px solid color-mix(in srgb, var(--home-primary) 20%, transparent);
    border-radius: calc(var(--home-radius, 12px) + 4px);
    overflow: hidden;
    box-shadow: 0 16px 48px color-mix(in srgb, var(--home-primary) 15%, transparent);
}

body.home-tpl-mega .home-store-card {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

body.home-tpl-mega .home-store-card:hover {
    transform: translateY(-6px) scale(1.01);
}

body.home-tpl-mega .home-category-card-inner {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

body.home-tpl-mega .home-section-link i {
    transition: transform 0.25s ease;
}

body.home-tpl-mega .home-section-link:hover i {
    transform: translateX(4px);
}

/* Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
    body.home-tpl-mega .home-scroll-reveal {
        opacity: 0;
        transition:
            opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
        transition-delay: var(--reveal-delay, 0s);
        will-change: opacity, transform;
    }

    body.home-tpl-mega .home-scroll-reveal--fade,
    body.home-tpl-mega .home-scroll-reveal--item {
        transform: translateY(32px);
    }

    body.home-tpl-mega .home-scroll-reveal--zoom {
        transform: scale(0.94) translateY(20px);
    }

    body.home-tpl-mega .home-scroll-reveal--header {
        transform: translateX(-28px);
    }

    body.home-tpl-mega .home-scroll-reveal--nav {
        transform: translateY(12px);
    }

    body.home-tpl-mega .home-scroll-reveal.is-revealed {
        opacity: 1;
        transform: none;
    }

    body.home-tpl-mega .home-scroll-reveal--item.is-revealed .home-store-card,
    body.home-tpl-mega .home-scroll-reveal--item.is-revealed .home-category-card-inner,
    body.home-tpl-mega .home-scroll-reveal--item.is-revealed .product-card {
        animation: home-mega-card-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-delay: var(--reveal-delay, 0s);
    }
}

@keyframes home-mega-card-pop {
    0% {
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    }
    100% {
        box-shadow: var(--home-shadow-sm, 0 4px 16px rgba(15, 23, 42, 0.08));
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home-tpl-mega .home-scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   TEMA 03 — Mobile first
   ========================================================================== */
body.home-tpl-mobile .main-header {
    padding: 8px 0 !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

body.home-tpl-mobile .home-menu-scroll {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

body.home-tpl-mobile .home-category-chip {
    min-width: 100px;
    font-size: 12px;
    padding: 8px 14px;
}

body.home-tpl-mobile .home-store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* ==========================================================================
   TEMA 04 — Minimalista
   ========================================================================== */
body.home-tpl-minimalista .home-section-title {
    font-weight: 500 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem !important;
}

body.home-tpl-minimalista .home-store-card {
    box-shadow: none !important;
    border-radius: var(--home-radius, 4px) !important;
}

body.home-tpl-minimalista .home-store-card:hover {
    transform: none;
    border-color: var(--home-secondary) !important;
}

body.home-tpl-minimalista .home-banner-main .carousel-inner {
    border-radius: var(--home-radius, 4px) !important;
    box-shadow: none;
    border: 1px solid var(--home-border);
}

/* ==========================================================================
   TEMA 05 — Loja técnica
   ========================================================================== */
body.home-tpl-tecnico .home-menu-scroll {
    background: var(--home-secondary);
    border-bottom: none;
}

body.home-tpl-tecnico .home-menu-scroll .home-category-chip {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

body.home-tpl-tecnico .home-menu-scroll .home-category-chip:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

body.home-tpl-tecnico .home-section-title {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1rem !important;
}

body.home-tpl-tecnico .home-store-card .btn-buy {
    border-radius: 6px !important;
}

/* ==========================================================================
   TEMA 06 — Moda & lifestyle (editorial + vitrine de produtos)
   ========================================================================== */
body.home-tpl-moda {
    --home-header-offset: 120px;
    --home-img-h: auto;
}

body.home-tpl-moda .home-template-root {
    background: var(--home-bg, #fafafa);
}

body.home-tpl-moda .main-header {
    background: #fff;
    border-bottom: 1px solid #e7e5e4;
    box-shadow: none;
}

body.home-tpl-moda .home-dept-nav {
    background: #fff;
    border-bottom: 1px solid #e7e5e4;
}

body.home-tpl-moda .home-dept-name {
    font-weight: 500 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 11px !important;
}

body.home-tpl-moda .home-dept-link:hover .home-dept-name,
body.home-tpl-moda .home-dept-item.is-active .home-dept-name {
    color: var(--home-primary) !important;
}

body.home-tpl-moda .home-section-header,
body.home-tpl-moda .home-section-header--row {
    text-align: center;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: var(--home-space-sm, 8px);
    margin-bottom: var(--home-space-xl, 20px);
}

body.home-tpl-moda .home-section-title {
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

body.home-tpl-moda .home-section-subtitle {
    font-size: 14px;
    color: #78716c;
    letter-spacing: 0.02em;
}

body.home-tpl-moda .home-section-link {
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
}

body.home-tpl-moda .home-banner-main .carousel-inner {
    border-radius: 0;
    overflow: hidden;
}

body.home-tpl-moda .home-category-card-inner {
    border-radius: 0 !important;
    border: none;
    border-bottom: 1px solid #e7e5e4;
    box-shadow: none;
    background: transparent;
}

body.home-tpl-moda .home-category-card-cover {
    aspect-ratio: 4/5;
    height: auto;
}

body.home-tpl-moda .home-category-card-cover img {
    object-fit: cover;
}

body.home-tpl-moda .home-category-card-body {
    text-align: center;
    padding: var(--home-space-lg, 16px) var(--home-space-sm, 8px);
}

body.home-tpl-moda .home-category-card-title {
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12px;
}

body.home-tpl-moda .home-category-card-cta {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 10px;
}

/* Grid editorial — menos colunas, cards altos */
body.home-tpl-moda .home-store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: var(--home-space-xl, 20px) var(--home-space-lg, 16px) !important;
}

@media (min-width: 768px) {
    body.home-tpl-moda .home-store-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1200px) {
    body.home-tpl-moda .home-store-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

body.home-tpl-moda .home-store-card {
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid #e7e5e4 !important;
    box-shadow: none !important;
    padding: 0 0 var(--home-space-lg, 16px) !important;
    background: transparent !important;
    gap: var(--home-space, 12px);
}

body.home-tpl-moda .home-store-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

body.home-tpl-moda .home-store-card .product-image {
    border-radius: 0 !important;
    aspect-ratio: 4/5;
    height: auto !important;
    min-height: 0;
    background: #f5f5f4;
    margin-bottom: 0;
}

body.home-tpl-moda .home-store-card .product-image img {
    object-fit: contain;
    padding: 14px;
    width: 100%;
    height: 100%;
}

body.home-tpl-moda .home-store-card .product-info {
    text-align: center;
    align-items: center;
    gap: var(--home-space-sm, 8px);
    padding: 0 var(--home-space-sm, 8px);
}

body.home-tpl-moda .home-store-card .product-title {
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.02em;
    min-height: 2.6em;
    font-size: 0.8125rem !important;
    line-height: 1.4 !important;
}

body.home-tpl-moda .home-store-card .new-price,
body.home-tpl-moda .home-store-card .promo-price-final {
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    color: var(--home-primary) !important;
}

body.home-tpl-moda .home-store-card .product-actions {
    display: flex !important;
    flex-direction: column;
    gap: var(--home-space-sm, 8px);
    width: 100%;
    max-width: 240px;
    margin: var(--home-space-sm, 8px) auto 0;
    padding-top: 0;
}

body.home-tpl-moda .home-store-card .btn-buy,
body.home-tpl-moda .home-store-card .btn-details {
    border-radius: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 10px !important;
    font-weight: 600 !important;
    min-height: 38px !important;
    width: 100%;
}

body.home-tpl-moda .home-store-card .btn-details {
    background: transparent !important;
    color: var(--home-secondary, #1c1917) !important;
    border: 1px solid #d6d3d1 !important;
    order: 2;
}

body.home-tpl-moda .home-store-card .btn-buy {
    order: 1;
    background: var(--home-primary) !important;
}

body.home-tpl-moda .home-flash-section {
    background: var(--home-secondary, #1c1917);
    border-radius: 0;
    padding: var(--home-space-xl, 20px) 0 !important;
}

body.home-tpl-moda .home-flash-section .home-section-title {
    color: #fff;
}

body.home-tpl-moda .home-flash-section .product-card {
    border: none !important;
    border-radius: 0 !important;
    background: #fff;
}

body.home-tpl-moda .home-flash-section .product-image {
    aspect-ratio: 1;
    height: auto !important;
    background: #f5f5f4;
}

body.home-tpl-moda .home-flash-section .product-image img {
    object-fit: contain;
    padding: 10px;
}

body.home-tpl-moda .home-vitrine-section--fill {
    padding: calc(var(--home-space-xl, 20px) + 8px) 0;
}

body.home-tpl-moda .home-categories-section {
    padding: var(--home-space-xl, 20px) 0;
    background: #fff;
    margin-bottom: var(--home-space-lg, 16px);
}

@media (max-width: 576px) {
    body.home-tpl-moda .home-store-grid {
        gap: var(--home-space-lg, 16px) var(--home-space, 12px) !important;
    }

    body.home-tpl-moda .home-store-card .product-image {
        aspect-ratio: 1;
    }
}

/* ==========================================================================
   TEMA 07 — Ofertas / promoção
   ========================================================================== */
body.home-tpl-ofertas .home-template-root {
    background: linear-gradient(180deg, #fffbf5 0%, var(--home-bg) 180px);
}

body.home-tpl-ofertas .home-trust-strip {
    background: linear-gradient(90deg, #fff7ed, #fff);
    border-bottom-color: #fed7aa;
}

body.home-tpl-ofertas .home-trust-pill i {
    color: #ea580c;
}

body.home-tpl-ofertas .home-store-card .new-price::before {
    content: "Por ";
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--home-text-muted, #64748b);
}

body.home-tpl-ofertas .home-store-card .btn-buy {
    background: linear-gradient(135deg, #ea580c, #f97316) !important;
}

body.home-tpl-ofertas .home-flash-section,
body.home-tpl-ofertas .home-promo-section {
    background: linear-gradient(180deg, #fff7ed, #fff);
    border-radius: var(--home-radius-lg);
    padding: 16px;
    margin-bottom: 8px;
}

/* ==========================================================================
   TEMA 08 — Catálogo lateral (side_market)
   ========================================================================== */
body.home-tpl-side_market .home-layout-vertical {
    background: var(--home-bg);
}

body.home-tpl-side_market .home-mobile-dept {
    margin-bottom: 8px;
}

body.home-tpl-side_market .home-vertical-menu,
body.home-tpl-side_market .home-sidebar-panel {
    border-left: 4px solid var(--home-primary);
}

body.home-tpl-side_market .home-layout-vertical {
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
}

/* ==========================================================================
   Modelo 11 — Sidebar PRO (index + produto)
   ========================================================================== */
body.home-menu-sidebar_pro .home-layout-vertical--pro,
body.home-tpl-catalogo_pro .home-layout-vertical--pro {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
    max-width: 100%;
    width: 100%;
    padding: 20px clamp(12px, 2vw, 28px) 32px;
}

body.home-menu-sidebar_pro .home-sidebar,
body.home-tpl-catalogo_pro .home-sidebar {
    width: 320px;
    max-width: 320px;
    min-width: 320px;
    overflow: visible;
}

body.home-menu-sidebar_pro .home-sidebar .home-sidebar-pro,
body.home-tpl-catalogo_pro .home-sidebar .home-sidebar-pro {
    position: sticky;
    top: calc(var(--home-nav-sticky-top, 132px) + 8px);
    max-height: calc(100vh - var(--home-nav-sticky-top, 132px) - 24px);
    overflow: visible;
}

body.home-menu-sidebar_pro .home-shell--sidebar-pro .home-zone--nav,
body.home-tpl-catalogo_pro .home-shell--sidebar-pro .home-zone--nav {
    min-height: 0;
}

/* Submenus em flyout — não alteram altura da sidebar nem empurram o conteúdo */
@media (min-width: 992px) {
    .home-sidebar-pro .home-sidebar-dept {
        position: relative;
    }

    .home-sidebar-pro .home-sidebar-dept__subs {
        display: block !important;
        position: fixed;
        left: auto;
        top: auto;
        width: min(300px, calc(100vw - 48px));
        min-width: 240px;
        max-height: min(420px, calc(100vh - 24px));
        overflow-x: hidden;
        overflow-y: auto;
        margin: 0;
        padding: 6px 0;
        background: #fff;
        border: 1px solid var(--home-border, #e8ecf1);
        border-radius: var(--home-radius, 12px);
        box-shadow: 0 16px 48px rgba(15, 23, 42, 0.14);
        z-index: 10050;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(6px);
        transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    }

    .home-sidebar-pro .home-sidebar-dept.is-open > .home-sidebar-dept__subs {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }

    .home-sidebar-pro .home-sidebar-dept__subs .home-sidebar-dept__link {
        background: #fff;
        border-bottom-color: var(--home-border-soft, #f1f5f9);
    }

    .home-sidebar-pro .home-sidebar-dept__subs .home-sidebar-dept__link:hover {
        transform: translateX(3px);
    }
}

@media (max-width: 991px) {
    .home-sidebar-pro .home-sidebar-dept__subs {
        position: static !important;
        width: auto !important;
        min-width: 0 !important;
        max-height: none !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        display: none !important;
    }

    .home-sidebar-pro .home-sidebar-dept.has-submenu:hover > .home-sidebar-dept__subs,
    .home-sidebar-pro .home-sidebar-dept.has-submenu:focus-within > .home-sidebar-dept__subs,
    .home-sidebar-pro .home-sidebar-dept.is-active > .home-sidebar-dept__subs {
        display: block !important;
    }
}

.home-sidebar-pro .home-sidebar-dept.has-submenu > .home-sidebar-dept__link::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--home-text-muted, #94a3b8);
    border-bottom: 2px solid var(--home-text-muted, #94a3b8);
    transform: rotate(-45deg);
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.6;
}

@media (max-width: 991px) {
    body.home-menu-sidebar_pro .home-layout-vertical--pro,
    body.home-tpl-catalogo_pro .home-layout-vertical--pro {
        grid-template-columns: 1fr;
        padding: 12px 12px 24px;
    }

    body.home-menu-sidebar_pro .home-sidebar .home-sidebar-pro,
    body.home-tpl-catalogo_pro .home-sidebar .home-sidebar-pro {
        position: relative;
        top: auto;
        max-height: none;
    }
}

/* ==========================================================================
   TEMA 11 — Catálogo PRO (sidebar + vitrine criativa)
   ========================================================================== */
body.home-tpl-catalogo_pro {
    --home-header-offset: 132px;
    --home-accent-dark: color-mix(in srgb, var(--home-primary) 78%, #000);
    --home-catalogo-glow: color-mix(in srgb, var(--home-primary) 22%, transparent);
}

body.home-tpl-catalogo_pro .home-template-root {
    background:
        radial-gradient(ellipse 80% 50% at 100% 0%, color-mix(in srgb, var(--home-primary) 8%, transparent), transparent 55%),
        radial-gradient(ellipse 60% 40% at 0% 100%, color-mix(in srgb, var(--home-secondary) 6%, transparent), transparent 50%),
        var(--home-bg, #eef2f7);
}

body.home-tpl-catalogo_pro .top-bar {
    background: var(--home-secondary, #0f172a);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
}

body.home-tpl-catalogo_pro .main-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

body.home-tpl-catalogo_pro .main-header .search-bar {
    border: 2px solid #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

body.home-tpl-catalogo_pro .main-header .search-bar:focus-within {
    border-color: color-mix(in srgb, var(--home-primary) 50%, #e2e8f0);
    box-shadow: 0 0 0 4px var(--home-catalogo-glow);
}

body.home-tpl-catalogo_pro .main-header .search-bar button {
    border-radius: 0 999px 999px 0;
}

/* Sidebar — painel premium */
body.home-tpl-catalogo_pro .home-sidebar .home-sidebar-pro {
    border: none;
    border-radius: calc(var(--home-radius, 14px) + 2px);
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 20px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    background: #fff;
}

body.home-tpl-catalogo_pro .home-sidebar-pro .home-sidebar-panel__head {
    background: linear-gradient(135deg, var(--home-secondary, #0f172a) 0%, color-mix(in srgb, var(--home-primary) 35%, var(--home-secondary)) 100%);
    border-bottom: none;
    padding: 20px;
    color: #fff;
}

body.home-tpl-catalogo_pro .home-sidebar-pro .home-sidebar-panel__icon {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(4px);
}

body.home-tpl-catalogo_pro .home-sidebar-pro .home-sidebar-panel__titles strong {
    color: #fff;
    letter-spacing: 0.06em;
}

body.home-tpl-catalogo_pro .home-sidebar-pro .home-sidebar-panel__titles span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
}

body.home-tpl-catalogo_pro .home-sidebar-pro .home-sidebar-dept__link {
    border-radius: 10px;
    margin: 2px 8px;
    transition: background 0.2s, transform 0.15s;
}

body.home-tpl-catalogo_pro .home-sidebar-pro .home-sidebar-dept__link:hover,
body.home-tpl-catalogo_pro .home-sidebar-pro .home-sidebar-dept.is-active > .home-sidebar-dept__link {
    background: color-mix(in srgb, var(--home-primary) 12%, #fff);
    transform: translateX(3px);
}

body.home-tpl-catalogo_pro .home-sidebar-pro .home-sidebar-panel__all {
    background: linear-gradient(90deg, var(--home-primary), color-mix(in srgb, var(--home-primary) 70%, #000));
    color: #fff;
    border-radius: 10px;
    margin: 8px;
    padding: 12px 16px;
    font-weight: 700;
    justify-content: center;
}

body.home-tpl-catalogo_pro .home-sidebar-pro .home-sidebar-panel__all:hover {
    filter: brightness(1.06);
    color: #fff;
}

/* Coluna principal — hero + conteúdo */
body.home-tpl-catalogo_pro .home-main-content {
    background: #fff;
    border-radius: calc(var(--home-radius, 14px) + 4px);
    padding: var(--home-space-lg, 16px);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
    min-height: 280px;
}

body.home-tpl-catalogo_pro .home-banner-main--catalogo-pro {
    padding: 0;
    margin-bottom: 0;
}

body.home-tpl-catalogo_pro .home-banner-main--catalogo-pro .home-vitrine-container {
    padding: 0;
    max-width: 100%;
}

body.home-tpl-catalogo_pro .home-banner-main--catalogo-pro .carousel-inner {
    border-radius: var(--home-radius, 14px);
    overflow: hidden;
    box-shadow: 0 12px 40px var(--home-catalogo-glow);
    min-height: 220px;
}

body.home-tpl-catalogo_pro .home-banner-main--catalogo-pro .home-banner-img {
    object-fit: cover;
    min-height: 220px;
}

body.home-tpl-catalogo_pro .home-banner-main--catalogo-pro .carousel-control-prev,
body.home-tpl-catalogo_pro .home-banner-main--catalogo-pro .carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transition: opacity 0.2s;
}

body.home-tpl-catalogo_pro .home-banner-main--catalogo-pro:hover .carousel-control-prev,
body.home-tpl-catalogo_pro .home-banner-main--catalogo-pro:hover .carousel-control-next {
    opacity: 1;
}

/* Faixas full-width abaixo do grid */
body.home-tpl-catalogo_pro .home-bleed-zone {
    padding-top: var(--home-space-xl, 20px);
}

body.home-tpl-catalogo_pro .home-shell > .home-newsletter-section.home-full-strip {
    margin-top: var(--home-space-xl, 24px);
    border-radius: 0;
}

body.home-tpl-catalogo_pro .home-section-title {
    position: relative;
    font-weight: 800;
    letter-spacing: -0.02em;
}

body.home-tpl-catalogo_pro .home-section-title::after {
    content: '';
    display: block;
    width: 52px;
    height: 4px;
    margin-top: var(--home-space-sm, 8px);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--home-primary), transparent);
}

body.home-tpl-catalogo_pro .home-section-subtitle {
    color: #64748b;
    font-size: 14px;
}

/* Categorias — card destaque + hover */
body.home-tpl-catalogo_pro .home-categories-section {
    padding: var(--home-space-xl, 20px) 0 calc(var(--home-space-xl, 20px) + 8px);
}

@media (min-width: 992px) {
    body.home-tpl-catalogo_pro .home-categories-grid > .col-lg-3:first-child {
        flex: 0 0 auto;
        width: 50%;
    }

    body.home-tpl-catalogo_pro .home-categories-grid > .col-lg-3:first-child .home-category-card-cover {
        min-height: 200px;
    }

    body.home-tpl-catalogo_pro .home-categories-grid > .col-lg-3:first-child .home-category-card-inner {
        flex-direction: row;
    }

    body.home-tpl-catalogo_pro .home-categories-grid > .col-lg-3:first-child .home-category-card-cover {
        flex: 0 0 45%;
        min-height: 100%;
        border-radius: var(--home-radius, 14px) 0 0 var(--home-radius, 14px);
    }
}

body.home-tpl-catalogo_pro .home-category-card-inner {
    border: none;
    border-radius: var(--home-radius, 14px);
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.home-tpl-catalogo_pro .home-category-card:hover .home-category-card-inner {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px var(--home-catalogo-glow);
}

body.home-tpl-catalogo_pro .home-category-card-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.35));
    pointer-events: none;
}

body.home-tpl-catalogo_pro .home-category-card-cover {
    position: relative;
}

body.home-tpl-catalogo_pro .home-category-card-cta {
    color: var(--home-primary);
    font-weight: 700;
}

body.home-tpl-catalogo_pro .home-category-sub-pill {
    background: color-mix(in srgb, var(--home-primary) 10%, #f1f5f9);
    color: var(--home-secondary);
    border: 1px solid color-mix(in srgb, var(--home-primary) 20%, transparent);
}

/* Ofertas relâmpago */
body.home-tpl-catalogo_pro .home-flash-section {
    background: linear-gradient(135deg, var(--home-secondary) 0%, color-mix(in srgb, var(--home-primary) 25%, var(--home-secondary)) 100%);
    border-radius: calc(var(--home-radius, 14px) + 2px);
    margin: 0 auto var(--home-space-lg, 16px);
    max-width: var(--home-store-max-width, 1280px);
    padding: var(--home-space-xl, 20px) !important;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.15);
}

body.home-tpl-catalogo_pro .home-flash-section .home-section-title {
    color: #fff;
}

body.home-tpl-catalogo_pro .home-flash-section .home-section-title::after {
    background: linear-gradient(90deg, #fff, transparent);
}

body.home-tpl-catalogo_pro .home-flash-section .home-section-title .fa-bolt {
    color: #fbbf24 !important;
}

body.home-tpl-catalogo_pro .home-flash-section .product-card {
    border: none !important;
    border-radius: var(--home-radius, 14px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

body.home-tpl-catalogo_pro .home-flash-section .new-price {
    color: var(--home-primary) !important;
}

/* Vitrines alternadas */
body.home-tpl-catalogo_pro .home-vitrine-section--fill:nth-child(even) {
    background: #fff;
    border-radius: calc(var(--home-radius, 14px) + 2px);
    margin-bottom: var(--home-space-lg, 16px);
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.04);
}

body.home-tpl-catalogo_pro .home-store-card {
    border: none !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06) !important;
}

body.home-tpl-catalogo_pro .home-store-card:hover {
    box-shadow: 0 12px 32px var(--home-catalogo-glow) !important;
    transform: translateY(-3px);
}

body.home-tpl-catalogo_pro .home-store-card .new-price {
    color: var(--home-primary) !important;
}

body.home-tpl-catalogo_pro .home-section-link {
    color: var(--home-primary);
    font-weight: 700;
    padding: var(--home-space-sm, 8px) var(--home-space, 12px);
    border-radius: 999px;
    background: color-mix(in srgb, var(--home-primary) 10%, #fff);
    transition: background 0.2s;
}

body.home-tpl-catalogo_pro .home-section-link:hover {
    background: color-mix(in srgb, var(--home-primary) 18%, #fff);
}

/* Banner intermediário */
body.home-tpl-catalogo_pro .home-banner-middle .carousel-inner {
    border-radius: var(--home-radius, 14px);
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

@media (max-width: 991px) {
    body.home-tpl-catalogo_pro .home-main-content {
        padding: var(--home-space, 12px);
        margin-top: var(--home-space-sm, 8px);
    }

    body.home-tpl-catalogo_pro .home-categories-grid > .col-lg-3:first-child {
        width: 100%;
    }

    body.home-tpl-catalogo_pro .home-flash-section {
        margin-left: 12px;
        margin-right: 12px;
        max-width: calc(100% - 24px);
    }
}

/* ==========================================================================
   TEMA 09 — Supermercado / ícones rápidos
   ========================================================================== */
body.home-tpl-icones_rapidos .home-quick-nav {
    border: none;
    background: transparent;
    margin: 0 0 16px;
    position: sticky;
    top: var(--home-nav-sticky-top);
    z-index: 9997;
}

body.home-tpl-icones_rapidos .home-quick-grid {
    gap: 8px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

body.home-tpl-icones_rapidos .home-quick-link {
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-lg);
    background: var(--home-surface);
    box-shadow: var(--home-shadow-sm);
    transition: transform 0.2s, border-color 0.2s;
}

body.home-tpl-icones_rapidos .home-quick-link:last-child {
    border-right: 1px solid var(--home-border);
}

body.home-tpl-icones_rapidos .home-quick-link:hover {
    transform: translateY(-2px);
    border-color: var(--home-primary);
    background: color-mix(in srgb, var(--home-primary) 8%, #fff);
}

body.home-tpl-icones_rapidos .home-quick-link__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--home-primary) 15%, #fff);
    color: var(--home-primary);
    font-size: 16px;
}

/* ==========================================================================
   TEMA 10 — Premium / hero glass
   ========================================================================== */
body.home-cab-hero_glass .top-bar {
    display: none;
}

body.home-cab-hero_glass .main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

body.home-cab-hero_glass .main-header a,
body.home-cab-hero_glass .main-header .action-item,
body.home-cab-hero_glass .main-header .action-item div {
    color: #f5f5f5 !important;
}

body.home-cab-hero_glass .search-bar {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

body.home-cab-hero_glass .search-bar input {
    background: transparent;
    color: #fff;
}

body.home-cab-hero_glass .search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

body.home-cab-hero_glass .search-bar button {
    color: #fff;
}

body.home-tpl-premium .home-template-root {
    background: #0a0a0a !important;
    color: #f5f5f5;
}

body.home-tpl-premium .home-section-title,
body.home-tpl-premium .home-dept-name,
body.home-tpl-premium .home-section-subtitle {
    color: #f5f5f5 !important;
}

body.home-tpl-premium .home-store-card {
    background: #141414 !important;
    border-color: #2a2a2a !important;
    color: #f5f5f5;
}

body.home-tpl-premium .home-store-card .product-title {
    color: #f5f5f5 !important;
}

body.home-tpl-premium .home-store-card .product-image {
    background: #1a1a1a;
}

body.home-tpl-premium .home-banner-main {
    padding-top: 0;
    margin-top: calc(-1 * var(--home-header-offset));
}

body.home-tpl-premium .home-banner-main .container {
    max-width: 100%;
    padding: 0;
}

body.home-tpl-premium .home-banner-main .carousel-inner {
    border-radius: 0 !important;
    min-height: min(52vh, 520px) !important;
    aspect-ratio: auto;
}

body.home-tpl-premium .home-dept-nav {
    background: rgba(20, 20, 20, 0.95);
    border-bottom-color: #333;
}

body.home-tpl-premium .home-dept-name {
    color: #e5e5e5 !important;
}

body.home-tpl-premium .home-category-card-inner {
    background: #141414;
    border-color: #333;
}

body.home-tpl-premium .home-category-card-title {
    color: #f5f5f5;
}

/* ---- Editorial cab ---- */
body.home-cab-editorial .home-dept-name {
    font-weight: 500 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 12px !important;
}

/* ---- Confiança cab ---- */
body.home-cab-confianca .top-bar {
    background: #ecfeff;
    color: #155e75;
}

body.home-tpl-ofertas .home-dept-nav {
    background: #fff;
    border-bottom-color: #fed7aa;
}

body.home-tpl-ofertas .home-dept-link {
    padding: 11px 12px;
}

body.home-tpl-ofertas .home-dept-name {
    font-size: 11px;
    max-width: 10rem;
}

body.home-tpl-ofertas .home-dept-icon--fallback {
    width: 24px;
    height: 24px;
    font-size: 10px;
}

/* ==========================================================================
   MOBILE — prioridade
   ========================================================================== */
@media (max-width: 991px) {
    body.home-store-template {
        --home-header-offset: 112px;
        --home-grid-gap: 10px;
        --home-card-pad: 10px;
        --home-img-h: 130px;
    }

    body.home-cab-compacto { --home-header-offset: 72px; }
    body.home-cab-confianca { --home-header-offset: 148px; }
    body.home-cab-hero_glass { --home-header-offset: 64px; }

    body.home-store-template .home-store-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body.home-store-template .home-store-card {
        padding: var(--home-space) !important;
        gap: var(--home-space-sm);
    }

    body.home-store-template .home-store-card .product-image {
        height: 120px !important;
    }

    body.home-store-template .home-store-card .product-title {
        font-size: 0.75rem !important;
        min-height: 2.4em;
    }

    body.home-store-template .home-store-card .new-price {
        font-size: 0.95rem !important;
    }

    body.home-store-template .home-store-card .product-actions {
        gap: var(--home-space-sm);
        padding-top: var(--home-space-sm);
    }

    body.home-store-template .home-store-card .btn-buy,
    body.home-store-template .home-store-card .btn-details {
        padding: var(--home-space-sm) var(--home-space-sm) !important;
        font-size: 11px !important;
        min-height: 36px !important;
    }

    body.home-store-template .home-dept-nav__viewport {
        padding: 0 12px;
    }

    body.home-store-template .home-dept-name {
        max-width: 9rem;
        font-size: 11px;
    }

    body.home-store-template .home-dept-link {
        padding: 10px 10px;
    }

    body.home-store-template .home-banner-main .carousel-inner {
        border-radius: 12px !important;
        min-height: 180px !important;
        aspect-ratio: 16 / 9;
    }

    body.home-store-template .home-trust-pills__inner {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 8px 0;
        -webkit-overflow-scrolling: touch;
    }

    body.home-store-template .home-trust-pill {
        flex-shrink: 0;
    }

    body.home-tpl-icones_rapidos .home-quick-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    body.home-tpl-premium .home-banner-main .carousel-inner {
        min-height: 220px !important;
    }

    body.home-store-template .home-layout-vertical {
        padding: 10px 10px 20px;
    }

    body.home-store-template .home-vitrine-section,
    body.home-store-template .home-categories-section {
        padding: 16px 0 24px;
    }

    body.home-store-template .store-promo-strip.home-full-strip,
    body.home-store-template .home-promo-strip.home-full-strip,
    body.home-store-template section.newsletter.home-full-strip,
    body.home-store-template .home-newsletter-section.home-full-strip {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    body.home-store-template .home-strip-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    body.home-store-template .home-newsletter-section .newsletter-content {
        flex-direction: column;
        text-align: center;
        align-items: stretch;
        gap: var(--home-space-lg);
    }

    body.home-store-template .home-newsletter-section .newsletter-form {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        gap: var(--home-space);
    }

    body.home-store-template .home-section-header--row {
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    body.home-tpl-icones_rapidos .home-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    body.home-store-template .home-category-chip {
        min-width: 96px;
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* ==========================================================================
   TEMA 12 — Loja do Mecânico (inspirado em lojadomecanico.com.br)
   Mega menu, categorias em ícones, vitrines densas, selos de confiança
   ========================================================================== */
body.home-tpl-mecanico {
    --home-primary: #e85d0c;
    --home-secondary: #1f2937;
    --home-buttons: #e85d0c;
    --home-bg: #f3f4f6;
    --home-radius: 8px;
}

body.home-tpl-mecanico .top-bar {
    background: #111827;
    font-size: 12px;
}

body.home-tpl-mecanico .store-promo-strip.home-full-strip {
    background: var(--home-primary) !important;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
}

body.home-tpl-mecanico .main-header {
    border-bottom: 3px solid var(--home-primary);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

body.home-tpl-mecanico .main-header .search-bar {
    border: 2px solid #e5e7eb;
    border-radius: 999px;
}

body.home-tpl-mecanico .main-header .search-bar button {
    background: var(--home-primary);
    border-radius: 0 999px 999px 0;
}

body.home-tpl-mecanico .home-mega-nav {
    background: #fff;
    border-bottom: 2px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

body.home-tpl-mecanico .home-mega-nav__trigger,
body.home-tpl-mecanico .home-mega-dept__link {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

body.home-tpl-mecanico .home-mega-dept__link:hover,
body.home-tpl-mecanico .home-mega-nav__trigger:hover {
    color: var(--home-primary);
}

body.home-tpl-mecanico .home-template-root {
    background: var(--home-bg);
}

body.home-tpl-mecanico .home-main-flow {
    padding-bottom: 8px;
}

body.home-tpl-mecanico .home-banner-main .carousel-inner {
    border-radius: var(--home-radius);
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

/* Selos de confiança */
body.home-tpl-mecanico .home-mec-trust {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 18px 0;
}

body.home-tpl-mecanico .home-mec-trust--empresa {
    background: #fff;
    margin-top: 12px;
    padding: 32px 0 40px;
}

body.home-tpl-mecanico .home-mec-trust__section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--home-secondary);
    text-align: center;
    margin: 0 0 24px;
}

body.home-tpl-mecanico .home-mec-trust__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.home-tpl-mecanico .home-mec-trust__item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

body.home-tpl-mecanico .home-mec-trust__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--home-primary) 12%, #fff);
    color: var(--home-primary);
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}

body.home-tpl-mecanico .home-mec-trust__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

body.home-tpl-mecanico .home-mec-trust__text strong {
    font-size: 13px;
    font-weight: 800;
    color: var(--home-secondary);
    line-height: 1.2;
}

body.home-tpl-mecanico .home-mec-trust__text small {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.3;
}

/* Categorias mais procuradas */
body.home-tpl-mecanico .home-mec-categories {
    background: #fff;
    padding: 28px 0 32px;
}

body.home-tpl-mecanico .home-mec-categories__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

body.home-tpl-mecanico .home-mec-categories__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--home-secondary);
    margin: 0;
}

body.home-tpl-mecanico .home-mec-categories__link {
    font-size: 13px;
    font-weight: 700;
    color: var(--home-primary);
    text-decoration: none;
    white-space: nowrap;
}

body.home-tpl-mecanico .home-mec-categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 12px 10px;
}

body.home-tpl-mecanico .home-mec-cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    border-radius: var(--home-radius);
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    min-height: 118px;
}

body.home-tpl-mecanico .home-mec-cat-tile:hover {
    border-color: color-mix(in srgb, var(--home-primary) 40%, #e5e7eb);
    box-shadow: 0 6px 20px rgba(232, 93, 12, 0.12);
    transform: translateY(-2px);
}

body.home-tpl-mecanico .home-mec-cat-tile__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--home-primary);
    font-size: 22px;
}

body.home-tpl-mecanico .home-mec-cat-tile__label {
    font-size: 11px;
    font-weight: 700;
    color: var(--home-secondary);
    text-align: center;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Spotlight — Baixaram o preço / Mais vendidos */
body.home-tpl-mecanico .home-mec-spotlight {
    background: var(--home-bg);
    padding: 28px 0;
}

body.home-tpl-mecanico .home-mec-spotlight__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

body.home-tpl-mecanico .home-mec-spotlight__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--home-secondary);
    margin: 0;
}

body.home-tpl-mecanico .home-mec-spotlight__link {
    font-weight: 700;
    font-size: 13px;
    color: var(--home-primary);
    text-decoration: none;
}

body.home-tpl-mecanico .home-mec-spotlight__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

body.home-tpl-mecanico .home-mec-spotlight-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--home-radius);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
    position: relative;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

body.home-tpl-mecanico .home-mec-spotlight-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--home-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 10px;
    border-radius: 4px;
}

body.home-tpl-mecanico .home-mec-spotlight-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #fafafa;
    min-height: 160px;
}

body.home-tpl-mecanico .home-mec-spotlight-card__image img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}

body.home-tpl-mecanico .home-mec-spotlight-card__body {
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

body.home-tpl-mecanico .home-mec-spotlight-card__name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.home-tpl-mecanico .home-mec-spotlight-card__name a {
    color: var(--home-secondary);
    text-decoration: none;
}

body.home-tpl-mecanico .home-mec-spotlight-card__pix {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
}

body.home-tpl-mecanico .home-mec-spotlight-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 10px 16px;
    background: var(--home-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 6px;
    text-decoration: none;
    width: fit-content;
}

/* Vitrines e ofertas densas */
body.home-tpl-mecanico .home-vitrine-section--fill {
    background: #fff;
    padding: 28px 0 36px;
    margin-top: 8px;
}

body.home-tpl-mecanico .home-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--home-secondary);
}

body.home-tpl-mecanico .home-section-link {
    color: var(--home-primary);
    font-weight: 700;
    font-size: 13px;
}

body.home-tpl-mecanico .home-mec-offers__sub {
    font-size: 13px;
    color: #6b7280;
    margin: 4px 0 0;
}

/* mecanico: grid já limitado globalmente a 5 colunas */

body.home-tpl-mecanico .home-mec-offer-card {
    border: 1px solid #e5e7eb !important;
    border-radius: var(--home-radius) !important;
}

body.home-tpl-mecanico .home-mec-offer-card .product-title {
    height: auto;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    min-height: 32px;
}

body.home-tpl-mecanico .home-mec-offer-card__pix {
    font-size: 10px;
    color: #6b7280;
    margin: 4px 0 8px;
}

body.home-tpl-mecanico .home-store-card .new-price {
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    color: var(--home-primary) !important;
}

body.home-tpl-mecanico .home-store-card .btn-buy {
    background: var(--home-primary) !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    min-height: 36px !important;
    max-height: none !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: nowrap !important;
}

body.home-tpl-mecanico .home-store-card .btn-details {
    border-radius: 6px !important;
    font-size: 11px !important;
}

body.home-tpl-mecanico .home-newsletter-section.home-full-strip {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

@media (max-width: 991px) {
    body.home-tpl-mecanico .home-mec-trust__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.home-tpl-mecanico .home-mec-spotlight__grid {
        grid-template-columns: 1fr;
    }

    body.home-tpl-mecanico .home-mec-spotlight-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    body.home-tpl-mecanico .home-mec-categories__grid {
        grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    }
}

@media (max-width: 560px) {
    body.home-tpl-mecanico .home-mec-trust__list {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   TEMA 13 — Mercado Livre (layout ML; cores de ação = laranja da loja)
   ========================================================================== */
body.home-tpl-mercado_livre {
    --home-secondary: #333333;
    --home-bg: #ededed;
    --home-ml-yellow: #ffe600;
    --home-radius: 6px;
    --home-header-offset: 148px;
}

body.home-tpl-mercado_livre .top-bar {
    display: none;
}

body.home-tpl-mercado_livre .main-header {
    background: var(--home-ml-yellow);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
    padding: 10px 0 8px;
}

body.home-tpl-mercado_livre .main-header .container {
    align-items: center;
    gap: 16px;
}

body.home-tpl-mercado_livre .main-header .logo img {
    max-height: 44px;
}

body.home-tpl-mercado_livre .main-header .search-bar {
    flex: 1;
    max-width: none;
    background: #fff;
    border: none;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

body.home-tpl-mercado_livre .main-header .search-bar input {
    font-size: 16px;
    padding: 11px 14px;
}

body.home-tpl-mercado_livre .main-header .search-bar button {
    background: #ededed;
    color: #666;
    border-radius: 0;
    min-width: 46px;
}

body.home-tpl-mercado_livre .main-header .search-bar button:hover {
    background: #d9d9d9;
    color: #333;
}

body.home-tpl-mercado_livre .header-actions .action-item {
    color: rgba(0, 0, 0, 0.75);
    font-size: 13px;
}

body.home-tpl-mercado_livre .header-actions a {
    color: inherit;
}

body.home-tpl-mercado_livre .cart-count {
    background: var(--home-primary);
}

body.home-tpl-mercado_livre .store-promo-strip.home-full-strip {
    background: #fff !important;
    color: var(--home-primary) !important;
    border-bottom: 1px solid #e6e6e6;
    font-weight: 600;
}

body.home-tpl-mercado_livre .store-cep-bar {
    background: var(--home-ml-yellow);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0 0 10px;
}

body.home-tpl-mercado_livre .store-cep-bar__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.65);
}

body.home-tpl-mercado_livre .store-cep-bar__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

body.home-tpl-mercado_livre .store-cep-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

body.home-tpl-mercado_livre .store-cep-form input {
    width: 120px;
    border: none;
    border-radius: 2px;
    padding: 6px 10px;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

body.home-tpl-mercado_livre .store-cep-form__btn {
    background: transparent;
    border: none;
    color: var(--home-primary);
    font-weight: 700;
    font-size: 13px;
    padding: 4px 8px;
    cursor: pointer;
}

body.home-tpl-mercado_livre .home-mega-nav {
    background: var(--home-ml-yellow);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
}

body.home-tpl-mercado_livre .home-mega-nav__trigger,
body.home-tpl-mercado_livre .home-mega-dept__link {
    color: rgba(0, 0, 0, 0.75);
    font-weight: 500;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
}

body.home-tpl-mercado_livre .home-mega-dept__link:hover,
body.home-tpl-mercado_livre .home-mega-nav__trigger:hover {
    color: #000;
}

body.home-tpl-mercado_livre .home-template-root {
    background: var(--home-bg);
}

body.home-tpl-mercado_livre .home-banner-main {
    padding-top: 12px;
}

body.home-tpl-mercado_livre .home-banner-main .carousel-inner {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Cards de benefícios */
body.home-tpl-mercado_livre .home-ml-benefits {
    padding: 16px 0 8px;
}

body.home-tpl-mercado_livre .home-ml-benefits__track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

body.home-tpl-mercado_livre .home-ml-benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border-radius: 6px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    min-height: 108px;
    transition: box-shadow 0.2s, transform 0.2s;
}

body.home-tpl-mercado_livre .home-ml-benefit-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

body.home-tpl-mercado_livre .home-ml-benefit-card__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 22px;
    color: var(--home-primary);
}

body.home-tpl-mercado_livre .home-ml-benefit-card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

body.home-tpl-mercado_livre .home-ml-benefit-card__body strong {
    font-size: 14px;
    color: #333;
    line-height: 1.25;
}

body.home-tpl-mercado_livre .home-ml-benefit-card__body small {
    font-size: 12px;
    color: #666;
    line-height: 1.35;
}

body.home-tpl-mercado_livre .home-ml-benefit-card__body em {
    font-style: normal;
    font-size: 12px;
    color: var(--home-primary);
    font-weight: 600;
    margin-top: 6px;
}

/* Categorias — tiles brancos */
body.home-tpl-mercado_livre .home-mec-categories {
    padding: 8px 0 20px;
}

body.home-tpl-mercado_livre .home-mec-categories__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

body.home-tpl-mercado_livre .home-mec-categories__link {
    color: var(--home-primary);
    font-weight: 600;
}

body.home-tpl-mercado_livre .home-mec-cat-tile {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    border: none;
    padding: 14px 8px;
}

body.home-tpl-mercado_livre .home-mec-cat-tile:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.home-tpl-mercado_livre .home-mec-cat-tile__icon {
    background: #f5f5f5;
    color: var(--home-primary);
}

/* Vitrines */
body.home-tpl-mercado_livre .home-store-card {
    background: #fff;
    border-radius: 6px;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

body.home-tpl-mercado_livre .home-store-card .new-price,
body.home-tpl-mercado_livre .home-store-card .product-price {
    color: #333;
    font-size: 1.15rem;
}

body.home-tpl-mercado_livre .home-section-link {
    color: var(--home-primary);
    font-weight: 600;
}

body.home-tpl-mercado_livre .home-section-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #333;
}

/* Blocos informativos */
body.home-tpl-mercado_livre .home-ml-info-blocks {
    padding: 24px 0 32px;
}

body.home-tpl-mercado_livre .home-ml-info-blocks__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

body.home-tpl-mercado_livre .home-ml-info-card {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

body.home-tpl-mercado_livre .home-ml-info-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: #333;
}

body.home-tpl-mercado_livre .home-ml-info-card p {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px;
    line-height: 1.5;
}

body.home-tpl-mercado_livre .home-ml-info-card__link {
    color: var(--home-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 991px) {
    body.home-tpl-mercado_livre .home-ml-benefits__track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.home-tpl-mercado_livre .home-ml-info-blocks__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    body.home-tpl-mercado_livre .home-ml-benefits__track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 10px;
        padding-bottom: 4px;
    }

    body.home-tpl-mercado_livre .home-ml-benefit-card {
        flex: 0 0 78%;
        scroll-snap-align: start;
    }

    body.home-tpl-mercado_livre .main-header .header-actions > .action-item:nth-child(2) {
        display: none;
    }
}

/* ==========================================================================
   TEMA 14 — Leroy Merlin (inspirado em leroymerlin.com.br)
   Verde institucional, header branco, serviços, departamentos com imagem
   ========================================================================== */
body.home-tpl-leroy_merlin {
    --home-primary: #78be20;
    --home-secondary: #222222;
    --home-buttons: #78be20;
    --home-bg: #f5f5f5;
    --home-lm-green-dark: #5a9418;
    --home-radius: 4px;
    --home-header-offset: 152px;
}

body.home-tpl-leroy_merlin .top-bar {
    background: var(--home-lm-green-dark);
    font-size: 12px;
    color: #fff;
}

body.home-tpl-leroy_merlin .main-header {
    background: #fff;
    border-bottom: 3px solid var(--home-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 12px 0;
}

body.home-tpl-leroy_merlin .main-header .search-bar {
    border: 2px solid var(--home-primary);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

body.home-tpl-leroy_merlin .main-header .search-bar input {
    font-size: 15px;
    padding: 11px 14px;
}

body.home-tpl-leroy_merlin .main-header .search-bar button {
    background: var(--home-primary);
    border-radius: 0;
    min-width: 52px;
}

body.home-tpl-leroy_merlin .main-header .search-bar button:hover {
    background: var(--home-lm-green-dark);
}

body.home-tpl-leroy_merlin .cart-count {
    background: var(--home-primary);
}

body.home-tpl-leroy_merlin .store-promo-strip.home-full-strip {
    background: var(--home-primary) !important;
    color: #fff !important;
    font-weight: 600;
}

body.home-tpl-leroy_merlin .store-cep-bar {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 8px 0 10px;
}

body.home-tpl-leroy_merlin .store-cep-bar__inner {
    font-size: 13px;
    color: #555;
}

body.home-tpl-leroy_merlin .store-cep-bar__label {
    color: var(--home-secondary);
    font-weight: 600;
}

body.home-tpl-leroy_merlin .store-cep-bar__label i {
    color: var(--home-primary);
}

body.home-tpl-leroy_merlin .store-cep-form input {
    border: 1px solid #ccc;
    border-radius: 4px;
}

body.home-tpl-leroy_merlin .store-cep-form__btn {
    color: var(--home-primary);
}

body.home-tpl-leroy_merlin .home-mega-nav {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

body.home-tpl-leroy_merlin .home-mega-nav__trigger,
body.home-tpl-leroy_merlin .home-mega-dept__link {
    color: #333;
    font-weight: 600;
    font-size: 13px;
    text-transform: none;
}

body.home-tpl-leroy_merlin .home-mega-dept__link:hover,
body.home-tpl-leroy_merlin .home-mega-nav__trigger:hover {
    color: var(--home-primary);
}

body.home-tpl-leroy_merlin .home-template-root {
    background: var(--home-bg);
}

body.home-tpl-leroy_merlin .home-banner-main {
    padding-top: 16px;
}

body.home-tpl-leroy_merlin .home-banner-main .carousel-inner {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Serviços */
body.home-tpl-leroy_merlin .home-lm-services {
    padding: 16px 0 8px;
}

body.home-tpl-leroy_merlin .home-lm-services__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.home-tpl-leroy_merlin .home-lm-service-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    min-height: 72px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

body.home-tpl-leroy_merlin .home-lm-service-card:hover {
    border-color: var(--home-primary);
    box-shadow: 0 4px 12px rgba(120, 190, 32, 0.15);
}

body.home-tpl-leroy_merlin .home-lm-service-card__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--home-primary) 14%, #fff);
    color: var(--home-primary);
    font-size: 18px;
}

body.home-tpl-leroy_merlin .home-lm-service-card__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

body.home-tpl-leroy_merlin .home-lm-service-card__text strong {
    font-size: 14px;
    color: #222;
    line-height: 1.2;
}

body.home-tpl-leroy_merlin .home-lm-service-card__text small {
    font-size: 12px;
    color: #666;
}

/* Departamentos com imagem */
body.home-tpl-leroy_merlin .home-categories-section {
    padding: 12px 0 24px;
}

body.home-tpl-leroy_merlin .home-categories-section .home-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
}

body.home-tpl-leroy_merlin .home-categories-section .home-section-subtitle {
    color: #666;
}

body.home-tpl-leroy_merlin .home-category-card-inner {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}

body.home-tpl-leroy_merlin .home-category-card:hover .home-category-card-inner {
    border-color: var(--home-primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

body.home-tpl-leroy_merlin .home-category-card-cover {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

body.home-tpl-leroy_merlin .home-category-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

body.home-tpl-leroy_merlin .home-category-card:hover .home-category-card-cover img {
    transform: scale(1.04);
}

body.home-tpl-leroy_merlin .home-category-card-cta {
    color: var(--home-primary);
    font-weight: 700;
}

/* Inspire-se */
body.home-tpl-leroy_merlin .home-lm-inspire {
    padding: 8px 0 28px;
}

body.home-tpl-leroy_merlin .home-lm-inspire__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px;
}

body.home-tpl-leroy_merlin .home-lm-inspire__sub {
    color: #666;
    margin: 0 0 20px;
    font-size: 15px;
}

body.home-tpl-leroy_merlin .home-lm-inspire__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

body.home-tpl-leroy_merlin .home-lm-inspire-card {
    display: block;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    min-height: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.home-tpl-leroy_merlin .home-lm-inspire-card__media {
    position: absolute;
    inset: 0;
}

body.home-tpl-leroy_merlin .home-lm-inspire-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.home-tpl-leroy_merlin .home-lm-inspire-card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--home-lm-green-dark), var(--home-primary));
    font-size: 48px;
    opacity: 0.9;
}

body.home-tpl-leroy_merlin .home-lm-inspire-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 100%);
}

body.home-tpl-leroy_merlin .home-lm-inspire-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 200px;
    padding: 20px;
}

body.home-tpl-leroy_merlin .home-lm-inspire-card__body em {
    font-style: normal;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.9;
    margin-bottom: 4px;
}

body.home-tpl-leroy_merlin .home-lm-inspire-card__body strong {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

body.home-tpl-leroy_merlin .home-lm-inspire-card__cta {
    font-size: 13px;
    font-weight: 600;
}

/* Vitrines e selos */
body.home-tpl-leroy_merlin .home-store-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    box-shadow: none;
}

body.home-tpl-leroy_merlin .home-store-card:hover {
    border-color: var(--home-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

body.home-tpl-leroy_merlin .home-section-title {
    font-weight: 700;
    color: #222;
}

body.home-tpl-leroy_merlin .home-section-link {
    color: var(--home-primary);
    font-weight: 700;
}

body.home-tpl-leroy_merlin .home-mec-trust--empresa {
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 32px 0;
}

body.home-tpl-leroy_merlin .home-mec-trust__icon {
    background: color-mix(in srgb, var(--home-primary) 12%, #fff);
    color: var(--home-primary);
}

body.home-tpl-leroy_merlin .home-mec-spotlight-card {
    border-radius: 4px;
    border: 1px solid #e8e8e8;
}

body.home-tpl-leroy_merlin .home-mec-offer-card .home-mec-offer-card__pix {
    color: var(--home-primary);
}

@media (max-width: 991px) {
    body.home-tpl-leroy_merlin .home-lm-services__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.home-tpl-leroy_merlin .home-lm-inspire__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    body.home-tpl-leroy_merlin .home-lm-services__list {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 10px;
        padding-bottom: 4px;
    }

    body.home-tpl-leroy_merlin .home-lm-service-card {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }
}

/* ==========================================================================
   TEMA 15 — Magazine Luiza (layout Magalu; cores de ação = laranja da loja)
   ========================================================================== */
body.home-tpl-magazine_luiza {
    --home-secondary: #1a1a1a;
    --home-bg: #f5f5f5;
    --home-accent-dark: color-mix(in srgb, var(--home-primary) 82%, #000);
    --home-radius: 8px;
    --home-header-offset: 192px;
}

body.home-tpl-magazine_luiza .top-bar {
    background: var(--home-accent-dark);
    color: #fff;
    font-size: 12px;
}

body.home-tpl-magazine_luiza .main-header {
    background: var(--home-primary);
    border-bottom: none;
    box-shadow: 0 2px 10px color-mix(in srgb, var(--home-primary) 35%, transparent);
    padding: 14px 0 10px;
}

body.home-tpl-magazine_luiza .main-header .logo img {
    filter: brightness(0) invert(1);
    max-height: 40px;
}

body.home-tpl-magazine_luiza .main-header .search-bar {
    background: #fff;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.home-tpl-magazine_luiza .main-header .search-bar input {
    font-size: 15px;
    padding: 12px 16px;
}

body.home-tpl-magazine_luiza .main-header .search-bar button {
    background: var(--home-primary);
    border-radius: 0;
    min-width: 54px;
}

body.home-tpl-magazine_luiza .main-header .search-bar button:hover {
    background: var(--home-accent-dark);
}

body.home-tpl-magazine_luiza .header-actions .action-item {
    color: #fff;
}

body.home-tpl-magazine_luiza .header-actions a {
    color: inherit;
}

body.home-tpl-magazine_luiza .cart-count {
    background: #fff;
    color: var(--home-primary);
}

body.home-tpl-magazine_luiza .store-promo-strip.home-full-strip {
    background: #fff !important;
    color: var(--home-primary) !important;
    border-bottom: 1px solid #e8e8e8;
    font-weight: 700;
}

body.home-tpl-magazine_luiza .store-cep-bar {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 10px 0 12px;
}

body.home-tpl-magazine_luiza .store-cep-bar__inner {
    gap: 14px;
}

body.home-tpl-magazine_luiza .store-cep-bar__label i {
    color: var(--home-primary);
}

body.home-tpl-magazine_luiza .store-cep-form {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

body.home-tpl-magazine_luiza .store-cep-form input {
    width: 132px;
    border: 1px solid #d0d0d0;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

body.home-tpl-magazine_luiza .store-cep-form__btn {
    border-radius: 0 8px 8px 0;
    padding: 8px 20px;
}

/* Menu chips horizontal */
body.home-tpl-magazine_luiza .home-menu-scroll {
    background: #fff;
    border-bottom: 1px solid #ebebeb;
    padding: 10px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: var(--home-nav-sticky-top, 148px);
    z-index: 9997;
}

body.home-tpl-magazine_luiza .home-menu-scroll .home-categories-scroll {
    gap: 8px;
    padding-bottom: 2px;
}

body.home-tpl-magazine_luiza .home-menu-scroll .home-category-chip {
    background: color-mix(in srgb, var(--home-primary) 10%, #fff);
    border: 1px solid transparent;
    color: var(--home-primary);
    font-weight: 600;
    border-radius: 999px;
    padding: 8px 16px;
}

body.home-tpl-magazine_luiza .home-menu-scroll .home-category-chip:hover,
body.home-tpl-magazine_luiza .home-menu-scroll .home-category-chip.is-active {
    background: var(--home-primary);
    color: #fff;
    border-color: var(--home-primary);
}

body.home-tpl-magazine_luiza .home-template-root {
    background: var(--home-bg);
}

body.home-tpl-magazine_luiza .home-banner-main {
    padding-top: 14px;
}

body.home-tpl-magazine_luiza .home-banner-main .carousel-inner {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Vantagens */
body.home-tpl-magazine_luiza .home-mg-perks {
    padding: var(--home-space-lg) 0 var(--home-space);
}

body.home-tpl-magazine_luiza .home-mg-perks__track {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--home-space);
}

body.home-tpl-magazine_luiza .home-mg-perk-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--home-space);
    background: #fff;
    border-radius: 12px;
    padding: var(--home-space-lg) var(--home-space);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    min-height: 110px;
    transition: transform 0.2s, box-shadow 0.2s;
}

body.home-tpl-magazine_luiza .home-mg-perk-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--home-primary) 22%, transparent);
}

body.home-tpl-magazine_luiza .home-mg-perk-card__icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--home-primary) 12%, #fff);
    color: var(--home-primary);
    font-size: 16px;
}

body.home-tpl-magazine_luiza .home-mg-perk-card__label {
    font-size: 12px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin: 0;
}

body.home-tpl-magazine_luiza .home-mg-perk-card__sub {
    font-size: 11px;
    color: #777;
    line-height: 1.35;
    margin: 0;
}

/* Categorias */
body.home-tpl-magazine_luiza .home-mec-categories {
    padding: var(--home-space-lg) 0 var(--home-space-xl);
}

body.home-tpl-magazine_luiza .home-mec-categories__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #222;
}

body.home-tpl-magazine_luiza .home-mec-categories__link {
    color: var(--home-primary);
    font-weight: 700;
}

body.home-tpl-magazine_luiza .home-mec-cat-tile {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: none;
}

body.home-tpl-magazine_luiza .home-mec-cat-tile__icon {
    background: color-mix(in srgb, var(--home-primary) 10%, #fff);
    color: var(--home-primary);
}

/* Ofertas do dia */
body.home-tpl-magazine_luiza .home-flash-section {
    background: #fff;
    border-radius: 12px;
    margin: 0 auto;
    max-width: var(--home-store-max-width, 1280px);
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

body.home-tpl-magazine_luiza .home-flash-section .home-section-title {
    color: #222;
    font-weight: 700;
}

body.home-tpl-magazine_luiza .home-flash-section .home-section-title .fa-bolt {
    color: var(--home-primary) !important;
}

body.home-tpl-magazine_luiza .home-flash-section .product-card {
    border-radius: 12px !important;
    border-color: #e8e8e8 !important;
    overflow: hidden;
}

/* Vitrines */
body.home-tpl-magazine_luiza .home-store-card {
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

body.home-tpl-magazine_luiza .home-store-card:hover {
    box-shadow: 0 8px 24px color-mix(in srgb, var(--home-primary) 18%, transparent);
}

body.home-tpl-magazine_luiza .home-store-card .new-price,
body.home-tpl-magazine_luiza .home-store-card .product-price {
    color: var(--home-primary);
    font-weight: 800;
}

body.home-tpl-magazine_luiza .home-section-title {
    font-weight: 700;
    color: #222;
}

body.home-tpl-magazine_luiza .home-section-link {
    color: var(--home-primary);
    font-weight: 700;
}

body.home-tpl-magazine_luiza .home-mec-trust {
    background: #fff;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
}

body.home-tpl-magazine_luiza .home-mec-trust__icon {
    background: color-mix(in srgb, var(--home-primary) 12%, #fff);
    color: var(--home-primary);
}

body.home-tpl-magazine_luiza .home-mec-spotlight {
    background: var(--home-bg);
}

body.home-tpl-magazine_luiza .home-mec-spotlight-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

@media (max-width: 991px) {
    body.home-tpl-magazine_luiza .home-mg-perks__track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    body.home-tpl-magazine_luiza .home-mg-perks__track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 8px;
        padding-bottom: 4px;
    }

    body.home-tpl-magazine_luiza .home-mg-perk-card {
        flex: 0 0 42%;
        scroll-snap-align: start;
    }

    body.home-tpl-magazine_luiza .main-header .header-actions > .action-item:nth-child(2) {
        display: none;
    }
}

/* ==========================================================================
   Newsletter — conteúdo agrupado no container central
   ========================================================================== */
body.home-store-template section.newsletter.home-newsletter-section.home-full-strip {
    margin-top: 0 !important;
    padding-top: calc(var(--home-space-xl) * 2) !important;
    padding-bottom: calc(var(--home-space-xl) * 2) !important;
}

body.home-store-template section.newsletter.home-newsletter-section .home-strip-container {
    width: 100%;
    max-width: var(--home-store-max-width, 1280px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

body.home-store-template section.newsletter.home-newsletter-section .newsletter-content {
    display: grid !important;
    grid-template-columns: auto minmax(0, max-content) minmax(260px, 480px);
    align-items: center;
    justify-content: start;
    gap: var(--home-space-lg) var(--home-space-xl);
    width: 100%;
    max-width: 100%;
}

body.home-store-template section.newsletter.home-newsletter-section .newsletter-icon {
    flex-shrink: 0;
    margin: 0;
    width: 72px;
    height: 72px;
    font-size: 32px;
}

body.home-store-template section.newsletter.home-newsletter-section .newsletter-text {
    display: flex;
    flex-direction: column;
    gap: var(--home-space-sm);
    margin: 0;
    padding: 0;
    min-width: 0;
    max-width: 280px;
}

body.home-store-template section.newsletter.home-newsletter-section .newsletter-text h3 {
    margin: 0 !important;
    line-height: 1.25 !important;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
}

body.home-store-template section.newsletter.home-newsletter-section .newsletter-text p {
    margin: 0 !important;
    line-height: 1.4 !important;
    font-size: 14px;
}

body.home-store-template section.newsletter.home-newsletter-section .newsletter-form {
    display: flex !important;
    flex: unset;
    gap: var(--home-space) !important;
    width: 100%;
    max-width: 480px;
    margin: 0;
    align-items: stretch;
    justify-self: stretch;
}

body.home-store-template section.newsletter.home-newsletter-section .newsletter-form input,
body.home-store-template section.newsletter.home-newsletter-section .newsletter-form button {
    margin: 0 !important;
    padding: var(--home-space) var(--home-space-lg) !important;
    min-height: 44px !important;
    border-radius: 8px !important;
    box-sizing: border-box;
    width: auto;
    flex: 1 1 0;
    min-width: 0;
}

body.home-store-template section.newsletter.home-newsletter-section .newsletter-form button {
    flex: 0 0 auto;
    padding-left: calc(var(--home-space-lg) + 4px) !important;
    padding-right: calc(var(--home-space-lg) + 4px) !important;
    letter-spacing: 0.04em;
    font-size: 13px;
    transform: none !important;
}

body.home-store-template section.newsletter.home-newsletter-section .newsletter-form button:hover {
    transform: none !important;
}

@media (max-width: 1100px) {
    body.home-store-template section.newsletter.home-newsletter-section .newsletter-content {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "icon text"
            "form form";
    }

    body.home-store-template section.newsletter.home-newsletter-section .newsletter-icon {
        grid-area: icon;
    }

    body.home-store-template section.newsletter.home-newsletter-section .newsletter-text {
        grid-area: text;
        max-width: none;
    }

    body.home-store-template section.newsletter.home-newsletter-section .newsletter-form {
        grid-area: form;
        max-width: 100%;
    }
}

@media (max-width: 991px) {
    body.home-store-template section.newsletter.home-newsletter-section .newsletter-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: var(--home-space-lg) !important;
        text-align: center;
    }

    body.home-store-template section.newsletter.home-newsletter-section .newsletter-text {
        max-width: none;
        align-items: center;
    }

    body.home-store-template section.newsletter.home-newsletter-section .newsletter-form {
        flex-direction: column !important;
        width: 100%;
        max-width: 420px;
    }

    body.home-store-template section.newsletter.home-newsletter-section .newsletter-form input,
    body.home-store-template section.newsletter.home-newsletter-section .newsletter-form button {
        width: 100%;
        flex: 1 1 auto;
    }
}
