/* Product Form Styles */
.trading-card-product-form {
    margin: 2em 0;
}

/* Price Display */
.trading-card-product-form .price-display {
    margin-bottom: 2em;
}

.trading-card-product-form .base-price-note {
    display: block;
    color: #666;
    font-size: 0.85em;
    margin-top: 0.5em;
}

/* Template Selection */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 1.5em 0;
}

.template-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.template-item:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.template-item.is-selected {
    border-color: #2271b1;
    background-color: #f0f7fc;
}

.template-preview {
    aspect-ratio: 63/88;
    background-color: #f7f7f7;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.template-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-preview .no-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.template-info {
    text-align: center;
}

.template-info h4 {
    margin: 0;
    font-size: 14px;
    color: #23282d;
}

/* Extra Features */
.extra-features {
    margin: 2em 0;
    padding: 1.5em;
    background: #f7f7f7;
    border-radius: 4px;
}

.extra-feature {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.extra-feature:last-child {
    border-bottom: none;
}

.extra-feature label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.extra-feature .price {
    margin-left: auto;
    color: #666;
    font-size: 0.9em;
}

/* Action Buttons */
.product-actions {
    margin: 1em 0;
}

.customize-card {
    min-width: 200px;
    text-align: center;
    font-weight: 600;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .template-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .template-info h4 {
        font-size: 13px;
    }

    .customize-card {
        width: 100%;
    }
}

/* Loading States */
.trading-card-product-form.is-loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.trading-card-product-form.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px;
    border: 3px solid #2271b1;
    border-top-color: transparent;
    border-radius: 50%;
    animation: stc-spin 1s linear infinite;
}

@keyframes stc-spin {
    to { transform: rotate(360deg); }
}