/* ========================================
   HOME - HERO SLIDER + COMPONENTES
   ======================================== */

/* Slider Hero — imagem sem corte (produção); altura vem do asset */
.lubmix-home-hero {
    margin-bottom: 12px;
}

@media (max-width: 767px) {
    .lubmix-home-hero {
        margin-bottom: 1rem;
    }
}

.lubmix-home-hero-slider.swiper-autoheight {
    height: auto;
}

.lubmix-home-hero-slider .swiper-wrapper {
    transition-timing-function: ease-in-out;
    align-items: flex-start;
}

.lubmix-home-hero-slider .swiper-slide {
    height: auto !important;
    align-self: flex-start;
}

.lubmix-home-hero-slide__media {
    display: block;
}

/*
 * Uma única <img> dentro de <picture>: o browser escolhe desktop (source) ou mobile (img src).
 * Evita duas <img> + classes Tailwind hidden/md: — o CSS do hero aplicava display:block em todas
 * as imgs e anulava o display:none do .hidden.
 */
.lubmix-home-hero__picture {
    display: block;
    width: 100%;
    max-width: 100%;
}

.lubmix-home-hero__picture img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.lubmix-home-hero-slider .swiper-pagination {
    bottom: 12px !important;
    width: 100% !important;
    z-index: 20;
    position: absolute;
}

.lubmix-home-hero-slider .swiper-pagination-bullet {
    width: 20px;
    height: 5px !important;
    background: #C3C3C3;
    opacity: 1;
    border-radius: 8px !important;
    transition: all 0.3s ease;
}

.lubmix-home-hero-slider .swiper-pagination-bullet-active {
    background: var(--lubmix-secondary);
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    width: 32px;
    border-radius: 6px;
}

.lubmix-courses-slider-wrapper .lubmix-courses-slider-desktop {
    display: none !important;
}

.lubmix-courses-slider-wrapper .lubmix-courses-slider-mobile {
    display: block !important;
}

@media (min-width: 768px) {
    .lubmix-courses-slider-wrapper .lubmix-courses-slider-desktop {
        display: block !important;
    }

    .lubmix-courses-slider-wrapper .lubmix-courses-slider-mobile {
        display: none !important;
    }
}

@media (-webkit-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) and (max-resolution: 132dpi) {
    .lubmix-sobre-nos-bg {
        right: 3% !important;
    }
}

/* Vitrines de produtos (home) — Swiper */
.lubmix-product-swiper {
    padding-bottom: 2rem;
}

/*
 * Card da vitrine = mesmo padrão do arquivo (woocommerce/content-product.php + woocommerce-catalog.css):
 * artigo com lubmix-product-card-catalog; sem “caixa dupla” no wrapper do Swiper; título como no catálogo.
 */
.lubmix-product-swiper .lubmix-product-card-catalog {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.lubmix-product-swiper .swiper-slide {
    height: auto;
}

/* Mobile estreito: largura do slide ~350px + setas discretas (referência produção) */
@media (max-width: 639px) {
    .lubmix-product-swiper .lubmix-product-swiper__slide {
        width: min(310px, calc(100vw - 40px));
    }

    .lubmix-product-swiper .swiper-button-next,
    .lubmix-product-swiper .swiper-button-prev {
        width: 28px;
        height: 44px;
        margin-top: 0;
        top: 42%;
        transform: translateY(-50%);
        background: transparent;
        border-radius: 0;
        color: #b0b8c1;
    }

    .lubmix-product-swiper .swiper-button-next:hover,
    .lubmix-product-swiper .swiper-button-prev:hover {
        background: transparent;
        color: #94a3b8;
    }

    .lubmix-product-swiper .swiper-button-next::after,
    .lubmix-product-swiper .swiper-button-prev::after {
        font-size: 22px;
        font-weight: 400;
    }
}

.lubmix-product-swiper .swiper-pagination {
    bottom: 0 !important;
    left: 0;
    right: 0;
    width: 100% !important;
}

.lubmix-product-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #C3C3C3;
    opacity: 1;
}

.lubmix-product-swiper .swiper-pagination-bullet-active {
    background: var(--lubmix-primary);
}

