/**
 * catalogo-carousel.css
 * Carrossel de imagens flutuantes — sem card, sem box-shadow ao redor.
 * Cada slide é a imagem do produto pura, em destaque visual.
 */

/* ============================================================
   PRODUCT PREVIEW — desativado, produto só aparece na seção aberta
   ============================================================ */
.brand-preview-product {
    display: none;
}

/* ============================================================
   PRODUCT CAROUSEL CONTAINER
   ============================================================ */
.prod-carousel {
    position: relative;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    pointer-events: auto;
}

/* ============================================================
   CAROUSEL TRACK
   ============================================================ */
.prod-carousel-track {
    position: relative;
    width: 100%;
    height: 440px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   PRODUCT CARDS — apenas a imagem, sem wrapper visual
   ============================================================ */
.prod-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    /* Sem isolation para permitir mix-blend-mode nas imagens filhas */
    isolation: auto;

    /* Estados de posição */
    opacity: 0;
    /* Sem z-index aqui para não criar stacking context */
    pointer-events: none;
    transition:
        opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform: scale(0.82) translateX(60px);
}

.prod-card.is-active {
    opacity: 1;
    transform: scale(1) translateX(0);
    pointer-events: auto;
}

.prod-card.is-prev {
    opacity: 0;
    transform: scale(0.85) translateX(-80px) rotate(-4deg);
}

.prod-card.is-next {
    opacity: 0;
    transform: scale(0.85) translateX(80px) rotate(4deg);
}

.prod-card.is-entering-next {
    opacity: 0;
    transform: scale(0.85) translateX(80px) rotate(4deg);
    pointer-events: none;
}

.prod-card.is-entering-prev {
    opacity: 0;
    transform: scale(0.85) translateX(-80px) rotate(-4deg);
    pointer-events: none;
}

/* ============================================================
   CARD VISUAL — só a imagem, flutuando
   ============================================================ */
.prod-card-visual {
    position: relative;
    width: 100%;
    height: 240px;
    flex: 0 0 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    flex-direction: column;
    gap: 0;
    margin-top: 4px;
    margin-bottom: 8px;
}

/* A imagem do produto — limpa, flutuante, sem borda */
.prod-card-img {
    width: auto;
    max-width: 100%;
    max-height: 230px;
    object-fit: contain;
    /* Remove fundo branco de imagens com bg branco contra o fundo colorido */
    mix-blend-mode: multiply;
    /* Sombra sutil embaixo para dar profundidade ao produto */
    filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.55))
            drop-shadow(0 8px 15px rgba(0, 0, 0, 0.35));
    transition:
        transform 0.8s cubic-bezier(0.23, 1, 0.32, 1),
        filter 0.8s ease;
}

.prod-card.is-active .prod-card-img {
    animation: prod-float 4s ease-in-out infinite;
    filter: drop-shadow(0 36px 55px rgba(0, 0, 0, 0.6))
            drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

@keyframes prod-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}

/* Placeholder sem imagem */
.prod-card-no-img {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

/* ============================================================
   CARD INFO — nome e tag abaixo da imagem, limpo
   ============================================================ */
.prod-card-info {
    padding: 1rem 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
}

.prod-card-meta {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.prod-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.18rem 0.6rem;
    border-radius: 30px;
}

.prod-tag-destaque {
    color: rgba(201, 150, 58, 0.9);
    background: rgba(201, 150, 58, 0.1);
    border-color: rgba(201, 150, 58, 0.25);
}

.prod-name {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.prod-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    margin: 0;
    max-width: 260px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prod-sku {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.25);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.06em;
}

/* Mini dots de galeria */
.prod-img-dots {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 0.4rem;
}

.prod-img-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transition: all 0.3s ease;
}

.prod-img-dot.active {
    background: rgba(255,255,255,0.8);
    width: 14px;
    border-radius: 3px;
}

/* ============================================================
   CAROUSEL CONTROLS
   ============================================================ */
.carousel-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(8px);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    transform: scale(1.12);
    color: #fff;
}

.carousel-arrow:active {
    transform: scale(0.95);
}

/* ============================================================
   CAROUSEL DOTS
   ============================================================ */
.carousel-dots {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0;
}

