/* Coffee Product Variants Styling */
.variant-selection {
    margin-bottom: 1.5rem;
}

.variant-selection h5 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #333;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.variant-option {
    position: relative;
}

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

.variant-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
}

.variant-label:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.variant-option input[type="radio"]:checked + .variant-label {
    border-color: #007bff;
    background-color: #e7f3ff;
    color: #007bff;
}

.variant-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.variant-price {
    font-size: 0.9rem;
    color: #6c757d;
}

.variant-option input[type="radio"]:checked + .variant-label .variant-price {
    color: #007bff;
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
    .variant-options {
        flex-direction: column;
    }
    
    .variant-label {
        flex-direction: row;
        justify-content: space-between;
        min-width: auto;
        width: 100%;
    }
    
    .variant-name {
        margin-bottom: 0;
    }
}

/* Animation for price changes */
.price-updating {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}
