/* --- Estilos específicos para Inventario --- */

.inventory-forms-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-bottom: 40px;
}

/* Buscador CABYS Premium */
.cabys-search-premium {
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.cabys-search-premium i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Área de Imagen Premium */
.premium-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: all var(--transition-fast);
    cursor: pointer;
    background: var(--bg-main);
    color: var(--text-muted);
}

.premium-upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.premium-upload-area img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

/* Lista de Inventario (Cards) */
.inventory-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 20px;
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
}

.stock-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.stock-ok { background: #dcfce7; color: #166534; }
.stock-low { background: #fef9c3; color: #854d0e; }
.stock-out { background: #fee2e2; color: #991b1b; }

.product-info h4 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.product-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--bg-main);
}

@media (max-width: 1024px) {
    .inventory-forms-grid { grid-template-columns: 1fr; }
}
