/* Product page styles */
/* Handles variant selection, member pricing, and quantity breaks */

/* Variant Selection Styles */
.form-check-label-row {
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.form-check-label-row:hover {
    background-color: #f8f9fa;
}

.form-check-label-row .form-check-input {
    margin-top: 0.1em;
}

.save-highlight-custom {
    background-color: #fff799;
    color: #212529;
    padding: 0.25em 0.4em;
    font-size: 0.875em;
    border-radius: 0.25rem;
    display: inline-block;
    line-height: 1;
}

/* Member Pricing Styles */
.member-pricing-wrapper {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border: 1px solid #d4edda;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.member-welcome {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 8px 12px;
    border-radius: 4px;
}

.member-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 8px 12px;
    border-radius: 4px;
}

.member-price,
.member-sale-price {
    font-size: 1.8rem !important;
    color: #28a745 !important;
}

.member-regular-price {
    font-size: 1.2rem;
}

.member-savings .badge {
    font-size: 0.75rem;
    padding: 0.4em 0.6em;
}

.login-prompt {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

/* Quantity Breaks Styles */
.quantity-breaks-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
}

.quantity-breaks-wrapper {
    background: white;
    border-radius: 6px;
    padding: 10px;
}

.quantity-breaks-table {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.quantity-breaks-table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 8px 12px;
}

.quantity-breaks-table td {
    padding: 8px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f4;
}

.quantity-break-row {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    user-select: none;
}

.quantity-break-row:hover,
.quantity-break-row:focus {
    background-color: #e3f2fd !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    outline: none;
}

.quantity-break-row:focus {
    border: 2px solid #007bff;
    border-radius: 4px;
}

.quantity-break-row.clicked {
    transform: scale(0.98);
    background-color: #bbdefb !important;
}

.quantity-breaks-table .current-tier {
    background-color: #e8f4f8;
    border-left: 3px solid #007bff;
}

.quantity-breaks-table .current-tier td {
    font-weight: 500;
}

.quantity-breaks-table .current-tier:hover,
.quantity-breaks-table .current-tier:focus {
    background-color: #d1ecf1 !important;
}

.quantity-breaks-note {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 10px;
}

/* Price Update Indicators */
.quantity-break-price {
    animation: priceUpdate 0.3s ease-in-out;
    color: #e67e22 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.quantity-break-savings {
    animation: savingsUpdate 0.4s ease-in-out;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.quantity-break-savings-badge {
    animation: slideIn 0.3s ease-out;
}

.quantity-price-indicator {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 8px 12px;
    animation: slideIn 0.3s ease-out;
}

/* Animations */
@keyframes priceUpdate {
    0% {
        transform: scale(1);
        background-color: transparent;
    }
    50% {
        transform: scale(1.05);
        background-color: rgba(230, 126, 34, 0.1);
    }
    100% {
        transform: scale(1);
        background-color: transparent;
    }
}

@keyframes savingsUpdate {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}