/* ==========================================================================
   Home Templates — design system
   Escopo: body.home-store-template (não afeta layout legado)
   ========================================================================== */

body.home-store-template {
    --home-surface: #ffffff;
    --home-border: #e8ecf1;
    --home-border-soft: #f1f5f9;
    --home-text: #1e293b;
    --home-text-muted: #64748b;
    --home-radius: 12px;
    --home-radius-lg: 18px;
    --home-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --home-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    --home-nav-height: 52px;
}

/* ---- Root & promo bar ---- */
.home-template-root {
    background: var(--home-bg, #f8f9fa);
}

.home-top-bar {
    font-size: 12px;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-promo-strip__inner {
    text-align: center;
    padding: 9px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

body.home-store-template .home-top-bar a {
    text-decoration: none;
    transition: opacity 0.2s;
}

body.home-store-template .home-top-bar a:hover {
    opacity: 0.85;
}

/* Faixa promocional — banner estreito */
.home-promo-strip--banner {
    padding: 0;
    border-bottom: none;
    background: transparent;
    line-height: 0;
}

.home-promo-strip--banner .home-promo-strip__inner--banner {
    padding: 0;
    max-width: 100%;
}

.home-promo-strip__banner-link,
.home-promo-strip__banner-wrap {
    display: block;
    width: 100%;
    height: 64px;
    overflow: hidden;
    border-radius: 12px;
    background: #f1f5f9;
}

.home-promo-strip--banner img {
    width: 100%;
    height: 64px;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 767px) {
    .home-promo-strip__banner-link,
    .home-promo-strip__banner-wrap,
    .home-promo-strip--banner img {
        height: 52px;
        border-radius: 10px;
    }
}

/* ---- Trust strip ---- */
.home-trust-strip {
    background: var(--home-surface);
    border-bottom: 1px solid var(--home-border);
    margin-bottom: 0;
}

.home-trust-pills__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px 20px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.home-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--home-text-muted);
    white-space: nowrap;
}

.home-trust-pill i {
    color: var(--home-primary, #ff9800);
    font-size: 13px;
}

/* ---- Department navigation (horizontal) ---- */
body.home-store-template .home-dept-nav {
    background: var(--home-surface);
    border-bottom: 1px solid var(--home-border);
    box-shadow: var(--home-shadow-sm);
    position: sticky;
    top: var(--home-nav-sticky-top, 0);
    z-index: 9998;
    min-height: auto;
    padding: 0;
    margin-bottom: 0;
    overflow: visible;
}

body.home-store-template .horizontal-nav.home-dept-nav .container.home-dept-nav__viewport {
    display: block;
    max-width: var(--home-store-max-width, 1280px);
    margin: 0 auto;
    padding: 0 clamp(12px, 2vw, 20px);
    overflow: visible;
}

body.home-store-template .home-dept-nav__track {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    align-content: flex-start;
    gap: 4px 2px;
    width: 100%;
    padding: 6px 0;
    justify-content: flex-start;
    overflow: visible;
}

body.home-store-template .home-dept-item {
    flex: 0 0 auto;
    position: relative;
}

body.home-store-template .home-dept-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    min-height: var(--home-nav-height, 44px);
    max-width: none;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    transform: none !important;
}

body.home-store-template .home-dept-link:hover,
body.home-store-template .home-dept-link:focus-visible,
body.home-store-template .home-dept-item:hover .home-dept-link,
body.home-store-template .home-dept-item.is-open .home-dept-link,
body.home-store-template .home-dept-item.is-active .home-dept-link {
    background: color-mix(in srgb, var(--home-primary, #ff9800) 8%, transparent) !important;
    border-bottom-color: var(--home-primary, #ff9800);
    box-shadow: none !important;
    transform: none !important;
}

body.home-store-template .home-dept-link:active {
    background: color-mix(in srgb, var(--home-primary, #ff9800) 12%, transparent) !important;
    transform: none !important;
}

body.home-store-template .home-dept-link:visited .home-dept-name {
    color: var(--home-text) !important;
}

body.home-store-template .home-dept-name,
body.home-store-template .drop-down__name.home-dept-name {
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--home-text) !important;
    font-family: 'Outfit', 'Roboto', sans-serif;
    line-height: 1.25;
    margin-right: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    max-width: 11rem;
}

body.home-store-template .home-dept-link .home-dept-icon,
body.home-store-template .home-dept-link .cat-icon--tint,
body.home-store-template .home-dept-link .cat-icon--emoji,
body.home-store-template .home-dept-link .cat-icon--img {
    flex-shrink: 0;
}

body.home-store-template .home-dept-item.is-active .home-dept-name {
    color: var(--home-primary, #ff9800) !important;
    font-weight: 700;
}

body.home-store-template .home-dept-icon {
    flex-shrink: 0;
    --cat-icon-size: 22px;
    filter: none !important;
}

body.home-store-template .home-dept-icon--fallback {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--home-border-soft);
    border-radius: 8px;
    color: var(--home-primary, #ff9800);
    font-size: 11px;
}

body.home-store-template .home-dept-chevron {
    font-size: 9px;
    color: var(--home-text-muted);
    margin-left: 2px;
    transition: transform 0.2s;
}

body.home-store-template .home-dept-item:hover .home-dept-chevron,
body.home-store-template .home-dept-item.is-open .home-dept-chevron {
    transform: rotate(180deg);
    color: var(--home-primary, #ff9800);
}

/* Dropdown panel */
body.home-store-template .home-dept-panel {
    position: absolute;
    left: 0;
    top: 100%;
    transform: translateY(4px);
    min-width: min(300px, 90vw);
    max-width: 360px;
    max-height: min(420px, 70vh);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-lg);
    box-shadow: var(--home-shadow);
    padding: 0;
    margin-top: 0;
    z-index: 10050;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

body.home-store-template .home-dept-panel.is-fixed {
    position: fixed;
    top: auto;
    left: auto;
}

body.home-store-template .home-dept-panel::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

body.home-store-template .home-dept-item:hover .home-dept-panel,
body.home-store-template .home-dept-item.is-open .home-dept-panel,
body.home-store-template .home-dept-item:focus-within .home-dept-panel {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto;
    transform: translateY(0);
}

body.home-store-template .home-dept-panel.is-fixed {
    transform: none;
}

body.home-store-template .drop-down:hover .drop-down__menu-box.home-dept-panel {
    transform: translateY(0);
}

body.home-store-template .home-dept-panel__sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.home-store-template .home-dept-panel__sublist .drop-down__item a {
    padding-left: 28px !important;
    font-size: 12px;
    color: var(--home-text-muted, #64748b);
}

/* Neutraliza regras legadas do style.css no template da loja */
body.home-store-template .horizontal-nav .drop-down__button {
    min-height: var(--home-nav-height, 48px);
    height: auto;
    border-radius: 0;
}

body.home-store-template .horizontal-nav .container {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
}

body.home-store-template .home-dept-panel:before,
body.home-store-template .drop-down__menu-box:before {
    display: none;
}

body.home-store-template .home-dept-panel__header {
    padding: 14px 16px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--home-text-muted);
    border-bottom: 1px solid var(--home-border-soft);
    background: #fafbfc;
}

body.home-store-template .home-dept-panel__list {
    overflow-y: auto;
    flex: 1;
    padding: 8px 0 !important;
    margin: 0;
}

body.home-store-template .home-dept-panel__all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--home-primary, #ff9800);
    text-decoration: none;
    border-top: 1px solid var(--home-border-soft);
    background: #fafbfc;
    transition: background 0.2s;
}

body.home-store-template .home-dept-panel__all:hover {
    background: color-mix(in srgb, var(--home-primary, #ff9800) 10%, #fff);
}

body.home-store-template .drop-down__item {
    font-size: 13px;
    padding: 9px 16px;
    padding-right: 16px;
    text-transform: none;
    font-weight: 500;
    color: var(--home-text);
    border-bottom: none;
}

body.home-store-template .drop-down__item:hover {
    background: color-mix(in srgb, var(--home-primary, #ff9800) 8%, transparent);
    color: var(--home-primary, #ff9800);
}

body.home-store-template .drop-down__item:before {
    display: none !important;
}

body.home-store-template .drop-down__item a {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.home-store-template .drop-down__item-label {
    flex: 1;
    min-width: 0;
}

body.home-store-template .drop-down__item-icon,
body.home-store-template .drop-down__item-icon--fallback {
    position: static;
    transform: none;
    flex-shrink: 0;
}

/* ---- Section headers ---- */
.home-section-header {
    margin-bottom: 1.25rem;
}

.home-section-header--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.home-section-title {
    font-weight: 800;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    margin: 0;
    color: var(--home-secondary, #2c3e50);
    letter-spacing: -0.02em;
}

.home-section-title--featured {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    letter-spacing: -0.03em;
}

.home-section-title__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 1.05rem;
    color: #fff;
    background: linear-gradient(145deg, var(--home-primary, var(--primary-color, #ff9500)), color-mix(in srgb, var(--home-primary, var(--primary-color, #ff9500)) 70%, #fff));
    box-shadow: 0 10px 24px color-mix(in srgb, var(--home-primary, var(--primary-color, #ff9500)) 35%, transparent);
    animation: home-title-icon-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both, home-title-icon-pulse 2.4s ease-in-out 0.8s infinite;
}

.home-section-title--hot .home-section-title__icon {
    background: linear-gradient(145deg, #ff6a00, #ff9500 55%, #ffc107);
}

.home-section-title--promo .home-section-title__icon {
    background: linear-gradient(145deg, var(--home-primary, #ff9500), color-mix(in srgb, var(--home-secondary, #2b2b2b) 35%, var(--home-primary, #ff9500)));
}

.home-section-title__text {
    position: relative;
    display: inline-block;
    animation: home-title-text-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-section-title__text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--home-primary, var(--primary-color, #ff9500)), transparent 85%);
    transform-origin: left center;
    animation: home-title-underline 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.home-section-header--featured {
    align-items: center;
    margin-bottom: 1.5rem;
}

.home-section-subtitle--featured,
.home-mec-offers__sub.home-section-subtitle--featured {
    margin-top: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--home-text-muted, #64748b);
    animation: home-title-sub-in 0.7s ease 0.18s both;
}

body.home-glass-hybrid .home-sales-zone--offers .home-section-subtitle--featured,
body.home-glass-hybrid .home-sales-zone--offers .home-mec-offers__sub.home-section-subtitle--featured {
    color: rgba(255, 255, 255, 0.78);
}

.home-section-link--featured {
    font-weight: 800;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--home-primary, var(--primary-color, #ff9500)) 12%, #fff);
    color: var(--home-primary, var(--primary-color, #ff9500)) !important;
    transition: transform 0.25s ease, background 0.25s ease, gap 0.25s ease;
}

.home-section-link--featured:hover {
    transform: translateX(2px);
    gap: 12px;
    background: color-mix(in srgb, var(--home-primary, var(--primary-color, #ff9500)) 20%, #fff);
}

body.home-glass-hybrid .home-sales-zone--offers .home-section-link--featured {
    background: color-mix(in srgb, var(--home-primary, var(--primary-color, #ff9500)) 32%, transparent) !important;
    border: 1px solid color-mix(in srgb, var(--home-primary, var(--primary-color, #ff9500)) 50%, transparent);
    color: #fff !important;
}

.home-vitrine-section--hot .home-section-title,
.home-vitrine-section--promo .home-section-title {
    color: var(--home-secondary, #1e293b);
}

body.home-glass-hybrid .home-vitrine-section--promo .home-section-title {
    color: #fff;
}

@keyframes home-title-icon-pop {
    from { opacity: 0; transform: scale(0.55) rotate(-12deg); }
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes home-title-icon-pulse {
    0%, 100% { box-shadow: 0 10px 24px color-mix(in srgb, var(--home-primary, #ff9500) 35%, transparent); transform: scale(1); }
    50% { box-shadow: 0 14px 28px color-mix(in srgb, var(--home-primary, #ff9500) 48%, transparent); transform: scale(1.05); }
}

@keyframes home-title-text-in {
    from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes home-title-underline {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
}

@keyframes home-title-sub-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .home-section-title__icon,
    .home-section-title__text,
    .home-section-title__text::after,
    .home-section-subtitle--featured,
    .home-mec-offers__sub.home-section-subtitle--featured {
        animation: none !important;
    }
}

.home-section-subtitle {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--home-text-muted);
}

.home-section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--home-primary, #ff9800);
    text-decoration: none;
    white-space: nowrap;
    transition: gap 0.2s;
}

.home-section-link:hover {
    gap: 10px;
    color: var(--home-primary, #ff9800);
}

/* ---- Banners ---- */
.home-banner-section {
    padding: 20px 0;
}

.home-banner-main {
    padding-top: 24px;
    padding-bottom: 8px;
}

.home-banner-middle {
    padding: 12px 0;
}

.home-banner-carousel .carousel-inner {
    border-radius: var(--home-radius-lg);
    overflow: hidden;
    box-shadow: var(--home-shadow);
    background: var(--home-border-soft);
    height: 100%;
}

.home-banner-carousel .carousel-item {
    height: 100%;
}

.home-banner-main .carousel-inner {
    min-height: 280px;
    aspect-ratio: 16 / 9;
}

.home-banner-middle .carousel-inner {
    min-height: 100px;
    aspect-ratio: 21 / 3;
}

.home-banner-link {
    display: block;
    line-height: 0;
    height: 100%;
}

.home-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-banner-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-banner-img--mobile {
    display: block;
}

.home-banner-img--desktop {
    display: none;
}

@media (min-width: 768px) {
    .home-banner-img--mobile {
        display: none;
    }

    .home-banner-img--desktop {
        display: block;
    }
}

body.home-store-template .home-banner-carousel .carousel-control-prev,
body.home-store-template .home-banner-carousel .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.25s;
    margin: 0 12px;
}

body.home-store-template .home-banner-carousel:hover .carousel-control-prev,
body.home-store-template .home-banner-carousel:hover .carousel-control-next {
    opacity: 1;
}

body.home-store-template .home-banner-carousel .carousel-control-prev-icon,
body.home-store-template .home-banner-carousel .carousel-control-next-icon {
    filter: invert(1) brightness(0.3);
    width: 18px;
    height: 18px;
}

/* ---- Category cards ---- */
.home-categories-section {
    padding: 28px 0 36px;
}

/* Módulo Categorias em destaque — carrossel contínuo (3 cards) */
.home-cat-module__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

.home-cat-module__header .home-section-header,
.home-cat-module__header > div:first-child {
    margin-bottom: 0;
}

.home-cat-carousel__controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.home-cat-carousel__btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    color: var(--home-secondary, #1a2332);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.home-cat-carousel__btn:hover {
    background: var(--home-primary, #ff9800);
    border-color: var(--home-primary, #ff9800);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--home-primary, #ff9800) 30%, transparent);
}

.home-cat-carousel {
    position: relative;
    margin-top: 10px;
    --cat-gap: 16px;
    --cat-visible: 3;
    /* Espaço para sombra / elevação no hover sem cortar */
    padding: 10px 2px 18px;
    overflow: visible;
}

.home-cat-carousel__viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 4px;
    container-type: inline-size;
    container-name: cat-carousel;
    /* Padding interno = área segura do hover (transform + shadow) */
    padding: 12px 8px 20px;
    margin: -12px -8px -20px;
}

.home-cat-carousel__track {
    display: flex;
    gap: var(--cat-gap);
    width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    padding: 2px 0;
    align-items: stretch;
}

/* Soft-edge: faixa opaca cobre o corte seco do card; depois dissolve */
.home-cat-carousel__fade {
    position: absolute;
    top: 0;
    bottom: 8px;
    width: clamp(80px, 12vw, 120px);
    pointer-events: none;
    z-index: 2;
    display: block;
}

.home-cat-carousel__fade--left {
    /* Compensa margin negativo do viewport (-8px) que deixava faixa preta fora do fade */
    left: -8px;
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #ffffff 52%,
        rgba(255, 255, 255, 0.7) 74%,
        rgba(255, 255, 255, 0.25) 90%,
        transparent 100%
    );
}

.home-cat-carousel__fade--right {
    right: -8px;
    background: linear-gradient(
        270deg,
        #ffffff 0%,
        #ffffff 52%,
        rgba(255, 255, 255, 0.7) 74%,
        rgba(255, 255, 255, 0.25) 90%,
        transparent 100%
    );
}

.home-cat-carousel__slide,
.home-cat-module__card {
    flex: 0 0 calc((100cqi - (var(--cat-gap) * (var(--cat-visible) - 1))) / var(--cat-visible));
    max-width: calc((100cqi - (var(--cat-gap) * (var(--cat-visible) - 1))) / var(--cat-visible));
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 18px;
    /* visible: não corta sombra/ícone no hover; capa controla o clip da imagem */
    overflow: visible;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        border-color 0.3s ease;
    height: auto;
}

.home-cat-module__shine {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border-radius: inherit;
    overflow: hidden;
    background: linear-gradient(
        115deg,
        transparent 35%,
        rgba(255, 255, 255, 0.45) 50%,
        transparent 65%
    );
    transform: translateX(-130%);
    opacity: 0;
}

.home-cat-module__card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--home-primary, #ff9800) 42%, #e2e8f0);
    box-shadow:
        0 16px 36px color-mix(in srgb, var(--home-primary, #ff9800) 16%, transparent),
        0 6px 14px rgba(15, 23, 42, 0.06);
    z-index: 3;
}

.home-cat-module__card:hover .home-cat-module__shine {
    opacity: 1;
    animation: homeCatShine 0.85s ease forwards;
}

@keyframes homeCatShine {
    to { transform: translateX(130%); }
}

.home-cat-module__cover {
    aspect-ratio: 16 / 9;
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--home-primary, #ff9800) 10%, #f8fafc),
        #eef2f7
    );
    overflow: hidden;
    position: relative;
    border-radius: 18px 18px 0 0;
}

.home-cat-module__cover--empty {
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-cat-module__cover--empty img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    opacity: 1;
    filter: none;
}

.home-cat-module__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-cat-module__cover-glow {
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.22));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-cat-module__head-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.home-cat-module__eyebrow {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
    line-height: 1.2;
}

.home-cat-module__card:hover .home-cat-module__cover img {
    transform: scale(1.08);
}

.home-cat-module__card:hover .home-cat-module__cover-glow {
    opacity: 1;
}

.home-cat-module__body {
    padding: 16px 16px 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 0 0 18px 18px;
}

.home-cat-module__body--solo {
    min-height: 132px;
    padding-top: 18px;
    padding-bottom: 16px;
    border-radius: 18px;
}

.home-cat-module__head {
    display: flex;
    align-items: center;
    gap: 11px;
}

.home-cat-module__ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--home-primary, #ff9800) 14%, #fff);
    color: var(--home-primary, #ff9800);
    font-size: 0.9rem;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--home-primary, #ff9800) 18%, transparent);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s, color 0.25s, box-shadow 0.25s;
}

.home-cat-module__card:hover .home-cat-module__ico {
    transform: translateY(-1px) rotate(-4deg) scale(1.04);
    background: var(--home-primary, #ff9800);
    color: #fff;
    box-shadow: 0 6px 14px color-mix(in srgb, var(--home-primary, #ff9800) 32%, transparent);
}

.home-cat-module__ico-img,
.home-cat-module__ico img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
    transition: filter 0.25s;
}

.home-cat-module__card:hover .home-cat-module__ico-img,
.home-cat-module__card:hover .home-cat-module__ico img {
    filter: brightness(0) invert(1);
}

.home-cat-module__title {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #1a2332;
    line-height: 1.28;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.home-cat-module__card:hover .home-cat-module__title {
    color: color-mix(in srgb, var(--home-primary, #ff9800) 55%, #1a2332);
}

.home-cat-module__pill {
    display: block;
    background: #eef2f7;
    color: #64748b;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    transition: background 0.25s, color 0.25s, transform 0.25s;
}

.home-cat-module__card:hover .home-cat-module__pill {
    background: color-mix(in srgb, var(--home-primary, #ff9800) 12%, #fff);
    color: color-mix(in srgb, var(--home-primary, #ff9800) 70%, #475569);
    transform: translateY(-1px);
}

.home-cat-module__cta {
    margin-top: auto;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--home-primary, #ff9800);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.home-cat-module__cta i {
    transition: transform 0.25s ease;
}

.home-cat-module__card:hover .home-cat-module__cta {
    opacity: 1;
    transform: none;
}

.home-cat-module__card:hover .home-cat-module__cta i {
    transform: translateX(4px);
}

.home-cat-carousel.is-static .home-cat-carousel__track {
    flex-wrap: wrap;
    width: 100%;
}

.home-cat-carousel.is-static .home-cat-carousel__slide.is-clone {
    display: none;
}

.home-cat-carousel.is-static .home-cat-carousel__slide {
    flex: 0 0 calc((100% - (var(--cat-gap) * 2)) / 3);
    max-width: calc((100% - (var(--cat-gap) * 2)) / 3);
}

@media (max-width: 991px) {
    .home-cat-carousel {
        --cat-visible: 2;
        --cat-gap: 12px;
    }

    .home-cat-module__header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .home-cat-carousel {
        --cat-visible: 1.15;
        --cat-gap: 10px;
    }

    .home-cat-carousel__fade {
        width: clamp(48px, 18vw, 72px);
    }

    .home-cat-module__title { font-size: 0.74rem; }
    .home-cat-module__pill { font-size: 0.58rem; padding: 6px 9px; }
    .home-cat-module__cta { opacity: 1; transform: none; }
    .home-cat-carousel.is-static .home-cat-carousel__slide {
        flex-basis: calc((100% - var(--cat-gap)) / 2);
        max-width: calc((100% - var(--cat-gap)) / 2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-cat-module__card,
    .home-cat-module__cover img,
    .home-cat-module__ico,
    .home-cat-module__cta,
    .home-cat-module__pill {
        transition: none !important;
    }

    .home-cat-module__card:hover .home-cat-module__shine {
        animation: none;
        opacity: 0;
    }
}

/* legado grid (caso algum template ainda referencie) */
.home-cat-module__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1199px) {
    .home-cat-module__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .home-cat-module__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

.home-category-card-inner {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-lg);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    box-shadow: var(--home-shadow-sm);
}

.home-category-card-cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--home-border-soft);
    flex-shrink: 0;
}

.home-category-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.home-category-card:hover .home-category-card-cover img {
    transform: scale(1.05);
}

.home-category-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.home-category-card-icon--sm {
    --cat-icon-size: 24px;
}

.home-category-card:hover .home-category-card-inner {
    transform: translateY(-4px);
    box-shadow: var(--home-shadow);
    border-color: color-mix(in srgb, var(--home-primary, #ff9800) 35%, var(--home-border));
}

.home-category-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.home-category-card-icon {
    flex-shrink: 0;
    --cat-icon-size: 32px;
}

.home-category-card-icon-placeholder {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--home-primary, #ff9800) 12%, #fff);
    border-radius: 10px;
    color: var(--home-primary, #ff9800);
    flex-shrink: 0;
}

.home-category-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--home-text);
    line-height: 1.35;
    margin: 0;
}

.home-category-subs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.home-category-sub-pill {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    background: var(--home-border-soft);
    border-radius: 999px;
    color: var(--home-text-muted);
    line-height: 1.3;
}

.home-category-sub-pill--more {
    background: color-mix(in srgb, var(--home-primary, #ff9800) 15%, #fff);
    color: var(--home-primary, #ff9800);
    font-weight: 700;
}

.home-category-card-empty {
    font-size: 12px;
    color: var(--home-text-muted);
    font-style: italic;
}

.home-category-card-cta {
    margin-top: auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--home-primary, #ff9800);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s, transform 0.2s;
}

.home-category-card:hover .home-category-card-cta {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Product vitrine ---- */
.home-vitrine-section {
    padding: 28px 0 36px;
}

body.home-store-template .home-vitrine-section .product-grid {
    gap: 16px;
}

body.home-store-template .home-vitrine-section .product-card {
    border-radius: var(--home-radius-lg);
    border: 1px solid var(--home-border);
    overflow: hidden;
    box-shadow: var(--home-shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
}

body.home-store-template .home-vitrine-section .product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--home-shadow);
}

body.home-store-template .home-vitrine-section .section-title {
    display: none;
}

/* ---- Scroll chips (menu horizontal em chips) ---- */
.home-categories-scroll {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    align-content: flex-start;
    gap: 8px;
    overflow: visible;
    padding-bottom: 2px;
}

.home-categories-scroll--wrap {
    width: 100%;
}

.home-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--home-surface, #fff);
    border: 1px solid var(--home-border, #e8ecf1);
    border-radius: 999px;
    text-decoration: none;
    color: var(--home-text, #1e293b);
    box-shadow: var(--home-shadow-sm, 0 2px 8px rgba(15, 23, 42, 0.04));
    flex: 0 1 auto;
    font-size: 13px;
    font-weight: 600;
    transition: border-color 0.2s, background 0.2s;
    max-width: 100%;
}

.home-category-chip__label {
    line-height: 1.25;
    white-space: normal;
}

.home-category-chip-icon,
.home-category-chip-icon--fallback {
    flex-shrink: 0;
    --cat-icon-size: 20px;
}

.home-category-chip-icon--fallback {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--home-border-soft);
    border-radius: 8px;
    color: var(--home-primary, #ff9800);
    font-size: 11px;
}

.home-category-chip:hover {
    border-color: var(--home-primary, #ff9800);
    color: var(--home-primary, #ff9800);
}

/* ---- Chip dropdown (subcategories on hover) ---- */
.home-chip-dropdown {
    position: relative;
    display: inline-flex;
}

.home-category-chip--has-subs {
    cursor: default;
}

.home-chip-chevron {
    font-size: 9px;
    opacity: 0.5;
    transition: transform 0.2s, opacity 0.2s;
    margin-left: 2px;
}

.home-chip-dropdown:hover .home-chip-chevron,
.home-category-chip--has-subs:hover .home-chip-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.home-chip-dropdown__panel {
    position: absolute;
    left: 0;
    top: 100%;
    transform: translateY(4px);
    min-width: min(260px, 90vw);
    max-width: 320px;
    max-height: min(400px, 70vh);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--home-surface, #fff);
    border: 1px solid var(--home-border, #e8ecf1);
    border-radius: var(--home-radius-lg, 12px);
    box-shadow: var(--home-shadow, 0 8px 32px rgba(15,23,42,.08));
    padding: 0;
    z-index: 10050;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.home-chip-dropdown:hover > .home-chip-dropdown__panel,
.home-chip-dropdown:focus-within > .home-chip-dropdown__panel {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto;
    transform: translateY(0);
}

.home-chip-dropdown__list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    overflow-y: auto;
    flex: 1;
}

.home-chip-dropdown__list .drop-down__item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    font-size: 13px;
    color: var(--home-text, #1e293b);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.home-chip-dropdown__list .drop-down__item a:hover {
    background: var(--home-bg, #f4f6f9);
    color: var(--home-primary, #e9571c);
}

.home-chip-dropdown__list .drop-down__item--depth-1 a { padding-left: 28px; }
.home-chip-dropdown__list .drop-down__item--depth-2 a { padding-left: 40px; }
.home-chip-dropdown__list .drop-down__item--depth-3 a { padding-left: 52px; }

.home-chip-dropdown__all {
    display: block;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--home-primary, #e9571c);
    text-decoration: none;
    border-top: 1px solid var(--home-border-soft, #f1f5f9);
    transition: background 0.15s;
}

.home-chip-dropdown__all:hover {
    background: var(--home-bg, #f4f6f9);
}

.home-chip-dropdown__all i {
    margin-left: 4px;
    font-size: 10px;
}

/* hide the ::before triangle from base drop-down rules */
.home-chip-dropdown__panel:before {
    display: none !important;
}

.home-product-carousel-item {
    min-width: 220px;
    flex: 0 0 auto;
}

/* ---- Preview badge ---- */
.home-preview-badge {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1c1e;
    color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    z-index: 9999;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ---- Vertical + horizontal layout shell ---- */
body.home-store-template .home-layout-vertical {
    display: grid;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: 20px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 20px clamp(12px, 2vw, 28px) 32px;
    align-items: start;
    box-sizing: border-box;
}

body.home-store-template .home-sidebar {
    position: sticky;
    top: calc(var(--home-nav-sticky-top, 132px) + 8px);
    max-height: calc(100vh - var(--home-nav-sticky-top, 132px) - 24px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.home-store-template .home-sidebar:has(.home-sidebar-pro) {
    overflow: visible;
}

body.home-store-template .home-main-content {
    min-width: 0;
}

body.home-store-template .home-mobile-dept {
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-lg);
    overflow: hidden;
    background: var(--home-surface);
}

body.home-store-template .home-mobile-dept .home-dept-nav {
    position: relative;
    top: auto;
}

body.home-store-template .home-vertical-menu {
    background: var(--home-surface);
    border-radius: var(--home-radius-lg);
    border: 1px solid var(--home-border);
    box-shadow: var(--home-shadow-sm);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--home-nav-sticky-top, 132px) - 24px);
    overflow: hidden;
}

body.home-store-template .home-vertical-menu.home-sidebar-pro {
    overflow: visible;
}

.home-sidebar-panel__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--home-border-soft);
    background: linear-gradient(180deg, color-mix(in srgb, var(--home-primary, #ff9800) 8%, #fff), var(--home-surface));
    flex-shrink: 0;
}

.home-sidebar-panel__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--home-primary, #ff9800) 15%, #fff);
    color: var(--home-primary, #ff9800);
    font-size: 16px;
}

.home-sidebar-panel__titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.home-sidebar-panel__titles strong {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--home-text);
}

.home-sidebar-panel__titles span {
    font-size: 12px;
    color: var(--home-text-muted);
}

.home-sidebar-panel__nav {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    padding: 8px 0;
}

.home-sidebar-panel__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-sidebar-dept__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    color: var(--home-text, #1e293b);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    border-bottom: 1px solid var(--home-border-soft, #f1f5f9);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.home-sidebar-pro .home-sidebar-dept__link:hover {
    padding-left: 20px;
    transform: translateX(3px);
}

.home-sidebar-dept__link--sub {
    font-size: 12px;
    font-weight: 500;
    padding-top: 10px;
    padding-bottom: 10px;
    background: #fafbfc;
}

.home-sidebar-dept__link:hover {
    background: color-mix(in srgb, var(--home-primary, #ff9800) 8%, transparent);
    color: var(--home-primary, #ff9800);
}

.home-sidebar-pro .home-sidebar-dept__link:hover {
    background: color-mix(in srgb, var(--home-primary, #ff9800) 8%, transparent);
    color: var(--home-primary, #ff9800);
}

.home-sidebar-dept__icon {
    flex-shrink: 0;
    --cat-icon-size: 24px;
}

.home-sidebar-dept__icon--fallback {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--home-border-soft);
    color: var(--home-primary, #ff9800);
    font-size: 12px;
}

.home-sidebar-dept__label {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.home-sidebar-dept__count {
    flex-shrink: 0;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--home-border-soft);
    color: var(--home-text-muted);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-sidebar-dept__subs {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 220px;
    max-width: 300px;
    background: var(--home-surface, #fff);
    border: 1px solid var(--home-border, #e8ecf1);
    border-radius: 0 var(--home-radius-lg, 12px) var(--home-radius-lg, 12px) 0;
    box-shadow: var(--home-shadow-md, 0 8px 24px rgba(0,0,0,.12));
    z-index: 100;
    padding: 6px 0;
    list-style: none;
    margin: 0;
}

.home-sidebar-dept {
    position: relative;
}

.home-sidebar-dept.has-submenu:hover > .home-sidebar-dept__subs {
    display: block;
}

.home-sidebar-dept__subs .home-sidebar-dept {
    border-bottom: 1px solid var(--home-border-soft, #f1f5f9);
}

.home-sidebar-dept__subs .home-sidebar-dept:last-child {
    border-bottom: none;
}

.home-sidebar-dept__subs .home-sidebar-dept__link {
    font-size: 12px;
    font-weight: 500;
    padding: 10px 16px;
    background: transparent;
    gap: 8px;
}

.home-sidebar-dept__subs .home-sidebar-dept__link:hover {
    background: color-mix(in srgb, var(--home-primary, #ff9800) 8%, transparent);
    color: var(--home-primary, #ff9800);
}

/* ── FLYOUT SUBMENU (estilo Loja do Mecânico) ── */
.home-sidebar-dept__flyout {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 500px;
    max-width: 750px;
    width: max-content;
    background: var(--home-surface, #fff);
    border: 1px solid var(--home-border, #e8ecf1);
    border-radius: 0 var(--home-radius-lg, 12px) var(--home-radius-lg, 12px) 0;
    box-shadow: var(--home-shadow-md, 0 8px 24px rgba(0,0,0,.12));
    z-index: 100;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.home-sidebar-dept.has-submenu:hover > .home-sidebar-dept__flyout {
    display: block;
}

.home-sidebar-dept__flyout-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--home-primary, #ff9800) 0%, color-mix(in srgb, var(--home-primary, #ff9800) 80%, #000) 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.home-sidebar-dept__flyout-icon {
    display: none;
}

.home-sidebar-dept__flyout-title {
    flex: 1;
    min-width: 0;
}

.home-sidebar-dept__flyout-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 12px 0;
    max-height: 400px;
    overflow-y: auto;
}

.home-sidebar-dept__flyout-col {
    padding: 0;
    border-bottom: 1px solid var(--home-border-soft, #f1f5f9);
}

.home-sidebar-dept__flyout-link {
    display: block;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--home-text, #1e293b);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border-bottom: 1px solid var(--home-border-soft, #f1f5f9);
}

.home-sidebar-dept__flyout-link:hover {
    background: color-mix(in srgb, var(--home-primary, #ff9800) 8%, transparent);
    color: var(--home-primary, #ff9800);
}

.home-sidebar-dept__flyout-link.has-children {
    color: var(--home-primary, #ff9800);
    font-weight: 700;
}

.home-sidebar-dept__flyout-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-sidebar-dept__flyout-sublist li a {
    display: block;
    padding: 6px 20px 6px 28px;
    font-size: 12px;
    font-weight: 400;
    color: var(--home-text-muted, #64748b);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.home-sidebar-dept__flyout-sublist li a:hover {
    background: color-mix(in srgb, var(--home-primary, #ff9800) 6%, transparent);
    color: var(--home-primary, #ff9800);
}

.home-sidebar-dept__flyout-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--home-primary, #ff9800);
    background: color-mix(in srgb, var(--home-primary, #ff9800) 5%, #fff);
    text-decoration: none;
    border-top: 1px solid var(--home-border-soft, #f1f5f9);
    transition: background 0.15s;
}

.home-sidebar-dept__flyout-more:hover {
    background: color-mix(in srgb, var(--home-primary, #ff9800) 10%, #fff);
    color: var(--home-primary, #ff9800);
}

.home-sidebar-panel__footer {
    border-top: 1px solid var(--home-border);
    margin-top: 4px;
}

.home-sidebar-panel__all {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--home-primary, #ff9800) !important;
    background: color-mix(in srgb, var(--home-primary, #ff9800) 6%, #fff) !important;
}

body.home-store-template .home-vertical-menu .vertical-menu-btn {
    flex-shrink: 0;
    border-radius: var(--home-radius-lg) var(--home-radius-lg) 0 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 14px 16px;
    background: color-mix(in srgb, var(--home-primary, #ff9800) 10%, #fff);
    border: none;
    color: var(--home-text);
}

body.home-store-template .home-vertical-menu .vertical-menu {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    max-height: none;
}

body.home-store-template .home-vertical-menu .vertical-menu ul {
    padding: 8px 0;
}

body.home-store-template .home-vertical-menu .vertical-menu a {
    font-size: 13px;
    padding: 10px 16px;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

body.home-store-template .home-vertical-menu .vertical-menu a:hover {
    background: color-mix(in srgb, var(--home-primary, #ff9800) 8%, transparent);
    color: var(--home-primary, #ff9800);
}

/* Submenus are now flyout — see .home-sidebar-dept__subs rules above */

body.home-menu-vertical .home-dept-nav,
body.home-tpl-side_market .home-dept-nav {
    display: none;
}

body.home-menu-vertical .home-layout-vertical,
body.home-tpl-side_market .home-layout-vertical {
    display: grid;
}

.home-nav-shell {
    background: transparent;
}

.home-category-banner {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--home-radius);
    box-shadow: var(--home-shadow-sm);
}

.home-category-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Global header tweaks when template active ---- */
body.home-store-template .top-strip {
    display: none;
}

body.home-cab-compacto .main-header {
    padding: 8px 0;
}

body.home-cab-compacto .main-header .action-item div {
    display: none;
}

body.home-cab-destaque_busca .main-header .search-bar {
    flex: 2;
    max-width: none;
}

body.home-cab-minimalista .main-header .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

body.home-cab-minimalista .main-header .logo {
    justify-self: center;
    order: 2;
}

body.home-cab-minimalista .main-header .search-bar {
    order: 3;
    grid-column: 1 / -1;
}

body.home-cab-tecnico .main-header {
    background: #081a45;
    color: #fff;
}

body.home-cab-tecnico .main-header a,
body.home-cab-tecnico .main-header .action-item {
    color: #fff;
}

body.home-cab-tecnico .search-bar {
    border-color: rgba(255, 255, 255, 0.2);
}

body.home-cab-confianca .top-bar {
    background: #ecfeff;
    color: #155e75;
}

body.home-cab-hero_glass .top-bar {
    display: none;
}

/* bottom nav padding — ver home-templates-themes.css */

/* ---- Template-specific accents ---- */
.home-template-ofertas {
    --home-accent-bg: linear-gradient(180deg, #fffbf5 0%, var(--home-bg, #f8f9fa) 120px);
}

.home-template-ofertas.home-template-root {
    background: var(--home-accent-bg);
}

.home-template-ofertas .home-flash-section {
    background: linear-gradient(180deg, #fff7ed, #fff);
}

.home-template-marketplace .home-banner-main {
    margin-top: 0;
}

.home-template-tecnico .home-section-title {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 1.1rem;
}

body.home-tpl-tecnico .home-dept-nav {
    background: #081a45;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.home-tpl-tecnico .home-dept-name {
    color: #e2e8f0 !important;
}

body.home-tpl-tecnico .home-dept-link:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-bottom-color: #60a5fa;
}

.home-template-minimalista .product-card {
    box-shadow: none;
    border: 1px solid var(--home-border);
}

.home-template-premium {
    background: #111;
    color: #eee;
}

.home-template-premium .product-card {
    background: #1a1a1a;
    border-color: #333;
}

.home-template-premium .home-category-card-inner {
    background: #1a1a1a;
    border-color: #333;
    color: #e2e8f0;
}

.home-template-mobile .home-categories-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
}

.home-template-mobile .btn-buy,
.home-template-mobile .btn-details {
    min-height: 44px;
}

/* ---- Mega menu (model 02) ---- */
.home-secondary-nav {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 0 0 var(--home-radius-lg) var(--home-radius-lg);
    margin-bottom: 12px;
}

.home-secondary-nav__inner {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 11px 0;
    overflow-x: auto;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.home-secondary-nav__inner a {
    color: inherit;
    text-decoration: none;
    opacity: 0.88;
}

.home-secondary-nav__inner a:hover {
    color: var(--home-primary, #ff9800);
    opacity: 1;
}

.home-menu-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--home-border);
    border-radius: 999px;
    padding: 9px 13px;
    background: var(--home-surface);
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
}

.home-menu-chip--dark {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

/* ==========================================================================
   MEGA MENU — Modelo 4 (R Strong Premium)
   ========================================================================== */
.home-mega-nav {
    background: var(--home-surface, #fff);
    border-bottom: 1px solid var(--home-border, #e8ecf1);
    margin-bottom: 0;
    padding: 10px 0;
}

.home-mega-nav__bar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--home-surface, #fff);
    border: 1px solid var(--home-border, #e8ecf1);
    border-radius: 999px;
    padding: 8px 12px 8px 10px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.home-mega-nav__trigger-wrap,
.mega-menu-trigger {
    position: relative;
    flex-shrink: 0;
}

.home-mega-nav__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1.5px solid color-mix(in srgb, var(--home-primary, #ff9800) 35%, transparent);
    border-radius: 999px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--home-primary, #ff9800) 12%, #fff),
        color-mix(in srgb, var(--home-primary, #ff9800) 6%, #fff));
    color: var(--home-text, #1e293b);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    white-space: nowrap;
}

.home-mega-nav__trigger:hover,
.home-mega-nav__trigger:focus-visible,
.mega-menu-trigger.is-open .home-mega-nav__trigger {
    border-color: var(--home-primary, #ff9800);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--home-primary, #ff9800) 18%, transparent);
    outline: none;
}

.home-mega-nav__trigger i:first-child {
    color: var(--home-primary, #ff9800);
}

.home-mega-nav__chevron {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.2s;
}

.mega-menu-trigger.is-open .home-mega-nav__chevron {
    transform: rotate(180deg);
}

.home-mega-panel,
.mega-menu-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    width: min(920px, 96vw);
    padding: 24px;
    background: var(--home-surface, #fff);
    border: 1.5px solid var(--home-border, #e8ecf1);
    border-radius: var(--home-radius-lg, 16px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
    z-index: 10050;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 20px;
}

.mega-menu-trigger:hover .home-mega-panel,
.mega-menu-trigger.is-open .home-mega-panel,
.mega-menu-trigger:hover .mega-menu-panel,
.mega-menu-trigger.is-open .mega-menu-panel,
.home-mega-panel.open,
.mega-menu-panel.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.home-mega-col {
    min-width: 0;
}

.mega-col-title,
.home-mega-col__heading {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--home-text-muted, #64748b);
    margin-bottom: 12px;
    text-decoration: none;
}

.home-mega-col__heading:hover {
    color: var(--home-primary, #ff9800);
}

.mega-item,
.home-mega-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.18s;
}

.mega-item:hover,
.home-mega-item:hover {
    background: color-mix(in srgb, var(--home-primary, #ff9800) 6%, transparent);
}

.home-mega-item__icon,
.home-mega-item__icon--fallback {
    flex-shrink: 0;
    --cat-icon-size: 18px;
}

.home-mega-item__icon--fallback {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--home-border-soft, #f1f5f9);
    border-radius: 8px;
    color: var(--home-primary, #ff9800);
    font-size: 11px;
}

.home-mega-item__body {
    min-width: 0;
}

.home-mega-item__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--home-text, #1e293b);
    line-height: 1.25;
}

.home-mega-item__meta {
    font-size: 0.7rem;
    color: var(--home-text-muted, #64748b);
    margin-top: 2px;
}

.home-mega-col__all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--home-primary, #ff9800);
    text-decoration: none;
}

.home-mega-col__all:hover {
    text-decoration: underline;
}

.home-mega-nav__depts {
    display: flex;
    align-items: center;
    gap: 4px 12px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.home-mega-nav__depts::-webkit-scrollbar {
    display: none;
}

.home-mega-dept__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    text-decoration: none;
    color: var(--home-text, #1e293b);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.home-mega-dept__link:hover {
    color: var(--home-primary, #ff9800);
    background: color-mix(in srgb, var(--home-primary, #ff9800) 8%, transparent);
}

.home-mega-dept__icon,
.home-mega-dept__icon--fallback {
    flex-shrink: 0;
    --cat-icon-size: 16px;
}

.home-mega-dept__icon--fallback {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--home-border-soft, #f1f5f9);
    border-radius: 6px;
    color: var(--home-primary, #ff9800);
    font-size: 9px;
}

.home-mega-card {
    background: linear-gradient(135deg, #111827, #374151);
    color: #fff;
    border-radius: 14px;
    padding: 18px;
    min-height: 150px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-mega-card__text {
    font-size: 0.82rem;
    opacity: 0.8;
    margin: 0 0 8px;
    line-height: 1.4;
}

.home-mega-card__cta {
    display: inline-block;
    border-radius: 999px;
    background: var(--home-primary, #ff9800);
    color: #fff;
    padding: 9px 14px;
    font-weight: 800;
    font-size: 12px;
    text-decoration: none;
    width: fit-content;
}

.home-mega-card__cta:hover {
    filter: brightness(1.08);
    color: #fff;
}

/* Legado — links em árvore (outros templates) */
.home-mega-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-mega-nav__item {
    position: relative;
}

.home-mega-links a {
    color: #374151;
    text-decoration: none;
}

.home-mega-link--depth-1 { padding-left: 12px; font-size: 13px; }
.home-mega-link--depth-2 { padding-left: 24px; font-size: 12px; }
.home-mega-link--depth-3 { padding-left: 36px; font-size: 12px; }

/* Quick nav (supermercado) */
.home-quick-nav {
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-lg);
    overflow: hidden;
    background: var(--home-surface);
    margin-bottom: 12px;
}

.home-quick-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.home-quick-link {
    display: grid;
    place-items: center;
    gap: 6px;
    padding: 14px 8px;
    border-right: 1px solid var(--home-border);
    font-size: 12px;
    font-weight: 900;
    color: #475569;
    text-decoration: none;
}

.home-quick-link:last-child {
    border-right: 0;
}

.home-quick-link strong {
    font-size: 20px;
    line-height: 1;
}

.home-quick-link:hover {
    background: #f8fafc;
    color: var(--home-primary, #ff9800);
}

/* Bottom nav — ver home-templates-themes.css */

/* Hero glass */
.home-hero-glass-wrap {
    position: relative;
    margin-top: -20px;
}

.home-template-premium .home-banner-main {
    margin-top: 0;
    border-radius: 22px;
    overflow: hidden;
}

.home-template-premium .home-banner-main .carousel-inner {
    min-height: 280px !important;
}

/* Dark theme */
body[data-theme="dark"] .home-vertical-menu,
body[data-theme="dark"] .home-category-card-inner {
    background: #1a1c1e;
    color: #e9ecef;
    border-color: #2c3034;
}

body[data-theme="dark"] .home-sidebar-dept__flyout {
    background: #1a1c1e;
    border-color: #2c3034;
}

body[data-theme="dark"] .home-sidebar-dept__flyout-link {
    color: #e9ecef;
    border-bottom-color: #2c3034;
}

body[data-theme="dark"] .home-sidebar-dept__flyout-link:hover {
    background: color-mix(in srgb, var(--home-primary, #ff9800) 12%, #1a1c1e);
    color: var(--home-primary, #ff9800);
}

body[data-theme="dark"] .home-sidebar-dept__flyout-link.has-children {
    color: var(--home-primary, #ff9800);
}

body[data-theme="dark"] .home-sidebar-dept__flyout-col {
    border-bottom-color: #2c3034;
}

body[data-theme="dark"] .home-sidebar-dept__flyout-sublist li a {
    color: #94a3b8;
}

body[data-theme="dark"] .home-sidebar-dept__flyout-sublist li a:hover {
    background: color-mix(in srgb, var(--home-primary, #ff9800) 12%, #1a1c1e);
    color: var(--home-primary, #ff9800);
}

body[data-theme="dark"] .home-sidebar-dept__flyout-more {
    background: #1a1c1e;
    border-top-color: #2c3034;
    color: var(--home-primary, #ff9800);
}

body[data-theme="dark"] .home-sidebar-dept__flyout-more:hover {
    background: color-mix(in srgb, var(--home-primary, #ff9800) 12%, #1a1c1e);
}

body[data-theme="dark"] .home-category-chip {
    background: #1a1c1e;
    color: #e9ecef;
    border-color: #2c3034;
}

body[data-theme="dark"] .home-template-root {
    color: var(--text-color, #e9ecef);
}

body[data-theme="dark"].home-store-template .home-dept-nav {
    background: #1a1c1e;
    border-bottom-color: #2c3034;
}

body[data-theme="dark"].home-store-template .home-dept-name {
    color: #e9ecef !important;
}

/* Responsive */
@media (max-width: 991px) {
    body.home-store-template .home-dept-nav {
        position: relative;
        top: auto;
    }

    body.home-store-template .home-layout-vertical {
        grid-template-columns: 1fr;
        padding: 12px 12px 24px;
        gap: 16px;
    }

    body.home-store-template .home-sidebar {
        position: relative;
        top: auto;
        max-height: none;
    }

    .home-banner-main .carousel-inner {
        min-height: 200px;
        aspect-ratio: 16 / 9;
    }

    .home-categories-section,
    .home-vitrine-section {
        padding: 20px 0 28px;
    }
}

@media (max-width: 991px) {
    .home-mega-nav__depts {
        display: none;
    }

    .home-mega-nav__bar {
        justify-content: center;
    }

    .home-mega-panel,
    .mega-menu-panel {
        width: min(680px, 96vw);
        grid-template-columns: 1fr;
        left: 50%;
        transform: translateX(-50%) translateY(8px);
    }

    .mega-menu-trigger:hover .home-mega-panel,
    .mega-menu-trigger.is-open .home-mega-panel,
    .mega-menu-trigger:hover .mega-menu-panel,
    .mega-menu-trigger.is-open .mega-menu-panel,
    .home-mega-panel.open,
    .mega-menu-panel.open {
        transform: translateX(-50%) translateY(0);
    }

    .home-mega-card {
        min-width: 0;
    }
}

@media (max-width: 920px) {
    .home-mega-panel,
    .mega-menu-panel {
        grid-template-columns: 1fr 1fr;
        width: 96vw;
        left: 50%;
        transform: translateX(-50%) translateY(8px);
    }

    .mega-menu-trigger:hover .home-mega-panel,
    .mega-menu-trigger.is-open .home-mega-panel,
    .mega-menu-trigger:hover .mega-menu-panel,
    .mega-menu-trigger.is-open .mega-menu-panel,
    .home-mega-panel.open,
    .mega-menu-panel.open {
        transform: translateX(-50%) translateY(0);
    }

    .home-mega-nav__bar {
        border-radius: 16px;
        flex-wrap: wrap;
    }

    .home-mega-card {
        grid-column: 1 / -1;
    }

    .home-quick-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    body.home-cab-minimalista .main-header .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Storefront pages — sidebar lateral ampla */
body.home-store-template .store-page-with-sidebar,
body.home-store-template .store-category-page .store-page-with-sidebar {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

body.home-store-template .store-front-sidebar {
    width: 320px;
    max-width: 320px;
    min-width: 320px;
    overflow: visible;
}

body.store-product-page .product-title {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

body.store-product-page h1.product-title {
    height: auto;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
    line-height: 1.25;
}

body.home-store-template .store-product-page .store-page-with-sidebar,
body.store-product-page .store-page-with-sidebar {
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
    gap: 18px;
}

body.home-store-template .store-product-page .store-front-sidebar,
body.store-product-page .store-front-sidebar {
    width: auto;
    max-width: 260px;
    min-width: 200px;
}

body.home-store-template .store-page-main,
body.home-store-template .store-category-page .store-page-main {
    min-width: 0;
}

body.home-store-template .store-front-sidebar .home-sidebar-pro,
body.home-store-template .store-category-page .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);
}

@media (max-width: 991px) {
    body.home-store-template .store-page-with-sidebar,
    body.home-store-template .store-category-page .store-page-with-sidebar {
        grid-template-columns: 1fr;
    }

    body.home-store-template .store-front-sidebar .home-sidebar-pro,
    body.home-store-template .store-category-page .home-sidebar-pro {
        position: relative;
        top: auto;
        max-height: none;
    }
}

body.store-product-page .product-detail-container {
    padding-top: 24px;
    padding-bottom: 48px;
}

body.store-product-page .store-page-with-sidebar {
    display: grid;
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

body.store-product-page .store-front-sidebar {
    width: auto;
    max-width: 260px;
    min-width: 200px;
    overflow: visible;
}

body.store-product-page .store-front-sidebar .home-sidebar-panel {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 108px);
}

body.store-product-page .home-sidebar-panel__head {
    padding: 12px 14px;
}

body.store-product-page .home-sidebar-panel__titles strong {
    font-size: 13px;
}

body.store-product-page .home-sidebar-dept__link {
    padding: 8px 12px;
    font-size: 12px;
    gap: 8px;
}

body.store-product-page .home-sidebar-dept__label {
    font-size: 12px;
    line-height: 1.25;
}

body.store-product-page .home-sidebar-dept__icon,
body.store-product-page .home-sidebar-dept__icon--fallback {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 12px;
}

body.store-product-page .store-page-main {
    min-width: 0;
    padding-right: 4px;
}

body.store-product-page .product-detail-grid {
    gap: 22px;
}

body.store-product-page .store-page-with-sidebar .product-detail-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
}

@media (max-width: 1200px) {
    body.store-product-page .store-page-with-sidebar .product-detail-grid {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
    }
}

/* Sidebar: subcategorias colapsadas (classe .home-sidebar-pro) — ver home-templates-themes.css */

body.store-product-page .store-front-nav-mobile .home-menu-scroll {
    border-bottom: 1px solid var(--home-border, #e8ecf1);
    background: var(--home-bg, #f8f9fa);
}

@media (min-width: 992px) {
    body.store-product-page .store-front-nav-mobile {
        display: none !important;
    }
}

@media (max-width: 991px) {
    body.store-product-page .store-page-with-sidebar {
        grid-template-columns: 1fr;
    }

    body.store-product-page .store-front-sidebar .home-sidebar-panel {
        position: relative;
        top: auto;
        max-height: none;
    }
}

/* Fallback legado — só quando template da home não está ativo */
body:not(.home-store-template) .store-page-with-sidebar {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

body:not(.home-store-template) .store-front-sidebar .home-sidebar-panel,
body:not(.home-store-template) .store-page-with-sidebar .home-sidebar-panel {
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 120px);
}

.store-front-nav .home-menu-scroll,
.store-front-nav .home-quick-nav,
.store-front-nav .home-mega-nav {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    body:not(.home-store-template) .store-page-with-sidebar {
        grid-template-columns: 1fr;
    }

    body:not(.home-store-template) .store-front-sidebar .home-sidebar-panel,
    body:not(.home-store-template) .store-page-with-sidebar .home-sidebar-panel {
        position: relative;
        top: auto;
        max-height: none;
    }
}

@media (max-width: 560px) {
    .home-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    body.home-store-template .home-dept-name {
        font-size: 12px;
    }

    body.home-store-template .home-dept-link {
        padding: 12px 12px;
    }

    .home-category-card-cta {
        opacity: 1;
        transform: none;
    }
}

/* ============================================================
   HORIZONTAL CATEGORY NAVIGATION BAR
   ============================================================ */
.main-banner-area {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.nav-hero-wrapper {
    background-color: transparent;
    padding-top: 20px;
    padding-bottom: 16px;
}

.main-banner-area .carousel-inner,
.main-banner-area .carousel-item {
    height: 100%;
}

.main-banner-area .carousel-item img {
    height: 100%;
    object-fit: cover;
}

.home-category-nav-bar {
    background: var(--home-surface, #fff);
    border-top: 1px solid var(--home-border, #e8ecf1);
    border-bottom: 1px solid var(--home-border, #e8ecf1);
    padding: 0;
    margin-bottom: 24px;
}

.category-nav-bar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-nav-bar__list::-webkit-scrollbar {
    display: none;
}

.category-nav-bar__item {
    flex-shrink: 0;
}

.category-nav-bar__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    color: var(--home-text, #1e293b);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
    border-radius: 6px;
    position: relative;
}

.category-nav-bar__link:hover {
    color: var(--home-primary, #ff9800);
    background: color-mix(in srgb, var(--home-primary, #ff9800) 6%, transparent);
}

.category-nav-bar__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--home-primary, #ff9800);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform 0.2s;
}

.category-nav-bar__link:hover::after {
    transform: scaleX(1);
}

.category-nav-bar__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.category-nav-bar__icon--fallback {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--home-primary, #ff9800);
    flex-shrink: 0;
}

.category-nav-bar__label {
    line-height: 1.2;
}

/* Responsive: scroll horizontally on mobile */
@media (max-width: 991px) {
    .category-nav-bar__link {
        padding: 12px 14px;
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .category-nav-bar__list {
        gap: 0;
    }
    
    .category-nav-bar__link {
        padding: 10px 12px;
        font-size: 10px;
    }
    
    .category-nav-bar__icon,
    .category-nav-bar__icon--fallback {
        width: 14px;
        height: 14px;
        font-size: 10px;
    }
}

/* ============================================
   LDM-STYLE HORIZONTAL MENU BAR
   Dark compact bar with "CATEGORIAS" button
   ============================================ */

/* Hide the categories grid only when the horizontal department bar replaces it */
body.home-menu-horizontal .home-categories-section {
    display: none !important;
}

/* Restyle the horizontal nav bar as white bar */
body.home-store-template .horizontal-nav.home-dept-nav,
body.home-menu-horizontal .horizontal-nav.home-dept-nav {
    background: #ffffff !important;
    border-bottom: 1px solid #eef2f5 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03) !important;
    position: sticky;
    top: 0;
    z-index: 9998;
    padding: 0;
}

body.home-store-template .horizontal-nav.home-dept-nav .container.home-dept-nav__viewport,
body.home-menu-horizontal .horizontal-nav.home-dept-nav .container.home-dept-nav__viewport {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(12px, 2vw, 20px);
}

body.home-store-template .home-dept-nav__track,
body.home-menu-horizontal .home-dept-nav__track {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.home-store-template .home-dept-nav__track::-webkit-scrollbar,
body.home-menu-horizontal .home-dept-nav__track::-webkit-scrollbar {
    display: none;
}

/* Category items */
body.home-store-template .home-dept-item,
body.home-menu-horizontal .home-dept-item {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

/* Category links - clean text on white bg */
body.home-store-template .home-dept-link,
body.home-menu-horizontal .home-dept-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    min-height: 44px;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border-radius: 0;
    border-bottom: none;
    border-left: none !important;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

body.home-store-template .home-dept-item:first-child .home-dept-link,
body.home-menu-horizontal .home-dept-item:first-child .home-dept-link {
    border-left: none !important;
}

body.home-store-template .home-dept-link:hover,
body.home-store-template .home-dept-link:focus-visible,
body.home-store-template .home-dept-item:hover .home-dept-link,
body.home-store-template .home-dept-item.is-open .home-dept-link,
body.home-store-template .home-dept-item.is-active .home-dept-link,
body.home-menu-horizontal .home-dept-link:hover,
body.home-menu-horizontal .home-dept-item:hover .home-dept-link,
body.home-menu-horizontal .home-dept-item.is-active .home-dept-link {
    background: transparent !important;
    border-bottom-color: transparent;
    box-shadow: none !important;
}

body.home-store-template .home-dept-link:hover .home-dept-name,
body.home-store-template .home-dept-item:hover .home-dept-link .home-dept-name,
body.home-store-template .home-dept-item.is-open .home-dept-link .home-dept-name,
body.home-menu-horizontal .home-dept-link:hover .home-dept-name,
body.home-menu-horizontal .home-dept-item:hover .home-dept-link .home-dept-name {
    color: var(--home-primary, #ff9800) !important;
}

/* Category name text */
body.home-store-template .home-dept-name,
body.home-store-template .drop-down__name.home-dept-name,
body.home-menu-horizontal .home-dept-name {
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.01em;
    color: #333333 !important;
    font-family: 'Outfit', 'Roboto', sans-serif;
    line-height: 1.2;
    white-space: nowrap;
    max-width: none;
    overflow: visible;
    text-overflow: unset;
    transition: color 0.15s;
}

/* Hide icons on the horizontal bar (like LDM - text only) */
body.home-store-template .home-dept-link .home-dept-icon,
body.home-store-template .home-dept-link .cat-icon--tint,
body.home-store-template .home-dept-link .cat-icon--emoji,
body.home-store-template .home-dept-link .cat-icon--img,
body.home-menu-horizontal .home-dept-link .home-dept-icon,
body.home-menu-horizontal .home-dept-link .cat-icon--tint {
    display: none !important;
}

/* Hide chevrons for normal items, show only for CATEGORIAS button */
body.home-store-template .home-dept-chevron,
body.home-menu-horizontal .home-dept-chevron {
    display: none !important;
}

body.home-store-template .home-dept-categorias-btn .home-dept-chevron,
body.home-menu-horizontal .home-dept-categorias-btn .home-dept-chevron {
    display: inline-flex !important;
    color: #333333 !important;
    font-size: 11px;
    margin-left: 4px;
    transition: color 0.15s;
}

body.home-store-template .home-dept-categorias-btn:hover .home-dept-chevron,
body.home-menu-horizontal .home-dept-categorias-btn:hover .home-dept-chevron {
    color: var(--home-primary, #ff9800) !important;
}

/* Active category */
body.home-store-template .home-dept-item.is-active .home-dept-name,
body.home-menu-horizontal .home-dept-item.is-active .home-dept-name {
    color: var(--home-primary, #ff9800) !important;
    font-weight: 600;
}

/* Dropdown panel - white bg */
body.home-store-template .home-dept-panel,
body.home-menu-horizontal .home-dept-panel {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* CATEGORIAS button */
body.home-store-template .home-dept-categorias-btn,
body.home-menu-horizontal .home-dept-categorias-btn {
    position: relative;
}

body.home-store-template .home-dept-categorias-btn > .home-dept-link,
body.home-menu-horizontal .home-dept-categorias-btn > .home-dept-link {
    background: transparent !important;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 10px 16px;
    gap: 8px;
}

body.home-store-template .home-dept-categorias-btn .fa-bars,
body.home-menu-horizontal .home-dept-categorias-btn .fa-bars {
    color: #333333 !important;
    transition: color 0.15s;
}

body.home-store-template .home-dept-categorias-btn:hover .fa-bars,
body.home-menu-horizontal .home-dept-categorias-btn:hover .fa-bars {
    color: var(--home-primary, #ff9800) !important;
}

body.home-store-template .home-dept-categorias-btn:hover > .home-dept-link,
body.home-menu-horizontal .home-dept-categorias-btn:hover > .home-dept-link {
    background: transparent !important;
}

/* All-categories dropdown panel */
body.home-store-template .home-dept-all-panel,
body.home-menu-horizontal .home-dept-all-panel {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 10000;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    min-width: 280px;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px 0;
    margin-top: 4px;
}

/* Keep dropdown open when hovering from button to panel */
body.home-store-template .home-dept-categorias-btn::after,
body.home-menu-horizontal .home-dept-categorias-btn::after {
    content: '';
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 8px;
}

body.home-store-template .home-dept-categorias-btn:hover .home-dept-all-panel,
body.home-store-template .home-dept-categorias-btn.is-open .home-dept-all-panel,
body.home-menu-horizontal .home-dept-categorias-btn:hover .home-dept-all-panel,
body.home-menu-horizontal .home-dept-categorias-btn.is-open .home-dept-all-panel {
    display: block;
}

body.home-store-template .home-dept-all-panel .home-dept-panel__link,
body.home-menu-horizontal .home-dept-all-panel .home-dept-panel__link {
    display: block;
    padding: 8px 18px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.12s, color 0.12s;
}

body.home-store-template .home-dept-all-panel .home-dept-panel__link:hover,
body.home-menu-horizontal .home-dept-all-panel .home-dept-panel__link:hover {
    background: #f5f5f5;
    color: var(--home-primary, #ff9800);
}

body.home-store-template .home-dept-all-panel .home-dept-panel__list,
body.home-menu-horizontal .home-dept-all-panel .home-dept-panel__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Hamburger CATEGORIAS: apenas mobile; desktop usa links horizontais */
@media (min-width: 992px) {
    .home-dept-categorias-btn--mobile {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .home-dept-nav__track > .home-dept-item:not(.home-dept-categorias-btn--mobile) {
        display: none !important;
    }

    .home-dept-categorias-btn--mobile {
        display: flex !important;
        flex: 1 1 auto;
        min-width: 0;
    }

    .home-dept-nav__track {
        width: 100%;
    }
}

/* ============================================
   HOME SALES FLOW — banners + categorias + ofertas
   ============================================ */
.home-shell--sales {
    padding-bottom: 8px;
}

.home-shell--sales .home-sales-flow {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 16px;
}

.home-shell--sales .home-sales-zone {
    width: 100%;
}

.home-shell--sales .home-sales-zone--banner-hero {
    padding-bottom: 0;
}

.home-shell--sales .home-sales-zone--categories {
    background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--home-primary, #f57c00) 4%, #fff) 100%);
    border-radius: 18px;
}

.home-shell--sales .home-sales-zone--categories .home-categories-section {
    display: block !important;
    padding-top: 20px;
    padding-bottom: 22px;
}

.home-shell--sales .home-sales-zone--offers {
    background: color-mix(in srgb, var(--home-primary, #f57c00) 6%, #fff7ed);
    border-radius: 18px;
}

.home-shell--sales .home-sales-zone--offers .home-vitrine-section,
.home-shell--sales .home-sales-zone--offers .home-flash-section {
    padding-top: 24px;
    padding-bottom: 24px;
}

.home-shell--sales .home-sales-zone--banner-mid {
    padding: 0;
}

.home-shell--sales .home-sales-zone--products {
    background: #fff;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--home-border, #e8ecf1) 90%, transparent);
}

.home-shell--sales .home-sales-zone--products .home-vitrine-section {
    padding-top: 22px;
    padding-bottom: 24px;
}

.home-shell--sales .home-sales-zone--products + .home-sales-zone--products {
    border-top: none;
}

/* Com glass hybrid, o fundo fica nos painéis internos (não nas zones) */
body.home-glass-hybrid .home-shell--sales .home-sales-flow {
    gap: 48px;
}

body.home-glass-hybrid .home-shell--sales .home-sales-zone--categories,
body.home-glass-hybrid .home-shell--sales .home-sales-zone--offers,
body.home-glass-hybrid .home-shell--sales .home-sales-zone--products {
    background: transparent;
    border: none;
    border-radius: 0;
}

.home-sales-mid-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 28px 32px;
    border-radius: 18px;
    text-decoration: none !important;
    color: #fff !important;
    background:
        radial-gradient(ellipse at 12% 20%, rgba(255, 255, 255, 0.18), transparent 48%),
        linear-gradient(118deg, #1a2332 0%, #2c3e50 42%, #e65100 120%);
    box-shadow: 0 14px 36px rgba(26, 35, 50, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-sales-mid-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(230, 81, 0, 0.28);
    color: #fff !important;
}

.home-sales-mid-cta__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 8px;
    color: color-mix(in srgb, #fff 70%, var(--home-primary, #ff9500));
    animation: home-cta-kicker 0.7s ease both;
}

.home-sales-mid-cta__kicker i {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--home-primary, #ff9500) 85%, #fff);
    color: #fff;
    font-size: 0.7rem;
    animation: home-title-icon-pulse 2.2s ease-in-out infinite;
}

.home-sales-mid-cta__copy strong {
    display: block;
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    animation: home-title-text-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.home-sales-mid-cta__sub {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.78;
    max-width: 44ch;
    animation: home-title-sub-in 0.75s ease 0.18s both;
}

.home-sales-mid-cta__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--home-primary, #e65100);
    font-weight: 800;
    font-size: 13px;
    padding: 12px 22px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: gap 0.25s ease, transform 0.25s ease;
    animation: home-title-sub-in 0.7s ease 0.28s both;
}

.home-sales-mid-cta:hover .home-sales-mid-cta__btn {
    gap: 12px;
    transform: translateX(2px);
}

@keyframes home-cta-kicker {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 0.9; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .home-sales-mid-cta__kicker,
    .home-sales-mid-cta__kicker i,
    .home-sales-mid-cta__copy strong,
    .home-sales-mid-cta__sub,
    .home-sales-mid-cta__btn {
        animation: none !important;
    }
}

@media (max-width: 767px) {
    .home-sales-mid-cta {
        padding: 22px 20px;
    }
    .home-sales-mid-cta__btn {
        width: 100%;
        text-align: center;
    }
}

/* Dupla 16:9 após Ofertas da Semana */
.home-banner-pair-16x9 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.6vw, 20px);
    margin-top: clamp(14px, 2vw, 22px);
}

.home-banner-pair-16x9__tile {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #e8edf2;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-banner-pair-16x9__tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.home-banner-pair-16x9__img,
.home-banner-pair-16x9__tile .home-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.home-banner-pair-16x9__label {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.62);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    backdrop-filter: blur(6px);
}

@media (max-width: 767px) {
    .home-banner-pair-16x9 {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-banner-pair-16x9__tile {
        transition: none;
    }
    .home-banner-pair-16x9__tile:hover {
        transform: none;
    }
}
