.card-image-container {
    background-color: #f5f5f5;
    -moz-border-radius: inherit;
    -webkit-border-radius: inherit;
    border-radius: 8px;
    padding: 32px;
}

/* ===== BINDER SELECTOR STYLES ===== */
.card-binder-selector {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

.card-binder-selector .form-label {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #333;
}

.card-binder-selector .form-select {
    border: 2px solid #667eea;
    color: #333;
}

.card-binder-selector .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

/* ===== VARIANT QUANTITY CONTROLS ===== */
.card-variants-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

.variant-control {
    display: flex;
    justify-content: center;
}

.card-detail-quantity-input {
    border: 1px solid #dee2e6;
    font-weight: 500;
    color: #333;
}

.card-detail-quantity-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.1);
}

.card-detail-add-btn,
.card-detail-remove-btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.card-detail-add-btn:hover {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

.card-detail-remove-btn:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.card-set-link {
    color: #5d5d5d;
    text-decoration: none;
}

    .card-set-link h4 {
        font-size: 16px;
    }

.card-details-text {
    font-size: 14px;
    margin-bottom: 2px;
}

.market-prices-container {
    background-color: #fdfdfd;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #f1f1f1;
}

/* ===== FAVORITE BUTTON STYLES ===== */
.card-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
    position: static !important;
}

.card-header-actions .card-favorite-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
    position: static !important;
    top: auto !important;
    left: auto !important;
    z-index: auto !important;
    box-shadow: none;
}

.card-header-actions .card-favorite-btn:hover:not(.is-favorited) {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.card-header-actions .card-favorite-btn.is-favorited {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.card-header-actions .card-favorite-btn.is-favorited:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.card-header-actions .card-favorite-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

.card-header-actions .card-favorite-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== Lazy Loading Styles for Card Details ===== */
.card-image-container img[loading="lazy"] {
    transition: opacity 0.4s ease-in-out;
}

.card-image-container img[loading="lazy"]:not(.lazy-loaded) {
    opacity: 0.6;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.card-image-container img.lazy-loaded {
    opacity: 1;
    animation: fadeIn 0.4s ease-in;
}

/* Shimmer animation */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
