/**
 * 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: 380px;
    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-end;
    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: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    flex-direction: column;
    gap: 0;
    /* Sem z-index, sem isolation — permite mix-blend-mode funcionar */
}

/* A imagem do produto — limpa, flutuante, sem borda */
.prod-card-img {
    width: auto;
    max-width: 100%;
    max-height: 300px;
    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(-12px); }
}

/* 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);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .prod-carousel {
        max-width: 300px;
    }
    .prod-carousel-track {
        height: 320px;
    }
    .prod-card-img {
        max-height: 240px;
    }
    .brand-preview-product {
        width: 130px;
        height: 170px;
        top: -45px;
    }
}

@media (max-width: 768px) {
    .prod-carousel {
        max-width: 260px;
    }
    .prod-carousel-track {
        height: 260px;
    }
    .prod-card-img {
        max-height: 190px;
    }
    .prod-name {
        font-size: 0.95rem;
    }
    .carousel-arrow {
        width: 34px;
        height: 34px;
        font-size: 0.7rem;
    }
    .brand-preview-product {
        width: 100px;
        height: 140px;
        top: -35px;
    }
}
