.cpu-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 15px;
}
.cpu-col {
    flex: 1 1 220px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.cpu-col-full {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
@media (max-width: 700px) {
    .cpu-form-row { flex-direction: column; }
}

/* #cpu-product-form {
    margin: 0 auto;
    padding: 18px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px #0001;
    position: relative;
} */
.cpu-form-group {
    margin-bottom: 18px;
}
.cpu-form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}
.cpu-form-group input,
.cpu-form-group textarea,
.cpu-form-group select {
    width: 100%;
    padding: 8px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.cpu-field-error {
    color: #d33;
    font-size: 0.92em;
}
.cpu-dropzone {
    border: 2px dashed #bbb;
    background: #fafafa;
    text-align: center;
    padding: 30px 0;
    margin-bottom: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: border-color 0.2s;
}
.cpu-dropzone:hover, .cpu-dropzone:focus {
    border-color: #666;
    outline: none;
}
.cpu-image-preview, .cpu-gallery-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.cpu-img-thumb, .cpu-gallery-thumb {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eee;
}
.cpu-img-thumb img, .cpu-gallery-thumb img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
}
.cpu-remove-img {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 24px;
    background: #fff9 !important;
    color: #c00 !important;
    font-size: 1.2em !important;
    border: none !important;
    border-radius: 50%;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;
    line-height: 1;
    text-align: center;
}
.cpu-btn {
    background: #21759b;
    color: #fff;
    padding: 10px 22px;
    border: none;
    border-radius: 4px;
    font-size: 1.08em;
    cursor: pointer;
    transition: background 0.2s;
}
.cpu-btn:hover { background: #1a5a7c; }
.cpu-loading {
    text-align: center;
    color: #555;
    font-size: 1.1em;
    margin-top: 12px;
}
.cpu-success { color: #2a8c2a; margin-top: 16px; }
.cpu-error { color: #d33; margin-top: 16px; }

#cpu-img-loader-overlay {
    display: none;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

#cpu-img-loader-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cpu-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #e0e0e0;
    border-top: 5px solid #21759b;
    border-radius: 50%;
    animation: cpu-spin 1s linear infinite;
    margin-bottom: 14px;
}

@keyframes cpu-spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

.cpu-spinner-text {
    font-size: 1.1em;
    color: #21759b;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 600px) {
    #cpu-product-form { padding: 7px; }
    .cpu-img-thumb, .cpu-gallery-thumb { width: 50px; height: 50px; }
}
