/* ===================================
   DRIP BANNER SLIDER - Ultra Leve
   =================================== */

.dw-banner-slider {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: visible;
}

/* ===================================
   PRODUTOS - Miniaturas no topo
   =================================== */

.dw-slider-products {
    width: 100%;
    margin-bottom: -30px;
    position: relative;
    background: #f6f6f6;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0;
    z-index: 1;
}

.dw-products-track {
    position: relative;
    width: 100%;
}

.dw-products-group {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.dw-products-group.active {
    display: block;
    opacity: 1;
}

.dw-products-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.dw-products-scroll::-webkit-scrollbar {
    display: none;
}

.dw-product-thumb {
    flex: 0 0 auto;
    width: 110px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    transition: transform 0.2s ease;
}

.dw-product-thumb:hover {
    transform: translateY(-4px);
}

.dw-thumb-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.dw-thumb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dw-thumb-name {
    display: none;
}

/* ===================================
   BANNERS - Slider principal
   =================================== */

.dw-slider-banners {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9; /* Widescreen padrão */
    overflow: hidden;
    border-radius: 0;
    background: #f5f5f5;
}

.dw-banners-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.dw-banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.dw-banner-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.dw-banner-link,
.dw-banner-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.dw-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===================================
   NAVEGAÇÃO - Setas e dots
   =================================== */

.dw-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dw-slider-nav:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.dw-slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.dw-slider-nav svg {
    color: #333;
}

.dw-prev {
    left: 16px;
}

.dw-next {
    right: 16px;
}

/* Dots de navegação */
.dw-slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.dw-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dw-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dw-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* ===================================
   MOBILE - Ajustes responsivos
   =================================== */

@media (max-width: 768px) {
    .dw-slider-banners {
        aspect-ratio: 9 / 16; /* Vertical para mobile */
        border-radius: 0;
    }

    .dw-product-thumb {
        width: 85px;
    }

    .dw-slider-products {
        padding: 0;
        margin-bottom: -30px;
    }

    .dw-products-scroll {
        gap: 20px;
        padding: 0;
    }

    /* Setas menores em mobile */
    .dw-slider-nav {
        width: 36px;
        height: 36px;
    }

    .dw-slider-nav svg {
        width: 20px;
        height: 20px;
    }

    .dw-prev {
        left: 12px;
    }

    .dw-next {
        right: 12px;
    }

    .dw-slider-dots {
        bottom: 12px;
        gap: 6px;
        padding: 6px 12px;
    }

    .dw-dot {
        width: 6px;
        height: 6px;
    }

    .dw-dot.active {
        width: 18px;
    }
}

/* Touch feedback */
@media (hover: none) and (pointer: coarse) {
    .dw-slider-nav:active {
        background: rgba(255, 255, 255, 0.7);
    }
    
    .dw-product-thumb:active {
        opacity: 0.7;
    }
}

/* ===================================
   PERFORMANCE - Otimizações
   =================================== */

/* GPU acceleration */
.dw-banner-item,
.dw-products-group,
.dw-slider-nav {
    will-change: auto;
}

/* Remove will-change após animação */
.dw-banner-item.active,
.dw-products-group.active {
    will-change: auto;
}

/* Preload hint para primeira imagem */
.dw-banner-item:first-child .dw-banner-img {
    content-visibility: auto;
}
