﻿.producto-form-header {
    padding: 1.4rem 1.6rem;
    background: linear-gradient( 135deg, rgba(var(--rz-primary-rgb), .10), rgba(var(--rz-primary-rgb), .03) );
    border-left: 6px solid var(--rz-primary);
    border-radius: 20px 20px 0 0;
}

.producto-form-header__content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.producto-form-header__icon {
    font-size: 34px;
    color: var(--rz-primary);
}

.producto-form-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
}

.producto-media-card {
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,.04);
}

.producto-media-card,
.producto-fields-card {
    border-radius: 20px;
    padding: 1.2rem;
    box-shadow: 0 6px 20px rgba(0,0,0,.04);
}

/* IMAGEN */
.producto-avatar-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .producto-avatar-wrapper:hover {
        transform: scale(1.03);
        transition: all .25s ease;
    }

.producto-avatar-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 135deg, rgba(var(--rz-primary-rgb), .10), rgba(var(--rz-primary-rgb), .04) );
    border: 2px dashed rgba(var(--rz-primary-rgb), .25);
    font-size: 42px;
    color: var(--rz-primary);
}

.producto-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .3s;
    color: white;
}

.producto-avatar-wrapper:hover .producto-avatar-overlay {
    opacity: 1;
}

/* INPUTS */


.producto-input,
.producto-textarea {
    border-radius: 12px !important;
    border: 1px solid rgba(var(--rz-base-contrast-rgb), .10) !important;
    background: var(--rz-base-default) !important;
    min-height: 42px;
}

    .producto-input:focus,
    .producto-textarea:focus {
        border-color: var(--rz-primary) !important;
        box-shadow: 0 0 0 3px rgba(var(--rz-primary-rgb), .16) !important;
    }

.producto-hidden-input-file {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}
/* BOTONES */
.producto-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
}

/* RESPONSIVE */
@media (max-width: 960px) {
    .producto-form-layout {
        grid-template-columns: 1fr;
    }
}
