/* Product Variants Styles */

/* Attribute button styles */
.attribute-btn {
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    background-color: #fff;
    color: #495057;
    font-size: 0.875rem;

    border-radius: 0.375rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.attribute-btn:hover:not(:disabled) {
    border-color: #2b4392;
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.attribute-btn.selected {
    border-color: #2b4392;
    background: transparent;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.attribute-btn.selected:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Disabled button styles */
.attribute-btn:disabled,
.attribute-btn.color-btn-disabled,
.attribute-btn.size-btn-disabled,
.attribute-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    transform: none;
    box-shadow: none;
}

.attribute-btn:disabled:hover,
.attribute-btn.color-btn-disabled:hover,
.attribute-btn.size-btn-disabled:hover,
.attribute-btn.disabled:hover {
    border-color: #dee2e6;
    background-color: #f8f9fa;
    color: #6c757d;
    transform: none;
    box-shadow: none;
}

/* Add to cart button disabled state */
.add-to-cart-btn.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.7;
}

.add-to-cart-btn.btn-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

/* Stock warning styles */
.stock-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stock-warning i {
    color: #f39c12;
    font-size: 1rem;
}

/* Price update animation */
.price-updated {
    animation: priceUpdate 0.3s ease-in-out;
}

@keyframes priceUpdate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        color: #28a745;
    }
    100% {
        transform: scale(1);
    }
}

/* Photo update animation */
.photo-updated {
    animation: photoUpdate 0.3s ease-in-out;
}

@keyframes photoUpdate {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* Attribute selection area highlighting */
.attribute-selection-highlight {
    border: 2px solid #dc3545 !important;
    border-radius: 8px !important;
    padding: 10px !important;
    background-color: #fff5f5 !important;
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .attribute-btn {
        font-size: 0.8rem;

    }
    
    .stock-warning {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
} 