.carousel-dot.is-active {
    background: rgba(255, 255, 255, 0.9);
    width: 22px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.carousel-dot:hover:not(.is-active) {
    background: rgba(255,255,255,0.5);
    transform: scale(1.2);
}

/* ============================================================
   CAROUSEL COUNTER
   ============================================================ */
.carousel-counter {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.12em;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-top: -0.3rem;
    margin-bottom: 2rem;
}

.carousel-counter-current {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 800;
    transition: all 0.3s ease;
}

.carousel-counter-sep {
    color: rgba(255,255,255,0.15);
}

/* ============================================================
   BRAND PRODUCT COUNT BADGE (coluna esquerda)
   ============================================================ */
.brand-prod-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 0.35rem 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.brand-expand-section.is-expanded .brand-prod-count {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   BUBBLE ICONS (ícones nas bolinhas de atributo)
   ============================================================ */
.brand-bubble i {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
}

/* ============================================================
   COMING SOON (marca sem produtos)
   ============================================================ */
.carousel-coming-soon p {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.45);
    max-width: 200px;
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   COLLAPSED BG TEXT — visible but smaller
   ============================================================ */
.brand-expand-section:not(.is-expanded) .brand-huge-bg-text {
    font-size: clamp(3rem, 12vw, 180px);
    color: rgba(255, 255, 255, 0.08);
    filter: none;
    transform: translate(-50%, -50%) scale(1);
}

/* ============================================================
   FLAG SHOWCASE GRID (1, 2 ou 3 colunas de flags lado a lado)
   ============================================================ */
.flag-showcase-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    transition: all 0.4s ease;
}

.flag-showcase-grid.flag-cols-1 {
    max-width: 440px;
    gap: 0;
}

.flag-showcase-grid.flag-cols-1 .flag-column {
    flex: 0 1 400px;
    max-width: 420px;
}

.flag-showcase-grid.flag-cols-2 {
    max-width: 940px;
    gap: 3.5rem;
}

.flag-showcase-grid.flag-cols-2 .flag-column {
    flex: 1 1 380px;
    max-width: 420px;
}

.flag-showcase-grid.flag-cols-3 {
    max-width: 1380px;
    gap: 2.2rem;
    padding: 0 10px;
}

.flag-showcase-grid.flag-cols-3 .flag-column {
    flex: 1 1 320px;
    max-width: 400px;
    min-width: 280px;
}

.flag-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    padding-top: 14px;
}

.flag-col-header {
    position: relative;
    z-index: 30;
    margin-bottom: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 22px;
    border-radius: 26px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.flag-col-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

/* Oculta tags redundantes dentro do card quando a coluna já tem o header da flag */
.flag-column .prod-flags-wrap {
    display: none;
}

/* Ajustes no prod-carousel quando dentro de flag-column */
.flag-column .prod-carousel {
    max-width: 100%;
    gap: 0.8rem;
}

.flag-showcase-grid.flag-cols-3 .prod-card-visual {
    height: 240px;
    flex: 0 0 240px;
}

.flag-showcase-grid.flag-cols-3 .prod-card-img {
    max-height: 230px;
}

.flag-showcase-grid.flag-cols-3 .prod-name {
    font-size: 1.15rem;
    margin: 4px 0 8px;
}

.flag-showcase-grid.flag-cols-3 .variant-chip {
    padding: 5px 11px;
    font-size: 10px;
}

.flag-showcase-grid.flag-cols-3 .prod-desc {
    font-size: 12px;
    line-height: 1.5;
    max-width: 290px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .flag-showcase-grid.flag-cols-3 {
        gap: 1.4rem;
        max-width: 1100px;
    }
    .flag-showcase-grid.flag-cols-3 .flag-column {
        flex: 1 1 290px;
        max-width: 340px;
    }
    .flag-showcase-grid.flag-cols-3 .prod-card-img {
        max-height: 210px;
    }
    .flag-showcase-grid.flag-cols-3 .prod-card-visual {
        height: 220px;
        flex: 0 0 220px;
    }
    .flag-showcase-grid.flag-cols-3 .prod-carousel-track {
        height: 380px;
    }
}

@media (max-width: 1024px) {
    .prod-carousel {
        max-width: 320px;
    }
    .prod-carousel-track {
        height: 380px;
    }
    .prod-card-img {
        max-height: 240px;
    }
    .flag-showcase-grid.flag-cols-2 {
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .flag-showcase-grid.flag-cols-3,
    .flag-showcase-grid.flag-cols-2 {
        flex-direction: column;
        align-items: center;
        gap: 3.5rem !important;
        max-width: 420px;
    }
    .flag-showcase-grid .flag-column {
        flex: 0 1 auto;
        max-width: 380px;
    }
    .flag-showcase-grid.flag-cols-3 .prod-card-img,
    .flag-showcase-grid.flag-cols-2 .prod-card-img {
        max-height: 280px;
    }
    .flag-showcase-grid.flag-cols-3 .prod-card-visual,
    .flag-showcase-grid.flag-cols-2 .prod-card-visual {
        height: 270px;
        flex: 0 0 270px;
    }
}

@media (max-width: 768px) {
    .prod-carousel {
        max-width: 100%;
    }
    .prod-carousel-track {
        height: 360px;
    }
    .prod-card-img {
        max-height: 240px;
    }
    .prod-name {
    .brand-preview-product {
        width: 100px;
        height: 140px;
        top: -35px;
    }
    .flag-showcase-grid {
        gap: 2.5rem !important;
    }
}
