/* Estilos para Variações de Produto (Sabores, etc) */

.product-attribute-wrapper {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #0a0a0a;
    border: 2px solid #1a1a1a;
    border-radius: 0.5rem;
}

.attribute-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.attribute-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.attribute-option {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.attribute-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    cursor: pointer;
}

.attribute-option .option-label {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background-color: #1a1a1a;
    color: #fff;
    border: 2px solid #333;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    white-space: nowrap;
}

.attribute-option input[type="radio"]:hover + .option-label {
    border-color: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.attribute-option input[type="radio"]:checked + .option-label {
    background-color: #22c55e;
    color: #000;
    border-color: #22c55e;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    font-weight: 600;
}

.attribute-option input[type="radio"]:focus + .option-label {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

/* Responsividade */
@media (max-width: 768px) {
    .product-attribute-wrapper {
        padding: 0.875rem;
        margin: 1rem 0;
    }

    .attribute-label {
        font-size: 0.95rem;
        margin-bottom: 0.875rem;
    }

    .attribute-values {
        gap: 0.5rem;
    }

    .attribute-option .option-label {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .product-attribute-wrapper {
        padding: 0.75rem;
        margin: 0.875rem 0;
    }

    .attribute-label {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .attribute-values {
        gap: 0.4rem;
    }

    .attribute-option .option-label {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
}

/* Animação de seleção */
@keyframes selectPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.attribute-option input[type="radio"]:checked + .option-label {
    animation: selectPulse 0.6s ease-out;
}

/* Ajuste do tamanho da galeria de produtos */
.single-product-section .product-gallery {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.single-product-section .product-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .single-product-section .product-gallery {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .single-product-section .product-gallery {
        max-width: 250px;
    }
}
