/**
 * Kinetic Variable Product Widget - Estilos
 */

/* Contenedor principal */
.kvw-widget {
    background: #fff;
}

/* Botones de variaciones */
.kvw-variation-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.kvw-variation-buttons::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.kvw-variation-btn {
    padding: 10px 20px;
    border: 2px solid #000 !important;
    background: #fff !important;
    color: #000 !important;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 4px !important;
}

.kvw-variation-btn:hover {
    border-color: #ff005a !important;
    background: #ff005a !important;
    color: #fff !important;
}

.kvw-variation-btn.active {
    border-color: #ff005a !important;
    background: #ff005a !important;
    color: #fff !important;
    font-weight: bold !important;
}

.kvw-variation-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Área de información */
.kvw-variation-info {
    padding: 20px 0;
    border-top: 1px solid #ddd;
}

/* Descripción */
.kvw-description {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #000;
    border-bottom: 1px solid #ddd;
}

/* Precios */
.kvw-prices {
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    align-items: start;
}

.kvw-regular-price,
.kvw-sale-price {
    margin: 5px 0;
    display: flex;
    flex-direction: column;
}
.kvw-regular-price {
    width: 35%;
    font-weight: 400;
}
.kvw-sale-price {
    width: 65%;
    font-weight: 700;
}

.price-label {
    color: #666;
    margin-right: 8px;
    font-size: 14px;
    font-weight: normal;
    text-decoration: line-through;
}

.price-value {    
    color: #000;
    font-size: 18px;
    font-weight: 700;
}

.price-value.strike {
    text-decoration: line-through;
    color: #000;
    font-size: 18px;
    font-weight: normal;
}

.price-value.sale {
    color: #000;
    font-size: 18px;
    font-weight: 700;
}

.price-value.detail {
    color: #000;
    font-size: 14px;
    font-weight: 400;
}

/* Cuotas */
.kvw-installments {
    padding: 0;
    background: transparent;
    border: none;
}

.installment-text {
    font-size: 16px;
    color: #000;
    font-weight: normal;
    margin-bottom: 5px;
}

.num-cuotas {
    color: #000;
}

.installment-price {
    font-weight: 700;
    font-size: 36px;
    color: #000;
    margin-top: 5px;
    line-height: 1.2;
}

/* Mensaje de descuento */
.kvw-discount-message {
    margin-top: 16px;
    padding: 10px;
    background: #fff;
    border: 2px solid #ff005a;
    text-align: center;
    border-radius: 8px;
}

.kvw-discount-percentage {
    font-size: 26px;
    line-height: 26px;
    font-weight: 700;
    color: #000;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.kvw-discount-text {
    font-size: 16px;
    color: #000;
    font-weight: normal;
}

/* Botón de compra */
.kvw-buy-now {
    display: inline-block;
    width: auto;
    padding: 18px 40px;
    background: #ff005a !important;
    color: #fff !important;
    border: none;
    font-size: 18px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px !important;
    margin-top: 20px;
    text-transform: none;
    width: 100% !important;
}

.kvw-buy-now:hover {
    background: #ff005a;
    box-shadow: 0 4px 12px rgba(255, 0, 90, 0.3);
}

.kvw-buy-now:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Responsive básico */
@media (max-width: 768px) {
    .price-value.sale {
        font-size: 28px;
    }
    .kvw-prices {
    flex-direction: column;
    }

    .kvw-regular-price {
        flex-direction: row;
        gap: 4px;
        align-items: end;
    }
    .kvw-regular-price {
        width: 100%;
    }
    .kvw-sale-price {
        width: 100%;
    }

    .installment-price {
        font-size: 36px;
    }

    .kvw-discount-percentage {
        font-size: 28px;
    }

    .kvw-buy-now {
        width: 100%;
        display: block;
    }
}