.lubmix-product-swiper .swiper-button-next,
.lubmix-product-swiper .swiper-button-prev {
    width: 32px;
    height: 32px;
    color: #6b7280;
    background: #e5e7eb;
    border-radius: 9999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.lubmix-product-swiper .swiper-button-next:hover,
.lubmix-product-swiper .swiper-button-prev:hover {
    background: #d1d5db;
    color: var(--lubmix-primary);
}

.lubmix-product-swiper .swiper-button-next::after,
.lubmix-product-swiper .swiper-button-prev::after {
    font-size: 14px;
    font-weight: 700;
}

/*
 * Vitrines (home): hover no card — alinhado a catálogo e PDP relacionados.
 */
@media (hover: hover) and (pointer: fine) {

    .lubmix-product-swiper .lubmix-product-card-catalog {
        transition: transform 0.3s ease;
    }

    .lubmix-product-swiper .lubmix-product-card-catalog:hover {
        transform: translateY(-2px);
    }

    .lubmix-product-swiper .lubmix-product-card-catalog .lubmix-home-product-card__media-link > div:first-child {
        position: relative;
        overflow: hidden;
        background-color: #fff;
        transition: background-color 0.3s ease;
    }

    .lubmix-product-swiper .lubmix-product-card-catalog:hover .lubmix-home-product-card__media-link > div:first-child {
        background-color: #fffdfd;
    }

    .lubmix-product-swiper .lubmix-product-card-catalog .lubmix-home-product-card__media-link > div:first-child img {
        transition: transform 0.3s ease;
    }

    .lubmix-product-swiper .lubmix-product-card-catalog:hover .lubmix-home-product-card__media-link > div:first-child img {
        transform: scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {

    .lubmix-product-swiper .lubmix-product-card-catalog,
    .lubmix-product-swiper .lubmix-home-product-card__media-link > div:first-child,
    .lubmix-product-swiper .lubmix-home-product-card__media-link > div:first-child img {
        transition-duration: 0.01ms !important;
        transition-timing-function: linear !important;
    }

    @media (hover: hover) and (pointer: fine) {

        .lubmix-product-swiper .lubmix-product-card-catalog:hover {
            transform: none;
        }

        .lubmix-product-swiper .lubmix-product-card-catalog:hover .lubmix-home-product-card__media-link > div:first-child {
            background-color: #fff !important;
        }

        .lubmix-product-swiper .lubmix-product-card-catalog:hover .lubmix-home-product-card__media-link > div:first-child img {
            transform: none;
        }
    }
}

/* Home — Navegue por nossos departamentos (referência produção: título cinza, cards retrato) */
.lubmix-home-departments__title {
    color: var(--lubmix-home-heading-fg);
}

.lubmix-home-departments__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lubmix-home-departments__card {
    box-sizing: border-box;
    min-height: 240px;
}

.lubmix-home-departments__image {
    max-height: 12rem;
}

@media (min-width: 640px) {
    .lubmix-home-departments__image {
        max-height: 14rem;
    }
}

@media (min-width: 1024px) {
    /* Produção desktop: inspector ~240×272px no link do card */
    .lubmix-home-departments .lubmix-home-departments__card {
        width: 240px !important;
        max-width: 240px !important;
        height: 272px !important;
        min-height: 272px !important;
        max-height: 272px !important;
    }

    .lubmix-home-departments__list {
        column-gap: 0.25rem;
        row-gap: 1rem;
        justify-items: center;
    }

    .lubmix-home-departments__img-wrap {
        min-height: 0;
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .lubmix-home-departments__image {
        max-height: 100%;
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }
}
/* Home WooCommerce — sombras dos cards de departamento e dos banners (sem media queries) */
.lubmix-home-shadow--department {
    box-shadow: 0 0 3px 1px #006bb4;
}



/* Home — banners de categoria (legado + SCF) */
.lubmix-category-banner,
.lubmix-home-category-banner {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px;
    padding: 0;
    background: transparent !important;
    border-radius: 8px;
    overflow: visible; /* overflow: hidden cortava acentos do título */
    box-shadow: 2px 2px 4px 0 rgba(0, 107, 180, 0.75);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Link não pode criar altura extra */
.lubmix-category-banner .lubmix-category-banner__link,
.lubmix-home-category-banner .lubmix-category-banner__link {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    line-height: 0;
    background: transparent !important;
    color: inherit;
    text-decoration: none;
    outline: none;
    overflow: hidden;   /* contém a imagem no border-radius sem cortar o título */
    border-radius: 8px;
}

/* Imagem define o tamanho real do banner */
.lubmix-category-banner img,
.lubmix-home-category-banner .lubmix-category-banner__image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Título SEO sobre a área branca do banner */
.lubmix-home-category-banner .lubmix-banner__title {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 52%;          /* era 46% — muito apertado */
    margin: 0;
    padding: 17px 0 17px 8px;
    text-align: right;
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.01em;
    pointer-events: none;
    box-sizing: border-box;
}

.lubmix-home-category-banner .lubmix-banner__title .line-1 {
    display: block;
    font-size: clamp(22px, 2.6vw, 40px);
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;

    background: linear-gradient(to right, #003357);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.lubmix-home-category-banner .lubmix-banner__title .line-2 {
    display: block;
    font-size: clamp(28px, 3.8vw, 48px);
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;

    background: linear-gradient(to right, #6324a8, #1565c0, #006ed4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.lubmix-home-category-banner .lubmix-banner__title::before,
.lubmix-home-category-banner .lubmix-banner__title::after {
    content: '';
    position: absolute;
    right: 0;
    height: 3px;             
    width: 40%;             
    background: linear-gradient(to right, #7c3aed, #0079c1);
    pointer-events: none;
}

.lubmix-home-category-banner .lubmix-banner__title::before { top: 0; }
.lubmix-home-category-banner .lubmix-banner__title::after  { bottom: 0; }


/* Mobile */
@media (max-width: 639px) {
    .lubmix-home-category-banner .lubmix-banner__title {
        right: 8px;
        max-width: 62%;          
        padding: 6px 0 6px 0;
        line-height: 2.5;
    }

    .lubmix-home-category-banner .lubmix-banner__title .line-1 {
        font-size: clamp(14px, 3.4vw, 14px);
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .lubmix-home-category-banner .lubmix-banner__title .line-2 {
        font-size: clamp(12px, 2.8vw, 18px);   
        margin-top: 6px;        
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .lubmix-home-category-banner .lubmix-banner__title::before,
    .lubmix-home-category-banner .lubmix-banner__title::after {
        display: none;
    }
}

/* Acessibilidade */
.lubmix-category-banner .lubmix-category-banner__link:focus-visible,
.lubmix-home-category-banner .lubmix-category-banner__link:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(0, 121, 193, 0.45);
}

/* Ajuste do container do título */
.lubmix-home-category-banner .lubmix-banner__title {
    padding-top: 17px;
    padding-bottom: 17px;
}

.lubmix-home-category-banner .lubmix-banner__title::before,
.lubmix-home-category-banner .lubmix-banner__title::after {
    content: '';
    position: absolute;
    right: 0;
    height: 5px;
    width: 55%;
    background: linear-gradient(to right, #7c3aed, #0079c1);
    pointer-events: none;
}

/* Linha de cima */
.lubmix-home-category-banner .lubmix-banner__title::before {
    top: 0;
}

/* Linha de baixo */
.lubmix-home-category-banner .lubmix-banner__title::after {
    bottom: 0;
}



/* Home — Trabalhamos em vários segmentos (evita interferência de wrappers externos) */
.lubmix-home-segments .lubmix-home-segments__grid {
    display: grid !important;
}

.lubmix-home-segments .lubmix-home-segments__card {
    position: relative;
}

.lubmix-home-segments .lubmix-home-segments__card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background-color: rgba(255, 255, 255, 0);
    pointer-events: none;
    transition: background-color 0.25s ease;
}

.lubmix-home-segments .lubmix-home-segments__card:hover::after,
.lubmix-home-segments .lubmix-home-segments__card:focus-visible::after {
    background-color: rgba(255, 255, 255, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .lubmix-home-segments .lubmix-home-segments__card::after {
        transition: none;
    }
}

@media (max-width: 767px) {
    .lubmix-home-segments .lubmix-home-segments__grid {
        grid-template-columns: minmax(0, 1fr) !important;
        justify-items: center;
        row-gap: 1rem;
    }

    /* Card mais estreito e centralizado: menos “tela cheia”, mantém proporção da imagem */
    .lubmix-home-segments .lubmix-home-segments__card {
        width: 100%;
        max-width: min(20.5rem, calc(100vw - 2.5rem));
    }
}

@media (min-width: 768px) {
    .lubmix-home-segments .lubmix-home-segments__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Home — catálogo + newsletter: fundo cinza (evita override de wrappers com fundo branco) */
.lubmix-home-catalog-newsletter {
    background-color: #efefef !important;
}

/*
 * Capa: sem fundo extra sobre #efefef (evita dois cinzas: radial + seção).
 * Largura alinhada ao .lubmix-home-catalog-newsletter__col-inner (máx. 600px) + botões.
 */
.lubmix-home-catalog-newsletter__cover-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    background-color: transparent;
}

.lubmix-home-catalog-newsletter__cover-link {
    border-radius: 4px;
}

/* Botão "Fale com nosso time de vendas" */
.lubmix-home-segments__sales-btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.lubmix-home-segments__sales-btn:hover {
    background-color: #004a7a !important;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.lubmix-home-segments__sales-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Botões Visualizar / Baixar catálogo */
.lubmix-home-catalog__btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.lubmix-home-catalog__btn:hover {
    background-color: #004a7a !important;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.lubmix-home-catalog__btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.lubmix-home-catalog-newsletter__cover-img {
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .lubmix-home-catalog-newsletter__cover-img {
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    }
}

/* Newsletter — hover no botão (formulário legado + CF7 na home) */
.lubmix-home-newsletter-submit,
#lubmix-home-newsletter .wpcf7-form input.wpcf7-submit {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lubmix-home-newsletter-submit:hover,
#lubmix-home-newsletter .wpcf7-form input.wpcf7-submit:hover {
    background-color: #0079c1;
    border-color: #0079c1;
    color: #fff;
}

#lubmix-home-newsletter .wpcf7-form input.wpcf7-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 121, 193, 0.5);
}

/* Newsletter — Contact Form 7 (paridade com o <form> customizado anterior) */
#lubmix-home-newsletter .wpcf7 {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    text-align: left;
}

#lubmix-home-newsletter .wpcf7-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    text-align: left;
}

#lubmix-home-newsletter .wpcf7-form > p {
    margin: 0;
    text-align: left;
    width: 100%;
}

#lubmix-home-newsletter .wpcf7-form label + br {
    display: none;
}

#lubmix-home-newsletter .wpcf7-form label {
    display: block;
    width: 100%;
    margin: 0;
    text-align: left !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    color: #003357;
}

#lubmix-home-newsletter .wpcf7-form p:has(.wpcf7-email),
#lubmix-home-newsletter .wpcf7-form p:has(.wpcf7-text) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

#lubmix-home-newsletter .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    text-align: left;
}

#lubmix-home-newsletter .wpcf7-form input.wpcf7-email,
#lubmix-home-newsletter .wpcf7-form input.wpcf7-text {
    box-sizing: border-box;
    height: 52px;
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid #003357;
    background-color: #fff;
    padding: 0 15px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    color: #2f2f2f;
}

#lubmix-home-newsletter .wpcf7-form input.wpcf7-email::placeholder,
#lubmix-home-newsletter .wpcf7-form input.wpcf7-text::placeholder {
    color: #9ca3af;
    opacity: 1;
}

#lubmix-home-newsletter .wpcf7-form input.wpcf7-email:focus,
#lubmix-home-newsletter .wpcf7-form input.wpcf7-text:focus {
    outline: none;
    border-color: #003357;
    box-shadow: 0 0 0 2px rgba(0, 51, 87, 0.2);
}

#lubmix-home-newsletter .wpcf7-form input.wpcf7-email.wpcf7-not-valid,
#lubmix-home-newsletter .wpcf7-form input.wpcf7-text.wpcf7-not-valid {
    border-color: #dc2626;
}

