/* Payment System Styles - CSP Compliant */

/* Test Page Styles */
.payment-test-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.payment-test-card {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.payment-test-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.payment-test-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.payment-test-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
}

/* Store Password Page Styles */
.store-password-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.store-password-card {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.store-password-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.store-password-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.store-password-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
}

/* Badge Styles */
.badge-sm {
    font-size: 0.8em;
}

/* Text Colors */
.text-production {
    color: #dc3545;
}

.text-development {
    color: #ffc107;
}

/* Card Shadow */
.card-shadow {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Utility Classes */
.opacity-75 {
    opacity: 0.75;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Workshop System Styles */
.bg-green {
    background-color: #6da071 !important;
    color: white !important;
}

.badge-green {
    background-color: #6da071 !important;
    color: white !important;
}

.btn-green {
    background-color: #6da071 !important;
    border-color: #6da071 !important;
    color: white !important;
}

.btn-green:hover {
    background-color: #5a8c5e !important;
    border-color: #5a8c5e !important;
    color: white !important;
}

.workshop-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.375rem 0.375rem 0 0;
}

.workshop-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Product Variant Styles - New Design */
.variant-option-card {
    min-width: 140px;
    flex: 1;
}

.variant-option-label {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 2px solid #dee2e6 !important;
    min-height: 80px;
    text-align: left;
}

.variant-option-label:hover {
    border-color: #6da071 !important;
    background-color: #f8f9fa !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.variant-option-label.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.variant-option-label.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Selected state */
.variant-option:checked + .variant-option-label {
    border-color: #6da071 !important;
    background-color: #f0f8f0 !important;
    color: #6da071;
    box-shadow: 0 0 0 3px rgba(109, 160, 113, 0.15);
}

/* Variant icon container */
.variant-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Variant mini image - Higher specificity to override global img rules */
.variant-option-label .variant-icon img.variant-mini-image {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: cover !important;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    display: block;
}

.variant-color-icon {
    font-size: 24px;
    color: #6da071;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.variant-details {
    flex: 1;
    min-width: 0;
}

.variant-name {
    font-size: 0.9rem;
    line-height: 1.3;
}

.variant-price-adjustment {
    font-size: 0.8rem;
    display: block;
}

/* Selected variant summary */
.selected-variant-summary {
    margin-top: 1rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Breadcrumb styling */
.breadcrumb {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
}

/* Page transition animations */
body {
    transition: opacity 0.3s ease-in-out;
}

/* Ensure smooth transitions don't interfere with other animations */
body.transitioning {
    pointer-events: none;
}

/* Loading indicator for full page transitions */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

.page-transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Cart feedback toast */
.cart-feedback-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    pointer-events: none;
}

.cart-feedback-success {
    background-color: #28a745;
}

.cart-feedback-error {
    background-color: #dc3545;
}

.cart-feedback-show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Cart dropdown styles */
.cart-dropdown {
    min-width: 350px;
    max-width: 400px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
}

.cart-dropdown-content {
    max-height: 400px;
    overflow-y: auto;
}

.cart-items-container {
    max-height: 250px;
    overflow-y: auto;
}

.cart-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 2px;
    color: #333;
}

.cart-item-variant {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.85rem;
    color: #28a745;
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cart-quantity-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-quantity-btn:hover {
    background: #f8f9fa;
    border-color: #6da071;
}

.cart-quantity-display {
    font-weight: 500;
    min-width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.cart-dropdown-total {
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: between;
    align-items: center;
    font-weight: 600;
}

.cart-empty-state {
    padding: 24px;
    text-align: center;
    color: #666;
}

.dropdown-toggle::after {
    display: none !important;
}