/* ====================================
   PRODUCTS SECTION
==================================== */
.products-section {
    padding: 4rem 0;
    background: #000;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.products-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(0, 209, 106, 0.02) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(0, 209, 106, 0.02) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(0, 209, 106, 0.01) 0%, transparent 50%);
    animation: pulseBackground 8s ease-in-out infinite alternate;
}

/* Carrossel Structure */
.products-carousel {
    position: relative;
    padding: 1rem 0;
    width: 100%;
    max-width: calc(320px * 3 + 2rem * 2);
    /* Largura para 3 cards + gaps */
    margin: 0 auto;
    overflow: hidden;
}

.products-grid {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 2rem;
    overflow: hidden;
}

/* Ajustes nos botões de navegação */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-prev {
    left: -60px;
}

.carousel-next {
    right: -60px;
}

/* Hover effects para os botões */
.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(0, 209, 106, 0.3);
}

/* Card Design */
.product-card {
    flex: 0 0 320px;
    width: 320px;
    min-width: 320px;
    height: 420px;
    background: linear-gradient(165deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 100%);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: calc(var(--card-index) * 0.1s);
    opacity: 0;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

/* Image Container Base */
.product-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    background: radial-gradient(circle at center,
            rgba(255, 255, 255, 0.07) 0%,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.02) 50%,
            transparent 70%);
    overflow: hidden;
    box-sizing: border-box;
}

.product-image img {
    transition: transform 0.4s ease;
}

/* Imagens específicas para cada produto */
.product-image.charger-20w img {
    width: 77%;
    padding: 0.5rem;
}

.product-image.cable-lightning img {
    width: 110%;
    padding: 0.5rem;
}

.product-image.earphone-typec img {
    width: 90%;
    padding: 0.5rem;
}

.product-image.charger-5w img {
    width: 100%;
    padding: 1rem;
    transform: rotate(60deg);
    position: relative;
    top: -20px
}

.product-image.charger-dual img {
    width: 95%;
    padding: 0.8rem;
}

.product-image.cable-typec img {
    width: 70%;
    padding: 0.5rem;
}

.product-image.cable-v8 img {
    width: 80%;
    padding: 0.5rem;
}

.product-image.earphone-p2 img {
    width: 80%;
    padding: 0.5rem;
}

.product-image.earphone-lightning img {
    width: 70%;
    padding: 0.5rem;
}

.product-image.charger-car img {
    width: 60%;
    padding: 0.8rem;
}

/* Overlay Light Effect */
.product-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg,
            rgba(255, 255, 255, 0.07) 0%,
            rgba(255, 255, 255, 0.03) 50%,
            transparent 100%);
    z-index: -1;
}

/* Badge */
.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 0 15px rgba(0, 209, 106, 0.25);
    animation: badgePulse 2s infinite alternate;
}

/* Content */
.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    position: relative;
    z-index: 2;
}

.product-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.4rem;
    text-shadow: 0 0 12px rgba(0, 209, 106, 0.25);
}

/* Highlights */
.product-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.8rem 0;
    min-height: 50px;
    justify-content: flex-start;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-white);
    background: rgba(0, 209, 106, 0.03);
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 209, 106, 0.08);
    min-width: 120px;
}

/* SVG Styles */
.highlight-svg {
    width: 18px;
    height: 18px;
    margin-right: 4px;
    flex-shrink: 0;
}

.product-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-top: auto;
    transition: all 0.3s ease;
    min-height: 45px;
}

/* Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 209, 106, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Hover Effects */
.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 209, 106, 0.3);
    box-shadow:
        0 15px 30px rgba(0, 209, 106, 0.1),
        0 0 0 1px rgba(0, 209, 106, 0.1);
}

.product-card:hover .product-description {
    color: rgba(255, 255, 255, 0.9);
}

.product-card:hover .highlight-item {
    background: rgba(0, 209, 106, 0.08);
    transform: translateY(-1px);
    border-color: rgba(0, 209, 106, 0.15);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(0, 209, 106, 0.3);
}

/* Animations */
@keyframes badgePulse {
    0% {
        box-shadow: 0 0 15px rgba(0, 209, 106, 0.2);
    }

    100% {
        box-shadow: 0 0 20px rgba(0, 209, 106, 0.3);
    }
}

/* Animation Delays */
.product-card:nth-child(1) {
    --card-index: 1;
}

.product-card:nth-child(2) {
    --card-index: 2;
}

.product-card:nth-child(3) {
    --card-index: 3;
}