#lubmix-home-newsletter .wpcf7-form input.wpcf7-email.wpcf7-not-valid:focus,
#lubmix-home-newsletter .wpcf7-form input.wpcf7-text.wpcf7-not-valid:focus {
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

#lubmix-home-newsletter .wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    font-size: 0.8125rem;
    color: #dc2626;
}

#lubmix-home-newsletter .wpcf7-form p:has(.wpcf7-submit) {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}



#lubmix-home-newsletter .wpcf7-form input.wpcf7-submit {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 9px 32px;
    border-radius: 10px;
    border: 1px solid #003357;
    background-color: #003357;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 26px;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

#lubmix-home-newsletter .wpcf7-form.sent .wpcf7-spinner {
    visibility: hidden;
}

#lubmix-home-newsletter .wpcf7-response-output {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-width: 1px;
    border-style: solid;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.4;
}

#lubmix-home-newsletter .wpcf7-form.invalid .wpcf7-response-output {
    border-color: rgba(220, 38, 38, 0.35);
    background-color: rgba(254, 226, 226, 0.35);
    color: #991b1b;
}

#lubmix-home-newsletter .wpcf7-form.sent .wpcf7-response-output {
    border-color: rgba(22, 163, 74, 0.35);
    background-color: rgba(220, 252, 231, 0.45);
    color: #166534;
}

#lubmix-home-newsletter,
#lubmix-home-catalog-newsletter {
    scroll-margin-top: 6rem;
}

body.admin-bar #lubmix-home-newsletter,
body.admin-bar #lubmix-home-catalog-newsletter {
    scroll-margin-top: calc(6rem + 32px);
}


/* Benefits: hover sutil nos cards */
[aria-labelledby="lubmix-home-benefits-heading"] a {
    transition: filter 0.18s ease, box-shadow 0.18s ease;
}

[aria-labelledby="lubmix-home-benefits-heading"] a:hover {
    filter: brightness(1.07);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}
